forked from wsmdn/wsmdn.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
351 lines (298 loc) · 7.6 KB
/
style.css
File metadata and controls
351 lines (298 loc) · 7.6 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
transition: background-color 0.3s ease;
}
.container {
display: flex;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
width: 150px;
height: 100%;
background-color: #f2f2f2;
padding: 20px;
overflow-y: auto;
transition: background-color 0.3s ease;
}
.logo {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
.navigation {
list-style: none;
padding: 0;
margin: 0;
}
.navigation a {
display: block;
text-decoration: none;
color: #333;
padding: 8px 16px;
margin-bottom: 10px;
border-radius: 4px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.navigation a:hover {
background-color: #ddd;
color: #000;
}
#toggle-theme {
padding: 10px 20px;
border: none;
background-color: #007bff;
color: #fff;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}
#toggle-theme:hover {
background-color: #0056b3;
}
.content {
padding: 20px;
margin-left: 145px;
transition: margin-left 0.3s ease;
}
.section {
margin-bottom: 30px;
}
.dark-theme {
background-color: #333;
color: #fff;
}
.dark-theme .sidebar {
background-color: #444;
}
.dark-theme .navigation a {
color: #fff;
}
.custom-button {
display: inline-block;
padding: 10px 20px;
background-color: #accfe3;
color: #fff;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.custom-button:hover {
background-color: #bdd481;
}
/* 自定义滚动条的宽度和背景 */
::-webkit-scrollbar {
width: 12px; /* 调整滚动条的宽度 */
background-color: #f5f5f5; /* 滚动条的背景颜色 */
}
/* 自定义滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
background: #888; /* 滑块的背景颜色 */
border-radius: 6px; /* 滑块的圆角 */
}
/* 自定义滚动条滑块的悬停效果 */
::-webkit-scrollbar-thumb:hover {
background: #555; /* 悬停时滑块的背景颜色 */
}
/* 自定义滚动条的轨道 */
::-webkit-scrollbar-track {
background: #fff; /* 轨道的背景颜色 */
border-radius: 6px; /* 轨道的圆角 */
}
/* 自定义滚动条的轨道悬停效果 */
::-webkit-scrollbar-track:hover {
background: #f5f5f5; /* 悬停时轨道的背景颜色 */
}
/* 弹窗样式 */
.popup {
position: fixed;
bottom: 20px;
right: 20px;
width: 300px;
border: 1px solid #ccc;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 1000;
display: none; /* 默认不显示 */
}
.ad-content {
padding: 10px;
position: relative;
}
.responsive-image {
width: 100%; /* 使图片宽度适应容器宽度 */
height: auto; /* 高度自动,保持图片比例 */
display: block; /* 防止图片下方出现空隙 */
max-width: 100%; /* 确保图片不会超过容器宽度 */
}
.close-btn {
position: absolute;
top: 5px;
right: 5px;
background-color: transparent;
border: none;
cursor: pointer;
font-size: 24px;
color: #aaa;
}
/* 鼠标悬停时改变关闭按钮的颜色 */
.close-btn:hover {
color: #333;
}
/* 显示弹窗 */
.show-popup {
display: block;
}
/* 为按钮添加样式 */
.stylish-button {
background-color: #4CAF50; /* 绿色背景 */
color: white; /* 白色文字 */
padding: 10px 20px; /* 上下10px,左右20px的内边距 */
border: none; /* 移除边框 */
border-radius: 5px; /* 圆角边框 */
cursor: pointer; /* 鼠标悬停时变为手指形状 */
transition: background-color 0.3s ease; /* 背景颜色变化的过渡效果 */
outline: none; /* 移除焦点时的轮廓线 */
}
/* 按钮悬停时的样式 */
.stylish-button:hover {
background-color: #45a049; /* 悬停时变暗的绿色背景 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 悬停时的阴影效果 */
}
/* 按钮被激活(如点击时)的样式 */
.stylish-button:active {
background-color: #3e8e41; /* 点击时更深的绿色背景 */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 点击时的阴影效果 */
transform: translateY(2px); /* 点击时按钮下移的视觉效果 */
}
.ip-info-container {
position: absolute;
top: 0;
right: 0;
background-color: #ffffff;
padding: 10px;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
z-index: 1000; /* 确保信息框显示在内容上方 */
}
.ip-info, .device-count {
margin-bottom: 5px;
font-size: 14px;
color: #333;
}
.aspect-ratio {
position: relative;
width: 100%;
height: 0;
padding-bottom: 75%;
}
.aspect-ratio iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.container{
width: 600px;
}
.mes-board{
margin: 25px 0;
padding: 10px;
background-color: gray;
}
.mes-board li{
padding: 0.7em;
list-style: none;
}
.mes-board li + li {
border-top: 1px dashed #ffffff;
}
.mes-board h4{
display: inline;
margin-right: 10px;
font-weight: 400px;
color: #000000;
}
.mes-board small{
color: #999999;
float: right;
}
.mes-board div{
padding: 0.4em 0;
text-align: justify;
font-size: 12px;
margin-top: 10px;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4; /* 背景色可以根据图片调整 */
}
.game-container {
text-align: left;
background-color: #fff; /* 背景色可以根据图片调整 */
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 阴影效果可以根据图片调整 */
margin-bottom: 20px; /* 与页面其他部分的间距 */
}
.game-title {
font-size: 24px;
font-weight: bold;
margin: 0 0 10px 0; /* 下方间距 */
}
.game-info {
font-size: 16px;
margin: 0 0 10px 0; /* 下方间距 */
}
.game-link-container {
display: flex; /* 使用Flexbox布局 */
gap: 10px; /* 在链接之间添加间距 */
align-items: center; /* 垂直居中对齐 */
}
.game-link-container p {
display: flex;
align-items: center; /* 垂直居中对齐 */
margin-right: 10px; /* 在按钮之间添加间距 */
}
.game-link-container p:last-child {
margin-right: 0; /* 最后一个元素不需要右边距 */
}
.game-link {
padding: 10px 20px;
background-color: #4ca0af; /* 背景色可以根据图片调整 */
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease; /* 平滑过渡效果 */
}
.game-link:hover {
background-color: #45a049; /* 悬停时的背景色可以根据图片调整 */
}
.body-container {
text-align: middle;
background-color: #fff; /* 背景色可以根据图片调整 */
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 阴影效果可以根据图片调整 */
margin-bottom: 0px; /* 与页面其他部分的间距 */
}
.aspect-ratio {
position: relative;
width: 100%;
height: 0;
padding-bottom: 75%;
}
.aspect-ratio iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}