-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex4.css
More file actions
175 lines (151 loc) · 3.03 KB
/
Copy pathindex4.css
File metadata and controls
175 lines (151 loc) · 3.03 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Courier New', Courier, monospace;
}
/* 标题 */
.h {
width: 100%;
position: sticky;
top: 0;
background-color: #ffffff;
z-index: 1;
}
.h h1 {
text-align: center;
padding-top: 80px;
margin-bottom: 80px;
font-weight: bold;
position: relative;
background-color: #ffffff;
}
.h h1::after {
content: '';
background: green;
width: 50px;
height: 5px;
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
}
/* 网格布局 */
.module {
width: 100%;
height: auto;
padding: 0 10%;
background-color: white;
margin-bottom: 150px;
}
.module_layout {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 50px;
}
.service_option {
height: 128px;
margin-top: 20px;
transition: transform .5s ease-out;
text-align: center;
padding-top: 15px;
color: #000;
}
/* 去除a标签自带下划线 */
.module_layout a {
text-decoration: none;
/* overflow: hidden; */
/* position: relative; */
/* z-index: 0; */
}
.service_option {
background: transparent;
/* border: 1px solid purple; */
/* color: purple; */
padding: 10px 20px;
border-radius: 20px;
font-weight: bold;
transition: all 1s ease-o;
overflow: hidden;
position: relative;
z-index: 0;
}
.service_option::before{
content: '';
display: block;
width: 0%;
height: 100%;
/* background: purple; */
background-image: linear-gradient(90deg,
#ff00ff 0%, #8c00ff 33%,
#00d5ff 66%, #00fff2 100%);
position: absolute;
top: 0;
left: 0;
transition: all 1s ease-out;
z-index: -1;
left: -30px;
}
/* 悬停后调用 before 并增加宽度 */
.service_option:hover::before{
width: 150%;
}
/* 设置颜色 */
.service_option:hover{
color: white;
cursor: pointer;
transition: all 1s ease-out;
}
.service_option i {
font-size: 40px;
padding-top: 15px;
}
.service_option h3 {
padding-top: 5px;
}
/* 悬停改变颜色 */
/* .service_option:hover {
background-color: #25AD99;
transform: scale(1.03);
border-radius: 10px;
transition: all .5s ease-out;
} */
.service_option:hover .h {
z-index: 1;
}
.service_option:hover h3 {
color: white;
transition: all .5s ease-out;
}
.service_option:hover i {
color: white;
transition: all .5s ease-out;
}
/* 隐藏标签end */
.end_div {
display: flex;
justify-content: center;
align-items: center;
position: sticky;
bottom: 0px;
z-index: -1;
}
.end_div .end {
width: 50%;
height: 120px;
/* background-color: #d22d2dd8; */
background-image: linear-gradient(90deg,
#ff0000 0%, #ff00ff 33%,
#5500ff 66%, #0000ff 100%);
justify-content: center;
align-items: center;
display: flex;
border-radius: 20px;
}
.end h1 {
color: white;
}
/* 底块 */
.end_end {
height: 150px;
}