reset.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. font: inherit;
  5. }
  6. *,
  7. *::before,
  8. *::after {
  9. box-sizing: border-box;
  10. border-width: 0;
  11. border-style: solid;
  12. border-color: var(--global-color-border, currentColor);
  13. }
  14. html {
  15. line-height: 1.5;
  16. --font-fallback: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
  17. "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
  18. "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  19. -webkit-text-size-adjust: 100%;
  20. -webkit-font-smoothing: antialiased;
  21. -moz-osx-font-smoothing: grayscale;
  22. -moz-tab-size: 4;
  23. tab-size: 4;
  24. font-family: var(--global-font-body, var(--font-fallback));
  25. }
  26. hr {
  27. height: 0;
  28. color: inherit;
  29. border-top-width: 1px;
  30. }
  31. body {
  32. height: 100%;
  33. line-height: inherit;
  34. }
  35. img {
  36. border-style: none;
  37. }
  38. img,
  39. svg,
  40. video,
  41. canvas,
  42. audio,
  43. iframe,
  44. embed,
  45. object {
  46. display: block;
  47. vertical-align: middle;
  48. }
  49. img,
  50. video {
  51. max-width: 100%;
  52. height: auto;
  53. }
  54. p,
  55. h1,
  56. h2,
  57. h3,
  58. h4,
  59. h5,
  60. h6 {
  61. overflow-wrap: break-word;
  62. }
  63. ol,
  64. ul {
  65. list-style: none;
  66. }
  67. code,
  68. kbd,
  69. pre,
  70. samp {
  71. font-size: 1em;
  72. }
  73. button,
  74. [type="button"],
  75. [type="reset"],
  76. [type="submit"] {
  77. -webkit-appearance: button;
  78. background-color: transparent;
  79. background-image: none;
  80. }
  81. button,
  82. input,
  83. optgroup,
  84. select,
  85. textarea {
  86. color: inherit;
  87. }
  88. button,
  89. select {
  90. text-transform: none;
  91. }
  92. table {
  93. text-indent: 0;
  94. border-color: inherit;
  95. border-collapse: collapse;
  96. }
  97. input::placeholder,
  98. textarea::placeholder {
  99. opacity: 1;
  100. color: var(--global-color-placeholder, #9ca3af);
  101. }
  102. textarea {
  103. resize: vertical;
  104. }
  105. summary {
  106. display: list-item;
  107. }
  108. small {
  109. font-size: 80%;
  110. }
  111. sub,
  112. sup {
  113. font-size: 75%;
  114. line-height: 0;
  115. position: relative;
  116. vertical-align: baseline;
  117. }
  118. sub {
  119. bottom: -0.25em;
  120. }
  121. sup {
  122. top: -0.5em;
  123. }
  124. dialog {
  125. padding: 0;
  126. }
  127. a {
  128. color: inherit;
  129. text-decoration: inherit;
  130. }
  131. abbr:where([title]) {
  132. text-decoration: underline dotted;
  133. }
  134. b,
  135. strong {
  136. font-weight: bolder;
  137. }
  138. code,
  139. kbd,
  140. samp,
  141. pre {
  142. font-size: 1em;
  143. --font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
  144. "Liberation Mono", "Courier New";
  145. font-family: var(--global-font-mono, var(--font-fallback));
  146. }
  147. input[type="text"],
  148. input[type="email"],
  149. input[type="search"],
  150. input[type="password"] {
  151. -webkit-appearance: none;
  152. -moz-appearance: none;
  153. }
  154. input[type="search"] {
  155. -webkit-appearance: textfield;
  156. outline-offset: -2px;
  157. }
  158. ::-webkit-search-decoration,
  159. ::-webkit-search-cancel-button {
  160. -webkit-appearance: none;
  161. }
  162. ::-webkit-file-upload-button {
  163. -webkit-appearance: button;
  164. font: inherit;
  165. }
  166. input[type="number"]::-webkit-inner-spin-button,
  167. input[type="number"]::-webkit-outer-spin-button {
  168. height: auto;
  169. }
  170. input[type="number"] {
  171. -moz-appearance: textfield;
  172. }
  173. :-moz-ui-invalid {
  174. box-shadow: none;
  175. }
  176. :-moz-focusring {
  177. outline: auto;
  178. }