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.4 KiB

  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; // 1
  9. -ms-text-size-adjust: 100%; // 2
  10. -webkit-text-size-adjust: 100%; // 2
  11. }
  12. //
  13. // Remove default margin.
  14. //
  15. body {
  16. margin: 0;
  17. }
  18. // HTML5 display definitions
  19. // ==========================================================================
  20. //
  21. // Correct `block` display not defined for any HTML5 element in IE 8/9.
  22. // Correct `block` display not defined for `details` or `summary` in IE 10/11
  23. // and Firefox.
  24. // Correct `block` display not defined for `main` in IE 11.
  25. //
  26. article,
  27. aside,
  28. details,
  29. figcaption,
  30. figure,
  31. footer,
  32. header,
  33. hgroup,
  34. main,
  35. menu,
  36. nav,
  37. section,
  38. summary {
  39. display: block;
  40. }
  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; // 1
  50. vertical-align: baseline; // 2
  51. }
  52. //
  53. // Prevent modern browsers from displaying `audio` without controls.
  54. // Remove excess height in iOS 5 devices.
  55. //
  56. audio:not([controls]) {
  57. display: none;
  58. height: 0;
  59. }
  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. }
  68. // Links
  69. // ==========================================================================
  70. //
  71. // Remove the gray background color from active links in IE 10.
  72. //
  73. a {
  74. background-color: transparent;
  75. }
  76. //
  77. // Improve readability of focused elements when they are also in an
  78. // active/hover state.
  79. //
  80. a {
  81. &:active {
  82. outline: 0;
  83. }
  84. &:hover {
  85. outline: 0;
  86. }
  87. }
  88. // Text-level semantics
  89. // ==========================================================================
  90. //
  91. // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  92. //
  93. abbr[title] {
  94. border-bottom: 1px dotted;
  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. }