@gallerist/theme-default 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/base.css +37 -25
package/package.json
CHANGED
package/src/base.css
CHANGED
|
@@ -731,50 +731,62 @@
|
|
|
731
731
|
content: "⊞";
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
/* ── flat rail (groupDisplay: flat): every item side
|
|
735
|
-
|
|
736
|
-
|
|
734
|
+
/* ── flat rail (groupDisplay: flat): every item side by side, each group under its label, a
|
|
735
|
+
hairline between neighbouring groups. Only the current group's label takes the accent. A group
|
|
736
|
+
the drawn run cuts (its rest isn't drawn yet) has no divider on that side, no label when cut at
|
|
737
|
+
its start, and its card at the cut fades. */
|
|
737
738
|
.gallerist-thumbs[data-display="flat"] {
|
|
738
739
|
align-items: stretch;
|
|
740
|
+
gap: 12px;
|
|
739
741
|
}
|
|
740
742
|
.gallerist-thumb-group {
|
|
741
|
-
position: relative;
|
|
742
743
|
flex: 0 0 auto;
|
|
743
744
|
display: flex;
|
|
744
745
|
flex-direction: column;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
border: 1px solid var(--gallerist-hairline);
|
|
748
|
-
border-left: 3px solid var(--gallerist-accent);
|
|
749
|
-
border-radius: var(--gallerist-radius);
|
|
750
|
-
background: var(--gallerist-group-bg);
|
|
751
|
-
}
|
|
752
|
-
/* a group continuing off-window: soften the bracket so it reads as "more before/after". */
|
|
753
|
-
.gallerist-thumb-group[data-partial-start] {
|
|
754
|
-
border-left-color: var(--gallerist-hairline);
|
|
755
|
-
border-top-left-radius: 0;
|
|
756
|
-
border-bottom-left-radius: 0;
|
|
746
|
+
justify-content: flex-end; /* the item rows line up, labelled or not */
|
|
747
|
+
gap: 6px;
|
|
757
748
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
border-
|
|
749
|
+
/* the divider: the same room on both sides of it (the rail's gap, then this padding) */
|
|
750
|
+
.gallerist-thumb-group + .gallerist-thumb-group {
|
|
751
|
+
padding-inline-start: 12px;
|
|
752
|
+
border-inline-start: 1px solid var(--gallerist-hairline);
|
|
762
753
|
}
|
|
763
754
|
.gallerist-thumb-group-cap {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
color: var(--gallerist-fg);
|
|
767
|
-
opacity: 0.85;
|
|
755
|
+
contain: inline-size; /* a long label ends in an ellipsis instead of widening its group */
|
|
756
|
+
font: 500 11px / 14px var(--gallerist-font);
|
|
757
|
+
color: var(--gallerist-fg-muted);
|
|
768
758
|
white-space: nowrap;
|
|
769
759
|
overflow: hidden;
|
|
770
760
|
text-overflow: ellipsis;
|
|
771
|
-
|
|
761
|
+
}
|
|
762
|
+
.gallerist-thumbs[data-timeline] .gallerist-thumb-group-cap {
|
|
763
|
+
font-family: var(--gallerist-mono);
|
|
764
|
+
}
|
|
765
|
+
.gallerist-thumb-group[data-active] > .gallerist-thumb-group-cap {
|
|
766
|
+
color: var(--gallerist-accent);
|
|
772
767
|
}
|
|
773
768
|
.gallerist-thumb-group-row {
|
|
774
769
|
display: flex;
|
|
775
770
|
gap: 6px;
|
|
776
771
|
align-items: center;
|
|
777
772
|
}
|
|
773
|
+
/* a group the drawn run cuts: its card at the cut fades (unless current or focused) */
|
|
774
|
+
.gallerist-thumb-group[data-partial-start]
|
|
775
|
+
.gallerist-thumb-item:first-child:not([data-active], :focus-visible),
|
|
776
|
+
.gallerist-thumb-group[data-partial-end]
|
|
777
|
+
.gallerist-thumb-item:last-child:not([data-active], :focus-visible) {
|
|
778
|
+
opacity: 0.4;
|
|
779
|
+
}
|
|
780
|
+
/* a side rail: the groups run down it, each one's items in a column, the divider across the rail */
|
|
781
|
+
.gallerist[data-gallerist-orientation="vertical"] .gallerist-thumb-group-row {
|
|
782
|
+
flex-direction: column;
|
|
783
|
+
align-items: flex-start;
|
|
784
|
+
}
|
|
785
|
+
.gallerist[data-gallerist-orientation="vertical"] .gallerist-thumb-group + .gallerist-thumb-group {
|
|
786
|
+
padding: 12px 0 0;
|
|
787
|
+
border-inline-start: 0;
|
|
788
|
+
border-block-start: 1px solid var(--gallerist-hairline);
|
|
789
|
+
}
|
|
778
790
|
|
|
779
791
|
/* ── chrome buttons (one look for bar tools, arrows, item navigator, plugin buttons) ───────── */
|
|
780
792
|
.gallerist-bar button,
|