Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
3782 lines (3331 loc) · 104 KB
/
Copy pathstyles.css
File metadata and controls
3782 lines (3331 loc) · 104 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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Per-card values the renderer writes on the element that reads each one,
registered as not inherited. An unregistered custom property inherits, so
setting one on an element restyles everything inside it too; on a wall of
cards against Obsidian's stylesheet that turned a tile-size step into a
fifth of a second of restyling, and every hover into a frame or two.
Universal syntax keeps each var()'s fallback working where it is unset. */
@property --pg-s {
syntax: "*";
inherits: false;
}
@property --pg-rx {
syntax: "*";
inherits: false;
}
@property --pg-ry {
syntax: "*";
inherits: false;
}
@property --pg-h {
syntax: "*";
inherits: false;
}
@property --pg-band-h {
syntax: "*";
inherits: false;
}
@property --pg-steam-band {
syntax: "*";
inherits: false;
}
.oriko-view {
/* One floating surface, defined once. The selection toolbar is the
reference: every bar, menu and popup over the wall is the same material,
so they read as one system rather than four things that happen to be
dark. Change it here, not in the rules below. */
/* A panel sitting slightly above the wall, and not much more than that.
The specular rim and top sheen this replaced were the glossy part: they
read as varnish rather than as glass, and there is no version of that
which is subtle. Flat fill, one hairline, one soft shadow.
Tinted by the theme: the pane's own background lifted a touch toward its
text colour, so a blue or warm theme gets blue or warm glass instead of a
neutral grey slab. Text and washes come from that text colour too. */
--pg-ink: var(--text-normal);
--pg-glass-base: color-mix(in oklab, var(--background-primary) 93%, var(--pg-ink));
--pg-surface: color-mix(in oklab, var(--pg-glass-base) 84%, transparent);
--pg-surface-radius: 22px;
--pg-surface-pad: 10px;
/* Enough to separate the panel from a busy cover, no brightness pump. */
--pg-surface-blur: blur(24px) saturate(130%);
/* Barely there. The separation from the wall should come from the fill
being lighter than what is behind it, with the edge only just resolving
the boundary. At 0.075 it was drawing an outline, which puts the panel
in front of the wall rather than just above it. */
--pg-surface-ring: inset 0 0 0 1px color-mix(in srgb, var(--pg-ink) 7%, transparent);
/* Every value below is a role, not a colour, so the light theme can
restate the set without touching a single rule that uses them. The
alphas differ between themes on purpose: a wash that reads as a gentle
lift on a dark panel reads as a smudge on a light one. Quieter text is
the theme's text colour faded, not its own muted and faint colours: some
themes draw faint text barely off the background. */
--pg-surface-mid: color-mix(in srgb, var(--pg-ink) 76%, transparent);
--pg-surface-dim: color-mix(in srgb, var(--pg-ink) 52%, transparent);
--pg-surface-faint: color-mix(in srgb, var(--pg-ink) 42%, transparent);
--pg-inner-active: color-mix(in srgb, var(--pg-ink) 15%, transparent);
--pg-inner-press: color-mix(in srgb, var(--pg-ink) 24%, transparent);
--pg-inner-well: color-mix(in srgb, var(--pg-ink) 8%, transparent);
--pg-inner-chip: color-mix(in srgb, var(--pg-ink) 11%, transparent);
--pg-rule: color-mix(in srgb, var(--pg-ink) 13%, transparent);
--pg-scrim: rgba(0, 0, 0, 0.42);
--pg-peek-ring: rgba(255, 255, 255, 0.55);
--pg-stage-lift: 0 24px 70px rgba(0, 0, 0, 0.45);
/* Stronger than a label, which is what makes a matched run read as one. */
--pg-mark: #fff;
/* The plugin's own accent, not the vault's.
--color-accent is a user setting and can be any hue at any lightness, so
rules built on it have no contrast guarantee and occasionally land
somewhere ugly against a panel that is otherwise all greys. These two are
tuned per theme instead: lifted here so it reads against near-black,
deepened in light so it carries white. It stays chromatic because the
selection ring sits over arbitrary photographs, where white and black both
occur constantly and a neutral ring simply disappears. */
--pg-accent: #6ea8fe;
--pg-on-accent: #0b0d12;
/* Tile shadows are the thing that gives a light wall away fastest: an
alpha tuned against near-black is a bruise against white. */
--pg-tile-lift: 0 6px 18px rgba(0, 0, 0, 0.3);
/* The lift's own shape with no colour, worn at rest; see .pg-frame. */
--pg-tile-rest: 0 6px 18px rgba(0, 0, 0, 0);
--pg-tile-lift-selected: 0 8px 22px rgba(0, 0, 0, 0.38);
--pg-tile-lift-strong: 0 10px 26px rgba(0, 0, 0, 0.42);
/* Soft and close. A deep shadow ringed the panel in dark, which read as a
second outline underneath the first. */
--pg-surface-lift: 0 1px 6px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.16);
--pg-surface-text: var(--pg-ink);
/* Concentric: an inner corner should be the outer corner less the padding
between them, or the two curves fight each other at the corner. */
--pg-inner-radius: calc(var(--pg-surface-radius) - var(--pg-surface-pad));
--pg-inner-hover: color-mix(in srgb, var(--pg-ink) 10%, transparent);
position: relative;
height: 100%;
padding: 0;
/* clip, not hidden: hidden still leaves an element programmatically
scrollable, which is how focus, scrollIntoView and an overscrolling
child list kept dragging the whole stage around. clip makes it not a
scroll container at all, so the class of bug cannot recur. */
overflow: clip;
background: var(--background-primary);
display: flex;
flex-direction: column;
}
/* Obsidian carries the theme on the body, so the panels follow it with no
setting of ours and no flash on load. */
.theme-light .oriko-view {
/* Light glass lifts toward white, the way paper catches light, still
carrying the theme's own tint. */
--pg-glass-base: color-mix(in oklab, var(--background-primary) 70%, #fff);
--pg-surface: color-mix(in oklab, var(--pg-glass-base) 86%, transparent);
--pg-surface-ring: inset 0 0 0 1px color-mix(in srgb, var(--pg-ink) 9%, transparent);
--pg-surface-lift: 0 1px 6px rgba(0, 0, 0, 0.07), 0 8px 24px rgba(0, 0, 0, 0.09);
--pg-surface-mid: color-mix(in srgb, var(--pg-ink) 74%, transparent);
--pg-surface-dim: color-mix(in srgb, var(--pg-ink) 52%, transparent);
--pg-surface-faint: color-mix(in srgb, var(--pg-ink) 40%, transparent);
--pg-inner-hover: color-mix(in srgb, var(--pg-ink) 6%, transparent);
--pg-inner-active: color-mix(in srgb, var(--pg-ink) 9%, transparent);
--pg-inner-press: color-mix(in srgb, var(--pg-ink) 14%, transparent);
--pg-inner-well: color-mix(in srgb, var(--pg-ink) 5%, transparent);
--pg-inner-chip: color-mix(in srgb, var(--pg-ink) 7%, transparent);
--pg-rule: color-mix(in srgb, var(--pg-ink) 10%, transparent);
--pg-scrim: rgba(0, 0, 0, 0.25);
--pg-peek-ring: rgba(28, 28, 32, 0.6);
--pg-stage-lift: 0 20px 56px rgba(0, 0, 0, 0.18);
--pg-mark: rgba(10, 10, 12, 1);
--pg-accent: #2563c9;
--pg-on-accent: #ffffff;
--pg-tile-lift: 0 4px 14px rgba(0, 0, 0, 0.12);
--pg-tile-rest: 0 4px 14px rgba(0, 0, 0, 0);
--pg-tile-lift-selected: 0 6px 18px rgba(0, 0, 0, 0.16);
--pg-tile-lift-strong: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.pg-viewport {
flex: 1 1 auto;
position: relative;
overflow: hidden;
contain: strict;
overscroll-behavior: contain;
touch-action: none;
}
/* Drop target: drawn on the view rather than inside the viewport, so it frames
the whole wall including its chrome, and as pseudo-elements so it costs no
DOM at all until a drag actually arrives.
The scrim and the label are separate because the label shimmers, and a
shimmer is a gradient clipped to the glyphs. Clip the scrim's own element
and the scrim would be clipped to the letters along with it.
pointer-events stay off throughout. An overlay that could be hit would take
the dragover events itself, and the drop would land on a target that had
just stopped being able to hear about it. */
.oriko-view.is-drop-target::before {
content: "";
position: absolute;
inset: 10px;
z-index: 60;
border-radius: var(--pg-surface-radius);
background-color: var(--pg-scrim);
backdrop-filter: var(--pg-surface-blur);
-webkit-backdrop-filter: var(--pg-surface-blur);
pointer-events: none;
animation: pg-drop-in 140ms ease both;
}
/* The label is set by the view, which knows where the drop will actually
land: nothing is filed into a smart grid, so one on screen sends the
clipping home, and that is better said by the frame before the drop than by
a toast after it. */
.oriko-view.is-drop-target::after {
content: var(--pg-drop-label, "Drop to add");
position: absolute;
inset: 10px;
z-index: 62;
display: flex;
align-items: center;
justify-content: center;
color: var(--pg-surface-text);
font-size: 15px;
font-weight: 500;
letter-spacing: 0.01em;
pointer-events: none;
animation: pg-drop-in 140ms ease both;
}
/* A slow sweep from secondary to primary, lighting each letter as it reaches
it and letting it fall back behind.
Painted as a gradient clipped to the glyphs, so it is the letters that
change weight rather than a band drawn over them. The two colours are the
surface's own secondary and primary text, which is what makes it read as the
words waking up rather than as something coloured passing through: an accent
flare was tried first and looked like a effect, not like text.
Guarded, because the colour has to be transparent for the clip to show, and
text that cannot be clipped would then be text that cannot be read. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
.oriko-view.is-drop-target::after {
/* The range has to be wide or there is nothing to see. Secondary to
primary is 0.72 alpha to 0.88, which spread across half the label is a
change no eye picks up; this runs from a little over half opacity to the
surface's fullest mark, and narrows the band so the lift arrives as a
glint rather than a wash. */
/* Two glints to a tile, not one.
Slower and more often pull against each other while there is a single
band: one cycle carries the tile exactly one width, so the only way to
raise the cadence is to shorten the cycle, which speeds the travel up.
A second band in the same tile breaks the tie. The cycle can then be
lengthened, which slows the sweep, while a glint arrives every half
cycle rather than every whole one. */
background-image: linear-gradient(
90deg,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 0%,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 17%,
var(--pg-mark) 25%,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 33%,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 67%,
var(--pg-mark) 75%,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 83%,
color-mix(in srgb, var(--pg-surface-text) 58%, transparent) 100%
);
/* Tiled, not no-repeat. Outside a no-repeat image there is nothing to clip
to, so the letters the sweep had left behind were painting as nothing at
all rather than as secondary text. Both ends of the gradient are the
same colour, so the tiling seam is invisible. */
background-size: 200% 100%;
background-repeat: repeat;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation:
pg-drop-in 140ms ease both,
pg-drop-shimmer 4800ms linear infinite;
}
}
/* Exactly one background width per cycle, so every pass is the same pass and
the loop has no step in it. Right to left in position terms is left to right
on screen: an image wider than its box moves the other way. */
@keyframes pg-drop-shimmer {
from {
background-position: 100% 0;
}
to {
background-position: -100% 0;
}
}
/* The dashes, travelling slowly round the frame for as long as the file is
held over the wall. This is the state worth animating: the entrance is over
in a seventh of a second, and a drag sits here as long as it takes to aim.
Geometry in CSS rather than attributes, so the rect follows the frame at any
pane size without being measured. */
.pg-drop-frame {
display: none;
}
/* Covers the whole view, with the frame's inset carried by the rect instead.
An svg is a replaced element: given inset alone and width auto it does not
stretch to the box, it falls back to its intrinsic 300x150 and draws itself
in the corner. Sizing it outright and insetting the geometry is what avoids
that entirely. */
.oriko-view.is-drop-target .pg-drop-frame {
display: block;
position: absolute;
inset: 0;
z-index: 61;
width: 100%;
height: 100%;
pointer-events: none;
}
/* 11px, being the overlay's own 10px inset plus half the stroke, so the dashes
sit inside the frame the way a border would rather than straddling it.
The radius comes in by the same 1px. Two rounded corners inset differently
but given the same radius are not concentric: their curves diverge, the
stroke wanders off the scrim's corner, and what is behind the pane shows
through the gap between them. Only the corners were ever wrong, the
straights having nothing to be concentric about. */
.oriko-view.is-drop-target .pg-drop-frame rect {
x: 11px;
y: 11px;
width: calc(100% - 22px);
height: calc(100% - 22px);
rx: calc(var(--pg-surface-radius) - 1px);
fill: none;
stroke: var(--pg-accent);
stroke-width: 2;
/* Both set by the view, which measures the perimeter and rounds the period
to divide it evenly. The fallbacks are only ever seen if that measurement
fails, and carry the seam it exists to remove. */
stroke-dasharray: 5 6;
animation: pg-drop-march 1100ms linear infinite;
}
/* Exactly one period per cycle, so the loop closes on itself. */
@keyframes pg-drop-march {
to {
stroke-dashoffset: calc(var(--pg-drop-period, 11px) * -1);
}
}
@keyframes pg-drop-in {
from {
opacity: 0;
transform: scale(0.995);
}
to {
opacity: 1;
transform: scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.oriko-view.is-drop-target::before,
.oriko-view.is-drop-target::after,
.oriko-view.is-drop-target .pg-drop-frame rect {
animation: none;
}
/* Without the sweep the gradient parks mid-band, so the colour comes back
and the letters are simply the colour they always were. */
.oriko-view.is-drop-target::after {
background-image: none;
color: var(--pg-surface-text);
}
}
.pg-canvas {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
transform-origin: 0 0;
will-change: transform;
}
/* Space is held: the wall is ready to be grabbed. */
.pg-viewport.is-pannable,
.pg-viewport.is-pannable .pg-tile {
cursor: grab;
}
.pg-viewport.is-panning,
.pg-viewport.is-panning .pg-tile {
cursor: grabbing;
}
/* Dragging must not select text or start a native image drag. */
.pg-viewport.is-pannable {
user-select: none;
}
.pg-viewport.is-pannable .pg-media {
pointer-events: none;
}
/* Layout box only. Transparent and unclipped: the visible card is the frame
inside it, which is what lets selection expand without overlapping.
Deliberately not paint-contained, which would clip the selection ring
and shadow to the tile box. */
.pg-tile {
position: absolute;
top: 0;
left: 0;
contain: layout;
cursor: pointer;
}
.pg-frame {
position: absolute;
inset: 4px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 10px;
background: var(--background-secondary);
/* Perspective must lead the transform. The rotation vars are set by the
renderer from where the cursor sits on the card. */
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg))
scale(1);
/* Flat, deliberately: the card tips as one surface, so nothing inside it
needs a 3D context of its own. preserve-3d here gave the picture, the
pills and the band a composited layer each on every card on the wall,
several hundred in all, which the compositor walked on every frame. */
/* An outline, not a border or inset shadow: outlines paint above the
element's descendants, so the ring is not hidden by the image filling
the card. A negative offset keeps it inside the card edge, so it never
spends the gap the selection just expanded into. */
/* Width and offset move together so the ring always occupies exactly the
innermost band of the card edge. It has to stay within SELECT_LIFT (4),
or a selected card's ring spills into the gap its own lift just opened. */
outline: 3px solid transparent;
outline-offset: -3px;
/* The hover lift's shadow, already in place and fully transparent, so
lifting a card only fades it in. Grown from none, the blur passed through
every radius on the way, and the GPU builds a shader for each blur width
the first time it draws one: a pause of a tenth of a second or more, the
first time each card was hovered. */
box-shadow: var(--pg-tile-rest);
/* Resting state, so this is the transition that runs on the way OUT.
Long and soft, so a card settles back to flat instead of snapping. */
transition:
transform 460ms cubic-bezier(0.19, 1, 0.28, 1),
outline-color 220ms ease,
box-shadow 320ms ease;
}
.pg-media {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
opacity: 0;
transition: opacity 260ms ease;
}
.pg-media.is-loaded {
opacity: 1;
}
/* Hover reveals a handful of pills pinned to the corners, not a caption
band: the card stays a picture, and what the pills say is chosen in
Settings → Oriko → Show on tiles. Pointer events stay off so a pill can
never take a click meant for the card. */
.pg-meta {
position: absolute;
inset: 0;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
opacity: 0;
/* Hidden as well as transparent at rest, once the fade out has run. Each
pill blurs what is behind it, and a transparent pill still keeps its
own compositor layer for that, on every card; a hidden one keeps none. */
visibility: hidden;
transition:
opacity 120ms ease,
visibility 0s linear 120ms;
pointer-events: none;
}
/* Same reason as the tips: a tapped card would keep its hover state, and
the pills it reveals, long after the finger had gone. */
@media (hover: hover) {
.pg-tile:hover .pg-meta {
opacity: 1;
visibility: visible;
transition:
opacity 120ms ease,
visibility 0s;
}
}
/* At the tightest stage a column is narrower than a pill row needs, and
the stage exists to show more of the picture. The card stays a picture. */
.pg-viewport.is-tiny .pg-meta {
display: none;
}
.pg-badges {
display: flex;
flex-wrap: wrap;
gap: 5px;
min-height: 0;
}
/* Dates stack in the top-right corner, everything else in the bottom-left,
matching the way a feed labels a post. */
.pg-badges-top {
justify-content: flex-end;
align-self: flex-end;
}
/* One pill along the bottom, its values run together inside it. A pill
wider than the tile clips at its own edge and its text ticks, see below. */
.pg-badges-bottom {
flex-wrap: nowrap;
align-self: flex-start;
max-width: 100%;
margin-top: auto;
}
.pg-ticker {
max-width: 100%;
overflow: hidden;
}
.pg-ticker-track {
display: inline-flex;
white-space: nowrap;
}
/* The second copy only exists once the text is known to overflow; before
that the pill must size to the text alone. */
.pg-ticker-copy {
display: none;
margin-left: 24px;
}
.pg-ticker.is-overflowing .pg-ticker-copy {
display: inline;
}
/* The ticker. armTicker measures one copy's width into --pg-ticker on the
way in, and the animation only runs while the card is hovered, so nothing
on the wall moves unbidden. Linear and one way, the way a ticker reads. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
.pg-tile:hover .pg-ticker.is-overflowing .pg-ticker-track {
animation: pg-ticker var(--pg-ticker-time, 4s) linear 500ms infinite;
}
}
@keyframes pg-ticker {
from {
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(var(--pg-ticker, 0px), 0, 0);
}
}
.pg-badge {
display: inline-block;
flex: none;
max-width: 100%;
padding: 4px 9px;
border-radius: 999px;
background: rgba(20, 20, 24, 0.62);
-webkit-backdrop-filter: blur(10px) saturate(1.3);
backdrop-filter: blur(10px) saturate(1.3);
box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
color: #fff;
font-size: 11px;
font-weight: 600;
line-height: 1.2;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pg-media {
-webkit-user-drag: none;
}
/* A card for a clip still being made, held in one state until the
clipping's real look is ready. Until the link has been read it is a quiet
shimmer; from then on it shows the page's own picture, heavily blurred,
sharpening as the clip goes. A pill in the corner names the step. */
.pg-frame.pg-building {
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
background: var(--background-secondary);
}
.pg-building-art {
position: relative;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.pg-building-art::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(
100deg,
transparent 30%,
rgba(127, 127, 127, 0.09) 50%,
transparent 70%
);
transform: translateX(-100%);
animation: pg-building-shimmer 1.6s ease-in-out infinite;
transition: opacity 400ms ease;
}
.pg-building.has-preview .pg-building-art::before {
opacity: 0;
}
@keyframes pg-building-shimmer {
to {
transform: translateX(100%);
}
}
/* Scaled up a touch so the blur's soft edge falls outside the card. */
.pg-building-preview {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transform: scale(1.08);
filter: blur(var(--pg-blur, 22px)) saturate(0.75) brightness(0.82);
transition:
opacity 500ms ease,
filter 600ms ease;
-webkit-user-drag: none;
}
.pg-building.has-preview .pg-building-preview {
opacity: 1;
}
/* The step, in the tile pills' own material. */
.pg-building-pill {
position: absolute;
left: 10px;
bottom: 10px;
z-index: 2;
display: inline-flex;
align-items: center;
gap: 6px;
max-width: calc(100% - 20px);
padding: 5px 10px 5px 7px;
border-radius: 999px;
background: rgba(20, 20, 24, 0.62);
-webkit-backdrop-filter: blur(10px) saturate(1.3);
backdrop-filter: blur(10px) saturate(1.3);
box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
color: #fff;
font-size: 11px;
font-weight: 600;
line-height: 1.2;
letter-spacing: 0.02em;
white-space: nowrap;
}
.pg-building-icon {
display: grid;
place-items: center;
flex: none;
width: 14px;
height: 14px;
}
.pg-building-icon .svg-icon {
width: 14px;
height: 14px;
stroke-width: 2.2;
}
/* The words shimmer while work goes on: a band of full white sweeps left to
right through slightly dimmed text. */
.pg-building-text {
overflow: hidden;
text-overflow: ellipsis;
color: transparent;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.5) 0%,
rgba(255, 255, 255, 0.5) 38%,
#fff 50%,
rgba(255, 255, 255, 0.5) 62%,
rgba(255, 255, 255, 0.5) 100%
);
background-size: 250% 100%;
-webkit-background-clip: text;
background-clip: text;
animation: pg-building-text 1.8s linear infinite;
}
@keyframes pg-building-text {
from {
background-position: 100% 0;
}
to {
background-position: 0% 0;
}
}
/* A store page's waiting card has the store card's band, empty for now. */
.pg-building-band {
position: relative;
gap: 8px;
}
.pg-building-line {
width: 56%;
height: 8px;
border-radius: 4px;
background: rgba(199, 213, 224, 0.12);
}
.pg-building-line.is-short {
width: 34%;
}
/* Landing: the old card lies over the new one, says Clipped with a check
that pops in and draws itself, then fades to show the clipping. */
.pg-frame.pg-building.is-landing {
z-index: 2;
pointer-events: none;
transition: opacity 420ms ease;
}
.pg-frame.pg-building.is-landing.is-gone {
opacity: 0;
}
.pg-building.is-landing .pg-building-text {
animation: none;
background: none;
color: #fff;
}
.pg-building.is-landing .pg-building-icon {
animation: pg-building-pop 320ms cubic-bezier(0.22, 0.9, 0.28, 1.4);
}
.pg-building.is-landing .pg-building-icon .svg-icon path,
.pg-building.is-landing .pg-building-icon .svg-icon polyline {
stroke-dasharray: 24;
stroke-dashoffset: 24;
animation: pg-building-draw 420ms ease-out 80ms forwards;
}
@keyframes pg-building-pop {
from {
transform: scale(0.4);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes pg-building-draw {
to {
stroke-dashoffset: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pg-building-art::before,
.pg-building.is-landing .pg-building-icon {
animation: none;
}
.pg-building-text {
animation: none;
background: none;
color: #fff;
}
.pg-building.is-landing .pg-building-icon .svg-icon path,
.pg-building.is-landing .pg-building-icon .svg-icon polyline {
animation: none;
stroke-dashoffset: 0;
}
}
/* At the tightest stage a card is too narrow for words; the icon says enough. */
.pg-viewport.is-tiny .pg-building-text {
display: none;
}
.pg-viewport.is-tiny .pg-building-pill {
left: 6px;
bottom: 6px;
padding: 4px;
}
/* Describe on the wall: the clip-in-progress card's pill, over a card that
keeps its own picture. Named steps only, each one the run really reaches. */
.pg-describe {
position: absolute;
inset: 0;
z-index: 3;
overflow: hidden;
pointer-events: none;
transition: opacity 420ms ease;
}
.pg-describe.is-gone {
opacity: 0;
}
/* While Claude has the clip, a light crosses the card. */
.pg-describe.is-sweeping::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
100deg,
transparent 30%,
rgba(255, 255, 255, 0.16) 50%,
transparent 70%
);
transform: translateX(-100%);
animation: pg-building-shimmer 1.6s ease-in-out infinite;
}
.pg-describe:not(.is-busy) .pg-building-text {
animation: none;
background: none;
color: #fff;
}
.pg-describe.is-landed .pg-building-icon {
animation: pg-building-pop 320ms cubic-bezier(0.22, 0.9, 0.28, 1.4);
}
.pg-describe.is-landed[data-icon="check"] .pg-building-icon .svg-icon path,
.pg-describe.is-landed[data-icon="check"] .pg-building-icon .svg-icon polyline {
stroke-dasharray: 24;
stroke-dashoffset: 24;
animation: pg-building-draw 420ms ease-out 80ms forwards;
}
/* The labels a clip gained pop on one after another, above the pill. */
.pg-describe-labels {
position: absolute;
right: 10px;
bottom: 40px;
left: 10px;
display: flex;
flex-wrap: wrap-reverse;
gap: 4px;
}
.pg-describe-labels .pg-badge {
animation: pg-building-pop 320ms cubic-bezier(0.22, 0.9, 0.28, 1.4) both;
animation-delay: calc(160ms + var(--pg-i, 0) * 70ms);
}
/* The card's own hover pills sit where these do. */
.pg-tile.is-describing .pg-meta {
display: none;
}
/* While a run goes, the wall steps back and the clips with a step showing
stay lit: one layer the colour of the wall over the whole canvas, with
those clips raised above it. A single layer, because an opacity on every
other card gave each one holding a video its own offscreen pass a frame. */
.pg-describe-scrim {
position: absolute;
z-index: 7;
background: var(--background-primary);
opacity: 0.65;
pointer-events: none;
will-change: opacity;
animation: pg-describe-scrim-in 520ms ease-in-out;
transition: opacity 520ms ease-in-out;
}
.pg-describe-scrim.is-gone {
opacity: 0;
}
@keyframes pg-describe-scrim-in {
from {
opacity: 0;
}
}
/* Above the selection and hover lifts too, or a selected clip being
described would sit under the layer. */
.pg-viewport.is-describe-run .pg-tile.is-describing,
.pg-viewport.is-describe-run .pg-tile.is-building,
.pg-viewport.is-describe-run .pg-tile.is-lighting,
.pg-viewport.is-describe-run .pg-tile.is-unlit {
z-index: 8;
}
/* A clip comes up out of the dimmed wall, and goes back down into it, under
a veil of the layer's own colour and strength, so neither is a jump. */
.pg-viewport.is-describe-run .pg-tile.is-lighting::after,
.pg-viewport.is-describe-run .pg-tile.is-unlit::after {
content: "";
position: absolute;
inset: 0;
z-index: 10;
background: var(--background-primary);
opacity: 0.65;
pointer-events: none;
}
.pg-viewport.is-describe-run .pg-tile.is-lighting::after {
animation: pg-describe-veil-up 420ms ease-in-out forwards;
}
.pg-viewport.is-describe-run .pg-tile.is-unlit::after {
animation: pg-describe-scrim-in 420ms ease-in-out;
}
@keyframes pg-describe-veil-up {
to {
opacity: 0;
}
}
/* A crowd of clips at once drops the blur and the shimmering words, which
each cost a repaint every frame under a scroll. */
.pg-viewport.is-describing-many .pg-describe .pg-building-pill,
.pg-viewport.is-describing-many .pg-describe .pg-badge {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background: rgba(20, 20, 24, 0.8);
}
.pg-viewport.is-describing-many .pg-describe .pg-building-text {
animation: none;
background: none;
color: #fff;
}
.pg-viewport.is-tiny .pg-describe-labels {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.pg-describe.is-sweeping::before,
.pg-describe.is-landed .pg-building-icon,
.pg-describe-labels .pg-badge,
.pg-describe-scrim {
animation: none;
transition: none;
}
.pg-viewport.is-describe-run .pg-tile.is-lighting::after,
.pg-viewport.is-describe-run .pg-tile.is-unlit::after {
display: none;
}
.pg-describe .pg-building-text {
animation: none;
background: none;
color: #fff;
}
.pg-describe.is-landed[data-icon="check"] .pg-building-icon .svg-icon path,
.pg-describe.is-landed[data-icon="check"] .pg-building-icon .svg-icon polyline {
animation: none;
stroke-dashoffset: 0;
}
}
.pg-marquee {
position: absolute;
top: 0;
left: 0;
z-index: 15;
display: none;
pointer-events: none;
border: 1px solid var(--pg-accent);
background: hsl(from var(--pg-accent) h s l / 0.12);
border-radius: 2px;
}
.pg-marquee.is-active {
display: block;
}
/* Selection expands the card into the inset it already reserves, so it can
never overlap a neighbour however tall the tile is. */
.pg-tile.is-selected {
z-index: 5;
}
.pg-tile.is-selected .pg-frame {
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg))
scale(var(--pg-s, 1));