earthnut 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/styles/common.css CHANGED
@@ -1,163 +1,263 @@
1
1
  @charset "UTF-8";
2
2
  :root {
3
- --primary-white: #ffffff;
4
- --primary-black: #1b1b1b;
5
- --primary-dust: #6f6f6f;
6
- --primary-red: #d30038;
7
- --primary-green: #007936;
8
- --primary-blue: #0069c2;
9
- --primary-yellow: #746a00;
10
- --primary-super-yellow: #ffff00;
11
- --text-primary: #1b1b1b;
12
- --text-secondary: #4e4e4e;
13
- --text-invert: var(--primary-white);
14
- --text-muted: var(--primary-dust);
15
- --text-link: #0069c2;
16
- --text-visited: #551a8b;
17
- --text-hover: var(--primary-red);
18
- --text-visited: #551a8b;
19
- --text-active: #858585;
20
- --text-inactive: #9e9e9ea6;
21
- --background-primary: var(--primary-white);
22
- --background-tab-level-1: var(--primary-black);
23
- --background-tab-level-2: var(--primary-dust);
24
- --background-tab-transparent: #6666;
25
- --table-border-color: #000;
26
- --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
27
- --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
28
- --box-shadow: 1px 1px 12px #6666;
29
- --box-shadow-primary: 1px 1px 12px #6666;
30
- --box-shadow-primary-small: 1px 1px 3px #6666;
31
- --box-shadow-primary-large: 1px 1px 24px #6666;
3
+ --en-primary-white: $color-white;
4
+ --en-primary-black: #1b1b1b;
5
+ --en-primary-dust: #6f6f6f;
6
+ --en-primary-red: #d30038;
7
+ --en-primary-green: #007936;
8
+ --en-primary-blue: #0069c2;
9
+ --en-primary-yellow: #746a00;
10
+ --en-primary-super-yellow: #ffff00;
11
+ --en-text-primary: #1b1b1b;
12
+ --en-text-secondary: #4e4e4e;
13
+ --en-text-invert: var(--en-primary-white);
14
+ --en-text-muted: var(--en-primary-dust);
15
+ --en-text-link: #0069c2;
16
+ --en-text-visited: #551a8b;
17
+ --en-text-hover: var(--en-primary-red);
18
+ --en-text-visited: #551a8b;
19
+ --en-text-active: #858585;
20
+ --en-text-inactive: #9e9e9ea6;
21
+ --en-background-primary: var(--en-primary-white);
22
+ --en-background-tab-level-1: var(--en-primary-black);
23
+ --en-background-tab-level-2: var(--en-primary-dust);
24
+ --en-background-tab-transparent: #6666;
25
+ --en-table-border-color: #000;
26
+ --en-curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
27
+ --en-curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
28
+ --en-box-shadow: 1px 1px 12px #6666;
29
+ --en-box-shadow-primary: 1px 1px 12px #6666;
30
+ --en-box-shadow-primary-small: 1px 1px 3px #6666;
31
+ --en-box-shadow-primary-large: 1px 1px 24px #6666;
32
32
  color-scheme: light;
33
33
  }
34
34
 
