normalize.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /*! normalize.css v2.0.1 | MIT License | git.io/normalize */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /*
  6. * Corrects `block` display not defined in IE 8/9.
  7. */
  8. article,
  9. aside,
  10. details,
  11. figcaption,
  12. figure,
  13. footer,
  14. header,
  15. hgroup,
  16. nav,
  17. section,
  18. summary {
  19. display: block;
  20. }
  21. /*
  22. * Corrects `inline-block` display not defined in IE 8/9.
  23. */
  24. audio,
  25. canvas,
  26. video {
  27. display: inline-block;
  28. }
  29. /*
  30. * Prevents modern browsers from displaying `audio` without controls.
  31. * Remove excess height in iOS 5 devices.
  32. */
  33. audio:not([controls]) {
  34. display: none;
  35. height: 0;
  36. }
  37. /*
  38. * Addresses styling for `hidden` attribute not present in IE 8/9.
  39. */
  40. [hidden] {
  41. display: none;
  42. }
  43. /* ==========================================================================
  44. Base
  45. ========================================================================== */
  46. /*
  47. * 1. Sets default font family to sans-serif.
  48. * 2. Prevents iOS text size adjust after orientation change, without disabling
  49. * user zoom.
  50. */
  51. html {
  52. font-family: sans-serif; /* 1 */
  53. -webkit-text-size-adjust: 100%; /* 2 */
  54. -ms-text-size-adjust: 100%; /* 2 */
  55. }
  56. /*
  57. * Removes default margin.
  58. */
  59. body {
  60. margin: 0;
  61. }
  62. /* ==========================================================================
  63. Links
  64. ========================================================================== */
  65. /*
  66. * Addresses `outline` inconsistency between Chrome and other browsers.
  67. */
  68. a:focus {
  69. outline: thin dotted;
  70. }
  71. /*
  72. * Improves readability when focused and also mouse hovered in all browsers.
  73. */
  74. a:active,
  75. a:hover {
  76. outline: 0;
  77. }
  78. /* ==========================================================================
  79. Typography
  80. ========================================================================== */
  81. /*
  82. * Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
  83. * Safari 5, and Chrome.
  84. */
  85. h1 {
  86. font-size: 2em;
  87. }
  88. /*
  89. * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
  90. */
  91. abbr[title] {
  92. border-bottom: 1px dotted;
  93. }
  94. /*
  95. * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
  96. */
  97. b,
  98. strong {
  99. font-weight: bold;
  100. }
  101. /*
  102. * Addresses styling not present in Safari 5 and Chrome.
  103. */
  104. dfn {
  105. font-style: italic;
  106. }
  107. /*
  108. * Addresses styling not present in IE 8/9.
  109. */
  110. mark {
  111. background: #ff0;
  112. color: #000;
  113. }
  114. /*
  115. * Corrects font family set oddly in Safari 5 and Chrome.
  116. */
  117. code,
  118. kbd,
  119. pre,
  120. samp {
  121. font-family: monospace, serif;
  122. font-size: 1em;
  123. }
  124. /*
  125. * Improves readability of pre-formatted text in all browsers.
  126. */
  127. pre {
  128. white-space: pre;
  129. white-space: pre-wrap;
  130. word-wrap: break-word;
  131. }
  132. /*
  133. * Sets consistent quote types.
  134. */
  135. q {
  136. quotes: "\201C" "\201D" "\2018" "\2019";
  137. }
  138. /*
  139. * Addresses inconsistent and variable font size in all browsers.
  140. */
  141. small {
  142. font-size: 80%;
  143. }
  144. /*
  145. * Prevents `sub` and `sup` affecting `line-height` in all browsers.
  146. */
  147. sub,
  148. sup {
  149. font-size: 75%;
  150. line-height: 0;
  151. position: relative;
  152. vertical-align: baseline;
  153. }
  154. sup {
  155. top: -0.5em;
  156. }
  157. sub {
  158. bottom: -0.25em;
  159. }
  160. /* ==========================================================================
  161. Embedded content
  162. ========================================================================== */
  163. /*
  164. * Removes border when inside `a` element in IE 8/9.
  165. */
  166. img {
  167. border: 0;
  168. }
  169. /*
  170. * Corrects overflow displayed oddly in IE 9.
  171. */
  172. svg:not(:root) {
  173. overflow: hidden;
  174. }
  175. /* ==========================================================================
  176. Figures
  177. ========================================================================== */
  178. /*
  179. * Addresses margin not present in IE 8/9 and Safari 5.
  180. */
  181. figure {
  182. margin: 0;
  183. }
  184. /* ==========================================================================
  185. Forms
  186. ========================================================================== */
  187. /*
  188. * Define consistent border, margin, and padding.
  189. */
  190. fieldset {
  191. border: 1px solid #c0c0c0;
  192. margin: 0 2px;
  193. padding: 0.35em 0.625em 0.75em;
  194. }
  195. /*
  196. * 1. Corrects color not being inherited in IE 8/9.
  197. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  198. */
  199. legend {
  200. border: 0; /* 1 */
  201. padding: 0; /* 2 */
  202. }
  203. * Removes inner padding and search cancel button in Safari 5 and Chrome
  204. /*
  205. * 1. Removes default vertical scrollbar in IE 8/9.
  206. * 2. Improves readability and alignment in all browsers.
  207. */
  208. textarea {
  209. overflow: auto; /* 1 */
  210. vertical-align: top; /* 2 */
  211. }
  212. /* ==========================================================================
  213. Tables
  214. ========================================================================== */
  215. /*
  216. * Remove most spacing between table cells.
  217. */
  218. table {
  219. border-collapse: collapse;
  220. border-spacing: 0;
  221. }