-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyle.css
100 lines (83 loc) · 1.55 KB
/
style.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
:root {
--text: black;
--background: antiquewhite;
--padding: 50px;
--line-width: 2px;
}
body {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 calc(var(--padding) * 2) var(--padding);
color: var(--text);
background: var(--background);
font-family: "Open Sans", sans-serif;
font-size: 1.5rem;
}
main {
width: 100%;
display: grid;
grid-gap: calc(var(--padding) / 2);
grid-template-columns: 1fr 1fr;
grid-auto-rows: 40vw;
}
main .sketch-entrance {
display: block;
position: relative;
}
.sketch-entrance > div {
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: transparent;
transition: backdrop-filter 0.2s, color 0.2s;
}
.sketch-entrance > div:hover {
color: white;
backdrop-filter: blur(10px);
}
.sketch-entrance > img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
footer {
width: 100%;
display: flex;
justify-content: center;
margin-top: var(--padding);
/* border-top: var(--line-width) solid var(--text); */
padding-top: var(--padding);
}
footer > a {
transition: opacity 0.2s;
}
footer > a:hover {
opacity: 0.5;
}
footer > a > img {
width: var(--padding);
}
footer > * + * {
margin-left: var(--padding);
}
@media only screen and (max-width: 1000px) {
:root {
--padding: 25px;
}
body {
padding: var(--padding);
font-size: 1rem;
}
h1 {
font-size: 2rem;
}
}