35
35
  @media (prefers-color-scheme: light) {
36
36
  :root:not(.en-light):not(.en-dark) {
37
- --primary-white: #ffffff;
38
- --primary-black: #1b1b1b;
39
- --primary-dust: #6f6f6f;
40
- --primary-red: #d30038;
41
- --primary-green: #007936;
42
- --primary-blue: #0069c2;
43
- --primary-yellow: #746a00;
44
- --primary-super-yellow: #ffff00;
45
- --text-primary: #1b1b1b;
46
- --text-secondary: #4e4e4e;
47
- --text-invert: var(--primary-white);
48
- --text-muted: var(--primary-dust);
49
- --text-link: #0069c2;
50
- --text-visited: #551a8b;
51
- --text-hover: var(--primary-red);
52
- --text-visited: #551a8b;
53
- --text-active: #858585;
54
- --text-inactive: #9e9e9ea6;
55
- --background-primary: var(--primary-white);
56
- --background-tab-level-1: var(--primary-black);
57
- --background-tab-level-2: var(--primary-dust);
58
- --background-tab-transparent: #6666;
59
- --table-border-color: #000;
60
- --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
61
- --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
62
- --box-shadow: 1px 1px 12px #6666;
63
- --box-shadow-primary: 1px 1px 12px #6666;
64
- --box-shadow-primary-small: 1px 1px 3px #6666;
65
- --box-shadow-primary-large: 1px 1px 24px #6666;
37
+ --en-primary-white: $color-white;
38
+ --en-primary-black: #1b1b1b;
39
+ --en-primary-dust: #6f6f6f;
40
+ --en-primary-red: #d30038;
41
+ --en-primary-green: #007936;
42
+ --en-primary-blue: #0069c2;
43
+ --en-primary-yellow: #746a00;
44
+ --en-primary-super-yellow: #ffff00;
45
+ --en-text-primary: #1b1b1b;
46
+ --en-text-secondary: #4e4e4e;
47
+ --en-text-invert: var(--en-primary-white);
48
+ --en-text-muted: var(--en-primary-dust);
49
+ --en-text-link: #0069c2;
50
+ --en-text-visited: #551a8b;
51
+ --en-text-hover: var(--en-primary-red);
52
+ --en-text-visited: #551a8b;
53
+ --en-text-active: #858585;
54
+ --en-text-inactive: #9e9e9ea6;
55
+ --en-background-primary: var(--en-primary-white);
56
+ --en-background-tab-level-1: var(--en-primary-black);
57
+ --en-background-tab-level-2: var(--en-primary-dust);
58
+ --en-background-tab-transparent: #6666;
59
+ --en-table-border-color: #000;
60
+ --en-curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
61
+ --en-curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
62
+ --en-box-shadow: 1px 1px 12px #6666;
63
+ --en-box-shadow-primary: 1px 1px 12px #6666;
64
+ --en-box-shadow-primary-small: 1px 1px 3px #6666;
65
+ --en-box-shadow-primary-large: 1px 1px 24px #6666;
66
66
  color-scheme: light;
67
67
  }
68
68
  }
69
69
  @media (prefers-color-scheme: dark) {
70
70
  :root:not(.en-light):not(.en-dark) {
71
- --primary-white: #ffffff;
72
- --primary-black: #1b1b1b;
73
- --primary-dust: #858585;
74
- --primary-red: #ff97a0;
75
- --primary-green: #00d061;
76
- --primary-blue: #8cb4ff;
77
- --primary-yellow: #c7b700;
78
- --text-primary: #fff;
79
- --text-secondary: #cdcdcd;
80
- --text-invert: var(--primary-black);
81
- --text-muted: var(--primary-dust);
82
- --text-link: #8cb4ff;
83
- --text-visited: #ffadff;
84
- --text-hover: var(--primary-red);
85
- --text-active: #858585;
86
- --text-inactive: #cdcdcda6;
87
- --background-primary: var(--primary-black);
88
- --background-tab-level-1: #666666;
89
- --background-tab-level-2: var(--primary-dust);
90
- --background-tab-transparent: #6666;
91
- --table-border-color: #ff3663;
92
- --box-shadow: 1px 1px 12px #6666;
93
- --box-shadow-primary: 1px 1px 12px #6666;
94
- --box-shadow-primary-small: 1px 1px 3px #6666;
95
- --box-shadow-primary-large: 1px 1px 24px #6666;
71
+ --en-primary-white: #ffffff;
72
+ --en-primary-black: #1b1b1b;
73
+ --en-primary-dust: #858585;
74
+ --en-primary-red: #ff97a0;
75
+ --en-primary-green: #00d061;
76
+ --en-primary-blue: #8cb4ff;
77
+ --en-primary-yellow: #c7b700;
78
+ --en-text-primary: #fff;
79
+ --en-text-secondary: #cdcdcd;
80
+ --en-text-invert: var(--en-primary-black);
81
+ --en-text-muted: var(--en-primary-dust);
82
+ --en-text-link: #8cb4ff;
83
+ --en-text-visited: #ffadff;
84
+ --en-text-hover: var(--en-primary-red);
85
+ --en-text-active: #858585;
86
+ --en-text-inactive: #cdcdcda6;
87
+ --en-background-primary: var(--en-primary-black);
88
+ --en-background-tab-level-1: #666666;
89
+ --en-background-tab-level-2: var(--en-primary-dust);
90
+ --en-background-tab-transparent: #6666;
91
+ --en-table-border-color: #ff3663;
92
+ --en-box-shadow: 1px 1px 12px #6666;
93
+ --en-box-shadow-primary: 1px 1px 12px #6666;
94
+ --en-box-shadow-primary-small: 1px 1px 3px #6666;
95
+ --en-box-shadow-primary-large: 1px 1px 24px #6666;
96
96
  color-scheme: dark;
97
97
  }
98
98
  }
