reset.scss 2.7 KB

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