-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_index.css
161 lines (136 loc) · 2.6 KB
/
main_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
.ad {
position: absolute;
top: 450px;
right: 20px;
background-color: #ffff00;
text-align: center;
border-radius: 100px 50px 0px 100px;
box-shadow: 4px 4px 8px 4px rgba(0, 0, 0, 0.2);
z-index: 8;
}
/* 当视口宽度小于768px时,隐藏元素 */
@media (max-width: 1100px) {
.ad {
display: none;
/* 隐藏元素 */
}
}
*::selection {
background-color: #d4f5f9;
color: #5fd179;
}
i {
color: purple;
}
body div div ul li {
background-color: #86ddc5;
border-radius: 10px;
padding: 10px;
margin: 10px;
}
.ad-banner {
position: fixed;
top: 100px;
right: 10px;
width: 200px;
padding: 10px;
background-color: #ffc859;
box-shadow: 4px 4px 8px 4px rgba(0, 0, 0, 0.2);
border-radius: 50px 50px 0px 50px;
text-align: center;
cursor: pointer;
z-index: 10;
animation: appear 1s ease-in-out;
}
.close-btn {
font-size: 20px;
color: #000;
cursor: pointer;
}
@keyframes appear {
0% {
opacity: 0;
transform: scale(0.5);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.board {
margin: 10px;
width: 60%;
height: 1300px;
position: relative;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
width: 300px;
overflow: hidden;
border-radius: 5px;
background-color: #defff1;
margin: 10px;
animation: appear 1s ease-in-out;
display: inline-block;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card-content {
padding: 2px 16px;
}
.card-title {
color: #003aaf;
}
.card-text {
color: #555;
}
/*
::-webkit-scrollbar {
display: none;
}
*/
.to_a {
/*to文章中心*/
top: 420px;
left: 55%;
position: absolute;
padding: 20px;
width: 180px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
border-radius: 5px;
background-color: #defff1;
animation: appear 1s ease-in-out;
}
.to_a:hover {
box-shadow: 8px 8px 16px 8px rgba(0, 0, 0, 0.2);
}
.time {
background-color: white;
}
/*滚动条样式*/
/* 自定义滚动条整体样式 */
::-webkit-scrollbar {
width: 10px;
/* 设置滚动条的宽度 */
height: 10px;
}
/* 自定义滚动条轨道样式 */
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0);
/* 设置轨道的背景颜色 */
}
/* 自定义滚动条滑块样式 */
::-webkit-scrollbar-thumb {
background: #bebebe;
/* 设置滑块的背景颜色 */
border-radius: 10px;
/* 设置滑块的边角半径 */
}
/* 鼠标悬停时滑块的样式 */
::-webkit-scrollbar-thumb:hover {
background: #a1a1a1;
/* 设置鼠标悬停时滑块的背景颜色 */
}