style.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. /*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */
  2. /* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
  3. /*
  4. * What follows is the result of much research on cross-browser styling.
  5. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
  6. * Kroc Camen, and the H5BP dev community and team.
  7. */
  8. /* ==========================================================================
  9. Base styles: opinionated defaults
  10. ========================================================================== */
  11. html {
  12. color: #222;
  13. font-size: 1em;
  14. line-height: 1.4;
  15. }
  16. /*
  17. * Remove text-shadow in selection highlight:
  18. * https://twitter.com/miketaylr/status/12228805301
  19. *
  20. * Customize the background color to match your design.
  21. */
  22. ::-moz-selection {
  23. background: #b3d4fc;
  24. text-shadow: none;
  25. }
  26. ::selection {
  27. background: #b3d4fc;
  28. text-shadow: none;
  29. }
  30. /*
  31. * A better looking default horizontal rule
  32. */
  33. hr {
  34. display: block;
  35. height: 1px;
  36. border: 0;
  37. border-top: 1px solid #ccc;
  38. margin: 1em 0;
  39. padding: 0;
  40. }
  41. /*
  42. * Remove the gap between audio, canvas, iframes,
  43. * images, videos and the bottom of their containers:
  44. * https://github.com/h5bp/html5-boilerplate/issues/440
  45. */
  46. audio,
  47. canvas,
  48. iframe,
  49. img,
  50. svg,
  51. video {
  52. vertical-align: middle;
  53. }
  54. /*
  55. * Remove default fieldset styles.
  56. */
  57. fieldset {
  58. border: 0;
  59. margin: 0;
  60. padding: 0;
  61. }
  62. /*
  63. * Allow only vertical resizing of textareas.
  64. */
  65. textarea {
  66. resize: vertical;
  67. }
  68. /* ==========================================================================
  69. Author's custom styles
  70. ========================================================================== */
  71. /* ==========================================================================
  72. Helper classes
  73. ========================================================================== */
  74. /*
  75. * Hide visually and from screen readers
  76. */
  77. .hidden,
  78. [hidden] {
  79. display: none !important;
  80. }
  81. /*
  82. * Hide only visually, but have it available for screen readers:
  83. * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
  84. *
  85. * 1. For long content, line feeds are not interpreted as spaces and small width
  86. * causes content to wrap 1 word per line:
  87. * https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
  88. */
  89. .visually-hidden {
  90. border: 0;
  91. clip: rect(0, 0, 0, 0);
  92. height: 1px;
  93. margin: -1px;
  94. overflow: hidden;
  95. padding: 0;
  96. position: absolute;
  97. white-space: nowrap;
  98. width: 1px;
  99. /* 1 */
  100. }
  101. /*
  102. * Extends the .visually-hidden class to allow the element
  103. * to be focusable when navigated to via the keyboard:
  104. * https://www.drupal.org/node/897638
  105. */
  106. .visually-hidden.focusable:active,
  107. .visually-hidden.focusable:focus {
  108. clip: auto;
  109. height: auto;
  110. margin: 0;
  111. overflow: visible;
  112. position: static;
  113. white-space: inherit;
  114. width: auto;
  115. }
  116. /*
  117. * Hide visually and from screen readers, but maintain layout
  118. */
  119. .invisible {
  120. visibility: hidden;
  121. }
  122. /*
  123. * Clearfix: contain floats
  124. *
  125. * The use of `table` rather than `block` is only necessary if using
  126. * `::before` to contain the top-margins of child elements.
  127. */
  128. .clearfix::before,
  129. .clearfix::after {
  130. content: "";
  131. display: table;
  132. }
  133. .clearfix::after {
  134. clear: both;
  135. }
  136. /* ==========================================================================
  137. EXAMPLE Media Queries for Responsive Design.
  138. These examples override the primary ('mobile first') styles.
  139. Modify as content requires.
  140. ========================================================================== */
  141. @media only screen and (min-width: 35em) {
  142. /* Style adjustments for viewports that meet the condition */
  143. }
  144. @media print,
  145. (-webkit-min-device-pixel-ratio: 1.25),
  146. (min-resolution: 1.25dppx),
  147. (min-resolution: 120dpi) {
  148. /* Style adjustments for high resolution devices */
  149. }
  150. /* ==========================================================================
  151. Print styles.
  152. Inlined to avoid the additional HTTP request:
  153. https://www.phpied.com/delay-loading-your-print-css/
  154. ========================================================================== */
  155. @media print {
  156. *,
  157. *::before,
  158. *::after {
  159. background: #fff !important;
  160. color: #000 !important;
  161. /* Black prints faster */
  162. box-shadow: none !important;
  163. text-shadow: none !important;
  164. }
  165. a,
  166. a:visited {
  167. text-decoration: underline;
  168. }
  169. a[href]::after {
  170. content: " (" attr(href) ")";
  171. }
  172. abbr[title]::after {
  173. content: " (" attr(title) ")";
  174. }
  175. /*
  176. * Don't show links that are fragment identifiers,
  177. * or use the `javascript:` pseudo protocol
  178. */
  179. a[href^="#"]::after,
  180. a[href^="javascript:"]::after {
  181. content: "";
  182. }
  183. pre {
  184. white-space: pre-wrap !important;
  185. }
  186. pre,
  187. blockquote {
  188. border: 1px solid #999;
  189. page-break-inside: avoid;
  190. }
  191. tr,
  192. img {
  193. page-break-inside: avoid;
  194. }
  195. p,
  196. h2,
  197. h3 {
  198. orphans: 3;
  199. widows: 3;
  200. }
  201. h2,
  202. h3 {
  203. page-break-after: avoid;
  204. }
  205. }