99
99
  .en-light {
100
- --primary-white: #ffffff;
101
- --primary-black: #1b1b1b;
102
- --primary-dust: #6f6f6f;
103
- --primary-red: #d30038;
104
- --primary-green: #007936;
105
- --primary-blue: #0069c2;
106
- --primary-yellow: #746a00;
107
- --primary-super-yellow: #ffff00;
108
- --text-primary: #1b1b1b;
109
- --text-secondary: #4e4e4e;
110
- --text-invert: var(--primary-white);
111
- --text-muted: var(--primary-dust);
112
- --text-link: #0069c2;
113
- --text-visited: #551a8b;
114
- --text-hover: var(--primary-red);
115
- --text-visited: #551a8b;
116
- --text-active: #858585;
117
- --text-inactive: #9e9e9ea6;
118
- --background-primary: var(--primary-white);
119
- --background-tab-level-1: var(--primary-black);
120
- --background-tab-level-2: var(--primary-dust);
121
- --background-tab-transparent: #6666;
122
- --table-border-color: #000;
123
- --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
124
- --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
125
- --box-shadow: 1px 1px 12px #6666;
126
- --box-shadow-primary: 1px 1px 12px #6666;
127
- --box-shadow-primary-small: 1px 1px 3px #6666;
128
- --box-shadow-primary-large: 1px 1px 24px #6666;
100
+ --en-primary-white: $color-white;
101
+ --en-primary-black: #1b1b1b;
102
+ --en-primary-dust: #6f6f6f;
103
+ --en-primary-red: #d30038;
104
+ --en-primary-green: #007936;
105
+ --en-primary-blue: #0069c2;
106
+ --en-primary-yellow: #746a00;
107
+ --en-primary-super-yellow: #ffff00;
108
+ --en-text-primary: #1b1b1b;
109
+ --en-text-secondary: #4e4e4e;
110
+ --en-text-invert: var(--en-primary-white);
111
+ --en-text-muted: var(--en-primary-dust);
112
+ --en-text-link: #0069c2;
113
+ --en-text-visited: #551a8b;
114
+ --en-text-hover: var(--en-primary-red);
115
+ --en-text-visited: #551a8b;
116
+ --en-text-active: #858585;
117
+ --en-text-inactive: #9e9e9ea6;
118
+ --en-background-primary: var(--en-primary-white);
119
+ --en-background-tab-level-1: var(--en-primary-black);
120
+ --en-background-tab-level-2: var(--en-primary-dust);
121
+ --en-background-tab-transparent: #6666;
122
+ --en-table-border-color: #000;
123
+ --en-curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
124
+ --en-curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
125
+ --en-box-shadow: 1px 1px 12px #6666;
126
+ --en-box-shadow-primary: 1px 1px 12px #6666;
127
+ --en-box-shadow-primary-small: 1px 1px 3px #6666;
128
+ --en-box-shadow-primary-large: 1px 1px 24px #6666;
129
129
  color-scheme: light;
130
130
  }
131
131
 
132
132
  .en-dark {
133
- --primary-white: #ffffff;
134
- --primary-black: #1b1b1b;
135
- --primary-dust: #858585;
136
- --primary-red: #ff97a0;
137
- --primary-green: #00d061;
138
- --primary-blue: #8cb4ff;
139
- --primary-yellow: #c7b700;
140
- --text-primary: #fff;
141
- --text-secondary: #cdcdcd;
142
- --text-invert: var(--primary-black);
143
- --text-muted: var(--primary-dust);
144
- --text-link: #8cb4ff;
145
- --text-visited: #ffadff;
146
- --text-hover: var(--primary-red);
147
- --text-active: #858585;
148
- --text-inactive: #cdcdcda6;
149
- --background-primary: var(--primary-black);
150
- --background-tab-level-1: #666666;
151
- --background-tab-level-2: var(--primary-dust);
152
- --background-tab-transparent: #6666;
153
- --table-border-color: #ff3663;
154
- --box-shadow: 1px 1px 12px #6666;
155
- --box-shadow-primary: 1px 1px 12px #6666;
156
- --box-shadow-primary-small: 1px 1px 3px #6666;
157
- --box-shadow-primary-large: 1px 1px 24px #6666;
133
+ --en-primary-white: #ffffff;
134
+ --en-primary-black: #1b1b1b;
135
+ --en-primary-dust: #858585;
136
+ --en-primary-red: #ff97a0;
137
+ --en-primary-green: #00d061;
138
+ --en-primary-blue: #8cb4ff;
139
+ --en-primary-yellow: #c7b700;
140
+ --en-text-primary: #fff;
141
+ --en-text-secondary: #cdcdcd;
142
+ --en-text-invert: var(--en-primary-black);
143
+ --en-text-muted: var(--en-primary-dust);
144
+ --en-text-link: #8cb4ff;
145
+ --en-text-visited: #ffadff;
146
+ --en-text-hover: var(--en-primary-red);
147
+ --en-text-active: #858585;
148
+ --en-text-inactive: #cdcdcda6;
149
+ --en-background-primary: var(--en-primary-black);
150
+ --en-background-tab-level-1: #666666;
151
+ --en-background-tab-level-2: var(--en-primary-dust);
152
+ --en-background-tab-transparent: #6666;
153
+ --en-table-border-color: #ff3663;
154
+ --en-box-shadow: 1px 1px 12px #6666;
155
+ --en-box-shadow-primary: 1px 1px 12px #6666;
156
+ --en-box-shadow-primary-small: 1px 1px 3px #6666;
157
+ --en-box-shadow-primary-large: 1px 1px 24px #6666;
158
158
  color-scheme: dark;
159
159
  }
