style.css 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /*
  2. * HTML5 Boilerplate
  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. * Detailed information about this CSS: h5bp.com/css
  9. *
  10. * ==|== normalize ==========================================================
  11. */
  12. /* =============================================================================
  13. HTML5 display definitions
  14. ========================================================================== */
  15. article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
  16. audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
  17. audio:not([controls]) { display: none; }
  18. [hidden] { display: none; }
  19. /* =============================================================================
  20. Base
  21. ========================================================================== */
  22. /*
  23. * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
  24. * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
  25. */
  26. html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  27. html, button, input, select, textarea { font-family: sans-serif; color: #222; }
  28. body { margin: 0; font-size: 1em; line-height: 1.4; }
  29. /*
  30. * Remove text-shadow in selection highlight: h5bp.com/i
  31. * These selection declarations have to be separate
  32. * Also: hot pink! (or customize the background color to match your design)
  33. */
  34. ::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
  35. ::selection { background: #fe57a1; color: #fff; text-shadow: none; }
  36. /* =============================================================================
  37. Links
  38. ========================================================================== */
  39. a { color: #00e; }
  40. a:visited { color: #551a8b; }
  41. a:hover { color: #06e; }
  42. a:focus { outline: thin dotted; }
  43. /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
  44. a:hover, a:active { outline: 0; }
  45. /* =============================================================================
  46. Typography
  47. ========================================================================== */
  48. abbr[title] { border-bottom: 1px dotted; }
  49. b, strong { font-weight: bold; }
  50. blockquote { margin: 1em 40px; }
  51. dfn { font-style: italic; }
  52. hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
  53. ins { background: #ff9; color: #000; text-decoration: none; }
  54. mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
  55. /* Redeclare monospace font family: h5bp.com/j */
  56. pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
  57. /* Improve readability of pre-formatted text in all browsers */
  58. pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
  59. q { quotes: none; }
  60. q:before, q:after { content: ""; content: none; }
  61. small { font-size: 85%; }
  62. /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
  63. sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  64. sup { top: -0.5em; }
  65. sub { bottom: -0.25em; }
  66. /* =============================================================================
  67. Lists
  68. ========================================================================== */
  69. ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
  70. dd { margin: 0 0 0 40px; }
  71. nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
  72. /* =============================================================================
  73. Embedded content
  74. ========================================================================== */
  75. /*
  76. * 1. Improve image quality when scaled in IE7: h5bp.com/d
  77. * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
  78. */
  79. img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
  80. /*
  81. * Correct overflow not hidden in IE9
  82. */
  83. svg:not(:root) { overflow: hidden; }
  84. /* =============================================================================
  85. Figures
  86. ========================================================================== */
  87. figure { margin: 0; }
  88. /* =============================================================================
  89. Forms
  90. ========================================================================== */
  91. form { margin: 0; }
  92. fieldset { border: 0; margin: 0; padding: 0; }
  93. /* Indicate that 'label' will shift focus to the associated form element */
  94. label { cursor: pointer; }
  95. /*
  96. * 1. Correct color not inheriting in IE6/7/8/9
  97. * 2. Correct alignment displayed oddly in IE6/7
  98. */
  99. legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
  100. /*
  101. * 1. Correct font-size not inheriting in all browsers
  102. * 2. Remove margins in FF3/4 S5 Chrome
  103. * 3. Define consistent vertical alignment display in all browsers
  104. */
  105. button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
  106. /*
  107. * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
  108. */
  109. button, input { line-height: normal; }
  110. /*
  111. * 1. Display hand cursor for clickable form elements
  112. * 2. Allow styling of clickable form elements in iOS
  113. * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
  114. */
  115. button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
  116. /*
  117. * Re-set default cursor for disabled elements
  118. */
  119. button[disabled], input[disabled] { cursor: default; }
  120. /*
  121. * Consistent box sizing and appearance
  122. */
  123. input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
  124. input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
  125. input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
  126. /*
  127. * Remove inner padding and border in FF3/4: h5bp.com/l
  128. */
  129. button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
  130. /*
  131. * 1. Remove default vertical scrollbar in IE6/7/8/9
  132. * 2. Allow only vertical resizing
  133. */
  134. textarea { overflow: auto; vertical-align: top; resize: vertical; }
  135. /* Colors for form validity */
  136. input:valid, textarea:valid { }
  137. input:invalid, textarea:invalid { background-color: #f0dddd; }
  138. /* =============================================================================
  139. Tables
  140. ========================================================================== */
  141. table { border-collapse: collapse; border-spacing: 0; }
  142. td { vertical-align: top; }
  143. /* =============================================================================
  144. Chrome Frame Prompt
  145. ========================================================================== */
  146. .chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
  147. /* ==|== primary styles =====================================================
  148. Author:
  149. ========================================================================== */
  150. /* ==|== media queries ======================================================
  151. EXAMPLE Media Query for Responsive Design.
  152. This example overrides the primary ('mobile first') styles
  153. Modify as content requires.
  154. ========================================================================== */
  155. @media only screen and (min-width: 35em) {
  156. /* Style adjustments for viewports that meet the condition */
  157. }
  158. /* ==|== non-semantic helper classes ========================================
  159. Please define your styles before this section.
  160. ========================================================================== */
  161. /* For image replacement */
  162. .ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
  163. /* Hide from both screenreaders and browsers: h5bp.com/u */
  164. .hidden { display: none !important; visibility: hidden; }
  165. /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
  166. .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  167. /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
  168. .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
  169. /* Hide visually and from screenreaders, but maintain layout */
  170. .invisible { visibility: hidden; }
  171. /* Contain floats: h5bp.com/q */
  172. .clearfix:before, .clearfix:after { content: ""; display: table; }
  173. .clearfix:after { clear: both; }
  174. .clearfix { *zoom: 1; }
  175. /* ==|== print styles =======================================================
  176. Print styles.
  177. Inlined to avoid required HTTP connection: h5bp.com/r
  178. ========================================================================== */
  179. @media print {
  180. * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  181. a, a:visited { text-decoration: underline; }
  182. a[href]:after { content: " (" attr(href) ")"; }
  183. abbr[title]:after { content: " (" attr(title) ")"; }
  184. .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
  185. pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  186. thead { display: table-header-group; } /* h5bp.com/t */
  187. tr, img { page-break-inside: avoid; }
  188. img { max-width: 100% !important; }
  189. @page { margin: 0.5cm; }
  190. p, h2, h3 { orphans: 3; widows: 3; }
  191. h2, h3 { page-break-after: avoid; }
  192. }