Posted By

CKOink on 04/09/11


Tagged


Versions (?)

CSS less framework 4


 / Published in: HTML
 

  1. /* Less Framework 4
  2. http://lessframework.com
  3. by Joni Korpi
  4. License: http://creativecommons.org/licenses/MIT/ */
  5.  
  6.  
  7. /* Resets
  8. ------ */
  9.  
  10. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
  11. p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
  12. img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
  13. dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
  14. table, caption, tbody, tfoot, thead, tr, th, td,
  15. article, aside, canvas, details, figure, figcaption, hgroup,
  16. menu, footer, header, nav, section, summary, time, mark, audio, video {
  17. margin: 0;
  18. padding: 0;
  19. border: 0;
  20. }
  21.  
  22. article, aside, canvas, figure, figure img, figcaption, hgroup,
  23. footer, header, nav, section, audio, video {
  24. display: block;
  25. }
  26.  
  27. a img {border: 0;}
  28.  
  29.  
  30.  
  31. /* Typography presets
  32. ------------------ */
  33.  
  34. .gigantic {
  35. font-size: 110px;
  36. line-height: 120px;
  37. letter-spacing: -2px;
  38. }
  39.  
  40. .huge, h1 {
  41. font-size: 68px;
  42. line-height: 72px;
  43. letter-spacing: -1px;
  44. }
  45.  
  46. .large, h2 {
  47. font-size: 42px;
  48. line-height: 48px;
  49. }
  50.  
  51. .bigger, h3 {
  52. font-size: 26px;
  53. line-height: 36px;
  54. }
  55.  
  56. .big, h4 {
  57. font-size: 22px;
  58. line-height: 30px;
  59. }
  60.  
  61. body {
  62. font: 16px/24px Georgia, serif;
  63. }
  64.  
  65. .small, small {
  66. font-size: 13px;
  67. line-height: 18px;
  68. }
  69.  
  70. /* Selection colours (easy to forget) */
  71.  
  72. ::selection {background: rgb(255,255,158);}
  73. ::-moz-selection {background: rgb(255,255,158);}
  74. img::selection {background: transparent;}
  75. img::-moz-selection {background: transparent;}
  76. body {-webkit-tap-highlight-color: rgb(255,255,158);}
  77.  
  78.  
  79.  
  80. /* Default Layout: 992px.
  81. Gutters: 24px.
  82. Outer margins: 48px.
  83. Leftover space for scrollbars @1024px: 32px.
  84. -------------------------------------------------------------------------------
  85. cols 1 2 3 4 5 6 7 8 9 10
  86. px 68 160 252 344 436 528 620 712 804 896 */
  87.  
  88. body {
  89. width: 896px;
  90. padding: 72px 48px 84px;
  91. background: rgb(232,232,232);
  92. color: rgb(60,60,60);
  93. -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
  94. }
  95.  
  96.  
  97.  
  98. /* Tablet Layout: 768px.
  99. Gutters: 24px.
  100. Outer margins: 28px.
  101. Inherits styles from: Default Layout.
  102. -----------------------------------------------------------------
  103. cols 1 2 3 4 5 6 7 8
  104. px 68 160 252 344 436 528 620 712 */
  105.  
  106. @media only screen and (min-width: 768px) and (max-width: 991px) {
  107.  
  108. body {
  109. width: 712px;
  110. padding: 48px 28px 60px;
  111. }
  112. }
  113.  
  114.  
  115.  
  116. /* Mobile Layout: 320px.
  117. Gutters: 24px.
  118. Outer margins: 34px.
  119. Inherits styles from: Default Layout.
  120. ---------------------------------------------
  121. cols 1 2 3
  122. px 68 160 252 */
  123.  
  124. @media only screen and (max-width: 767px) {
  125.  
  126. body {
  127. width: 252px;
  128. padding: 48px 34px 60px;
  129. }
  130.  
  131. }
  132.  
  133.  
  134.  
  135. /* Wide Mobile Layout: 480px.
  136. Gutters: 24px.
  137. Outer margins: 22px.
  138. Inherits styles from: Default Layout, Mobile Layout.
  139. ------------------------------------------------------------
  140. cols 1 2 3 4 5
  141. px 68 160 252 344 436 */
  142.  
  143. @media only screen and (min-width: 480px) and (max-width: 767px) {
  144.  
  145. body {
  146. width: 436px;
  147. padding: 36px 22px 48px;
  148. }
  149.  
  150. }

Report this snippet  

You need to login to post a comment.