160
160
 
161
+ /* 盒模型 规则 */
162
+ *,
163
+ *::before,
164
+ *::after {
165
+ box-sizing: border-box;
166
+ }
167
+
168
+ /* 移除默认的 margin 外边距 */
169
+ body,
170
+ h1,
171
+ h2,
172
+ h3,
173
+ h4,
174
+ p,
175
+ figure,
176
+ blockquote,
177
+ dl,
178
+ dd {
179
+ margin: 0;
180
+ }
181
+
182
+ ul,
183
+ ol {
184
+ list-style: none;
185
+ margin: 0;
186
+ padding: 0;
187
+ }
188
+
189
+ /* 设置根元素 html 默认样式 */
190
+ html {
191
+ scroll-behavior: smooth;
192
+ }
193
+
194
+ /* 设置默认的 body 元素的样式 */
195
+ body {
196
+ font-family: var(--en-font-body);
197
+ font-size: var(--en-base-font-size);
198
+ line-height: var(--en-font-content-line-height);
199
+ text-rendering: optimizeSpeed;
200
+ }
201
+
202
+ /* 链接元素没有 class 类时的展示 */
203
+ a:not([class]) {
204
+ text-decoration-skip-ink: auto;
205
+ }
206
+
207
+ a {
208
+ text-decoration: none;
209
+ }
210
+
211
+ /* 设置图片样式 */
212
+ img,
213
+ picture {
214
+ display: block;
215
+ max-width: 100%;
216
+ }
217
+
218
+ /* Fix Inter font bug: 'em' not slanted in Safari. See issue: https://github.com/mdn/yari/issues/7203 */
219
+ em {
220
+ font-variation-settings: "slnt" -10;
221
+ }
222
+
223
+ /* Inherit fonts for inputs and buttons */
224
+ input,
225
+ button,
226
+ textarea,
227
+ select {
228
+ font: inherit;
229
+ }
230
+
231
+ /* 自动填充的密码的背景色设置动画已取消背景色 */
232
+ input:-webkit-autofill,
233
+ input:-webkit-autofill:hover,
234
+ input:-webkit-autofill:focus,
235
+ input:-webkit-autofill:active {
236
+ transition-delay: 99999s;
237
+ transition: color 99999s ease-out, background-color 99999s ease-out;
238
+ -webkit-transition-delay: 99999s;
239
+ -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
240
+ -webkit-text-fill-color: var(--text-primary);
241
+ }
242
+
243
+ /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
244
+ @media (prefers-reduced-motion: reduce) {
245
+ html {
246
+ scroll-behavior: auto;
247
+ }
248
+ *,
249
+ *::before,
250
+ *::after {
251
+ animation-duration: 0.01ms !important;
252
+ animation-iteration-count: 1 !important;
253
+ scroll-behavior: auto !important;
254
+ transition-duration: 0.01ms !important;
255
+ }
256
+ }
257
+ .en-relative {
258
+ position: relative;
259
+ }
260
+
161
261
  .en-center {
162
262
  position: absolute;
163
263
  left: 50%;
@@ -165,6 +265,10 @@
165
265
  transform: translate(-50%, -50%);
166
266
  }
167
267
 
268
+ .en-dust {
269
+ color: var(--primary-dust);
270
+ }
271
+
168
272
  /** 文本显示一行,超出点点点 */
