-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
389 lines (335 loc) · 6.83 KB
/
style.css
File metadata and controls
389 lines (335 loc) · 6.83 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
/* === FONT === */
@font-face {
font-family: "DecimaMono";
src: url("fonts/DecimaMono.ttf") format("truetype");
font-display: block;
}
/* === RESET/BASE === */
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
/* Tweak these to adjust widths/position */
--left-col-min: 480px; /* wider min column */
--left-col-ideal: 36vw; /* % of viewport */
--left-col-max: 880px; /* absolute cap */
--hero-right-gap: 280px; /* space between image and right edge */
--hero-height: 100vh; /* full viewport height */
--hero-translate-x: 0px; /* fine nudge horizontally */
--hero-translate-y: 0px; /* fine nudge vertically */
--skeleton-base: #efefef;
--skeleton-glow: rgba(255, 255, 255, 0.92);
}
body {
font-family: "DecimaMono", monospace;
background: white;
margin: 0;
padding: 0;
color: black;
}
/* === LAYOUT === */
.container {
display: grid;
grid-template-columns: clamp(
var(--left-col-min),
var(--left-col-ideal),
var(--left-col-max)
)
1fr;
column-gap: clamp(16px, 3vw, 48px);
align-items: start;
}
.left-column {
padding: 58px 60px;
font-size: 12px;
letter-spacing: 0px;
line-height: 1.17;
}
/* Fixed right panel, always centered vertically */
.right-fixed {
position: fixed; /* anchor to viewport */
top: 50%; /* push to vertical middle */
right: var(--hero-right-gap);
transform: translate(
var(--hero-translate-x),
calc(-50% + var(--hero-translate-y))
);
z-index: 1;
}
/* Wrap that matches the image size (so the mask aligns perfectly) */
.hero-wrap {
position: relative;
display: inline-block;
min-width: 520px;
min-height: 720px;
}
/* The visible image */
.hero-img {
display: block;
max-height: var(--hero-height); /* now 100vh */
width: auto;
height: auto;
pointer-events: none; /* clicks go to masked link */
opacity: 0;
transition: opacity 0.35s ease;
}
body.hero-ready .hero-img {
opacity: 1;
}
.hero-skeleton {
position: absolute;
inset: 0;
border: 1px solid #e5e5e5;
background: linear-gradient(135deg, #f8f8f8 0%, #ebebeb 100%);
transition: opacity 0.35s ease;
}
body.hero-ready .hero-skeleton {
opacity: 0;
pointer-events: none;
}
.skeleton-block {
margin-bottom: 1.6rem;
}
.skeleton-intro {
margin-bottom: 2rem;
}
.skeleton-line,
.skeleton-label,
.skeleton-tile,
.hero-skeleton {
position: relative;
overflow: hidden;
background-color: var(--skeleton-base);
}
.skeleton-line::after,
.skeleton-label::after,
.skeleton-tile::after,
.hero-skeleton::after {
content: "";
position: absolute;
inset: 0;
transform: translateX(-100%);
background: linear-gradient(
90deg,
transparent 0%,
transparent 35%,
var(--skeleton-glow) 50%,
transparent 65%,
transparent 100%
);
animation: skeleton-shimmer 1.35s ease-in-out infinite;
}
.skeleton-label {
width: 112px;
height: 11px;
margin-bottom: 0.45rem;
}
.skeleton-line {
width: 100%;
height: 10px;
margin-bottom: 0.3rem;
}
.skeleton-line-wide {
width: 94%;
}
.skeleton-line-short {
width: 62%;
}
.skeleton-grid {
display: grid;
grid-template-columns: repeat(6, 50px);
gap: 2px;
}
.skeleton-tile {
width: 50px;
height: 50px;
}
@keyframes skeleton-shimmer {
100% {
transform: translateX(100%);
}
}
/* Clickable silhouette exactly over the image */
.masked-link {
position: absolute;
inset: 0;
display: block;
/* Only opaque pixels clickable */
-webkit-mask: url("images/right-image.png") no-repeat 0 0;
mask: url("images/right-image.png") no-repeat 0 0;
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
/* Tiny transparent bg to capture clicks */
background: rgba(0, 0, 0, 0.001);
z-index: 2;
}
/* Keep default arrow over the right image even though it's clickable */
.masked-link,
.masked-link:hover {
cursor: default;
}
/* === CATEGORY BLOCKS === */
.category {
margin-bottom: 1.5rem;
}
.category-title {
font-weight: bold;
margin-bottom: 0.3rem;
}
/* === INTRO BLOCK === */
.intro-text {
margin-bottom: 2rem;
width: 100%;
box-sizing: border-box;
}
.intro-header {
display: flex;
justify-content: space-between;
font-weight: normal;
margin: 0;
padding: 0;
line-height: 1.17;
width: 100%;
box-sizing: border-box;
}
.intro-body {
text-align: justify;
margin: 0;
padding: 0;
line-height: 1.17;
width: 100%;
box-sizing: border-box;
}
.inline-category {
margin-bottom: 0;
}
.inline-category strong {
font-weight: bold;
}
/* === DEFAULT P-TYPE GRID (Games, etc.) === */
.p-grid-container {
display: grid;
grid-template-columns: repeat(6, 50px);
grid-auto-rows: auto;
column-gap: 2px;
row-gap: 2px;
}
.p-grid-container img,
.p-grid-container .placeholder {
width: 50px;
height: auto;
object-fit: contain;
background-color: white;
display: block;
}
/* === CATEGORY-SPECIFIC GRID SIZES === */
.fragrances-grid {
grid-template-columns: repeat(6, 40px);
}
.fragrances-grid img,
.fragrances-grid .placeholder {
width: 30px;
height: auto;
}
.epsAlbums-grid {
grid-template-columns: repeat(5, 60px);
}
.epsAlbums-grid img,
.epsAlbums-grid .placeholder {
width: 60px;
height: 60px;
object-fit: cover;
}
/* === PLACEHOLDERS === */
.placeholder {
background: #888;
display: flex;
align-items: center;
justify-content: center;
font-size: 7px;
color: #fff;
}
/* === TEXT ROWS === */
.item {
display: flex;
justify-content: space-between;
align-items: center;
white-space: nowrap;
}
/* === DESIGNER GRID === */
.designer-grid {
display: grid;
grid-template-columns: repeat(auto-fill, 100px);
gap: 2px;
}
.designer-grid img,
.designer-grid .placeholder {
width: 100px;
height: 40px;
object-fit: contain;
}
.designer-grid .placeholder {
background: #ccc;
display: flex;
align-items: center;
justify-content: center;
font-size: 8px;
color: #555;
}
/* === COLOUR SWATCH === */
.color-swatch {
width: 10px;
height: 10px;
margin-left: 0px;
border: 1px solid #000;
flex-shrink: 0;
flex-grow: 0;
align-self: center;
box-sizing: content-box;
}
/* === FONTS PREVIEW === */
.font-preview {
font-size: 14px;
}
.runway-item {
white-space: nowrap;
}
.fonts-item {
display: inline-block;
white-space: pre;
width: 100%;
}
/* === LINKS === */
a {
color: inherit;
text-decoration: none;
}
/* Keep hand cursor for normal links, not the masked one */
a:hover:not(.masked-link) {
text-decoration: none;
cursor: pointer;
}
/* === CUSTOM CURSOR === */
.custom-cursor {
position: fixed;
min-width: 24px;
height: auto;
padding: 6px 8px;
background: black;
color: white;
font-size: 14px;
font-family: inherit;
white-space: nowrap;
border-radius: 0px;
pointer-events: none;
z-index: 9999;
display: none;
}
.last-updated {
font-size: 10px;
opacity: 1;
margin-top: 2rem;
}
/* Note: mobile rotate hack removed (you already block mobile) */