reset.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /*!
  2. * # Fomantic-UI - Reset
  3. * http://github.com/fomantic/Fomantic-UI/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Reset
  12. *******************************/
  13. /* Border-Box */
  14. *,
  15. *:before,
  16. *:after {
  17. -webkit-box-sizing: inherit;
  18. box-sizing: inherit;
  19. }
  20. html {
  21. -webkit-box-sizing: border-box;
  22. box-sizing: border-box;
  23. }
  24. /* iPad Input Shadows */
  25. input[type="text"],
  26. input[type="email"],
  27. input[type="search"],
  28. input[type="password"] {
  29. -webkit-appearance: none;
  30. -moz-appearance: none;
  31. /* mobile firefox too! */
  32. }
  33. /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
  34. /* Document
  35. ========================================================================== */
  36. /**
  37. * 1. Correct the line height in all browsers.
  38. * 2. Prevent adjustments of font size after orientation changes in iOS.
  39. */
  40. html {
  41. line-height: 1.15;
  42. /* 1 */
  43. -webkit-text-size-adjust: 100%;
  44. /* 2 */
  45. }
  46. /* Sections
  47. ========================================================================== */
  48. /**
  49. * Remove the margin in all browsers.
  50. */
  51. body {
  52. margin: 0;
  53. }
  54. /**
  55. * Render the `main` element consistently in IE.
  56. */
  57. main {
  58. display: block;
  59. }
  60. /**
  61. * Correct the font size and margin on `h1` elements within `section` and
  62. * `article` contexts in Chrome, Firefox, and Safari.
  63. */
  64. h1 {
  65. font-size: 2em;
  66. margin: 0.67em 0;
  67. }
  68. /* Grouping content
  69. ========================================================================== */
  70. /**
  71. * 1. Add the correct box sizing in Firefox.
  72. * 2. Show the overflow in Edge and IE.
  73. */
  74. hr {
  75. -webkit-box-sizing: content-box;
  76. box-sizing: content-box;
  77. /* 1 */
  78. height: 0;
  79. /* 1 */
  80. overflow: visible;
  81. /* 2 */
  82. }
  83. /**
  84. * 1. Correct the inheritance and scaling of font size in all browsers.
  85. * 2. Correct the odd `em` font sizing in all browsers.
  86. */
  87. pre {
  88. font-family: monospace, monospace;
  89. /* 1 */
  90. font-size: 1em;
  91. /* 2 */
  92. }
  93. /* Text-level semantics
  94. ========================================================================== */
  95. /**
  96. * Remove the gray background on active links in IE 10.
  97. */
  98. a {
  99. background-color: transparent;
  100. }
  101. /**
  102. * 1. Remove the bottom border in Chrome 57-
  103. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  104. */
  105. abbr[title] {
  106. border-bottom: none;
  107. /* 1 */
  108. text-decoration: underline;
  109. /* 2 */
  110. -webkit-text-decoration: underline dotted;
  111. text-decoration: underline dotted;
  112. /* 2 */
  113. }
  114. /**
  115. * Add the correct font weight in Chrome, Edge, and Safari.
  116. */
  117. b,
  118. strong {
  119. font-weight: bolder;
  120. }
  121. /**
  122. * 1. Correct the inheritance and scaling of font size in all browsers.
  123. * 2. Correct the odd `em` font sizing in all browsers.
  124. */
  125. code,
  126. kbd,
  127. samp {
  128. font-family: monospace, monospace;
  129. /* 1 */
  130. font-size: 1em;
  131. /* 2 */
  132. }
  133. /**
  134. * Add the correct font size in all browsers.
  135. */
  136. small {
  137. font-size: 80%;
  138. }
  139. /**
  140. * Prevent `sub` and `sup` elements from affecting the line height in
  141. * all browsers.
  142. */
  143. sub,
  144. sup {
  145. font-size: 75%;
  146. line-height: 0;
  147. position: relative;
  148. vertical-align: baseline;
  149. }
  150. sub {
  151. bottom: -0.25em;
  152. }
  153. sup {
  154. top: -0.5em;
  155. }
  156. /* Embedded content
  157. ========================================================================== */
  158. /**
  159. * Remove the border on images inside links in IE 10.
  160. */
  161. img {
  162. border-style: none;
  163. }
  164. /* Forms
  165. ========================================================================== */
  166. /**
  167. * 1. Change the font styles in all browsers.
  168. * 2. Remove the margin in Firefox and Safari.
  169. */
  170. button,
  171. input,
  172. optgroup,
  173. select,
  174. textarea {
  175. font-family: inherit;
  176. /* 1 */
  177. font-size: 100%;
  178. /* 1 */
  179. line-height: 1.15;
  180. /* 1 */
  181. margin: 0;
  182. /* 2 */
  183. }
  184. /**
  185. * Show the overflow in IE.
  186. * 1. Show the overflow in Edge.
  187. */
  188. button,
  189. input {
  190. /* 1 */
  191. overflow: visible;
  192. }
  193. /**
  194. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  195. * 1. Remove the inheritance of text transform in Firefox.
  196. */
  197. button,
  198. select {
  199. /* 1 */
  200. text-transform: none;
  201. }
  202. /**
  203. * Correct the inability to style clickable types in iOS and Safari.
  204. */
  205. button,
  206. [type="button"],
  207. [type="reset"],
  208. [type="submit"] {
  209. -webkit-appearance: button;
  210. }
  211. /**
  212. * Remove the inner border and padding in Firefox.
  213. */
  214. button::-moz-focus-inner,
  215. [type="button"]::-moz-focus-inner,
  216. [type="reset"]::-moz-focus-inner,
  217. [type="submit"]::-moz-focus-inner {
  218. border-style: none;
  219. padding: 0;
  220. }
  221. /**
  222. * Restore the focus styles unset by the previous rule.
  223. */
  224. button:-moz-focusring,
  225. [type="button"]:-moz-focusring,
  226. [type="reset"]:-moz-focusring,
  227. [type="submit"]:-moz-focusring {
  228. outline: 1px dotted ButtonText;
  229. }
  230. /**
  231. * Correct the padding in Firefox.
  232. */
  233. fieldset {
  234. padding: 0.35em 0.75em 0.625em;
  235. }
  236. /**
  237. * 1. Correct the text wrapping in Edge and IE.
  238. * 2. Correct the color inheritance from `fieldset` elements in IE.
  239. * 3. Remove the padding so developers are not caught out when they zero out
  240. * `fieldset` elements in all browsers.
  241. */
  242. legend {
  243. -webkit-box-sizing: border-box;
  244. box-sizing: border-box;
  245. /* 1 */
  246. color: inherit;
  247. /* 2 */
  248. display: table;
  249. /* 1 */
  250. max-width: 100%;
  251. /* 1 */
  252. padding: 0;
  253. /* 3 */
  254. white-space: normal;
  255. /* 1 */
  256. }
  257. /**
  258. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  259. */
  260. progress {
  261. vertical-align: baseline;
  262. }
  263. /**
  264. * Remove the default vertical scrollbar in IE 10+.
  265. */
  266. textarea {
  267. overflow: auto;
  268. }
  269. /**
  270. * 1. Add the correct box sizing in IE 10.
  271. * 2. Remove the padding in IE 10.
  272. */
  273. [type="checkbox"],
  274. [type="radio"] {
  275. -webkit-box-sizing: border-box;
  276. box-sizing: border-box;
  277. /* 1 */
  278. padding: 0;
  279. /* 2 */
  280. }
  281. /**
  282. * Correct the cursor style of increment and decrement buttons in Chrome.
  283. */
  284. [type="number"]::-webkit-inner-spin-button,
  285. [type="number"]::-webkit-outer-spin-button {
  286. height: auto;
  287. }
  288. /**
  289. * 1. Correct the odd appearance in Chrome and Safari.
  290. * 2. Correct the outline style in Safari.
  291. */
  292. [type="search"] {
  293. -webkit-appearance: textfield;
  294. /* 1 */
  295. outline-offset: -2px;
  296. /* 2 */
  297. }
  298. /**
  299. * Remove the inner padding in Chrome and Safari on macOS.
  300. */
  301. [type="search"]::-webkit-search-decoration {
  302. -webkit-appearance: none;
  303. }
  304. /**
  305. * 1. Correct the inability to style clickable types in iOS and Safari.
  306. * 2. Change font properties to `inherit` in Safari.
  307. */
  308. ::-webkit-file-upload-button {
  309. -webkit-appearance: button;
  310. /* 1 */
  311. font: inherit;
  312. /* 2 */
  313. }
  314. /* Interactive
  315. ========================================================================== */
  316. /*
  317. * Add the correct display in Edge, IE 10+, and Firefox.
  318. */
  319. details {
  320. display: block;
  321. }
  322. /*
  323. * Add the correct display in all browsers.
  324. */
  325. summary {
  326. display: list-item;
  327. }
  328. /* Misc
  329. ========================================================================== */
  330. /**
  331. * Add the correct display in IE 10+.
  332. */
  333. template {
  334. display: none;
  335. }
  336. /**
  337. * Add the correct display in IE 10.
  338. */
  339. [hidden] {
  340. display: none;
  341. }
  342. /*******************************
  343. Site Overrides
  344. *******************************/