style.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 seperate functions for each media query. The base mobile
  7. stylesheet is called in the header, so here we're working up from
  8. there. To edit the css, just find the corresponding LESS file.
  9. ******************************************************************/
  10. /*
  11. Base.css contains the main mobile styles and is called in the
  12. header. This way mobile devices get ONLY the styles that apply
  13. to them. No muss, no fuss.
  14. normalize.css is also called within that base file.
  15. we'll also need to call the mixins here so they apply to the
  16. rest of the stylesheets.
  17. */
  18. @import "mixins.less";
  19. /*
  20. let's now call the FUNCTIONS for these different stylesets. This
  21. doesn't load the CSS, the CSS is loaded inside the media queries.
  22. */
  23. @import "481up.less";
  24. @import "768up.less";
  25. @import "1030up.less";
  26. @import "1240up.less";
  27. /******************************************************************
  28. SMALL SCREENS
  29. This is just a bit larger than the iPhone 3/4/4s screen.
  30. You can expand upon the mobile styles here, but
  31. remember to keep it simple.
  32. ******************************************************************/
  33. @media only screen and (min-width: 481px) {
  34. /* styles in 481up.less */
  35. .481up();
  36. } /* end of media query */
  37. /******************************************************************
  38. TABLET & SMALLER LAPTOPS
  39. This is where the iPad styles kick in. You can start
  40. using a grid system here and begin laying things
  41. out like a traditional site.
  42. ******************************************************************/
  43. @media only screen and (min-width: 768px) {
  44. /* styles in 768up.less */
  45. .768up();
  46. } /* end of media query */
  47. /******************************************************************
  48. DESKTOP
  49. This is the average viewing window. So Desktops, Laptops, and
  50. in general anyone not viewing on a mobile device. Here's where
  51. you can add resource intensive styles.
  52. ******************************************************************/
  53. @media only screen and (min-width: 1030px) {
  54. /* styles in 1030up.less */
  55. .1030up();
  56. } /* end of media query */
  57. /******************************************************************
  58. LARGE VIEWING SIZE
  59. This is for the larger monitors and possibly full
  60. screen viewers.
  61. ******************************************************************/
  62. @media only screen and (min-width: 1240px) {
  63. /* styles in 1240up.less */
  64. .1240up();
  65. } /* end of media query */
  66. /******************************************************************
  67. PRINT STYLESHEET
  68. Feel free to customize this. Remember to add
  69. things that won't make sense to print at the bottom.
  70. Things like nav, ads, and forms should be set to
  71. display none.
  72. ******************************************************************/
  73. @media print {
  74. * {
  75. background: transparent !important;
  76. color: black !important;
  77. text-shadow: none !important;
  78. filter:none !important;
  79. -ms-filter: none !important;
  80. }
  81. a, a:visited {
  82. color: #444 !important;
  83. text-decoration: underline;
  84. /* show links on printed pages */
  85. &:after {
  86. content: " (" attr(href) ")";
  87. }
  88. /* show title too */
  89. abbr[title]:after {
  90. content: " (" attr(title) ")";
  91. }
  92. }
  93. .ir a:after,
  94. a[href^="javascript:"]:after,
  95. a[href^="#"]:after {
  96. content: "";
  97. }
  98. pre, blockquote {
  99. border: 1px solid #999;
  100. page-break-inside: avoid;
  101. }
  102. thead {
  103. display: table-header-group;
  104. }
  105. tr, img {
  106. page-break-inside: avoid;
  107. }
  108. img {
  109. max-width: 100% !important;
  110. }
  111. @page {
  112. margin: 0.5cm;
  113. }
  114. p, h2, h3 {
  115. orphans: 3;
  116. widows: 3;
  117. }
  118. h2,
  119. h3 {
  120. page-break-after: avoid;
  121. }
  122. /* hide content people who print don't need to see */
  123. .sidebar,
  124. .page-navigation,
  125. .wp-prev-next,
  126. .respond-form,
  127. nav {
  128. display: none;
  129. }
  130. }