forked from heygsc/word-wind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
306 lines (276 loc) · 5.37 KB
/
index.css
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
@media (min-width: 48px) {
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow-x: hidden; /* 防止横向滚动 */
}
body {
background-image: url('/wallhaven-m3eyyk.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
/* 主容器 */
.hello {
position: absolute;
width: 90%; /* 使用百分比,使其适应不同屏幕 */
max-width: 500px; /* 设置最大宽度,防止在大屏幕上过宽 */
height: auto; /* 高度自动适应内容 */
background-color: rgba(255, 228, 196, 0.7);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 20px;
padding: 20px; /* 为内容添加内边距 */
box-sizing: border-box;
}
/* 作者信息的容器 */
.author {
box-sizing: border-box;
position: relative; /* 改为相对定位,更适合响应式布局 */
top: 0;
height: auto;
width: 100%; /* 宽度设置为100% */
background-color: orange;
padding: 10px;
border-radius: 10px;
text-align: center; /* 内容居中 */
margin-bottom: 20px; /* 底部添加间距 */
}
.newpage {
text-decoration: none;
font-size: 1.2rem;
}
、
/* 按钮区域 */
.button {
display: flex;
justify-content: space-between;
margin: 20px 0;
}
.inbutton {
flex: 1;
margin: 0 10px; /* 按钮之间添加间距 */
height: 50px; /* 固定高度 */
border: 0;
border-radius: 10px;
font-size: 1.5rem;
color: rgba(0, 0, 0, 0.7);
cursor: pointer;
}
.left {
background-color: rgb(250, 143, 113);
}
.left:hover {
background-color: rgba(250, 143, 113, 0.7);
}
.right {
background-color: rgb(129, 214, 207);
}
.right:hover {
background-color: rgba(129, 214, 207, 0.7);
}
.makenot {
width: 100%; /* 宽度设置为100% */
height: 50px;
margin: 20px 0;
border: 0;
border-radius: 10px;
font-size: 1.5rem;
color: rgba(0, 0, 0, 0.7);
background-color: rgb(248, 232, 174);
cursor: pointer;
}
/* 单词展示 */
.word {
font-size: 2rem; /* 调整字体大小以适应屏幕 */
text-align: center;
}
/* 右上角固定按钮 */
.github-corner {
width: 50px;
height: 50px;
}
@media (min-width: 768px) {
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
background-image: url('/wallhaven-m3eyyk.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.hello{
position: absolute;
width: 500px;
height: 300px;
background-color:rgba(255,228,196,0.7);
top: 50%;
left: 50%;
transform: translate(-50%, -90%);/* 向右x,向下y */
border-radius:20px;
}
.author{
box-sizing: border-box;
position: fixed;
top: 100px;
height: 60px;
width: 230px;
background-color:orange;
margin-left: -390px;
padding-top: 17px;
border-radius: 10px;
}
.newpage {
padding-left: 13px;
text-decoration: none;
font-size: 20px;
}
a:hover {
color: black;
}
.button{
position: fixed;
width: 500px;
height: 100px;
top: 330px;
}
.inbutton{
width: 200px;
height: 80px;
border: 0;
border-radius:10px;
font-size: 2rem;
color: rgba(0,0,0,0.7);
cursor: pointer;
}
.left{
float: left;
background-color:rgb(250,143,113);
}
.left:hover{
background-color:rgba(250,143,113,0.7);
}
.right{
float: right;
background-color:rgb(129,214,207);
}
.right:hover {
background-color: rgba(129,214,207,0.7);
}
.makenot{
position: fixed;
width: 500px;
height: 100px;
top: 450px;
left: 0;
border: 0;
border-radius: 10px;
font-size: 2rem;
color: rgba(0, 0, 0, 0.7);
background-color:rgb(248,232,174);
cursor: pointer;
}
.word{
font-size: 50px;
}
#map0{
position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
}
#map1{
margin-left: 30px;
font-size: 20px;
}
.notlist{
position: fixed;
width: 250px;
height: 600px;
top: -50px;
left: 670px;
border-radius: 10px;
padding: 10px;
background-color: rgba(255, 228, 196, 0.7);
overflow-y: scroll;/* 滚轮 */
}
.now{
position: fixed;
width: 450px;
height: 100px;
top: 230px;
left: -495px;
border-radius: 10px;
background-color: rgb(254,167,141);
}
.nownum{
padding-left: 13px;
font-size: 30px;
font-weight: 300;
}
.x{
width: 40px;
height: 20px;
border: 0;
border-radius: 5px;
background-color:rgb(230,206,230);
cursor: pointer;
}
.change{
width: 80px;
height: 50px;
border-radius: 10px;
cursor: pointer;
box-sizing: border-box;
padding-left: 23px;
padding-top: 12px;
color: snow;
}
.junior{
position: fixed;
top: 420px;
left: -480px;
background-color: #de283b;
}
.senior{
position: fixed;
top: 420px;
left: -370px;
background-color: #ff6366;
}
.cet4{
position: fixed;
top: 420px;
left: -260px;
background-color: #FFD700;
}
.cet6{
position: fixed;
top: 420px;
left: -150px;
background-color: #00E5FF;
}
.postgraduate{
position: fixed;
top: 500px;
left: -425px;
background-color: #c69fff;
}
.toefl{
position: fixed;
top: 500px;
left: -315px;
background-color: #ff8e8c;
}
.sat {
position: fixed;
top: 500px;
left: -205px;
background-color: #86efac;
padding-left: 25px;
}