-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle2.css
More file actions
84 lines (74 loc) · 1.35 KB
/
style2.css
File metadata and controls
84 lines (74 loc) · 1.35 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
* {
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem;
margin: 0;
background: #000;
color: #fff;
font-family: sans-serif;
}
header {
display: flex;
height: 8rem;
align-items: flex-end;
justify-content: center;
font-size: 2rem;
width: 100%;
max-width: 64rem;
margin-inline: auto;
}
h1 {
background: linear-gradient(0deg, #0032a8, #004cff);
color: white;
display: inline-block;
padding: 1rem;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0;
font-size: 3rem;
}
main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
gap: 1rem;
width: 100%;
max-width: 64rem;
margin-inline: auto;
}
a {
display: flex;
align-items: flex-end;
position: relative;
aspect-ratio: 1 / 1;
color: #fff;
text-decoration: none;
border-radius: 1rem;
overflow: hidden;
isolation: isolate;
transition: transform 0.2s;
} a > img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
} a > div {
display: flex;
padding: 1rem;
justify-content: center;
align-items: center;
width: 100%;
height: 50%;
background: #000c;
transition: opacity 0.2s;
font-size: 1.25rem;
text-align: center;
} a:hover {
transform: scale(1.05);
}