Last active
December 16, 2015 10:19
-
-
Save roden0/5418798 to your computer and use it in GitHub Desktop.
Less framework 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> | |
| <html class="no-js"> | |
| <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width"> | |
| <link rel="stylesheet" href="css/lf4.css"> | |
| <!--[if lt IE 9]> <script src="js/vendor/html5-3.6-respond-1.1.0.min.js"></script> <![endif]--> | |
| </head> | |
| <body> | |
| <div class="header-container"> | |
| <header class="wrapper clearfix"> | |
| <h1 class="title">h1.title</h1> | |
| <nav> | |
| <ul> | |
| <li> | |
| <a href="#">nav ul li a</a> | |
| </li> | |
| <li> | |
| <a href="#">nav ul li a</a> | |
| </li> | |
| <li> | |
| <a href="#">nav ul li a</a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </header> | |
| </div> | |
| <div class="main-container"> | |
| <div class="main wrapper clearfix"> | |
| <article> | |
| <header> | |
| <h1>article header h1</h1> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. | |
| </p> | |
| </header> | |
| <section> | |
| <h2>article section h2</h2> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra. | |
| </p> | |
| </section> | |
| <section> | |
| <h2>article section h2</h2> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra. | |
| </p> | |
| </section> | |
| <footer> | |
| <h3>article footer h3</h3> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. | |
| </p> | |
| </footer> | |
| </article> | |
| <aside> | |
| <h3>aside</h3> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. | |
| </p> | |
| </aside> | |
| </div> | |
| <!-- #main --> | |
| </div> | |
| <!-- #main-container --> | |
| <div class="footer-container"> | |
| <footer class="wrapper"> | |
| <h3>footer</h3> | |
| </footer> | |
| </div> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Less Framework 4 | |
| http://lessframework.com | |
| by Joni Korpi | |
| License: http://opensource.org/licenses/mit-license.php */ | |
| /* Resets | |
| ------ */ | |
| html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, | |
| p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, | |
| img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr, | |
| dl, dt, dd, ol, ul, li, fieldset, form, label, legend, | |
| table, caption, tbody, tfoot, thead, tr, th, td, | |
| article, aside, canvas, details, figure, figcaption, hgroup, | |
| menu, footer, header, nav, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| article, aside, canvas, figure, figure img, figcaption, hgroup, | |
| footer, header, nav, section, audio, video { | |
| display: block; | |
| } | |
| a img {border: 0;} | |
| /* Typography presets | |
| ------------------ */ | |
| .gigantic { | |
| font-size: 123px; | |
| line-height: 132px; | |
| letter-spacing: -2px; | |
| } | |
| .huge, h1 { | |
| font-size: 76px; | |
| line-height: 84px; | |
| letter-spacing: -1px; | |
| } | |
| .large, h2 { | |
| font-size: 47px; | |
| line-height: 48px; | |
| } | |
| .bigger, h3 { | |
| font-size: 29px; | |
| line-height: 36px; | |
| } | |
| .big, h4 { | |
| font-size: 25px; | |
| line-height: 30px; | |
| } | |
| body { | |
| font: 18px/24px "Times New Roman", Times, serif; | |
| } | |
| .small, small { | |
| font-size: 13px; | |
| line-height: 18px; | |
| } | |
| /* Selection colours (easy to forget) */ | |
| ::selection {background: rgb(255,255,158);} | |
| ::-moz-selection {background: rgb(255,255,158);} | |
| img::selection {background: transparent;} | |
| img::-moz-selection {background: transparent;} | |
| body {-webkit-tap-highlight-color: rgb(255,255,158);} | |
| /* 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 */ | |
| body { | |
| width: 896px; | |
| padding: 72px 48px 84px; | |
| background: rgb(232,232,232); | |
| color: rgb(60,60,60); | |
| -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */ | |
| } | |
| /* 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) { | |
| body { | |
| width: 712px; | |
| padding: 48px 28px 60px; | |
| } | |
| } | |
| /* 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) { | |
| body { | |
| width: 252px; | |
| padding: 48px 34px 60px; | |
| } | |
| } | |
| /* 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) { | |
| body { | |
| width: 436px; | |
| padding: 36px 22px 48px; | |
| } | |
| } | |
| /* Retina media query. | |
| Overrides styles for devices with a | |
| device-pixel-ratio of 2+, such as iPhone 4. | |
| ----------------------------------------------- */ | |
| @media | |
| only screen and (-webkit-min-device-pixel-ratio: 2), | |
| only screen and (min-device-pixel-ratio: 2) { | |
| body { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment