| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- @use './element.scss' as *;
- @use './common.scss' as *;
- :root {
- box-sizing: border-box;
- font-family: 'Inter', system-ui, 'Avenir', 'Helvetica', 'Arial', sans-serif;
- font-size: 16px;
- font-weight: 400;
- line-height: 1.5;
- color: $font-color;
- color-scheme: light dark;
- background-color: $main-background-color;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-size-adjust: 100%;
- }
- body {
- width: 100%;
- min-width: 320px;
- height: 100vh;
- min-height: 100vh;
- padding: 0;
- margin: 0;
- }
- #app {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- h1 {
- font-size: 3.2em;
- line-height: 1.1;
- }
- a {
- font-weight: 500;
- color: #646cff;
- text-decoration: inherit;
- &:hover {
- color: #535bf2;
- }
- }
- button {
- padding: 0.6em 1.2em;
- font-family: inherit;
- font-size: 1em;
- font-weight: 500;
- cursor: pointer;
- background-color: #1a1a1a;
- border: 1px solid transparent;
- border-radius: 8px;
- transition: border-color 0.25s;
- &:hover {
- border-color: #646cff;
- }
- &:focus,
- &:focus-visible {
- outline: 4px auto -webkit-focus-ring-color;
- }
- }
- ul {
- padding-inline-start: 0;
- margin: 0;
- li {
- list-style: none;
- }
- }
- .rich-text {
- ul,
- ol {
- padding-left: 40px;
- margin: 1em 0;
- }
- ul li {
- list-style: disc;
- }
- ol li {
- list-style: decimal;
- }
- }
- /* 富文本着重点 */
- .rich-text-emphasis-dot {
- display: inline;
- padding-bottom: 0.2em; /* 间距也相对于字体 */
- background-image: radial-gradient(circle at center, currentColor 0.15em, /* 圆点大小相对于字体 */ transparent 0.16em);
- background-repeat: repeat-x;
- background-position: 0 100%;
- background-size: 1em 0.3em; /* 间距相对于字体大小,高度相对字体 */
- border-bottom: none;
- }
- .card {
- padding: 2em;
- }
- *,
- *::before,
- *::after {
- box-sizing: inherit;
- }
- @media (prefers-color-scheme: light) {
- :root {
- color: $font-color;
- background-color: $main-background-color;
- }
- a:hover {
- color: #747bff;
- }
- button {
- background-color: #f9f9f9;
- }
- }
|