_reset.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. @charset "UTF-8";
  2. /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  3. /**
  4. * 1. Set default font family to sans-serif.
  5. * 2. Prevent iOS text size adjust after orientation change, without disabling
  6. * 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/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 when focused and also mouse hovered in all browsers.
  79. */
  80. a:active,
  81. a:hover {
  82. outline: 0;
  83. }
  84. /* Text-level semantics
  85. ========================================================================== */
  86. /**
  87. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  88. */
  89. abbr[title] {
  90. border-bottom: 1px dotted;
  91. }
  92. /**
  93. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  94. */
  95. b,
  96. strong {
  97. font-weight: bold;
  98. }
  99. /**
  100. * Address styling not present in Safari and Chrome.
  101. */
  102. dfn {
  103. font-style: italic;
  104. }
  105. /**
  106. * Address variable `h1` font-size and margin within `section` and `article`
  107. * contexts in Firefox 4+, Safari, and Chrome.
  108. */
  109. h1 {
  110. font-size: 2em;
  111. margin: 0.67em 0;
  112. }
  113. /**
  114. * Address styling not present in IE 8/9.
  115. */
  116. mark {
  117. background: #ff0;
  118. color: #000;
  119. }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%;
  125. }
  126. /**
  127. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  128. */
  129. sub,
  130. sup {
  131. font-size: 75%;
  132. line-height: 0;
  133. position: relative;
  134. vertical-align: baseline;
  135. }
  136. sup {
  137. top: -0.5em;
  138. }
  139. sub {
  140. bottom: -0.25em;
  141. }
  142. /* Embedded content
  143. ========================================================================== */
  144. /**
  145. * Remove border when inside `a` element in IE 8/9/10.
  146. */
  147. img {
  148. border: 0;
  149. }
  150. /**
  151. * Correct overflow not hidden in IE 9/10/11.
  152. */
  153. svg:not(:root) {
  154. overflow: hidden;
  155. }
  156. /* Grouping content
  157. ========================================================================== */
  158. /**
  159. * Address margin not present in IE 8/9 and Safari.
  160. */
  161. figure {
  162. margin: 1em 40px;
  163. }
  164. /**
  165. * Address differences between Firefox and other browsers.
  166. */
  167. hr {
  168. -moz-box-sizing: content-box;
  169. box-sizing: content-box;
  170. height: 0;
  171. }
  172. /**
  173. * Contain overflow in all browsers.
  174. */
  175. pre {
  176. overflow: auto;
  177. }
  178. /**
  179. * Address odd `em`-unit font size rendering in all browsers.
  180. */
  181. code,
  182. kbd,
  183. pre,
  184. samp {
  185. font-family: monospace, monospace;
  186. font-size: 1em;
  187. }
  188. /* Forms
  189. ========================================================================== */
  190. /**
  191. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  192. * styling of `select`, unless a `border` property is set.
  193. */
  194. /**
  195. * 1. Correct color not being inherited.
  196. * Known issue: affects color of disabled elements.
  197. * 2. Correct font properties not being inherited.
  198. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  199. */
  200. button,
  201. input,
  202. optgroup,
  203. select,
  204. textarea {
  205. color: inherit; /* 1 */
  206. font: inherit; /* 2 */
  207. margin: 0; /* 3 */
  208. -webkit-tap-highlight-color: rgba(0,0,0,0);
  209. border: 0;
  210. border-radius: 0;
  211. outline: none;
  212. }
  213. /**
  214. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  215. */
  216. button {
  217. overflow: visible;
  218. }
  219. /**
  220. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  221. * All other form control elements do not inherit `text-transform` values.
  222. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  223. * Correct `select` style inheritance in Firefox.
  224. */
  225. button,
  226. select {
  227. text-transform: none;
  228. }
  229. /**
  230. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  231. * and `video` controls.
  232. * 2. Correct inability to style clickable `input` types in iOS.
  233. * 3. Improve usability and consistency of cursor style between image-type
  234. * `input` and others.
  235. */
  236. button,
  237. html input[type="button"], /* 1 */
  238. input[type="reset"],
  239. input[type="submit"] {
  240. // -webkit-appearance: button; /* 2 */
  241. cursor: pointer; /* 3 */
  242. }
  243. /**
  244. * Re-set default cursor for disabled elements.
  245. */
  246. button[disabled],
  247. html input[disabled] {
  248. cursor: default;
  249. }
  250. /**
  251. * Remove inner padding and border in Firefox 4+.
  252. */
  253. button::-moz-focus-inner,
  254. input::-moz-focus-inner {
  255. border: 0;
  256. padding: 0;
  257. }
  258. /**
  259. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  260. * the UA stylesheet.
  261. */
  262. input {
  263. line-height: normal;
  264. }
  265. /**
  266. * It's recommended that you don't attempt to style these elements.
  267. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  268. *
  269. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  270. * 2. Remove excess padding in IE 8/9/10.
  271. */
  272. input[type="checkbox"],
  273. input[type="radio"] {
  274. box-sizing: border-box; /* 1 */
  275. padding: 0; /* 2 */
  276. }
  277. /**
  278. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  279. * `font-size` values of the `input`, it causes the cursor style of the
  280. * decrement button to change from `default` to `text`.
  281. */
  282. input[type="number"]::-webkit-inner-spin-button,
  283. input[type="number"]::-webkit-outer-spin-button {
  284. height: auto;
  285. }
  286. /**
  287. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  288. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  289. * (include `-moz` to future-proof).
  290. */
  291. input[type="search"] {
  292. -webkit-appearance: textfield; /* 1 */
  293. -moz-box-sizing: content-box;
  294. -webkit-box-sizing: content-box; /* 2 */
  295. box-sizing: content-box;
  296. }
  297. /**
  298. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  299. * Safari (but not Chrome) clips the cancel button when the search input has
  300. * padding (and `textfield` appearance).
  301. */
  302. input[type="search"]::-webkit-search-cancel-button,
  303. input[type="search"]::-webkit-search-decoration {
  304. -webkit-appearance: none;
  305. }
  306. /**
  307. * Define consistent border, margin, and padding.
  308. */
  309. fieldset {
  310. border: 1px solid #c0c0c0;
  311. margin: 0 2px;
  312. padding: 0.35em 0.625em 0.75em;
  313. }
  314. /**
  315. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  316. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  317. */
  318. legend {
  319. border: 0; /* 1 */
  320. padding: 0; /* 2 */
  321. }
  322. /**
  323. * Remove default vertical scrollbar in IE 8/9/10/11.
  324. */
  325. textarea {
  326. overflow: auto;
  327. }
  328. /**
  329. * Don't inherit the `font-weight` (applied by a rule above).
  330. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  331. */
  332. optgroup {
  333. font-weight: bold;
  334. }
  335. /* Tables
  336. ========================================================================== */
  337. /**
  338. * Remove most spacing between table cells.
  339. */
  340. table {
  341. border-collapse: collapse;
  342. border-spacing: 0;
  343. }
  344. td,
  345. th {
  346. padding: 0;
  347. }
  348. th :first-child, td :first-child {
  349. margin-top: 0;
  350. }
  351. th :last-child, td :last-child {
  352. margin-bottom: 0;
  353. }
  354. /* reset */
  355. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  356. a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
  357. small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
  358. fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
  359. article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary,
  360. time, mark, audio, video, input {
  361. margin: 0;
  362. padding: 0;
  363. border: none;
  364. outline: 0;
  365. font-size: 100%;
  366. font: inherit;
  367. vertical-align: baseline;
  368. }
  369. html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {
  370. -webkit-text-size-adjust: none;
  371. }
  372. body{
  373. line-height: 1;
  374. font-size: 100%;
  375. -webkit-text-size-adjust:100%;
  376. }
  377. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  378. display: block;
  379. }
  380. ol, ul {
  381. list-style: none;
  382. }
  383. blockquote, q {
  384. quotes: none;
  385. }
  386. blockquote:before, blockquote:after,
  387. q:before, q:after {
  388. content: '';
  389. content: none;
  390. }
  391. table {
  392. border-collapse: collapse;
  393. border-spacing: 0;
  394. }
  395. *{
  396. tap-highlight-color: rgba(0,0,0,0);
  397. -webkit-tap-highlight-color: rgba(0,0,0,0);
  398. -ms-tap-highlight-color: rgba(0,0,0,0);
  399. -webkit-box-sizing: border-box;
  400. -moz-box-sizing: border-box;
  401. -ms-box-sizing: border-box;
  402. box-sizing: border-box;
  403. }