index.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @use "./global";
  2. @use "./theme";
  3. @use "./markdown";
  4. @use "nprogress/nprogress.css";
  5. body {
  6. width: 100vw;
  7. -moz-osx-font-smoothing: grayscale;
  8. -webkit-font-smoothing: antialiased;
  9. text-rendering: optimizelegibility;
  10. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  11. --at-apply: c-#303133;
  12. --at-apply: bg-#fff;
  13. }
  14. #app {
  15. margin: 0 auto;
  16. }
  17. .n-card.n-modal {
  18. background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 235, 0.9));
  19. }
  20. html {
  21. font-size: 14px;
  22. box-sizing: border-box;
  23. overflow-y: scroll;
  24. -webkit-tap-highlight-color: rgb(255 255 255 / 0%);
  25. }
  26. :root {
  27. overflow: hidden auto;
  28. }
  29. :root body {
  30. margin: 0;
  31. padding: 0;
  32. height: 100%;
  33. position: absolute;
  34. }
  35. #app,
  36. html {
  37. height: 100%;
  38. }
  39. dl,
  40. dt,
  41. dd,
  42. ul,
  43. ol,
  44. li,
  45. h1,
  46. h2,
  47. h3,
  48. h4,
  49. h5,
  50. h6,
  51. pre,
  52. code,
  53. form,
  54. fieldset,
  55. legend,
  56. input,
  57. textarea,
  58. blockquote,
  59. th,
  60. td,
  61. hr,
  62. button,
  63. article,
  64. aside,
  65. details,
  66. figcaption,
  67. figure,
  68. footer,
  69. header,
  70. menu,
  71. nav,
  72. section {
  73. margin: 0;
  74. padding: 0;
  75. }
  76. a {
  77. text-decoration: none;
  78. background-color: transparent;
  79. outline: none;
  80. }
  81. svg {
  82. box-sizing: content-box;
  83. }
  84. *,
  85. *::before,
  86. *::after {
  87. box-sizing: inherit;
  88. }
  89. // 滚动条样式
  90. ::-webkit-scrollbar {
  91. width: 6px;
  92. height: 6px;
  93. }
  94. ::-webkit-scrollbar-thumb {
  95. background: rgba(#000, 0.2);
  96. border-radius: 3px;
  97. }
  98. ::-webkit-scrollbar-track {
  99. border-radius: 3px;
  100. }
  101. // https://stackoverflow.com/questions/43778196/input-background-removed-by-chrome-autofill
  102. input:-webkit-autofill {
  103. -webkit-box-shadow: 0 0 0 1000px #fff inset;
  104. -moz-box-shadow: 0 0 0 100px #fff inset;
  105. box-shadow: 0 0 0 100px #fff inset;
  106. }