169
273
  .en-text-in-one-line {
170
274
  white-space: nowrap;
@@ -240,6 +344,17 @@
240
344
  font-size: 0.6rem;
241
345
  }
242
346
 
347
+ .en-user-select-text {
348
+ -khtml-user-select: text;
349
+ -moz-user-select: text;
350
+ -ms-user-select: text;
351
+ user-select: text;
352
+ }
353
+
354
+ .en-cursor-pointer {
355
+ cursor: pointer;
356
+ }
357
+
243
358
  @keyframes loading {
244
359
  100%, 0% {
245
360
  background-size: 10% 10%, 10% 10%, 10% 10%, 10% 10%;
@@ -1,94 +1,9 @@
1
- @mixin light {
2
- // 基色
3
- --primary-white: #ffffff;
4
- --primary-black: #1b1b1b;
5
- --primary-dust: #6f6f6f;
6
- --primary-red: #d30038;
7
- --primary-green: #007936;
8
- --primary-blue: #0069c2;
9
- --primary-yellow: #746a00;
10
- --primary-super-yellow: #ffff00;
11
- // 文本色
12
- --text-primary: #1b1b1b;
13
- --text-secondary: #4e4e4e;
14
- --text-invert: var(--primary-white); // 文本反转色
15
- --text-muted: var(--primary-dust); // 温和文本色
16
- // 链接文本色
17
- --text-link: #0069c2;
18
- --text-visited: #551a8b;
19
- --text-hover: var(--primary-red);
20
- --text-visited: #551a8b;
21
- --text-active: #858585;
22
- --text-inactive: #9e9e9ea6; // 无效链接色
23
- // 背景色
24
- --background-primary: var(--primary-white);
25
- --background-tab-level-1: var(--primary-black);
26
- --background-tab-level-2: var(--primary-dust);
27
- --background-tab-transparent: #6666;
28
- --table-border-color: #000;
29
- --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
30
- --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
31
- --box-shadow: 1px 1px 12px #6666;
32
- --box-shadow-primary: 1px 1px 12px #6666;
33
- --box-shadow-primary-small: 1px 1px 3px #6666;
34
- --box-shadow-primary-large: 1px 1px 24px #6666;
35
- color-scheme: light;
36
- }
37
-
38
- @mixin dark {
39
- // 基色
40
- --primary-white: #ffffff;
41
- --primary-black: #1b1b1b;
42
- --primary-dust: #858585;
43
- --primary-red: #ff97a0;
44
- --primary-green: #00d061;
45
- --primary-blue: #8cb4ff;
46
- --primary-yellow: #c7b700;
47
- // 文本色
48
- --text-primary: #fff;
49
- --text-secondary: #cdcdcd;
50
- --text-invert: var(--primary-black); // 文本反转色
51
- --text-muted: var(--primary-dust); // 温和文本色
52
- // 普通链接文本色
53
- --text-link: #8cb4ff;
54
- --text-visited: #ffadff;
55
- --text-hover: var(--primary-red);
56
- --text-active: #858585;
57
- --text-inactive: #cdcdcda6; // 无效链接色
58
- // 背景色
59
- --background-primary: var(--primary-black);
60
- --background-tab-level-1: #666666;
61
- --background-tab-level-2: var(--primary-dust);
62
- --background-tab-transparent: #6666;
63
- --table-border-color: #ff3663;
64
- --box-shadow: 1px 1px 12px #6666;
65
- --box-shadow-primary: 1px 1px 12px #6666;
66
- --box-shadow-primary-small: 1px 1px 3px #6666;
67
- --box-shadow-primary-large: 1px 1px 24px #6666;
68
- color-scheme: dark;
69
- }
70
-
71
- :root {
72
- @include light();
73
- }
74
-
75
- @media (prefers-color-scheme: light) {
76
- :root:not(.en-light):not(.en-dark) {
77
- @include light();
78
- }
79
- }
80
- @media (prefers-color-scheme: dark) {
81
- :root:not(.en-light):not(.en-dark) {
82
- @include dark();
83
- }
84
- }
1
+ @use "./root";
2
+ @use "./reset.scss";
3
+ @use "./respond" as rp;
85
4
 
86
- .en-light {
87
- @include light();
88
- }
89
-
90
- .en-dark {
91
- @include dark();
5
+ .en-relative {
6
+ position: relative;
92
7
  }
93
8
 
94
9
  .en-center {
@@ -98,6 +13,10 @@
98
13
  transform: translate(-50%, -50%);
99
14
  }
100
15
 
16
+ .en-dust {
17
+ color: var(--primary-dust);
18
+ }
19
+
101
20
  /** 文本显示一行,超出点点点 */
102
21
  .en-text-in-one-line {
103
22
  white-space: nowrap;
@@ -178,6 +97,19 @@
178
97
  .en-text-small {
179
98
  font-size: 0.6rem;
180
99
  }
100
+
101
+ // 用户可操作
102
+ .en-user-select-text {
103
+ -khtml-user-select: text;
104
+ -moz-user-select: text;
105
+ -ms-user-select: text;
106
+ user-select: text;
107
+ }
108
+
109
+ .en-cursor-pointer {
110
+ cursor: pointer;
111
+ }
112
+
181
113
  @keyframes loading {
182
114
  // 45 - 25 * Math.sin((Math.PI * 5) / 12)
183
115
  // 位置公式 35 - 25 * Math.cos((Math.PI * 5) / 12)
@@ -312,22 +244,10 @@
312
244
  @for $i from 18 through 33 {
313
245
  #{calc($i / 50 * 100%)} {
314
246
  background-position:
315
- #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) *
316
- 1%}
317
- #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) *
318
- 1%},
319
- #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) *
320
- 1%}
321
- #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) *
322
- 1%},
323
- #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) *
324
- 1%}
325
- #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) *
326
- 1%},
327
- #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) *
328
- 1%}
329
- #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) *
330
- 1%};
247
+ #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) * 1%},
248
+ #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) * 1%},
249
+ #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) * 1%},
250
+ #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) * 1%};
331
251
  }
