main.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. /*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */
  2. /* main.css 2.1.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. * Vendor-prefixed and regular ::selection selectors cannot be combined:
  21. * https://stackoverflow.com/a/16982510/7133471
  22. *
  23. * Customize the background color to match your design.
  24. */
  25. ::-moz-selection {
  26. background: #b3d4fc;
  27. text-shadow: none;
  28. }
  29. ::selection {
  30. background: #b3d4fc;
  31. text-shadow: none;
  32. }
  33. /*
  34. * A better looking default horizontal rule
  35. */
  36. hr {
  37. display: block;
  38. height: 1px;
  39. border: 0;
  40. border-top: 1px solid #ccc;
  41. margin: 1em 0;
  42. padding: 0;
  43. }
  44. /*
  45. * Remove the gap between audio, canvas, iframes,
  46. * images, videos and the bottom of their containers:
  47. * https://github.com/h5bp/html5-boilerplate/issues/440
  48. */
  49. audio,
  50. canvas,
  51. iframe,
  52. img,
  53. svg,
  54. video {
  55. vertical-align: middle;
  56. }
  57. /*
  58. * Remove default fieldset styles.
  59. */
  60. fieldset {
  61. border: 0;
  62. margin: 0;
  63. padding: 0;
  64. }
  65. /*
  66. * Allow only vertical resizing of textareas.
  67. */
  68. textarea {
  69. resize: vertical;
  70. }
  71. /* ==========================================================================
  72. Author's custom styles
  73. ========================================================================== */
  74. /* ==========================================================================
  75. Helper classes
  76. ========================================================================== */
  77. /*
  78. * Hide visually and from screen readers
  79. */
  80. .hidden,
  81. [hidden] {
  82. display: none !important;
  83. }
  84. /*
  85. * Hide only visually, but have it available for screen readers:
  86. * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
  87. *
  88. * 1. For long content, line feeds are not interpreted as spaces and small width
  89. * causes content to wrap 1 word per line:
  90. * https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
  91. */
  92. .sr-only {
  93. border: 0;
  94. clip: rect(0, 0, 0, 0);
  95. height: 1px;
  96. margin: -1px;
  97. overflow: hidden;
  98. padding: 0;
  99. position: absolute;
  100. white-space: nowrap;
  101. width: 1px;
  102. /* 1 */
  103. }
  104. /*
  105. * Extends the .sr-only class to allow the element
  106. * to be focusable when navigated to via the keyboard:
  107. * https://www.drupal.org/node/897638
  108. */
  109. .sr-only.focusable:active,
  110. .sr-only.focusable:focus {
  111. clip: auto;
  112. height: auto;
  113. margin: 0;
  114. overflow: visible;
  115. position: static;
  116. white-space: inherit;
  117. width: auto;
  118. }
  119. /*
  120. * Hide visually and from screen readers, but maintain layout
  121. */
  122. .invisible {
  123. visibility: hidden;
  124. }
  125. /*
  126. * Clearfix: contain floats
  127. *
  128. * For modern browsers
  129. * 1. The space content is one way to avoid an Opera bug when the
  130. * `contenteditable` attribute is included anywhere else in the document.
  131. * Otherwise it causes space to appear at the top and bottom of elements
  132. * that receive the `clearfix` class.
  133. * 2. The use of `table` rather than `block` is only necessary if using
  134. * `:before` to contain the top-margins of child elements.
  135. */
  136. .clearfix::before,
  137. .clearfix::after {
  138. content: " ";
  139. display: table;
  140. }
  141. .clearfix::after {
  142. clear: both;
  143. }
  144. /* ==========================================================================
  145. EXAMPLE Media Queries for Responsive Design.
  146. These examples override the primary ('mobile first') styles.
  147. Modify as content requires.
  148. ========================================================================== */
  149. @media only screen and (min-width: 35em) {
  150. /* Style adjustments for viewports that meet the condition */
  151. }
  152. @media print,
  153. (-webkit-min-device-pixel-ratio: 1.25),
  154. (min-resolution: 1.25dppx),
  155. (min-resolution: 120dpi) {
  156. /* Style adjustments for high resolution devices */
  157. }
  158. /* ==========================================================================
  159. Print styles.
  160. Inlined to avoid the additional HTTP request:
  161. https://www.phpied.com/delay-loading-your-print-css/
  162. ========================================================================== */
  163. @media print {
  164. *,
  165. *::before,
  166. *::after {
  167. background: #fff !important;
  168. color: #000 !important;
  169. /* Black prints faster */
  170. box-shadow: none !important;
  171. text-shadow: none !important;
  172. }
  173. a,
  174. a:visited {
  175. text-decoration: underline;
  176. }
  177. a[href]::after {
  178. content: " (" attr(href) ")";
  179. }
  180. abbr[title]::after {
  181. content: " (" attr(title) ")";
  182. }
  183. /*
  184. * Don't show links that are fragment identifiers,
  185. * or use the `javascript:` pseudo protocol
  186. */
  187. a[href^="#"]::after,
  188. a[href^="javascript:"]::after {
  189. content: "";
  190. }
  191. pre {
  192. white-space: pre-wrap !important;
  193. }
  194. pre,
  195. blockquote {
  196. border: 1px solid #999;
  197. page-break-inside: avoid;
  198. }
  199. /*
  200. * Printing Tables:
  201. * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
  202. */
  203. thead {
  204. display: table-header-group;
  205. }
  206. tr,
  207. img {
  208. page-break-inside: avoid;
  209. }
  210. p,
  211. h2,
  212. h3 {
  213. orphans: 3;
  214. widows: 3;
  215. }
  216. h2,
  217. h3 {
  218. page-break-after: avoid;
  219. }
  220. }