normalize.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
  2. /**
  3. * 1. Set default font family to sans-serif.
  4. * 2. Prevent iOS and IE text size adjust after device orientation change,
  5. * without disabling user zoom.
  6. */
  7. html {
  8. font-family: sans-serif;
  9. /* 1 */
  10. -ms-text-size-adjust: 100%;
  11. /* 2 */
  12. -webkit-text-size-adjust: 100%;
  13. /* 2 */ }
  14. /**
  15. * Remove default margin.
  16. */
  17. body {
  18. margin: 0; }
  19. /* HTML5 display definitions
  20. ========================================================================== */
  21. /**
  22. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  23. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  24. * and Firefox.
  25. * Correct `block` display not defined for `main` in IE 11.
  26. */
  27. article,
  28. aside,
  29. details,
  30. figcaption,
  31. figure,
  32. footer,
  33. header,
  34. hgroup,
  35. main,
  36. menu,
  37. nav,
  38. section,
  39. summary {
  40. display: block; }
  41. /**
  42. * 1. Correct `inline-block` display not defined in IE 8/9.
  43. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  44. */
  45. audio,
  46. canvas,
  47. progress,
  48. video {
  49. display: inline-block;
  50. /* 1 */
  51. vertical-align: baseline;
  52. /* 2 */ }
  53. /**
  54. * Prevent modern browsers from displaying `audio` without controls.
  55. * Remove excess height in iOS 5 devices.
  56. */
  57. audio:not([controls]) {
  58. display: none;
  59. height: 0; }
  60. /**
  61. * Address `[hidden]` styling not present in IE 8/9/10.
  62. * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
  63. */
  64. [hidden],
  65. template {
  66. display: none; }
  67. /* Links
  68. ========================================================================== */
  69. /**
  70. * Remove the gray background color from active links in IE 10.
  71. */
  72. a {
  73. background-color: transparent; }
  74. /**
  75. * Improve readability of focused elements when they are also in an
  76. * active/hover state.
  77. */
  78. a:active,
  79. a:hover {
  80. outline: 0; }
  81. /* Text-level semantics
  82. ========================================================================== */
  83. /**
  84. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  85. */
  86. abbr[title] {
  87. border-bottom: 1px dotted; }
  88. /**
  89. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  90. */
  91. b,
  92. strong {
  93. font-weight: bold; }
  94. /**
  95. * Address styling not present in Safari and Chrome.
  96. */
  97. dfn {
  98. font-style: italic; }
  99. /**
  100. * Address variable `h1` font-size and margin within `section` and `article`
  101. * contexts in Firefox 4+, Safari, and Chrome.
  102. */
  103. h1 {
  104. font-size: 2em;
  105. margin: 0.67em 0; }
  106. /**
  107. * Address styling not present in IE 8/9.
  108. */
  109. mark {
  110. background: #ff0;
  111. color: #000; }
  112. /**
  113. * Address inconsistent and variable font size in all browsers.
  114. */
  115. small {
  116. font-size: 80%; }
  117. /**
  118. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  119. */
  120. sub,
  121. sup {
  122. font-size: 75%;
  123. line-height: 0;
  124. position: relative;
  125. vertical-align: baseline; }
  126. sup {
  127. top: -0.5em; }
  128. sub {
  129. bottom: -0.25em; }
  130. /* Embedded content
  131. ========================================================================== */
  132. /**
  133. * Remove border when inside `a` element in IE 8/9/10.
  134. */
  135. img {
  136. border: 0; }
  137. /**
  138. * Correct overflow not hidden in IE 9/10/11.
  139. */
  140. svg:not(:root) {
  141. overflow: hidden; }
  142. /* Grouping content
  143. ========================================================================== */
  144. /**
  145. * Address margin not present in IE 8/9 and Safari.
  146. */
  147. figure {
  148. margin: 1em 40px; }
  149. /**
  150. * Address differences between Firefox and other browsers.
  151. */
  152. hr {
  153. box-sizing: content-box;
  154. height: 0; }
  155. /**
  156. * Contain overflow in all browsers.
  157. */
  158. pre {
  159. overflow: auto; }
  160. /**
  161. * Address odd `em`-unit font size rendering in all browsers.
  162. */
  163. code,
  164. kbd,
  165. pre,
  166. samp {
  167. font-family: monospace, monospace;
  168. font-size: 1em; }
  169. /* Forms
  170. ========================================================================== */
  171. /**
  172. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  173. * styling of `select`, unless a `border` property is set.
  174. */
  175. /**
  176. * 1. Correct color not being inherited.
  177. * Known issue: affects color of disabled elements.
  178. * 2. Correct font properties not being inherited.
  179. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  180. */
  181. button,
  182. input,
  183. optgroup,
  184. select,
  185. textarea {
  186. color: inherit;
  187. /* 1 */
  188. font: inherit;
  189. /* 2 */
  190. margin: 0;
  191. /* 3 */ }
  192. /**
  193. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  194. */
  195. button {
  196. overflow: visible; }
  197. /**
  198. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  199. * All other form control elements do not inherit `text-transform` values.
  200. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  201. * Correct `select` style inheritance in Firefox.
  202. */
  203. button,
  204. select {
  205. text-transform: none; }
  206. /**
  207. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  208. * and `video` controls.
  209. * 2. Correct inability to style clickable `input` types in iOS.
  210. * 3. Improve usability and consistency of cursor style between image-type
  211. * `input` and others.
  212. */
  213. button,
  214. html input[type="button"],
  215. input[type="reset"],
  216. input[type="submit"] {
  217. -webkit-appearance: button;
  218. /* 2 */
  219. cursor: pointer;
  220. /* 3 */ }
  221. /**
  222. * Re-set default cursor for disabled elements.
  223. */
  224. button[disabled],
  225. html input[disabled] {
  226. cursor: default; }
  227. /**
  228. * Remove inner padding and border in Firefox 4+.
  229. */
  230. button::-moz-focus-inner,
  231. input::-moz-focus-inner {
  232. border: 0;
  233. padding: 0; }
  234. /**
  235. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  236. * the UA stylesheet.
  237. */
  238. input {
  239. line-height: normal; }
  240. /**
  241. * It's recommended that you don't attempt to style these elements.
  242. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  243. *
  244. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  245. * 2. Remove excess padding in IE 8/9/10.
  246. */
  247. input[type="checkbox"],
  248. input[type="radio"] {
  249. box-sizing: border-box;
  250. /* 1 */
  251. padding: 0;
  252. /* 2 */ }
  253. /**
  254. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  255. * `font-size` values of the `input`, it causes the cursor style of the
  256. * decrement button to change from `default` to `text`.
  257. */
  258. input[type="number"]::-webkit-inner-spin-button,
  259. input[type="number"]::-webkit-outer-spin-button {
  260. height: auto; }
  261. /**
  262. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  263. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
  264. */
  265. input[type="search"] {
  266. -webkit-appearance: textfield;
  267. /* 1 */
  268. box-sizing: content-box;
  269. /* 2 */ }
  270. /**
  271. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  272. * Safari (but not Chrome) clips the cancel button when the search input has
  273. * padding (and `textfield` appearance).
  274. */
  275. input[type="search"]::-webkit-search-cancel-button,
  276. input[type="search"]::-webkit-search-decoration {
  277. -webkit-appearance: none; }
  278. /**
  279. * Define consistent border, margin, and padding.
  280. */
  281. fieldset {
  282. border: 1px solid #c0c0c0;
  283. margin: 0 2px;
  284. padding: 0.35em 0.625em 0.75em; }
  285. /**
  286. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  287. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  288. */
  289. legend {
  290. border: 0;
  291. /* 1 */
  292. padding: 0;
  293. /* 2 */ }
  294. /**
  295. * Remove default vertical scrollbar in IE 8/9/10/11.
  296. */
  297. textarea {
  298. overflow: auto; }
  299. /**
  300. * Don't inherit the `font-weight` (applied by a rule above).
  301. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  302. */
  303. optgroup {
  304. font-weight: bold; }
  305. /* Tables
  306. ========================================================================== */
  307. /**
  308. * Remove most spacing between table cells.
  309. */
  310. table {
  311. border-collapse: collapse;
  312. border-spacing: 0; }
  313. td,
  314. th {
  315. padding: 0; }
  316. /*# sourceMappingURL=normalize.css.map */