main.css 5.8 KB

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