lessFrameWork4.css 4.1 KB

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