reset.css 8.2 KB

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