main.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
  2. /*
  3. * What follows is the result of much research on cross-browser styling.
  4. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
  5. * Kroc Camen, and the H5BP dev community and team.
  6. */
  7. /*
  8. * Sass Guide: http://sass-lang.com/guide
  9. */
  10. /* ==========================================================================
  11. Includes
  12. ========================================================================== */
  13. // Normalize
  14. @import 'normalize';
  15. // Variables (Colors, metrics, etc.)
  16. @import 'variables';
  17. // Mixins
  18. @import 'mixins';
  19. /* ==========================================================================
  20. Base styles: opinionated defaults
  21. ========================================================================== */
  22. html,
  23. button,
  24. input,
  25. select,
  26. textarea {
  27. color: #222;
  28. }
  29. html {
  30. font-size: 1em;
  31. line-height: 1.4;
  32. font-family: $fonts;
  33. text-align: center;
  34. // Text prettify
  35. @include text-rendering(optimizeLegibility);
  36. @include font-smoothing(antialiased);
  37. -webkit-box-sizing: border-box;
  38. -moz-box-sizing: border-box;
  39. box-sizing: border-box;
  40. }
  41. /*
  42. * Remove text-shadow in selection highlight: h5bp.com/i
  43. * These selection rule sets have to be separate.
  44. * Customize the background color to match your design.
  45. */
  46. ::-moz-selection {
  47. background: $selection-color;
  48. text-shadow: none;
  49. }
  50. ::selection {
  51. background: $selection-color;
  52. text-shadow: none;
  53. }
  54. /*
  55. * A better looking default horizontal rule
  56. */
  57. hr {
  58. display: block;
  59. height: 1px;
  60. border: 0;
  61. border-top: 1px solid #ccc;
  62. margin: 1em 0;
  63. padding: 0;
  64. }
  65. /*
  66. * Remove the gap between images, videos, audio and canvas and the bottom of
  67. * their containers: h5bp.com/i/440
  68. */
  69. audio,
  70. canvas,
  71. img,
  72. video {
  73. vertical-align: middle;
  74. }
  75. /*
  76. * Remove default fieldset styles.
  77. */
  78. fieldset {
  79. border: 0;
  80. margin: 0;
  81. padding: 0;
  82. }
  83. /*
  84. * Allow only vertical resizing of textareas.
  85. */
  86. textarea { resize: vertical; }
  87. /* ==========================================================================
  88. Website Style
  89. ========================================================================== */
  90. // Don't Repeat Myself
  91. @import 'dry';
  92. // Main-Style
  93. @import 'site';
  94. /* ==========================================================================
  95. Helper classes
  96. ========================================================================== */
  97. /*
  98. * Image replacement
  99. */
  100. .ir {
  101. background-color: transparent;
  102. border: 0;
  103. overflow: hidden;
  104. /* IE 6/7 fallback */
  105. *text-indent: -9999px;
  106. }
  107. .ir:before {
  108. content: "";
  109. display: block;
  110. width: 0;
  111. height: 150%;
  112. }
  113. /*
  114. * Hide from both screenreaders and browsers: h5bp.com/u
  115. */
  116. .hidden {
  117. display: none !important;
  118. visibility: hidden;
  119. }
  120. /*
  121. * Hide only visually, but have it available for screenreaders: h5bp.com/v
  122. */
  123. .visuallyhidden {
  124. border: 0;
  125. clip: rect(0 0 0 0);
  126. height: 1px;
  127. margin: -1px;
  128. overflow: hidden;
  129. padding: 0;
  130. position: absolute;
  131. width: 1px;
  132. }
  133. /*
  134. * Extends the .visuallyhidden class to allow the element to be focusable
  135. * when navigated to via the keyboard: h5bp.com/p
  136. */
  137. .visuallyhidden.focusable:active,
  138. .visuallyhidden.focusable:focus {
  139. clip: auto;
  140. height: auto;
  141. margin: 0;
  142. overflow: visible;
  143. position: static;
  144. width: auto;
  145. }
  146. /*
  147. * Hide visually and from screenreaders, but maintain layout
  148. */
  149. .invisible {
  150. visibility: hidden;
  151. }
  152. /*
  153. * Clearfix: contain floats
  154. *
  155. * For modern browsers
  156. * 1. The space content is one way to avoid an Opera bug when the
  157. * `contenteditable` attribute is included anywhere else in the document.
  158. * Otherwise it causes space to appear at the top and bottom of elements
  159. * that receive the `clearfix` class.
  160. * 2. The use of `table` rather than `block` is only necessary if using
  161. * `:before` to contain the top-margins of child elements.
  162. */
  163. .clearfix:before,
  164. .clearfix:after {
  165. content: " "; /* 1 */
  166. display: table; /* 2 */
  167. }
  168. .clearfix:after {
  169. clear: both;
  170. }
  171. /*
  172. * For IE 6/7 only
  173. * Include this rule to trigger hasLayout and contain floats.
  174. */
  175. .clearfix {
  176. *zoom: 1;
  177. }
  178. /* ==========================================================================
  179. Media Queries
  180. ========================================================================== */
  181. @media only screen and (min-width: 35em) {
  182. /* Style adjustments for viewports that meet the condition */
  183. }
  184. /* ==========================================================================
  185. Print styles.
  186. Inlined to avoid required HTTP connection: h5bp.com/r
  187. ========================================================================== */
  188. @media print {
  189. * {
  190. background: transparent !important;
  191. color: #000 !important; /* Black prints faster: h5bp.com/s */
  192. box-shadow: none !important;
  193. text-shadow: none !important;
  194. }
  195. a,
  196. a:visited {
  197. text-decoration: underline;
  198. }
  199. a[href]:after {
  200. content: " (" attr(href) ")";
  201. }
  202. abbr[title]:after {
  203. content: " (" attr(title) ")";
  204. }
  205. /*
  206. * Don't show links for images, or javascript/internal links
  207. */
  208. .ir a:after,
  209. a[href^="javascript:"]:after,
  210. a[href^="#"]:after {
  211. content: "";
  212. }
  213. pre,
  214. blockquote {
  215. border: 1px solid #999;
  216. page-break-inside: avoid;
  217. }
  218. thead {
  219. display: table-header-group; /* h5bp.com/t */
  220. }
  221. tr,
  222. img {
  223. page-break-inside: avoid;
  224. }
  225. img {
  226. max-width: 100% !important;
  227. }
  228. @page {
  229. margin: 0.5cm;
  230. }
  231. p,
  232. h2,
  233. h3 {
  234. orphans: 3;
  235. widows: 3;
  236. }
  237. h2,
  238. h3 {
  239. page-break-after: avoid;
  240. }
  241. }