-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
127 lines (114 loc) · 2.01 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@font-face {
font-family: "Helvetica Neue";
src: url(./fonts/helveticaneue.woff2);
}
html,
body {
width: 100%;
height: 100%;
background: #000;
overflow: hidden;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
user-select: none;
}
.logo {
position: fixed;
left: 50%;
transform: translateX(-50%);
width: 20%;
margin: 2em auto;
padding: 8px 0;
text-align: center;
background-color: rgba(255, 255, 255, 0.25);
border: 1px solid rgba(255, 255, 255, 0.125);
backdrop-filter: blur(10px);
border-radius: 8px;
z-index: 2;
}
.logo p {
text-transform: uppercase;
font-family: "Helvetica Neue", sans-serif;
font-size: 12px;
font-weight: 500;
user-select: none;
color: #fff;
}
.pads {
position: fixed;
left: 50%;
bottom: 2em;
transform: translateX(-50%);
padding: 0 4px;
display: flex;
gap: 0.2em;
background-color: rgba(255, 255, 255, 0.25);
border: 1px solid rgba(255, 255, 255, 0.125);
backdrop-filter: blur(10px);
border-radius: 8px;
z-index: 2;
}
.pads button {
opacity: 1;
outline: none;
border: none;
background: none;
padding: 8px;
transition: 0.5s opacity;
pointer-events: all;
}
.pads button.active {
opacity: 0.5;
pointer-events: none;
}
button:hover {
cursor: pointer;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 150vw;
height: 150vh;
overflow: visible;
}
.gallery {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 4px;
padding: 4px;
transform-origin: center center;
will-change: transform;
}
.img {
width: calc((100% - 236px) / 60);
transform: scale(0);
transform-origin: center center;
will-change: transform;
pointer-events: none;
opacity: 0;
}
#drag-layer {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: none;
touch-action: none;
z-index: 1;
}