reset.css 6.3 KB

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