style.sass 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. //
  2. // Site Name:
  3. // Author:
  4. //
  5. // Stylesheet: Main Stylesheet
  6. //
  7. // Here's where the magic happens. Here, you'll see we are calling in
  8. // the separate functions for each media query. The base mobile
  9. // stylesheet is called in the header, so here we're working up from
  10. // there. To edit the css, just find the corresponding LESS file.
  11. //
  12. //
  13. // Base.css contains the main mobile styles and is called in the
  14. // header. This way mobile devices get ONLY the styles that apply
  15. // to them. No muss, no fuss.
  16. //
  17. // normalize.css is also called within that base file.
  18. //
  19. // we'll also need to call the mixins here so they apply to the
  20. // rest of the stylesheets.
  21. //
  22. @import "mixins"
  23. //
  24. // let's now call the FUNCTIONS for these different stylesets. This
  25. // doesn't load the CSS, the CSS is loaded inside the media queries.
  26. //
  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.sass
  35. @import "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.sass
  45. @import "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.sass
  55. @import "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.sass
  64. @import "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. a, a:visited
  81. color: #444 !important
  82. text-decoration: underline
  83. // show links on printed pages
  84. &:after
  85. content: " (" attr(href) ")"
  86. // show title too
  87. abbr[title]:after
  88. content: " (" attr(title) ")"
  89. .ir a:after,
  90. a[href^="javascript:"]:after,
  91. a[href^="#"]:after
  92. content: ""
  93. pre,
  94. blockquote
  95. border: 1px solid #999
  96. page-break-inside: avoid
  97. thead
  98. display: table-header-group
  99. tr, img
  100. page-break-inside: avoid
  101. img
  102. max-width: 100% !important
  103. @page
  104. margin: 0.5cm
  105. p,
  106. h2,
  107. h3
  108. orphans: 3
  109. widows: 3
  110. h2,
  111. h3
  112. page-break-after: avoid
  113. // hide content people who print don't need to see
  114. .sidebar,
  115. .page-navigation,
  116. .wp-prev-next,
  117. .respond-form,
  118. nav
  119. display: none