-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
265 lines (200 loc) · 4.94 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
/*#region 根与全局*/
:root {
--nav-background : #f6f6f6;
--background-filter: blur(4px) opacity(80%);
--width-shadow : 2px 2px 8px rgb(0, 0, 0, 0.2);
--nav-text-color: black;
}
* {
margin : 0px;
padding: 0px;
}
body {
background-color: #f6f6f6;
}
/*#endregion*/
/*#region 网站默认a标签样式*/
a:not(.none-site-a) {
text-decoration: none;
color : rgb(44, 123, 93);
}
a.href-with-underline:not(.none-site-a) {
transition : border 0.25s;
border-bottom: 1px dashed rgb(1, 132, 128, 0);
}
a:not(.none-site-a):hover {
border-color: rgb(1, 132, 128);
}
/*#endregion*/
/*#region 背景相关*/
.background-container {
position: fixed;
width : 100%;
height : 100%;
z-index : -1;
overflow: hidden;
}
.background-container .background {
width : 100%;
height : 100%;
background-image: url('../res/heavy/background.webp');
background-size : cover;
transform-origin: center;
max-width : 100%;
max-height : 100%;
transform : scale(1.1);
filter: var(--background-filter);
}
/*#endregion*/
/*#region 导航栏*/
.nav-bar {
width : 100%;
height: 64px;
background-color: var(--nav-background);
box-shadow : var(--width-shadow);
}
.nav-bar>.nav-item {
display : inline-block;
height : 100%;
text-decoration: none;
padding: 0px 32px 0px;
}
.nav-bar>.nav-item.nav-right {
float: right;
}
.nav-bar>.nav-item .nav-text {
display : inline-block;
position : relative;
top : 50%;
left : 50%;
transform: translate(-50%, -50%);
color: var(--nav-text-color);
}
/*#endregion*/
/*#region 主要文字容器*/
.main-container .card p {
line-height: 1.8em;
font-size : 1.2em;
}
.main-container .card h4 {
line-height: 1.8em;
}
.main-container {
width : 70%;
margin: auto;
}
@media screen and (max-width:500px) {
.main-container {
width: 100%;
}
}
.main-container .card {
background-color: rgba(245, 245, 245, 0.75);
border : 1px solid rgb(141, 135, 255);
border-radius : 10px;
box-shadow : 0px 2px 5px rgba(0, 0, 0, 0.2);
padding: 14px 32px 14px;
margin : 32px;
}
.main-container hr {
margin-top : 8px;
margin-bottom: 8px;
}
.main-container .card .little {
font-size: 1em;
}
/*#endregion*/
/*#region 个人账号-下拉栏部分 */
.account-dropdown {
cursor: pointer;
}
.account-dropdown .dropdown-items {
list-style : none;
list-style-type: none;
overflow : hidden;
visibility : hidden;
position: absolute;
top : 100%;
left : 0%;
width: 100%;
opacity: 0;
border-radius: 0px 0px 8px 8px;
box-shadow : 0px 3px 5px rgba(0, 0, 0, 0.02);
transform-origin: 50% 0;
transform : translateY(-1em) scale(0.75);
transition :
opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
visibility 0.4s;
border: 1px solid rgb(214, 214, 214);
}
.account-dropdown:hover .dropdown-items {
visibility: visible;
opacity : 1;
transform: translateY(0);
}
.account-dropdown {
overflow: visible;
position: relative;
}
.account-dropdown .dropdown-items li {
box-sizing : border-box;
background-color: var(--nav-background);
text-align : center;
transition: background-color 0.2s;
}
.account-dropdown .dropdown-items li:hover {
background-color: rgb(222, 222, 222);
}
.account-dropdown .dropdown-items li .text {
display: block;
height : 100%;
width : 100%;
padding: 16px 0;
}
.account-dropdown-animation {
color : rgb(68, 104, 78);
display : inline-block;
transition: transform 0.314s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.account-dropdown:hover .account-dropdown-animation {
transform: rotate(90deg);
}
/*#endregion*/
/*#region 页面footer部分*/
footer {
width: 100%;
}
footer p {
text-align: center;
margin: 1em 0;
}
footer .copyright {
color: rgb(86, 86, 86)
}
footer .meo-icp {
font-size: 1.2em;
}
footer span strong {
color: rgb(82, 186, 139)
}
/*#endregion*/
/*#region 主卡片的a标签*/
.main-container a.main-link {
box-sizing: border-box;
display : inline-block;
position : relative;
top : 5px;
transform-origin: 0.5 0.5;
transition : transform 0.5s, border 0.5s;
width : 16px;
height: 1em;
border : 2px solid #badff4;
border-radius: 6px;
}
.main-container a.main-link:hover {
transform : rotate(180deg);
border : 2px solid #384f5d;
border-radius: 0px;
}
/*#endregion*/