main.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. /*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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. Base styles: opinionated defaults
  9. ========================================================================== */
  10. html {
  11. color: #222;
  12. font-size: 1em;
  13. line-height: 1.4;
  14. }
  15. /*
  16. * Remove text-shadow in selection highlight:
  17. * https://twitter.com/miketaylr/status/12228805301
  18. *
  19. * These selection rule sets have to be separate.
  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. Browser Upgrade Prompt
  70. ========================================================================== */
  71. .browserupgrade {
  72. margin: 0.2em 0;
  73. background: #ccc;
  74. color: #000;
  75. padding: 0.2em 0;
  76. }
  77. /* ==========================================================================
  78. Author's custom styles
  79. ========================================================================== */
  80. /* ==========================================================================
  81. Helper classes
  82. ========================================================================== */
  83. /*
  84. * Hide visually and from screen readers
  85. */
  86. .hidden {
  87. display: none !important;
  88. }
  89. /*
  90. * Hide only visually, but have it available for screen readers:
  91. * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
  92. */
  93. .visuallyhidden {
  94. border: 0;
  95. clip: rect(0 0 0 0);
  96. height: 1px;
  97. margin: -1px;
  98. overflow: hidden;
  99. padding: 0;
  100. position: absolute;
  101. width: 1px;
  102. }
  103. /*
  104. * Extends the .visuallyhidden class to allow the element
  105. * to be focusable when navigated to via the keyboard:
  106. * https://www.drupal.org/node/897638
  107. */
  108. .visuallyhidden.focusable:active,
  109. .visuallyhidden.focusable:focus {
  110. clip: auto;
  111. height: auto;
  112. margin: 0;
  113. overflow: visible;
  114. position: static;
  115. width: auto;
  116. }
  117. /*
  118. * Hide visually and from screen readers, but maintain layout
  119. */
  120. .invisible {
  121. visibility: hidden;
  122. }
  123. /*
  124. * Clearfix: contain floats
  125. *
  126. * For modern browsers
  127. * 1. The space content is one way to avoid an Opera bug when the
  128. * `contenteditable` attribute is included anywhere else in the document.
  129. * Otherwise it causes space to appear at the top and bottom of elements
  130. * that receive the `clearfix` class.
  131. * 2. The use of `table` rather than `block` is only necessary if using
  132. * `:before` to contain the top-margins of child elements.
  133. */
  134. .clearfix:before,
  135. .clearfix:after {
  136. content: " "; /* 1 */
  137. display: table; /* 2 */
  138. }
  139. .clearfix:after {
  140. clear: both;
  141. }
  142. /* ==========================================================================
  143. EXAMPLE Media Queries for Responsive Design.
  144. These examples override the primary ('mobile first') styles.
  145. Modify as content requires.
  146. ========================================================================== */
  147. @media only screen and (min-width: 35em) {
  148. /* Style adjustments for viewports that meet the condition */
  149. }
  150. @media print,
  151. (-webkit-min-device-pixel-ratio: 1.25),
  152. (min-resolution: 1.25dppx),
  153. (min-resolution: 120dpi) {
  154. /* Style adjustments for high resolution devices */
  155. }
  156. /* ==========================================================================
  157. Print styles.
  158. Inlined to avoid the additional HTTP request:
  159. http://www.phpied.com/delay-loading-your-print-css/
  160. ========================================================================== */
  161. @media print {
  162. *,
  163. *:before,
  164. *:after,
  165. *:first-letter,
  166. *:first-line {
  167. background: transparent !important;
  168. color: #000 !important; /* Black prints faster:
  169. http://www.sanbeiji.com/archives/953 */
  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. blockquote {
  193. border: 1px solid #999;
  194. page-break-inside: avoid;
  195. }
  196. /*
  197. * Printing Tables:
  198. * http://css-discuss.incutio.com/wiki/Printing_Tables
  199. */
  200. thead {
  201. display: table-header-group;
  202. }
  203. tr,
  204. img {
  205. page-break-inside: avoid;
  206. }
  207. img {
  208. max-width: 100% !important;
  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. }