-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
119 lines (100 loc) · 1.84 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
* {
margin: 0;
padding: 0;
}
:root {
font-size: 1.5vw;
background: #313131;
color: #f1f1f1;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@media (min-width: 1024px) {
:root {
font-size: 1vw;
}
}
body {
max-width: 1920px;
overflow-x: hidden;
padding-bottom: 2rem;
}
nav {
width: 100%;
margin: 0 auto;
padding: 1rem 0;
color: white;
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
}
a {
padding: .25rem .75rem;
background: rgba(255, 255, 255, 0.1);
color: inherit;
text-decoration: none;
border-radius: .25rem;
transition: background .5s;
font-size: 2.5rem;
}
@media (min-width: 1024px) {
a {
font-size: 1rem;
}
}
a.active {
background: rgba(255, 255, 255, 0.2);
}
main {
display: flex;
gap: 1rem;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
transform: translateX(0);
transition: transform 1s cubic-bezier(.19,1,.22,1) 0s;
-webkit-transition: transform 1s cubic-bezier(.19,1,.22,1) 0s;;
will-change: transform;
}
main.left {
transform: translateX(61rem);
}
main.center {
transform: translateX(0);
}
main.right {
transform: translateX(-61rem);
}
section {
flex-shrink: 0;
position: relative;
border-radius: .5rem;
width: 60rem;
overflow: hidden;
min-height: 100svh;
background: #202020;
font-size: small;
transition: all .5s;
}
section:not(.active) {
transform: translateY(2rem);
/* opacity: 0.5; */
}
section > div {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
transition: all 1s;
}
img {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
z-index: 0;
}
p {
z-index: 1;
}