/ Published in: Other
Expand |
Embed | Plain Text
/* Markus Török toeroek.eu SCREEN.CSS */ @import url(classes.less); @import url(reset.css); /* LESS Variable ---------------------------------------------------------------------*/ @10: 10em; @11: 11em; @12: 12em; @13: 13em; @14: 14em; @body-font: 16em; @18: 18em; @21: 20em; @24: 24em; @36: 36em; @48: 48em; @60: 60em; @72: 72em; @cols1: 68/@body-font; @cols2: 160/@body-font; @cols3: 252/@body-font; @cols4: 344/@body-font; @cols5: 436/@body-font; @cols6: 528/@body-font; @cols7: 620/@body-font; @cols8: 712/@body-font; @cols9: 804/@body-font; @cols10: 896/@body-font; /* _BODY -----------------------------------------------------------------------------*/ body { color:#444; font: 16px/24px Georgia, serif; margin:0 auto; } /* _HEADINGS -------------------------------------------------------------------------*/ /* _TYPOGRAPHY -----------------------------------------------------------------------*/ p { margin-bottom:24/@body-font; line-height:24/@body-font;} /* _LINKS ----------------------------------------------------------------------------*/ a:hover, a:active { outline: none; } a, a:active, a:visited { color: #607890; } a:hover { color: #036; } /* _IMAGES AND VIDEOS ----------------------------------------------------------------*/ /* _TABLES ---------------------------------------------------------------------------*/ /* _FORMS ----------------------------------------------------------------------------*/ /* _LAYOUT ---------------------------------------------------------------------------*/ /* Default Layout: 992px. Gutters: 24px. Outer margins: 48px. Leftover space for scrollbars @1024px: 32px. ------------------------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 9 10 px 68 160 252 344 436 528 620 712 804 896 */ #wrap { position:relative; margin:0 auto; width: 896/@body-font; padding: 72/@body-font 48/@body-font 84/@body-font; background: rgb(232,232,232); color: rgb(60,60,60); -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */ } /* BANNER ---------------------------------------------------------------------------*/ /*_NAV*/ /* INTRODUCTION ---------------------------------------------------------------------*/ /* SITE FOOTER ----------------------------------------------------------------------*/ /* ENTRIES AND ARTICLES -------------------------------------------------------------*/ /* * Non-semantic helper classes - HTML5 ✰ Boilerplate */ /* for image replacement */ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; } /* Hide for both screenreaders and browsers css-discuss.incutio.com/wiki/Screenreader_Visibility */ .hidden { display: none; visibility: hidden; } /* Hide only visually, but have it available for screenreaders www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */ .visuallyhidden { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } /* Hide visually and from screenreaders, but maintain layout */ .invisible { visibility: hidden; } /* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */ .clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; } .clearfix:after { clear: both; } /* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */ .clearfix { zoom: 1; } /* Less Framework 4 http://lessframework.com by Joni Korpi License: http://creativecommons.org/licenses/MIT/ */ /* 13-column layout 60 px columns, 24 px gutters, 72 px margins, 1212 px total (extra space for scrollbars) --------------------------------------------------------------------------------------- 1 2 3 4 5 6 7 8 9 10 11 12 13 60px 144px 228px 312px 396px 480px 564px 648px 732px 816px 900px 984px 1068px */ @media only screen and (min-width: 1212px) { #wrap { padding: 96px 72px 0; width: 1068px; position: relative; } } /* Tablet Layout: 768px. Gutters: 24px. Outer margins: 28px. Inherits styles from: Default Layout. ----------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 px 68 160 252 344 436 528 620 712 */ @media only screen and (min-width: 768px) and (max-width: 991px) { #wrap { width: 712/@body-font; padding: 48/@body-font 28/@body-font 60/@body-font; } } /* Mobile Layout: 320px. Gutters: 24px. Outer margins: 34px. Inherits styles from: Default Layout. --------------------------------------------- cols 1 2 3 px 68 160 252 */ @media only screen and (max-width: 767px) { #wrap { width: 252/@body-font; padding: 48/@body-font 34/@body-font 60/@body-font; } } /* Wide Mobile Layout: 480px. Gutters: 24px. Outer margins: 22px. Inherits styles from: Default Layout, Mobile Layout. ------------------------------------------------------------ cols 1 2 3 4 5 px 68 160 252 344 436 */ @media only screen and (min-width: 480px) and (max-width: 767px) { #wrap { width: 436/@body-font; padding: 36/@body-font 22/@body-font 48/@body-font; } } /* * print styles * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/ */ @media print { * { background: transparent !important; color: #444 !important; text-shadow: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } a:after { content: " (" attr(href) ")"; } abbr:after { content: " (" attr(title) ")"; } .ir a:after { content: ""; } /* Don't show links for images */ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ tr, img { page-break-inside: avoid; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3{ page-break-after: avoid; } }
You need to login to post a comment.
