style.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Main Stylesheet
  5. Here's where the magic happens. Here, you'll see we are calling in
  6. the separate media queries. The base mobile goes outside any query
  7. and is called at the beginning, after that we call the rest
  8. of the styles inside media queries.
  9. ******************************************************************/
  10. //
  11. // IMPORTING STYLES
  12. //
  13. // import normalize
  14. @import "normalize.less";
  15. // import mixins
  16. @import "mixins.less";
  17. /*
  18. BASE (MOBILE) SIZE
  19. This is the average viewing window. So Desktops, Laptops, and
  20. in general anyone not viewing on a mobile device. Here's where
  21. you can add resource intensive styles.
  22. */
  23. // styles in base.less
  24. @import "base.less";
  25. /*
  26. LARGER MOBILE DEVICES
  27. This is for devices like the Galaxy Note or something that's
  28. larger than an iPhone but smaller than a tablet. Let's call them
  29. tweeners.
  30. */
  31. @media only screen and (min-width: 481px) {
  32. // styles in 481up.less
  33. @import "481up.less";
  34. } // end of media query
  35. /*
  36. TABLET & SMALLER LAPTOPS
  37. This is the average viewing window. So Desktops, Laptops, and
  38. in general anyone not viewing on a mobile device. Here's where
  39. you can add resource intensive styles.
  40. */
  41. @media only screen and (min-width: 768px) {
  42. // styles in 768up.less
  43. @import "768up.less";
  44. } // end of media query
  45. /*
  46. DESKTOP
  47. This is the average viewing window. So Desktops, Laptops, and
  48. in general anyone not viewing on a mobile device. Here's where
  49. you can add resource intensive styles.
  50. */
  51. @media only screen and (min-width: 1030px) {
  52. // styles in 1030up.less
  53. @import "1030up.less";
  54. } // end of media query
  55. /*
  56. LARGE VIEWING SIZE
  57. This is for the larger monitors and possibly full screen viewers.
  58. */
  59. @media only screen and (min-width: 1240px) {
  60. // styles in 1240up.less
  61. @import "1240up.less";
  62. } // end of media query
  63. /*
  64. RETINA (2x RESOLUTION DEVICES)
  65. This applies to the retina iPhone (4s) and iPad (2,3) along with
  66. other displays with a 2x resolution. You can also create a media
  67. query for retina AND a certain size if you want. Go Nuts.
  68. */
  69. @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
  70. only screen and (min--moz-device-pixel-ratio: 1.5),
  71. only screen and (min-device-pixel-ratio: 1.5) {
  72. // styles in 2x.less
  73. @import "2x.less";
  74. } // end of media query
  75. /*
  76. PRINT STYLESHEET
  77. Feel free to customize this. Remember to add things that won't make
  78. sense to print at the bottom. Things like nav, ads, and forms should
  79. be set to display none.
  80. */
  81. @media print {
  82. * {
  83. background: transparent !important;
  84. color: black !important;
  85. text-shadow: none !important;
  86. filter:none !important;
  87. -ms-filter: none !important;
  88. }
  89. a, a:visited {
  90. color: #444 !important;
  91. text-decoration: underline;
  92. // show links on printed pages
  93. &:after {
  94. content: " (" attr(href) ")";
  95. }
  96. // show title too
  97. abbr[title]:after {
  98. content: " (" attr(title) ")";
  99. }
  100. }
  101. .ir a:after,
  102. a[href^="javascript:"]:after,
  103. a[href^="#"]:after {
  104. content: "";
  105. }
  106. pre, blockquote {
  107. border: 1px solid #999;
  108. page-break-inside: avoid;
  109. }
  110. thead {
  111. display: table-header-group;
  112. }
  113. tr, img {
  114. page-break-inside: avoid;
  115. }
  116. img {
  117. max-width: 100% !important;
  118. }
  119. @page {
  120. margin: 0.5cm;
  121. }
  122. p, h2, h3 {
  123. orphans: 3;
  124. widows: 3;
  125. }
  126. h2,
  127. h3 {
  128. page-break-after: avoid;
  129. }
  130. // hide content people who print don't need to see
  131. .sidebar,
  132. .page-navigation,
  133. .wp-prev-next,
  134. .respond-form,
  135. nav {
  136. display: none;
  137. }
  138. }