reset.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. *,
  2. ::before,
  3. ::after {
  4. box-sizing: border-box;
  5. border-color: currentColor;
  6. border-style: solid;
  7. border-width: 0;
  8. }
  9. #app {
  10. width: 100%;
  11. height: 100%;
  12. }
  13. html {
  14. box-sizing: border-box;
  15. width: 100%;
  16. height: 100%;
  17. line-height: 1.5;
  18. tab-size: 4;
  19. text-size-adjust: 100%;
  20. }
  21. body {
  22. width: 100%;
  23. height: 100%;
  24. margin: 0;
  25. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial,
  26. sans-serif;
  27. line-height: inherit;
  28. -moz-osx-font-smoothing: grayscale;
  29. -webkit-font-smoothing: antialiased;
  30. text-rendering: optimizelegibility;
  31. }
  32. hr {
  33. height: 0;
  34. color: inherit;
  35. border-top-width: 1px;
  36. }
  37. abbr:where([title]) {
  38. text-decoration: underline dotted;
  39. }
  40. a {
  41. color: inherit;
  42. text-decoration: inherit;
  43. }
  44. b,
  45. strong {
  46. font-weight: bolder;
  47. }
  48. code,
  49. kbd,
  50. samp,
  51. pre {
  52. font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  53. font-size: 1em;
  54. }
  55. small {
  56. font-size: 80%;
  57. }
  58. sub,
  59. sup {
  60. position: relative;
  61. font-size: 75%;
  62. line-height: 0;
  63. vertical-align: baseline;
  64. }
  65. sub {
  66. bottom: -0.25em;
  67. }
  68. sup {
  69. top: -0.5em;
  70. }
  71. table {
  72. text-indent: 0;
  73. border-collapse: collapse;
  74. border-color: inherit;
  75. }
  76. button,
  77. input,
  78. optgroup,
  79. select,
  80. textarea {
  81. padding: 0;
  82. margin: 0;
  83. font-family: inherit;
  84. font-size: 100%;
  85. line-height: inherit;
  86. color: inherit;
  87. }
  88. button,
  89. select {
  90. text-transform: none;
  91. }
  92. button,
  93. [type="button"],
  94. [type="reset"],
  95. [type="submit"] {
  96. background-image: none;
  97. }
  98. :-moz-focusring {
  99. outline: auto;
  100. }
  101. :-moz-ui-invalid {
  102. box-shadow: none;
  103. }
  104. progress {
  105. vertical-align: baseline;
  106. }
  107. ::-webkit-inner-spin-button,
  108. ::-webkit-outer-spin-button {
  109. height: auto;
  110. }
  111. [type="search"] {
  112. outline-offset: -2px;
  113. }
  114. ::-webkit-file-upload-button {
  115. font: inherit;
  116. }
  117. summary {
  118. display: list-item;
  119. }
  120. blockquote,
  121. dl,
  122. dd,
  123. h1,
  124. h2,
  125. h3,
  126. h4,
  127. h5,
  128. h6,
  129. hr,
  130. figure,
  131. p,
  132. pre {
  133. margin: 0;
  134. }
  135. fieldset {
  136. padding: 0;
  137. margin: 0;
  138. }
  139. legend {
  140. padding: 0;
  141. }
  142. ol,
  143. ul,
  144. menu {
  145. padding: 0;
  146. margin: 0;
  147. list-style: none;
  148. }
  149. textarea {
  150. resize: vertical;
  151. }
  152. input::placeholder,
  153. textarea::placeholder {
  154. color: #9ca3af;
  155. opacity: 1;
  156. }
  157. button,
  158. [role="button"] {
  159. cursor: pointer;
  160. }
  161. :disabled {
  162. cursor: default;
  163. }
  164. img,
  165. svg,
  166. video,
  167. canvas,
  168. audio,
  169. iframe,
  170. embed,
  171. object {
  172. display: block;
  173. }
  174. img,
  175. video {
  176. max-width: 100%;
  177. height: auto;
  178. }
  179. [hidden] {
  180. display: none;
  181. }
  182. .dark {
  183. color-scheme: dark;
  184. }
  185. label {
  186. font-weight: 700;
  187. }
  188. *,
  189. *::before,
  190. *::after {
  191. box-sizing: inherit;
  192. }
  193. a:focus,
  194. a:active {
  195. outline: none;
  196. }
  197. a,
  198. a:focus,
  199. a:hover {
  200. color: inherit;
  201. text-decoration: none;
  202. cursor: pointer;
  203. }
  204. div:focus {
  205. outline: none;
  206. }
  207. .clearfix {
  208. &::after {
  209. display: block;
  210. height: 0;
  211. clear: both;
  212. font-size: 0;
  213. visibility: hidden;
  214. content: " ";
  215. }
  216. }
  217. /* 谷歌、火狐等浏览器 */
  218. input:focus {
  219. outline: none;
  220. }
  221. /* IE10+ */
  222. input::-ms-focus {
  223. border: 0;
  224. }
  225. /* Safari */
  226. input:focus:not(:focus-visible) {
  227. outline: none;
  228. }