-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
129 lines (118 loc) · 1.99 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
*{
margin: 0;padding: 0;
}
/* @font-face {
font-family: 'Source Han Sans SC VF';
src: url('./asset/font/SourceHanSansSC-VF.otf');
}*/
html{
scroll-behavior: smooth;
}
body{
font-family: 'Noto Sans' ,serif;
/* font-family: 'Source Han Sans SC VF', serif; */
}
nav{
height: 50px;
width: 100%;
margin-bottom: 20px;
background-color: #efefef;
}
.nav-box{
height: 50px;
width: 100%;
position: fixed;
backdrop-filter: brightness(100%) saturate(100%) blur(15px);
z-index: 1000;
}
.nav-box h1{
position: fixed;
display: inline-block;
line-height: 50px;
padding-left: 20px;
cursor: pointer;
}
h2{
color: #08CD7C;
text-align: center;
margin: 10px 0 50px 0;
}
.box{
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
margin-bottom: 50px;
}
@media screen and (max-width: 300px){
.box{
flex-direction: column;
}
.box div{
max-width: 300px;
}
}
@media screen and (min-width: 300px) and (max-width: 500px) {
.box{
flex-direction: column;
}
.box div{
max-width: 400px;
}
.stData .box div{
max-width: 400px;
max-height: 400px;
}
}
@media screen and (min-width: 501px) and (max-width: 1200px) {
.box{
flex-direction: column;
}
}
/* @media screen and (min-width: 1201px) {
::-webkit-scrollbar{
width: 6px;
height: 300px;
}
::-webkit-scrollbar-thumb{
background: linear-gradient(#08CD7C,#5747F7,#FFBE22,#00EFFF);
border-radius: 3px;
transition: 2s;
}
::-webkit-scrollbar-thumb:hover{
background: linear-gradient(#00EFFF,#FFBE22,#5747F7,#08CD7C);
}
} */
.bottom-box{
margin-bottom: 80px;
}
/* <hr /> */
.hr-top{
transform: translateY(-20px);
border: 2px solid #555555;
}
.hr-bottom{
border: 1px solid #607070;
}
/* 返回顶部按钮 */
.to-top{
cursor: pointer;
position: fixed;
bottom: 20px;right: 20px;
/* animation: toTopMove 1s linear infinite; */
}
.to-top svg{
opacity: 0.4;
transition: opacity 0.3s ease;
}
.to-top:hover svg{
opacity: 1;
}
@keyframes toTopMove {
0%{
bottom: 20px;
}
100%{
bottom: 70%;
}
}