You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

429 lines
7.5 KiB

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