-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
2630 lines (2330 loc) · 76.9 KB
/
Copy pathstyles.css
File metadata and controls
2630 lines (2330 loc) · 76.9 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
.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. */
--pg-surface: rgba(32, 32, 35, 0.88);
--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 rgba(255, 255, 255, 0.04);
/* 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. */
--pg-surface-mid: rgba(255, 255, 255, 0.72);
--pg-surface-dim: rgba(255, 255, 255, 0.45);
--pg-surface-faint: rgba(255, 255, 255, 0.35);
--pg-inner-active: rgba(255, 255, 255, 0.14);
--pg-inner-press: rgba(255, 255, 255, 0.22);
--pg-inner-well: rgba(255, 255, 255, 0.07);
--pg-inner-chip: rgba(255, 255, 255, 0.1);
--pg-rule: rgba(255, 255, 255, 0.12);
--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);
--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: rgba(255, 255, 255, 0.88);
/* 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: rgba(255, 255, 255, 0.09);
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 {
--pg-surface: rgba(252, 252, 253, 0.9);
--pg-surface-ring: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
--pg-surface-lift: 0 1px 6px rgba(0, 0, 0, 0.07), 0 8px 24px rgba(0, 0, 0, 0.09);
--pg-surface-text: rgba(22, 22, 26, 0.92);
--pg-surface-mid: rgba(22, 22, 26, 0.72);
--pg-surface-dim: rgba(22, 22, 26, 0.5);
--pg-surface-faint: rgba(22, 22, 26, 0.38);
--pg-inner-hover: rgba(0, 0, 0, 0.06);
--pg-inner-active: rgba(0, 0, 0, 0.09);
--pg-inner-press: rgba(0, 0, 0, 0.14);
--pg-inner-well: rgba(0, 0, 0, 0.05);
--pg-inner-chip: rgba(0, 0, 0, 0.07);
--pg-rule: rgba(0, 0, 0, 0.1);
--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-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);
transform-style: preserve-3d;
/* 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;
/* 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;
transition: opacity 120ms ease;
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;
}
}
/* 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[data-density="xs"] .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;
}
.pg-progress {
position: absolute;
inset: 0 0 auto 0;
z-index: 20;
height: 2px;
background: var(--pg-rule);
opacity: 0;
transition: opacity 180ms ease;
pointer-events: none;
}
.pg-progress.is-visible {
opacity: 1;
}
.pg-progress-fill {
height: 100%;
width: 0;
background: var(--pg-accent);
transition: width 220ms ease;
}
/* Work of unknown length: a travelling sliver rather than a fake percentage. */
.pg-progress.is-indeterminate .pg-progress-fill {
width: 30%;
transition: none;
animation: pg-progress-slide 1.1s ease-in-out infinite;
}
@keyframes pg-progress-slide {
0% { transform: translateX(-100%); }
100% { transform: translateX(400%); }
}
.pg-progress-label {
position: absolute;
top: 8px;
left: 16px;
font-size: 11px;
color: var(--text-muted);
background: var(--background-primary);
padding: 2px 8px;
border-radius: 999px;
white-space: nowrap;
}
.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-sx, 1), var(--pg-sy, 1));
outline-color: var(--pg-accent);
box-shadow: var(--pg-tile-lift-selected);
}
.pg-confirm-list {
margin: 0 0 8px;
padding-left: 20px;
max-height: 180px;
overflow-y: auto;
overscroll-behavior: contain;
color: var(--text-muted);
font-size: 13px;
}
.pg-confirm-more {
list-style: none;
margin-left: -12px;
opacity: 0.7;
}
/* The card currently open in the detail view. Hidden outright rather than
faded, so the returning flight lands on empty space instead of on a
duplicate of itself. */
.pg-tile.is-focus-hidden {
visibility: hidden;
pointer-events: none;
}
/* Reflow: a tile that keeps its identity glides to its new spot. Applied
only to continuing tiles, never to a pooled element reused for another
clipping, which would otherwise fly across the canvas. */
.pg-tile.is-gliding {
/* Opacity rides along: the spotlight dims tiles that are gliding to make
room for the new folder, and a transform-only list here snapped them. */
transition:
transform 300ms cubic-bezier(0.22, 0.9, 0.28, 1),
opacity 520ms ease-in-out;
}
/* Arrival: overshoot past full size, dip, settle. The keyframes carry the
overshoot, so the easing between them stays a plain ease-out; a springy
curve here as well would compound into a second, unwanted bounce.
Every frame repeats the tilt transform rather than writing a bare scale().
transform is one property, so a keyframe setting scale() alone drops the
perspective and rotation, and a card entering under the cursor would snap
flat for the length of the animation. */
.pg-tile.is-entering .pg-frame {
animation: pg-pop 460ms cubic-bezier(0.22, 0.9, 0.28, 1) both;
animation-delay: var(--pg-enter-delay, 0ms);
}
@keyframes pg-pop {
from {
opacity: 0;
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg)) scale(0.6);
}
60% {
opacity: 1;
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg)) scale(1.06);
}
80% {
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg)) scale(0.99);
}
to {
opacity: 1;
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg)) scale(1);
}
}
/* Departure: tip away and shrink out while the survivors glide up behind it.
Starts from whatever tilt the card was holding, so deleting the card under
the cursor does not snap it flat before it goes. */
.pg-tile.is-leaving {
pointer-events: none;
z-index: 1;
}
.pg-tile.is-leaving .pg-frame {
animation: pg-vanish 220ms cubic-bezier(0.55, 0, 0.85, 0.35) both;
}
@keyframes pg-vanish {
from {
opacity: 1;
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg)) scale(1) rotate(0deg);
}
to {
opacity: 0;
transform: perspective(760px) rotateX(0deg) rotateY(0deg) scale(0.7) rotate(-3deg);
}
}
@media (prefers-reduced-motion: reduce) {
.pg-tile.is-gliding,
.pg-tile.is-entering .pg-frame,
.pg-tile.is-leaving .pg-frame,
.pg-media {
animation: none;
transition: none;
}
}
/* Hover lifts a card the same way selection does, minus the ring. Only one
element can be hovered, so moving quickly between tiles crossfades: the
one being left transitions back down as the new one comes up. */
.pg-tile:hover {
z-index: 4;
}
/* The lift answers a cursor, and the tilt inside it is driven by where that
cursor is. A finger has neither, and a tapped card would keep the raised
shadow after the finger had gone, so on touch a card simply stays flat. */
@media (hover: hover) {
.pg-tile:hover .pg-frame {
transform: perspective(760px) rotateX(var(--pg-rx, 0deg)) rotateY(var(--pg-ry, 0deg))
scale(var(--pg-sx, 1), var(--pg-sy, 1));
box-shadow: var(--pg-tile-lift);
/* While engaged, short enough to follow the cursor. Leaving hover falls
back to the resting transition above, which is the gentle one. */
transition:
transform 120ms cubic-bezier(0.22, 0.9, 0.28, 1),
outline-color 190ms ease,
box-shadow 190ms ease;
}
/* Selection outranks hover, so a selected card keeps its ring and depth. */
.pg-tile.is-selected:hover .pg-frame {
box-shadow: var(--pg-tile-lift-strong);
}
}
/* Dragging should not leave a trail of tiles popping under the cursor. */
.pg-viewport.is-panning .pg-tile:hover .pg-frame,
.pg-viewport.is-selecting .pg-tile:hover .pg-frame {
transform: perspective(760px) scale(1);
box-shadow: none;
}
.pg-viewport.is-selecting .pg-tile.is-selected .pg-frame {
transform: perspective(760px) scale(var(--pg-sx, 1), var(--pg-sy, 1));
}
@media (prefers-reduced-motion: reduce) {
.pg-tile:hover .pg-frame {
transform: none;
}
}
/* Archived clip standing in for the poster still inside a note. */
.pg-note-video {
max-width: 100%;
border-radius: 8px;
display: block;
}
/* Floating actions for the current selection. Rides above the canvas and
rises into view only while something is selected. */
.pg-actionbar {
position: absolute;
bottom: calc(22px + var(--pg-bottom-inset, 0px));
left: 50%;
z-index: 30;
display: flex;
align-items: center;
gap: 4px;
padding: 7px 12px;
border-radius: var(--pg-surface-radius);
background-color: var(--pg-surface);
background-image: none;
backdrop-filter: var(--pg-surface-blur);
-webkit-backdrop-filter: var(--pg-surface-blur);
box-shadow: var(--pg-surface-ring), var(--pg-surface-lift);
/* Parked below the edge and non-interactive until a selection exists. */
transform: translate(-50%, calc(100% + 30px));
opacity: 0;
pointer-events: none;
transition:
transform 260ms cubic-bezier(0.22, 0.9, 0.28, 1),
opacity 180ms ease;
}
.pg-actionbar.is-visible {
transform: translate(-50%, 0);
opacity: 1;
pointer-events: auto;
}
.pg-actionbar-count {
padding: 0 0 0 4px;
font-size: 12px;
font-weight: 500;
color: var(--pg-surface-mid);
white-space: nowrap;
}
/* Rules a bar into groups. One definition for both bars: they are the same
control in two places, and two rules meaning one thing is how they came to
differ by two pixels in the first place. */
.pg-bar-divider {
width: 1px;
align-self: stretch;
margin: 3px 2px;
background: var(--pg-rule);
}
/* Selector carries the bar as well, so it outranks Obsidian's own button
styling, which otherwise paints a filled background at rest. */
.pg-actionbar button.pg-actionbar-button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
padding: 0;
border: 0;
border-radius: var(--pg-inner-radius);
background-color: transparent;
background-image: none;
box-shadow: none;
color: var(--pg-surface-text);
cursor: pointer;
transition:
background-color 120ms ease,
transform 180ms cubic-bezier(0.22, 0.9, 0.28, 1);
}
.pg-actionbar button.pg-actionbar-button:focus,
.pg-actionbar button.pg-actionbar-button:focus-visible {
background-color: transparent;
box-shadow: none;
}
.pg-actionbar button.pg-actionbar-button:hover {
background-color: var(--pg-inner-active);
}
.pg-actionbar button.pg-actionbar-button:active {
background-color: var(--pg-inner-press);
transform: scale(0.93);
}
/* Shared by the grid's selection bar and the detail view's action bar, so
the two cannot drift. The host button must be position: relative. */
.pg-tip {
position: absolute;
/* Measured from the button, which sits inside the bar's padding, so the
offset has to clear that padding before any gap is visible. */
bottom: calc(100% + 21px);
left: 50%;
transform: translateX(-50%) translateY(6px);
display: flex;
align-items: center;
gap: 8px;
padding: 5px 10px;
/* Fully round rather than the surface radius: at this height the two are
the same shape anyway, and a label should read as a pill. */
border-radius: 999px;
background-color: var(--pg-surface);
background-image: none;
backdrop-filter: var(--pg-surface-blur);
-webkit-backdrop-filter: var(--pg-surface-blur);
box-shadow: var(--pg-surface-ring), var(--pg-surface-lift);
color: var(--pg-surface-text);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition:
opacity 120ms ease,
transform 120ms ease;
}
/* Only where there is a pointer that can hover. A touch applies :hover on
tap and leaves it applied until something else is tapped, so on a phone
these labels would appear on use and then sit there, captioning a button
nobody is pointing at. */
@media (hover: hover) {
.pg-actionbar-button:hover .pg-tip,
.pg-detail-button:hover .pg-tip,
.pg-detail-back:hover .pg-tip,
.pg-spacebar button:hover .pg-tip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
/* The wall's own controls stand alone rather than inside a bar, so there is
no padding to clear and the offset above would leave a visible gap between
the label and the button it belongs to. */
.pg-spacebar .pg-tip {
bottom: calc(100% + 10px);
}
/* Read, never drawn. Carries a control's accessible name where an aria-label
would otherwise make Obsidian draw a second tooltip beside our own. */
.pg-sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
overflow: hidden;
white-space: nowrap;
}
.pg-tip-key {
opacity: 0.55;
font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
.pg-actionbar,
.pg-tip {
transition: none;
}
}
/* Right-click menu. The backdrop dims the wall so the choice is the only
thing in focus, and swallows the click that dismisses it. */
.pg-menu-backdrop {
position: absolute;
inset: 0;
z-index: 40;
background: var(--pg-scrim);
opacity: 0;
/* Exit: quicker than the entry, so a dismissed menu is gone by the time you
have looked away, while arriving still has time to read as a movement. */
transition: opacity 100ms ease;
}
/* Inert while arriving and while leaving. A backdrop still fading would
otherwise swallow the click that opens whatever you turned to next. */
.pg-menu-backdrop:not(.is-open) {
pointer-events: none;
}
.pg-menu-backdrop.is-open {
opacity: 1;
transition: opacity 140ms ease;
}
.pg-menu {
position: absolute;
z-index: 41;
min-width: 260px;
padding: var(--pg-surface-pad);
border-radius: var(--pg-surface-radius);
background-color: var(--pg-surface);
background-image: none;
backdrop-filter: var(--pg-surface-blur);
-webkit-backdrop-filter: var(--pg-surface-blur);
box-shadow: var(--pg-surface-ring), var(--pg-surface-lift);
opacity: 0;
transform: scale(0.94);
/* Exit. Shorter than the entry and with no overshoot: a menu should spring
open and then simply be gone, not bounce on the way out. */
transition:
opacity 100ms ease,
transform 100ms ease;
}
/* Inert while arriving and while leaving, so a panel on its way out cannot
take a click meant for the wall or for the menu replacing it. */
.pg-menu:not(.is-open) {
pointer-events: none;
}
.pg-menu.is-open {
opacity: 1;
transform: scale(1);
transition:
opacity 130ms ease,
transform 160ms cubic-bezier(0.22, 0.9, 0.28, 1);
}
.pg-menu-item {
display: flex;
align-items: center;
gap: 14px;
padding: 10px 13px;
border-radius: var(--pg-inner-radius);
color: var(--pg-surface-text);
cursor: pointer;
user-select: none;
}
.pg-menu-item:hover {
background: var(--pg-inner-hover);
}
/* The keyboard's cursor in a submenu, lit exactly as hover lights a row: the
two are the same idea arriving by different means, and showing them
differently would suggest they do different things. */
.pg-menu-item.is-active {
background: var(--pg-inner-hover);
}
/* The row stays lit while its submenu is open, so the choice keeps the
context it was made from. */
.pg-menu-item.is-open-parent {
background: var(--pg-inner-hover);
}
.pg-menu-arrow {
display: flex;
align-items: center;
margin-left: 2px;
color: var(--pg-surface-text);
opacity: 0.5;
}
.pg-menu-arrow .svg-icon {
width: 16px;
height: 16px;