forked from isyfmnp/isyf23
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschs.css
136 lines (109 loc) · 2.16 KB
/
schs.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
.accentdot,
.shadow,
.box:before {
background: linear-gradient(to bottom left, #6DDA00 0%, #FFE600 100%);
}
.shadow {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.footer div iconify-icon {
color: #6DDA00;
}
/* page content */
.schs-wrapper {
padding: 100px 50px;
display: grid;
justify-items: center;
gap: 2rem;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.schs-wrapper img {
width: 150px;
display: inline-block;
}
.sch {
position: relative;
text-align: center;
}
.overlay-text {
font-size: 1.5rem;
/* white overlay background */
color: transparent;
width: 100%;
height: 100%;
transition: 0.2s ease-in-out;
/* center text within overlay */
display: flex;
align-items: center;
/* center overlay */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.overlay-text:hover {
color: black;
background-color: #ffffff;
opacity: 0.8;
}
.schlist {
width: 100%;
}
.schlist div {
position: relative;
height: 100px;
margin-top: 50px;
}
.schlist div img {
height: 100px;
position: absolute;
top: 0px;
left: 0px;
}
.schlist div p {
font-size: 1.5rem;
position: absolute;
margin: 0;
top: 50%;
left: 130px;
transform: translateY(-50%);
}
@media screen and (max-width: 1024px) {
.schs-wrapper {
padding: 50px 25px;
gap: 1rem;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.schs-wrapper img {
width: 120px;
margin-top: 30px;
margin-bottom: 30px;
}
.overlay-text {
font-size: 1.2rem;
}
}
@media screen and (max-width: 768px) {
.schs-wrapper {
padding: 50px 25px;
gap: 1rem;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.schs-wrapper img {
width: 90px;
margin-top: 30px;
margin-bottom: 30px;
}
.overlay-text {
font-size: 1rem;
}
.schlist div p {
font-size: 1.25rem;
}
}
@media screen and (max-width: 576px) {
.schs-wrapper {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
}