332
252
  }
333
253
 
@@ -0,0 +1,103 @@
1
+ @use "./root.scss";
2
+
3
+ /* 盒模型 规则 */
4
+ *,
5
+ *::before,
6
+ *::after {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ /* 移除默认的 margin 外边距 */
11
+ body,
12
+ h1,
13
+ h2,
14
+ h3,
15
+ h4,
16
+ p,
17
+ figure,
18
+ blockquote,
19
+ dl,
20
+ dd {
21
+ margin: 0;
22
+ }
23
+
24
+ ul,
25
+ ol {
26
+ list-style: none;
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ /* 设置根元素 html 默认样式 */
32
+ html {
33
+ scroll-behavior: smooth;
34
+ }
35
+
36
+ /* 设置默认的 body 元素的样式 */
37
+ body {
38
+ font-family: var(--en-font-body);
39
+ font-size: var(--en-base-font-size);
40
+ line-height: var(--en-font-content-line-height);
41
+ text-rendering: optimizeSpeed;
42
+ }
43
+
44
+ /* 链接元素没有 class 类时的展示 */
45
+ a:not([class]) {
46
+ text-decoration-skip-ink: auto;
47
+ }
48
+
49
+ a {
50
+ text-decoration: none;
51
+ }
52
+
53
+ /* 设置图片样式 */
54
+ img,
55
+ picture {
56
+ display: block;
57
+ max-width: 100%;
58
+ }
59
+
60
+ /* Fix Inter font bug: 'em' not slanted in Safari. See issue: https://github.com/mdn/yari/issues/7203 */
61
+ em {
62
+ font-variation-settings: "slnt" -10;
63
+ }
64
+
65
+ /* Inherit fonts for inputs and buttons */
66
+ input,
67
+ button,
68
+ textarea,
69
+ select {
70
+ font: inherit;
71
+ }
72
+
73
+ /* 自动填充的密码的背景色设置动画已取消背景色 */
74
+ input:-webkit-autofill,
75
+ input:-webkit-autofill:hover,
76
+ input:-webkit-autofill:focus,
77
+ input:-webkit-autofill:active {
78
+ transition-delay: 99999s;
79
+ transition:
80
+ color 99999s ease-out,
81
+ background-color 99999s ease-out;
82
+ -webkit-transition-delay: 99999s;
83
+ -webkit-transition:
84
+ color 99999s ease-out,
85
+ background-color 99999s ease-out;
86
+ -webkit-text-fill-color: var(--text-primary);
87
+ }
88
+
89
+ /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
90
+ @media (prefers-reduced-motion: reduce) {
91
+ html {
92
+ scroll-behavior: auto;
93
+ }
94
+
95
+ *,
96
+ *::before,
97
+ *::after {
98
+ animation-duration: 0.01ms !important;
99
+ animation-iteration-count: 1 !important;
100
+ scroll-behavior: auto !important;
101
+ transition-duration: 0.01ms !important;
102
+ }
103
+ }