-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
356 lines (307 loc) · 8.86 KB
/
styles.css
File metadata and controls
356 lines (307 loc) · 8.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
/* 返回按钮 */
.openwords-back-btn {
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
font-size: 1.05em;
}
/* 状态栏 */
.openwords-view-statusbar {
display: flex;
flex-direction: column;
gap: 20px;
margin: 20px auto 0 auto;
padding: 20px;
width: 70%;
max-width: 700px;
box-sizing: border-box;
background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-primary) 100%);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.openwords-statusbar-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
width: 100%;
flex-wrap: wrap;
}
.openwords-statusbar-total {
justify-content: center;
padding-top: 20px;
border-top: 2px solid var(--divider-color);
}
.openwords-stat-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
flex: 1;
padding: 2px 2px;
background-color: var(--background-primary);
border-radius: 8px;
border: 1px solid var(--divider-color);
transition: all 0.3s ease;
}
.openwords-stat-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-color: var(--text-accent);
}
.openwords-stat-item.total {
padding: 2px 2px;
background: none;
border: 1px solid var(--divider-color);
color: var(--text-normal);
}
.openwords-stat-item.total:hover {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.openwords-stat-label {
font-size: 0.8em;
color: var(--text-muted);
white-space: nowrap;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.openwords-stat-item.total .openwords-stat-label {
font-size: 0.8em;
letter-spacing: 0.5px;
}
.openwords-stat-count {
font-size: 1.4em;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item:nth-child(1) .openwords-stat-count {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item:nth-child(2) .openwords-stat-count {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item:nth-child(3) .openwords-stat-count {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item:nth-child(4) .openwords-stat-count {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item:nth-child(5) .openwords-stat-count {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.openwords-stat-item.total .openwords-stat-count {
font-size: 1.6em;
color: var(--text-normal);
background: none;
-webkit-text-fill-color: initial;
}
/* 学习模式页面 */
.openwords-type-container {
width: 70%; /* 设置模态框宽度 */
max-width: 700px; /* 设置模态框最大宽度 */
margin: 0 auto; /* 居中模态框 */
}
.openwords-type-title {
text-align: center;
margin-bottom: 20px;
font-size: 1.5em;
font-weight: bold;
}
/* 背单词页面 */
.openwords-learning-container {
width: 70%; /* 设置模态框宽度 */
max-width: 700px; /* 设置模态框最大宽度 */
margin: 0 auto; /* 居中模态框 */
}
.openwords-learning-card { /* 卡片容器样式 */
height: 300px; /* 固定高度 */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px solid var(--color-border);
border-radius: 8px;
margin: 20px auto;
background-color: var(--background-primary);
text-align: center;
cursor: pointer; /* 鼠标悬停时显示手型 */
}
.openwords-learning-card:hover {
background-color: var(--background-modifier-hover); /* 鼠标悬停时背景变浅 */
}
.openwords-card-content { /* 单词内容样式 */
font-size: 3em; /* 设置单词字体大小 */
font-weight: bold; /* 设置单词加粗 */
color: var(--text-normal); /* 设置单词颜色 */
margin-top: 24px;
}
.openwords-card-meta {
font-size: 0.85em;
line-height: 1.5;
margin-top: 24px;
}
.openwords-card-markdown { /* Markdown 内容样式 */
width: 100%;
height: 100%;
overflow-y: auto; /* 添加垂直滚动条 */
background-color: var(--background-secondary); /* 更柔和的背景颜色 */
color: var(--text-muted); /* 使用正常文本颜色 */
font-size: 1.1em; /* 稍微增大字体 */
line-height: 1.6; /* 增加行高,提升可读性 */
border-radius: 8px; /* 添加圆角 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 设置优雅的字体 */
user-select: text; /* 允许文本选择 */
}
.openwords-learning-settings {
margin-top: 20px; /* 设置容器样式 */
font-size: 1em; /* 减小字体大小 */
}
.openwords-learning-settings .setting-item {
padding: 5px 10px; /* 减小内边距 */
}
.openwords-learning-settings button.active {
background: var(--interactive-accent);
color: #fff;
font-weight: bold;
box-shadow: 0 0 6px var(--interactive-accent);
}
/* 默写单词页面 */
.openwords-spelling-container {
width: 70%; /* 设置模态框宽度 */
max-width: 700px; /* 设置模态框最大宽度 */
margin: 0 auto; /* 居中模态框 */
}
.openwords-spelling-title {
font-size: 2em;
font-weight: bold;
text-align: center;
height: 100px;
display: flex;
flex-direction: column;
justify-content: center;
}
.openwords-spelling-meaning {
width: 100%;
height: 200px;
overflow-y: auto; /* 添加垂直滚动条 */
background-color: var(--background-secondary); /* 更柔和的背景颜色 */
color: var(--text-muted); /* 使用正常文本颜色 */
font-size: 1.1em; /* 稍微增大字体 */
line-height: 1.6; /* 增加行高,提升可读性 */
border-radius: 8px; /* 添加圆角 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 设置优雅的字体 */
user-select: text; /* 允许文本选择 */
margin: 20px auto;
text-align: center;
}
.openwords-spelling-input {
display: flex;
flex-wrap: wrap; /* 支持自动换行 */
justify-content: center;
gap: 10px;
margin-top: 20px;
max-width: 100%;
}
.openwords-spelling-letter {
width: 50px !important;
height: 50px !important;
text-align: center;
font-size: 1.5em !important;
border: 1px solid var(--background-modifier-border);
border-radius: 5px;
outline: none;
}
.openwords-spelling-feedback {
margin-top: 10px;
text-align: center;
font-size: 1em;
color: var(--text-accent);
}
/* 插件设置标签管理 */
.openwords-tags-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
background-color: var(--background-secondary);
border-radius: 5px;
}
.openwords-tag-item {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
border-radius: 4px;
font-size: 0.9em;
}
.openwords-tag-item button {
padding: 2px 6px;
border: none;
background-color: rgba(255, 255, 255, 0.3);
color: inherit;
border-radius: 3px;
cursor: pointer;
font-size: 0.85em;
transition: background-color 0.2s;
}
.openwords-tag-item button:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.openwords-empty-tags {
color: var(--text-muted);
font-size: 0.9em;
margin: 0;
}
/* 标签历史建议样式 */
.openwords-tag-history-item {
display: flex;
justify-content: space-between;
align-items: center;
/* padding: 4px 0; */
}
.openwords-tag-history-text {
flex: 1;
word-break: break-all;
}
.openwords-tag-history-delete {
padding: 2px 8px;
font-size: 12px;
margin-left: 8px;
border: none;
border-radius: 3px;
background-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
transition: background-color 0.2s;
}
.openwords-tag-history-delete:hover {
background-color: rgba(255, 255, 255, 0.5);
}