report-studio 1.2.3 → 1.3.1
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/README.md +254 -3
- package/dist/designer-_sWqzOj8.js +5052 -0
- package/dist/designer.js +1 -1
- package/dist/index.js +2 -2
- package/dist/react-designer.js +1 -1
- package/dist/react.js +1 -1
- package/dist/viewer-4I7C1Rnd.js +4083 -0
- package/package.json +2 -2
- package/src/designer/blank.js +0 -1
- package/src/designer/canvas.js +172 -54
- package/src/designer/choice.js +368 -0
- package/src/designer/designer.js +342 -12
- package/src/designer/dialog.js +634 -6
- package/src/designer/fields.js +345 -36
- package/src/designer/geometry.js +77 -4
- package/src/designer/grouping.js +556 -0
- package/src/designer/icons.js +22 -0
- package/src/designer/menu.js +50 -6
- package/src/designer/panel.js +872 -69
- package/src/designer/rulers.js +14 -6
- package/src/designer/sample-data.js +112 -31
- package/src/designer/select.js +24 -3
- package/src/designer/structure.js +126 -12
- package/src/designer/styles.css +2017 -732
- package/src/designer/tokens.js +38 -11
- package/src/engine/calculate.js +487 -0
- package/src/engine/csv.js +17 -9
- package/src/engine/format.js +483 -0
- package/src/engine/group.js +350 -70
- package/src/engine/highlight.js +224 -0
- package/src/engine/index.js +8 -1
- package/src/engine/measure.js +53 -26
- package/src/engine/paginate.js +189 -92
- package/src/engine/resolve.js +117 -10
- package/src/engine/rows.js +71 -8
- package/src/engine/search.js +12 -4
- package/src/engine/tables.js +309 -11
- package/src/engine/validate.js +304 -8
- package/src/engine/xlsx-style.js +50 -4
- package/src/engine/xlsx.js +91 -21
- package/src/index.js +18 -0
- package/src/preview/chrome.css +302 -84
- package/src/preview/chrome.js +70 -58
- package/src/preview/viewer.js +137 -85
- package/src/render/items.js +61 -10
- package/src/render/report.css +0 -5
- package/src/shared/dropdown.css +78 -45
- package/src/shared/dropdown.js +105 -5
- package/src/shared/modal.css +78 -13
- package/types/index.d.ts +104 -9
- package/types/layout.d.ts +164 -2
- package/dist/designer-DQlfKnTr.js +0 -3416
- package/dist/viewer-BSPNCNRU.js +0 -2912
package/src/designer/styles.css
CHANGED
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
--dz-bar-height: 56px;
|
|
20
20
|
/* wide enough for "reportHeader", the longest band name */
|
|
21
21
|
--dz-gutter: 96px;
|
|
22
|
-
|
|
22
|
+
/* two columns of about 112px and a 16px margin either side, as a design tool's inspector */
|
|
23
|
+
--dz-panel: 264px;
|
|
23
24
|
--dz-foot-height: 44px;
|
|
24
25
|
/* how far the floating tools sit off the bottom edge, as the pager does */
|
|
25
26
|
--dz-foot-offset: 20px;
|
|
@@ -27,10 +28,14 @@
|
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* The designer fills the element it was given - a column of the bar and the
|
|
30
|
-
* row below it - so a host can put its own header above it.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* row below it - so a host can put its own header above it.
|
|
32
|
+
*
|
|
33
|
+
* That needs the element to have a height. Where it has none, height: 100% has
|
|
34
|
+
* nothing to resolve against and the designer is only as tall as what is in
|
|
35
|
+
* it: the cap stops it growing past the window, but nothing stops it shrinking.
|
|
36
|
+
* A small page with a box selected - a short rail, a short canvas - left the
|
|
37
|
+
* whole designer ending two-thirds of the way down the window, its bottom edge
|
|
38
|
+
* jumping up and down as the selection changed.
|
|
34
39
|
*/
|
|
35
40
|
.report-designer {
|
|
36
41
|
display: flex;
|
|
@@ -40,6 +45,17 @@
|
|
|
40
45
|
background-color: var(--backdrop);
|
|
41
46
|
}
|
|
42
47
|
|
|
48
|
+
/**
|
|
49
|
+
* So the designer's own page - the one the CLI serves and the playground runs -
|
|
50
|
+
* gives it one: the document is the window, and the mount on its body fills
|
|
51
|
+
* it. A host page does the same for itself, as the README shows; the window
|
|
52
|
+
* the designer opens in gives its mount 100vh.
|
|
53
|
+
*/
|
|
54
|
+
.report-studio-page,
|
|
55
|
+
.report-studio-page body {
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
43
59
|
/**
|
|
44
60
|
* A class outranks the browser's own [hidden] rule, so display: flex above
|
|
45
61
|
* would keep a designer on screen that its host had hidden - under the report,
|
|
@@ -554,22 +570,57 @@
|
|
|
554
570
|
|
|
555
571
|
/* ---------------- the properties rail ---------------- */
|
|
556
572
|
|
|
573
|
+
/**
|
|
574
|
+
* Laid out the way a design tool's inspector is, Figma's in particular:
|
|
575
|
+
*
|
|
576
|
+
* - sections divided by a hairline rule, never boxed or carded
|
|
577
|
+
* - a two-column grid, so X sits beside Y and W beside H, and a control
|
|
578
|
+
* either takes one column (.is-half) or the whole row
|
|
579
|
+
* - boxes 24px tall with a soft grey fill and no border, which outline
|
|
580
|
+
* themselves on hover and take the accent ring on focus
|
|
581
|
+
* - a letter inside the box where a letter says enough (X, Y, W, H), and a
|
|
582
|
+
* small grey label above it where one does not
|
|
583
|
+
* - grey everywhere else, so the accent is only ever the thing in hand
|
|
584
|
+
*
|
|
585
|
+
* Everything is scoped to .dz-panel: the dialogs and the Format editor draw
|
|
586
|
+
* .dz-field too, and keep their own look.
|
|
587
|
+
*/
|
|
557
588
|
.dz-panel {
|
|
589
|
+
--rail-x: 16px;
|
|
590
|
+
--field-h: 24px;
|
|
591
|
+
--field-bg: var(--surface-muted);
|
|
592
|
+
--field-radius: 5px;
|
|
593
|
+
|
|
558
594
|
flex: none;
|
|
559
595
|
width: var(--dz-panel);
|
|
560
596
|
overflow-y: auto;
|
|
561
|
-
|
|
597
|
+
/**
|
|
598
|
+
* The scrollbar's room is kept whether or not the rail needs it. A box's
|
|
599
|
+
* rail fits and the report's does not, and where scrollbars take up width -
|
|
600
|
+
* Windows, most Linux - every control in the rail used to widen by 16px and
|
|
601
|
+
* shuffle sideways each time the selection crossed between the two.
|
|
602
|
+
*/
|
|
603
|
+
scrollbar-gutter: stable;
|
|
604
|
+
padding: 0 0 32px;
|
|
562
605
|
|
|
563
606
|
background: var(--surface);
|
|
564
607
|
border-left: 1px solid var(--border);
|
|
565
608
|
|
|
566
609
|
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
567
|
-
font-size:
|
|
610
|
+
font-size: 11px;
|
|
611
|
+
line-height: 16px;
|
|
568
612
|
color: var(--ink);
|
|
569
613
|
}
|
|
570
614
|
|
|
615
|
+
/* while a number is being scrubbed, the whole rail says so with the cursor */
|
|
616
|
+
.dz-panel.is-scrubbing,
|
|
617
|
+
.dz-panel.is-scrubbing * {
|
|
618
|
+
cursor: ew-resize !important;
|
|
619
|
+
user-select: none;
|
|
620
|
+
}
|
|
621
|
+
|
|
571
622
|
.dz-panel-empty {
|
|
572
|
-
padding: 24px
|
|
623
|
+
padding: 24px var(--rail-x);
|
|
573
624
|
text-align: center;
|
|
574
625
|
color: var(--ink-soft);
|
|
575
626
|
}
|
|
@@ -578,1100 +629,2334 @@
|
|
|
578
629
|
margin-bottom: 6px;
|
|
579
630
|
}
|
|
580
631
|
|
|
632
|
+
/* what is selected: its glyph, its id, and what kind of thing it is */
|
|
581
633
|
.dz-panel-head {
|
|
634
|
+
position: sticky;
|
|
635
|
+
top: 0;
|
|
636
|
+
z-index: 2;
|
|
637
|
+
|
|
582
638
|
display: flex;
|
|
583
|
-
align-items:
|
|
639
|
+
align-items: center;
|
|
584
640
|
gap: 8px;
|
|
585
|
-
|
|
586
|
-
|
|
641
|
+
height: 40px;
|
|
642
|
+
padding: 0 var(--rail-x);
|
|
643
|
+
|
|
644
|
+
background: var(--surface);
|
|
587
645
|
border-bottom: 1px solid var(--border);
|
|
588
646
|
}
|
|
589
647
|
|
|
590
|
-
.dz-panel-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
color: var(--accent-ink);
|
|
595
|
-
font-size: 10px;
|
|
596
|
-
letter-spacing: .04em;
|
|
597
|
-
text-transform: uppercase;
|
|
648
|
+
.dz-panel-icon {
|
|
649
|
+
display: inline-flex;
|
|
650
|
+
flex: none;
|
|
651
|
+
color: var(--ink-soft);
|
|
598
652
|
}
|
|
599
653
|
|
|
600
654
|
.dz-panel-id {
|
|
601
|
-
|
|
602
|
-
font-family: "Courier Prime", monospace;
|
|
655
|
+
min-width: 0;
|
|
603
656
|
overflow: hidden;
|
|
604
657
|
text-overflow: ellipsis;
|
|
605
658
|
white-space: nowrap;
|
|
659
|
+
font-weight: 600;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.dz-panel-type {
|
|
663
|
+
flex: none;
|
|
664
|
+
margin-left: auto;
|
|
665
|
+
color: var(--ink-soft);
|
|
606
666
|
}
|
|
607
667
|
|
|
608
|
-
|
|
609
|
-
|
|
668
|
+
/* ---- sections: a hairline between them, and a two-column grid inside ---- */
|
|
669
|
+
|
|
670
|
+
.dz-panel .dz-section {
|
|
671
|
+
display: grid;
|
|
672
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
673
|
+
gap: 8px;
|
|
674
|
+
padding: 4px var(--rail-x) 16px;
|
|
610
675
|
border-bottom: 1px solid var(--border);
|
|
611
676
|
}
|
|
612
677
|
|
|
613
|
-
.dz-section:last-child {
|
|
678
|
+
.dz-panel .dz-section:last-child {
|
|
614
679
|
border-bottom: none;
|
|
615
680
|
}
|
|
616
681
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
text-transform: uppercase;
|
|
623
|
-
color: var(--ink-soft);
|
|
682
|
+
/* the whole row unless a control asks for half of it */
|
|
683
|
+
.dz-panel .dz-section > *,
|
|
684
|
+
.dz-panel .dz-column-body > *,
|
|
685
|
+
.dz-panel .dz-group-level > * {
|
|
686
|
+
grid-column: 1 / -1;
|
|
624
687
|
}
|
|
625
688
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
689
|
+
.dz-panel .dz-section > .is-half,
|
|
690
|
+
.dz-panel .dz-column-body > .is-half,
|
|
691
|
+
.dz-panel .dz-group-level > .is-half {
|
|
692
|
+
grid-column: auto;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* sentence case and the ink colour, as a design tool titles its sections */
|
|
696
|
+
.dz-section-head {
|
|
697
|
+
display: flex;
|
|
633
698
|
align-items: center;
|
|
699
|
+
justify-content: space-between;
|
|
634
700
|
gap: 8px;
|
|
635
|
-
|
|
701
|
+
height: 36px;
|
|
636
702
|
}
|
|
637
703
|
|
|
638
|
-
.dz-
|
|
639
|
-
|
|
704
|
+
.dz-section-head h3 {
|
|
705
|
+
font-size: 11px;
|
|
706
|
+
font-weight: 600;
|
|
707
|
+
color: var(--ink);
|
|
640
708
|
}
|
|
641
709
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
710
|
+
.dz-section-tools {
|
|
711
|
+
display: flex;
|
|
712
|
+
gap: 2px;
|
|
713
|
+
/* so the glyph, not its button, lines up with the boxes' right edge */
|
|
714
|
+
margin-right: -4px;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* ---- fields ---- */
|
|
718
|
+
|
|
719
|
+
.dz-panel .dz-field {
|
|
720
|
+
display: flex;
|
|
721
|
+
flex-direction: column;
|
|
645
722
|
gap: 4px;
|
|
723
|
+
min-width: 0;
|
|
724
|
+
margin: 0;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.dz-panel .dz-label {
|
|
728
|
+
overflow: hidden;
|
|
729
|
+
text-overflow: ellipsis;
|
|
730
|
+
white-space: nowrap;
|
|
731
|
+
color: var(--ink-soft);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/* a number's label is the handle it is dragged by */
|
|
735
|
+
.dz-panel .dz-scrub {
|
|
736
|
+
cursor: ew-resize;
|
|
737
|
+
user-select: none;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/* there for a screen reader, and for the tests that read labels, not for eyes */
|
|
741
|
+
.dz-panel .dz-sr {
|
|
742
|
+
position: absolute;
|
|
743
|
+
width: 1px;
|
|
744
|
+
height: 1px;
|
|
745
|
+
overflow: hidden;
|
|
746
|
+
clip-path: inset(50%);
|
|
747
|
+
white-space: nowrap;
|
|
646
748
|
}
|
|
647
749
|
|
|
648
|
-
|
|
649
|
-
.dz-field
|
|
650
|
-
.dz-
|
|
750
|
+
/* every box in the rail: grey, borderless, 24px */
|
|
751
|
+
.dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]),
|
|
752
|
+
.dz-panel .dz-choice-trigger,
|
|
753
|
+
.dz-panel .dz-input,
|
|
754
|
+
.dz-panel .dz-format,
|
|
755
|
+
.dz-panel .dz-band-height {
|
|
651
756
|
width: 100%;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
757
|
+
height: var(--field-h);
|
|
758
|
+
min-height: var(--field-h);
|
|
759
|
+
padding: 0 8px;
|
|
760
|
+
border: 1px solid transparent;
|
|
761
|
+
border-radius: var(--field-radius);
|
|
762
|
+
background-color: var(--field-bg);
|
|
656
763
|
color: var(--ink);
|
|
657
764
|
font: inherit;
|
|
658
765
|
}
|
|
659
766
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
767
|
+
/* a box holding a prefix or a swatch draws the box; what is inside it does not */
|
|
768
|
+
.dz-panel .dz-input {
|
|
769
|
+
display: flex;
|
|
770
|
+
align-items: center;
|
|
771
|
+
padding: 0;
|
|
664
772
|
}
|
|
665
773
|
|
|
666
|
-
.dz-field input[type="
|
|
667
|
-
|
|
774
|
+
.dz-panel .dz-field .dz-input input:not([type="checkbox"]):not([type="color"]):not([type="radio"]) {
|
|
775
|
+
flex: 1;
|
|
776
|
+
min-width: 0;
|
|
777
|
+
height: calc(var(--field-h) - 2px);
|
|
778
|
+
min-height: 0;
|
|
779
|
+
padding: 0 8px 0 0;
|
|
780
|
+
border: 0;
|
|
781
|
+
background: transparent;
|
|
668
782
|
}
|
|
669
783
|
|
|
670
|
-
.dz-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
784
|
+
.dz-input-prefix {
|
|
785
|
+
flex: none;
|
|
786
|
+
width: 24px;
|
|
787
|
+
text-align: center;
|
|
788
|
+
color: var(--ink-soft);
|
|
675
789
|
}
|
|
676
790
|
|
|
677
|
-
.dz-field input[type="color"]
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
791
|
+
.dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):hover,
|
|
792
|
+
.dz-panel .dz-choice-trigger:hover,
|
|
793
|
+
.dz-panel .dz-input:hover,
|
|
794
|
+
.dz-panel .dz-format:hover,
|
|
795
|
+
.dz-panel .dz-band-height:hover {
|
|
796
|
+
border-color: var(--border);
|
|
681
797
|
}
|
|
682
798
|
|
|
683
|
-
|
|
684
|
-
.dz-field
|
|
685
|
-
.dz-
|
|
686
|
-
|
|
687
|
-
|
|
799
|
+
/* the box in hand turns to paper and takes the ring */
|
|
800
|
+
.dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):focus-visible,
|
|
801
|
+
.dz-panel .dz-choice-trigger:focus-visible,
|
|
802
|
+
.dz-panel .dz-choice-trigger[aria-expanded="true"],
|
|
803
|
+
.dz-panel .dz-input:focus-within,
|
|
804
|
+
.dz-panel .dz-format:focus-visible,
|
|
805
|
+
.dz-panel .dz-band-height:focus-visible {
|
|
806
|
+
outline: none;
|
|
688
807
|
border-color: var(--accent-strong);
|
|
808
|
+
box-shadow: inset 0 0 0 1px var(--accent-strong);
|
|
809
|
+
background-color: var(--surface);
|
|
689
810
|
}
|
|
690
811
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
812
|
+
/* the box inside a ringed box does not ring again */
|
|
813
|
+
.dz-panel .dz-field .dz-input input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):focus-visible {
|
|
814
|
+
border: 0;
|
|
815
|
+
box-shadow: none;
|
|
816
|
+
background: transparent;
|
|
696
817
|
}
|
|
697
818
|
|
|
698
|
-
/*
|
|
819
|
+
/* no spinners: arrow keys step, and the label scrubs */
|
|
820
|
+
.dz-panel input[type="number"] {
|
|
821
|
+
appearance: textfield;
|
|
822
|
+
-moz-appearance: textfield;
|
|
823
|
+
font-variant-numeric: tabular-nums;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.dz-panel input[type="number"]::-webkit-inner-spin-button,
|
|
827
|
+
.dz-panel input[type="number"]::-webkit-outer-spin-button {
|
|
828
|
+
-webkit-appearance: none;
|
|
829
|
+
margin: 0;
|
|
830
|
+
}
|
|
699
831
|
|
|
700
832
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
* A floating pill rather than a docked strip, matching the preview's pager - so
|
|
705
|
-
* the two screens read as the same product, and neither takes a permanent slice
|
|
706
|
-
* off the height of the page being worked on.
|
|
833
|
+
* A number shown but not editable - a margin switched off, showing what it
|
|
834
|
+
* comes back as. Faded with its letter, no hover outline, and nothing to scrub.
|
|
707
835
|
*/
|
|
708
|
-
.dz-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
bottom: var(--dz-foot-offset);
|
|
712
|
-
transform: translateX(-50%);
|
|
713
|
-
z-index: 5;
|
|
714
|
-
|
|
715
|
-
display: flex;
|
|
716
|
-
align-items: center;
|
|
717
|
-
gap: 4px;
|
|
718
|
-
height: var(--dz-foot-height);
|
|
719
|
-
padding: 0 8px;
|
|
720
|
-
|
|
721
|
-
background: var(--surface);
|
|
722
|
-
border: 1px solid var(--border);
|
|
723
|
-
border-radius: 999px;
|
|
724
|
-
box-shadow: 0 4px 16px rgba(34, 39, 44, .12);
|
|
836
|
+
.dz-panel .dz-input:has(input:disabled) {
|
|
837
|
+
opacity: .45;
|
|
838
|
+
border-color: transparent;
|
|
725
839
|
}
|
|
726
840
|
|
|
727
|
-
.dz-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
width: 32px;
|
|
731
|
-
height: 32px;
|
|
732
|
-
padding: 0;
|
|
733
|
-
|
|
734
|
-
/* transparent rather than none, so hover adds no width and nothing shifts */
|
|
735
|
-
border: 1px solid transparent;
|
|
736
|
-
border-radius: 999px;
|
|
737
|
-
background: none;
|
|
738
|
-
/* the glyph is stroked with currentColor, so this colours it too */
|
|
739
|
-
color: var(--ink);
|
|
740
|
-
cursor: pointer;
|
|
841
|
+
.dz-panel .dz-input:has(input:disabled) .dz-scrub,
|
|
842
|
+
.dz-panel .dz-field input:disabled {
|
|
843
|
+
cursor: not-allowed;
|
|
741
844
|
}
|
|
742
845
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
846
|
+
/**
|
|
847
|
+
* A choice is a button over a select that is still the control (see
|
|
848
|
+
* choiceBox). The select is kept out of sight and out of the tab order; the
|
|
849
|
+
* button is the box, with a chevron of our own.
|
|
850
|
+
*/
|
|
851
|
+
.dz-choice {
|
|
852
|
+
position: relative;
|
|
853
|
+
display: block;
|
|
854
|
+
min-width: 0;
|
|
747
855
|
}
|
|
748
856
|
|
|
749
|
-
.dz-
|
|
750
|
-
|
|
857
|
+
.dz-choice .dz-choice-native {
|
|
858
|
+
position: absolute;
|
|
859
|
+
width: 1px;
|
|
860
|
+
height: 1px;
|
|
861
|
+
min-height: 0;
|
|
862
|
+
padding: 0;
|
|
863
|
+
border: 0;
|
|
864
|
+
opacity: 0;
|
|
865
|
+
pointer-events: none;
|
|
751
866
|
}
|
|
752
867
|
|
|
753
|
-
.dz-
|
|
754
|
-
|
|
755
|
-
|
|
868
|
+
.dz-panel .dz-choice-trigger {
|
|
869
|
+
display: flex;
|
|
870
|
+
align-items: center;
|
|
871
|
+
text-align: left;
|
|
872
|
+
padding-right: 22px;
|
|
873
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
874
|
+
background-repeat: no-repeat;
|
|
875
|
+
background-position: right 7px center;
|
|
876
|
+
background-size: 9px 6px;
|
|
877
|
+
text-overflow: ellipsis;
|
|
878
|
+
cursor: pointer;
|
|
756
879
|
}
|
|
757
880
|
|
|
758
|
-
.dz-
|
|
759
|
-
|
|
881
|
+
.dz-choice-value {
|
|
882
|
+
min-width: 0;
|
|
760
883
|
overflow: hidden;
|
|
761
884
|
text-overflow: ellipsis;
|
|
762
885
|
white-space: nowrap;
|
|
763
886
|
}
|
|
764
887
|
|
|
765
|
-
/* ---------------- structure controls ---------------- */
|
|
766
|
-
|
|
767
888
|
/**
|
|
768
|
-
* The
|
|
769
|
-
*
|
|
770
|
-
*
|
|
771
|
-
* of the way with the page area it belongs to and cannot be left hanging over
|
|
772
|
-
* the rail. Above the selection outline and its handles, below the bar.
|
|
889
|
+
* The listbox a choice opens - the shared dark menu, fixed to the window and
|
|
890
|
+
* placed by attachPanel so the chosen item sits over the button. It lives in
|
|
891
|
+
* the designer rather than the rail, so it takes the rail's type here.
|
|
773
892
|
*/
|
|
774
|
-
.dz-
|
|
775
|
-
position:
|
|
776
|
-
|
|
893
|
+
.dz-listbox {
|
|
894
|
+
position: fixed;
|
|
895
|
+
top: 0;
|
|
896
|
+
left: 0;
|
|
897
|
+
z-index: 60;
|
|
898
|
+
max-height: min(360px, calc(100vh - 16px));
|
|
899
|
+
overflow-y: auto;
|
|
900
|
+
scrollbar-width: thin;
|
|
777
901
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
padding: 4px;
|
|
902
|
+
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
903
|
+
font-size: 11px;
|
|
904
|
+
}
|
|
782
905
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
906
|
+
/**
|
|
907
|
+
* The shared menu sets its figures tabular, for the zoom list's percentages.
|
|
908
|
+
* A choice's items are words and samples - "(1,234)", "17 Jun 2026" - which
|
|
909
|
+
* tabular figures spread out until they read as typewriter text.
|
|
910
|
+
*/
|
|
911
|
+
.dz-listbox .dropdown-item {
|
|
912
|
+
font-variant-numeric: normal;
|
|
787
913
|
}
|
|
788
914
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
justify-content: center;
|
|
793
|
-
width: 30px;
|
|
794
|
-
height: 30px;
|
|
795
|
-
border: 0;
|
|
796
|
-
border-radius: 999px;
|
|
797
|
-
background: none;
|
|
798
|
-
color: var(--ink-soft);
|
|
799
|
-
cursor: pointer;
|
|
915
|
+
/* a dialog's choices open at the dialog's type size, not the rail's */
|
|
916
|
+
.dz-listbox.is-roomy {
|
|
917
|
+
font-size: 12px;
|
|
800
918
|
}
|
|
801
919
|
|
|
802
|
-
.dz-
|
|
803
|
-
|
|
804
|
-
background: var(--accent-soft);
|
|
805
|
-
color: var(--accent-ink);
|
|
806
|
-
outline: none;
|
|
920
|
+
.dz-listbox.is-roomy .dropdown-item {
|
|
921
|
+
min-height: 28px;
|
|
807
922
|
}
|
|
808
923
|
|
|
809
|
-
/*
|
|
810
|
-
.dz-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
924
|
+
/* a square that fills with ink when ticked */
|
|
925
|
+
.dz-panel input[type="checkbox"] {
|
|
926
|
+
appearance: none;
|
|
927
|
+
-webkit-appearance: none;
|
|
928
|
+
flex: none;
|
|
929
|
+
width: 14px;
|
|
930
|
+
height: 14px;
|
|
931
|
+
min-height: 0;
|
|
932
|
+
margin: 0;
|
|
933
|
+
border: 1px solid var(--ink-soft);
|
|
934
|
+
border-radius: 3px;
|
|
935
|
+
background: var(--surface) center / 10px 10px no-repeat;
|
|
936
|
+
cursor: pointer;
|
|
814
937
|
}
|
|
815
938
|
|
|
816
|
-
.dz-
|
|
817
|
-
|
|
818
|
-
|
|
939
|
+
.dz-panel input[type="checkbox"]:checked {
|
|
940
|
+
border-color: var(--ink);
|
|
941
|
+
background-color: var(--ink);
|
|
942
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
819
943
|
}
|
|
820
944
|
|
|
821
|
-
.dz-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
margin: 0 3px;
|
|
825
|
-
background: var(--border);
|
|
945
|
+
.dz-panel input[type="checkbox"]:focus-visible {
|
|
946
|
+
outline: 2px solid var(--accent-strong);
|
|
947
|
+
outline-offset: 1px;
|
|
826
948
|
}
|
|
827
949
|
|
|
828
|
-
/*
|
|
829
|
-
.dz-
|
|
830
|
-
|
|
950
|
+
/* a switch is the box and then what it does, on one line */
|
|
951
|
+
.dz-panel .dz-field-toggle {
|
|
952
|
+
flex-direction: row;
|
|
953
|
+
flex-wrap: wrap;
|
|
831
954
|
align-items: center;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
955
|
+
gap: 4px 8px;
|
|
956
|
+
min-height: var(--field-h);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.dz-panel .dz-field-toggle input[type="checkbox"] {
|
|
960
|
+
order: -1;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.dz-panel .dz-field-toggle label {
|
|
964
|
+
flex: 1;
|
|
965
|
+
color: var(--ink);
|
|
843
966
|
cursor: pointer;
|
|
844
967
|
}
|
|
845
968
|
|
|
846
|
-
.dz-
|
|
847
|
-
|
|
848
|
-
background: var(--accent-soft);
|
|
849
|
-
color: var(--accent-ink);
|
|
969
|
+
.dz-panel .dz-field-toggle .dz-hint {
|
|
970
|
+
flex-basis: 100%;
|
|
850
971
|
}
|
|
851
972
|
|
|
852
|
-
|
|
973
|
+
/**
|
|
974
|
+
* A field's explanation is shown while that field is being used, not beside
|
|
975
|
+
* every field at once - a dozen paragraphs of grey were most of the rail, and
|
|
976
|
+
* pushed the controls apart until none could be read at a glance. The band
|
|
977
|
+
* list's one-line notes stay, being part of what each row says.
|
|
978
|
+
*/
|
|
979
|
+
.dz-panel .dz-hint {
|
|
980
|
+
color: var(--ink-soft);
|
|
981
|
+
font-size: 11px;
|
|
982
|
+
line-height: 1.4;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.dz-panel .dz-field > .dz-hint {
|
|
986
|
+
display: none;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.dz-panel .dz-field:focus-within > .dz-hint {
|
|
990
|
+
display: block;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* ---- colours: chip, hex, and a minus to take the colour off ---- */
|
|
994
|
+
|
|
995
|
+
.dz-panel .dz-swatch.dz-input {
|
|
996
|
+
position: relative;
|
|
997
|
+
gap: 8px;
|
|
998
|
+
padding-left: 6px;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/* the gap to the hex is the chip's, so no padding rule has to win for it */
|
|
1002
|
+
.dz-panel .dz-swatch-well {
|
|
1003
|
+
position: relative;
|
|
1004
|
+
display: block;
|
|
1005
|
+
flex: none;
|
|
1006
|
+
width: 16px;
|
|
1007
|
+
height: 16px;
|
|
1008
|
+
border-radius: 3px;
|
|
1009
|
+
overflow: hidden;
|
|
1010
|
+
box-shadow: inset 0 0 0 1px rgb(34 39 44 / .12);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.dz-panel .dz-swatch-well input[type="color"] {
|
|
1014
|
+
display: block;
|
|
853
1015
|
width: 100%;
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
border
|
|
1016
|
+
height: 100%;
|
|
1017
|
+
padding: 0;
|
|
1018
|
+
border: 0;
|
|
857
1019
|
background: none;
|
|
858
|
-
color: var(--ink-soft);
|
|
859
|
-
font: inherit;
|
|
860
1020
|
cursor: pointer;
|
|
861
1021
|
}
|
|
862
1022
|
|
|
863
|
-
.dz-
|
|
864
|
-
|
|
865
|
-
margin-right: 5px;
|
|
1023
|
+
.dz-panel .dz-swatch-well input[type="color"]::-webkit-color-swatch-wrapper {
|
|
1024
|
+
padding: 0;
|
|
866
1025
|
}
|
|
867
1026
|
|
|
868
|
-
.dz-
|
|
869
|
-
border
|
|
870
|
-
border-
|
|
871
|
-
background: var(--accent-soft);
|
|
872
|
-
color: var(--accent-ink);
|
|
1027
|
+
.dz-panel .dz-swatch-well input[type="color"]::-webkit-color-swatch {
|
|
1028
|
+
border: 0;
|
|
1029
|
+
border-radius: 3px;
|
|
873
1030
|
}
|
|
874
1031
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
gap: 6px;
|
|
1032
|
+
.dz-panel .dz-swatch-well input[type="color"]::-moz-color-swatch {
|
|
1033
|
+
border: 0;
|
|
1034
|
+
border-radius: 3px;
|
|
879
1035
|
}
|
|
880
1036
|
|
|
881
|
-
|
|
882
|
-
.dz-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1037
|
+
/* white with a red slash through it: the usual way of saying "no colour" */
|
|
1038
|
+
.dz-panel .dz-swatch.is-none .dz-swatch-well::after {
|
|
1039
|
+
content: "";
|
|
1040
|
+
position: absolute;
|
|
1041
|
+
inset: 0;
|
|
886
1042
|
border: 1px solid var(--border);
|
|
887
|
-
border-radius:
|
|
888
|
-
background:
|
|
1043
|
+
border-radius: 3px;
|
|
1044
|
+
background:
|
|
1045
|
+
linear-gradient(to top right,
|
|
1046
|
+
transparent calc(50% - .75px),
|
|
1047
|
+
var(--danger) calc(50% - .75px),
|
|
1048
|
+
var(--danger) calc(50% + .75px),
|
|
1049
|
+
transparent calc(50% + .75px)),
|
|
1050
|
+
var(--surface);
|
|
1051
|
+
pointer-events: none;
|
|
889
1052
|
}
|
|
890
1053
|
|
|
891
|
-
.dz-
|
|
892
|
-
|
|
1054
|
+
.dz-panel .dz-hex {
|
|
1055
|
+
text-transform: uppercase;
|
|
1056
|
+
font-variant-numeric: tabular-nums;
|
|
893
1057
|
}
|
|
894
1058
|
|
|
895
|
-
.dz-
|
|
896
|
-
display: flex;
|
|
897
|
-
align-items: center;
|
|
898
|
-
justify-content: center;
|
|
899
|
-
border-style: dashed;
|
|
1059
|
+
.dz-panel .dz-hex::placeholder {
|
|
900
1060
|
color: var(--ink-soft);
|
|
1061
|
+
text-transform: none;
|
|
901
1062
|
}
|
|
902
1063
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
1064
|
+
/**
|
|
1065
|
+
* The minus shows on the row being pointed at, as a design tool's does - and
|
|
1066
|
+
* floats over the box's empty right end rather than taking a slot in the row,
|
|
1067
|
+
* which a six-digit hex needs all of at half the rail's width.
|
|
1068
|
+
*/
|
|
1069
|
+
.dz-panel .dz-swatch.dz-input .dz-swatch-clear {
|
|
1070
|
+
position: absolute;
|
|
1071
|
+
top: 1px;
|
|
1072
|
+
right: 1px;
|
|
1073
|
+
width: 20px;
|
|
1074
|
+
height: 20px;
|
|
1075
|
+
margin: 0;
|
|
1076
|
+
opacity: 0;
|
|
906
1077
|
}
|
|
907
1078
|
|
|
908
|
-
|
|
909
|
-
.dz-
|
|
910
|
-
|
|
1079
|
+
.dz-panel .dz-swatch.dz-input:hover .dz-swatch-clear,
|
|
1080
|
+
.dz-panel .dz-swatch.dz-input:focus-within .dz-swatch-clear {
|
|
1081
|
+
opacity: 1;
|
|
911
1082
|
}
|
|
912
1083
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
margin-bottom: 10px;
|
|
916
|
-
padding: 8px;
|
|
917
|
-
border: 1px solid var(--border);
|
|
918
|
-
border-radius: 5px;
|
|
919
|
-
background: var(--backdrop);
|
|
1084
|
+
.dz-panel .dz-swatch.dz-input.is-none .dz-swatch-clear {
|
|
1085
|
+
display: none;
|
|
920
1086
|
}
|
|
921
1087
|
|
|
922
|
-
|
|
923
|
-
|
|
1088
|
+
/* a group band's fill: the chip alone, beside the band's height */
|
|
1089
|
+
.dz-panel .dz-band-fill {
|
|
1090
|
+
display: inline-flex;
|
|
924
1091
|
align-items: center;
|
|
925
|
-
|
|
926
|
-
color: var(--ink-soft);
|
|
927
|
-
font-size: 10px;
|
|
928
|
-
letter-spacing: .06em;
|
|
1092
|
+
gap: 2px;
|
|
929
1093
|
}
|
|
930
1094
|
|
|
931
|
-
.dz-
|
|
932
|
-
|
|
1095
|
+
.dz-panel .dz-band-fill .dz-swatch-clear {
|
|
1096
|
+
width: 18px;
|
|
1097
|
+
height: 18px;
|
|
933
1098
|
}
|
|
934
1099
|
|
|
935
|
-
/*
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
grid-template-columns: 1fr 72px;
|
|
940
|
-
align-items: center;
|
|
941
|
-
gap: 6px;
|
|
942
|
-
padding: 5px 0;
|
|
1100
|
+
/* the clear button keeps its place, so the height box never moves */
|
|
1101
|
+
.dz-panel .dz-band-fill.is-none .dz-swatch-clear {
|
|
1102
|
+
display: inline-flex;
|
|
1103
|
+
visibility: hidden;
|
|
943
1104
|
}
|
|
944
1105
|
|
|
945
|
-
|
|
946
|
-
|
|
1106
|
+
/* ---- buttons ---- */
|
|
1107
|
+
|
|
1108
|
+
/* glyph buttons: no frame until pointed at */
|
|
1109
|
+
.dz-panel .dz-icon {
|
|
1110
|
+
display: inline-flex;
|
|
947
1111
|
align-items: center;
|
|
948
|
-
|
|
949
|
-
|
|
1112
|
+
justify-content: center;
|
|
1113
|
+
width: 24px;
|
|
1114
|
+
height: 24px;
|
|
1115
|
+
margin-left: 0;
|
|
1116
|
+
border: 0;
|
|
1117
|
+
border-radius: var(--field-radius);
|
|
1118
|
+
background: none;
|
|
950
1119
|
color: var(--ink-soft);
|
|
1120
|
+
font-size: 14px;
|
|
951
1121
|
}
|
|
952
1122
|
|
|
953
|
-
|
|
954
|
-
|
|
1123
|
+
.dz-panel .dz-icon:hover {
|
|
1124
|
+
background: var(--field-bg);
|
|
955
1125
|
color: var(--ink);
|
|
956
1126
|
}
|
|
957
1127
|
|
|
958
|
-
.dz-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
accent-color: var(--accent-strong);
|
|
1128
|
+
.dz-panel .dz-icon:focus-visible {
|
|
1129
|
+
outline: 2px solid var(--accent-strong);
|
|
1130
|
+
outline-offset: -2px;
|
|
962
1131
|
}
|
|
963
1132
|
|
|
964
|
-
|
|
1133
|
+
/* a secondary button: hairline outline on paper, centred */
|
|
1134
|
+
.dz-panel .dz-add-row {
|
|
965
1135
|
width: 100%;
|
|
966
|
-
|
|
1136
|
+
height: var(--field-h);
|
|
1137
|
+
padding: 0 8px;
|
|
967
1138
|
border: 1px solid var(--border);
|
|
968
|
-
border-radius:
|
|
1139
|
+
border-radius: var(--field-radius);
|
|
969
1140
|
background: var(--surface);
|
|
970
1141
|
color: var(--ink);
|
|
971
1142
|
font: inherit;
|
|
972
|
-
|
|
973
|
-
|
|
1143
|
+
cursor: pointer;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.dz-panel .dz-add-row:hover {
|
|
1147
|
+
border-color: var(--border);
|
|
1148
|
+
border-style: solid;
|
|
1149
|
+
background: var(--field-bg);
|
|
1150
|
+
color: var(--ink);
|
|
974
1151
|
}
|
|
975
1152
|
|
|
976
|
-
.dz-
|
|
1153
|
+
.dz-panel .dz-add-row:focus-visible {
|
|
977
1154
|
outline: 2px solid var(--accent-strong);
|
|
978
1155
|
outline-offset: -1px;
|
|
979
1156
|
}
|
|
980
1157
|
|
|
981
|
-
|
|
1158
|
+
/* a format's summary is a box like any other, with its Edit on the right */
|
|
1159
|
+
.dz-panel .dz-format {
|
|
1160
|
+
display: flex;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
justify-content: space-between;
|
|
1163
|
+
gap: 8px;
|
|
1164
|
+
text-align: left;
|
|
1165
|
+
cursor: pointer;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.dz-panel .dz-format-edit {
|
|
982
1169
|
color: var(--ink-soft);
|
|
983
|
-
font-size:
|
|
984
|
-
text-align: right;
|
|
1170
|
+
font-size: 11px;
|
|
985
1171
|
}
|
|
986
1172
|
|
|
987
|
-
.dz-
|
|
988
|
-
|
|
989
|
-
margin-top: -2px;
|
|
990
|
-
padding-left: 21px;
|
|
991
|
-
font-size: 10px;
|
|
1173
|
+
.dz-panel .dz-format:hover .dz-format-edit {
|
|
1174
|
+
color: var(--accent-ink);
|
|
992
1175
|
}
|
|
993
1176
|
|
|
994
|
-
/*
|
|
1177
|
+
/* ---- the value box ---- */
|
|
995
1178
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
* message pinned there would cover the fix for what it was complaining about.
|
|
1006
|
-
*
|
|
1007
|
-
* The column itself lets the pointer through, so it never takes a click meant
|
|
1008
|
-
* for the page behind it; each toast takes its own back.
|
|
1009
|
-
*/
|
|
1010
|
-
.dz-toasts {
|
|
1011
|
-
position: absolute;
|
|
1012
|
-
top: 16px;
|
|
1013
|
-
right: 16px;
|
|
1014
|
-
z-index: 20;
|
|
1179
|
+
.dz-panel .dz-brace {
|
|
1180
|
+
height: 20px;
|
|
1181
|
+
padding: 0 6px;
|
|
1182
|
+
border: 0;
|
|
1183
|
+
border-radius: 4px;
|
|
1184
|
+
background: none;
|
|
1185
|
+
color: var(--ink-soft);
|
|
1186
|
+
line-height: 20px;
|
|
1187
|
+
}
|
|
1015
1188
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1189
|
+
.dz-panel .dz-brace:hover {
|
|
1190
|
+
background: var(--field-bg);
|
|
1191
|
+
color: var(--accent-ink);
|
|
1192
|
+
}
|
|
1020
1193
|
|
|
1021
|
-
|
|
1194
|
+
.dz-panel .dz-value textarea {
|
|
1195
|
+
border-color: transparent;
|
|
1196
|
+
border-radius: var(--field-radius);
|
|
1022
1197
|
}
|
|
1023
1198
|
|
|
1024
|
-
.dz-
|
|
1025
|
-
|
|
1199
|
+
.dz-panel .dz-value textarea:hover {
|
|
1200
|
+
border-color: var(--border);
|
|
1201
|
+
}
|
|
1026
1202
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1203
|
+
.dz-panel .dz-value textarea:focus-visible {
|
|
1204
|
+
outline: none;
|
|
1205
|
+
border-color: var(--accent-strong);
|
|
1206
|
+
box-shadow: inset 0 0 0 1px var(--accent-strong);
|
|
1207
|
+
}
|
|
1031
1208
|
|
|
1209
|
+
/* the layer behind carries the box's fill, since the textarea is see-through */
|
|
1210
|
+
.dz-panel .dz-value-marks {
|
|
1211
|
+
border-radius: var(--field-radius);
|
|
1212
|
+
background: var(--field-bg);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.dz-panel .dz-value:focus-within .dz-value-marks {
|
|
1032
1216
|
background: var(--surface);
|
|
1033
|
-
|
|
1034
|
-
border-radius: 2px;
|
|
1035
|
-
box-shadow: 0 10px 28px rgb(34 39 44 / .16);
|
|
1217
|
+
}
|
|
1036
1218
|
|
|
1037
|
-
|
|
1038
|
-
font-size: 12px;
|
|
1039
|
-
color: var(--ink);
|
|
1219
|
+
/* ---- the stored picture ---- */
|
|
1040
1220
|
|
|
1041
|
-
|
|
1221
|
+
.dz-image {
|
|
1222
|
+
display: grid;
|
|
1223
|
+
gap: 8px;
|
|
1042
1224
|
}
|
|
1043
1225
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1226
|
+
.dz-image-thumb,
|
|
1227
|
+
.dz-image-none {
|
|
1228
|
+
box-sizing: border-box;
|
|
1229
|
+
width: 100%;
|
|
1230
|
+
height: 80px;
|
|
1231
|
+
border-radius: var(--field-radius);
|
|
1232
|
+
background: var(--field-bg);
|
|
1048
1233
|
}
|
|
1049
1234
|
|
|
1050
|
-
|
|
1051
|
-
|
|
1235
|
+
.dz-image-thumb {
|
|
1236
|
+
object-fit: contain;
|
|
1052
1237
|
}
|
|
1053
1238
|
|
|
1054
|
-
.dz-
|
|
1055
|
-
|
|
1056
|
-
|
|
1239
|
+
.dz-image-none {
|
|
1240
|
+
display: flex;
|
|
1241
|
+
align-items: center;
|
|
1242
|
+
justify-content: center;
|
|
1243
|
+
color: var(--ink-soft);
|
|
1057
1244
|
}
|
|
1058
1245
|
|
|
1059
|
-
.dz-
|
|
1060
|
-
display:
|
|
1061
|
-
|
|
1062
|
-
font-size: 12px;
|
|
1063
|
-
font-weight: 600;
|
|
1246
|
+
.dz-image-actions {
|
|
1247
|
+
display: flex;
|
|
1248
|
+
gap: 8px;
|
|
1064
1249
|
}
|
|
1065
1250
|
|
|
1066
|
-
/*
|
|
1067
|
-
.dz-
|
|
1068
|
-
|
|
1069
|
-
padding-left: 16px;
|
|
1070
|
-
color: var(--ink-soft);
|
|
1071
|
-
line-height: 1.5;
|
|
1072
|
-
overflow-wrap: anywhere;
|
|
1251
|
+
/* nothing is being added by these two, so the plus goes */
|
|
1252
|
+
.dz-image-actions .dz-add-row::before {
|
|
1253
|
+
content: none;
|
|
1073
1254
|
}
|
|
1074
1255
|
|
|
1075
|
-
|
|
1076
|
-
flex: none;
|
|
1077
|
-
width: 20px;
|
|
1078
|
-
height: 20px;
|
|
1079
|
-
display: inline-flex;
|
|
1080
|
-
align-items: center;
|
|
1081
|
-
justify-content: center;
|
|
1256
|
+
/* ---- a table's columns ---- */
|
|
1082
1257
|
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1258
|
+
/* rows that open, as layers do, packed closer than the section's controls */
|
|
1259
|
+
.dz-panel .dz-columns {
|
|
1260
|
+
row-gap: 2px;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
.dz-column-head {
|
|
1264
|
+
display: flex;
|
|
1265
|
+
align-items: center;
|
|
1266
|
+
gap: 6px;
|
|
1267
|
+
height: 28px;
|
|
1268
|
+
padding: 0 2px 0 4px;
|
|
1269
|
+
border-radius: var(--field-radius);
|
|
1270
|
+
list-style: none;
|
|
1090
1271
|
cursor: pointer;
|
|
1272
|
+
user-select: none;
|
|
1091
1273
|
}
|
|
1092
1274
|
|
|
1093
|
-
.dz-
|
|
1094
|
-
|
|
1095
|
-
background: var(--accent-soft);
|
|
1096
|
-
color: var(--accent-ink);
|
|
1275
|
+
.dz-column-head::-webkit-details-marker {
|
|
1276
|
+
display: none;
|
|
1097
1277
|
}
|
|
1098
1278
|
|
|
1099
|
-
|
|
1279
|
+
.dz-column-head:hover {
|
|
1280
|
+
background: var(--field-bg);
|
|
1281
|
+
}
|
|
1100
1282
|
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1283
|
+
.dz-column-head:focus-visible {
|
|
1284
|
+
outline: 2px solid var(--accent-strong);
|
|
1285
|
+
outline-offset: -2px;
|
|
1104
1286
|
}
|
|
1105
1287
|
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
*/
|
|
1114
|
-
.modal-card .dz-field {
|
|
1115
|
-
grid-template-columns: 1fr;
|
|
1116
|
-
gap: 6px;
|
|
1117
|
-
margin-bottom: 14px;
|
|
1288
|
+
/* a chevron that points at the column's controls once they are showing */
|
|
1289
|
+
.dz-column-caret {
|
|
1290
|
+
flex: none;
|
|
1291
|
+
width: 8px;
|
|
1292
|
+
height: 8px;
|
|
1293
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 5px 8px no-repeat;
|
|
1294
|
+
transition: transform .12s ease;
|
|
1118
1295
|
}
|
|
1119
1296
|
|
|
1120
|
-
.
|
|
1121
|
-
|
|
1122
|
-
font-size: 10px;
|
|
1123
|
-
font-weight: 600;
|
|
1124
|
-
letter-spacing: .06em;
|
|
1125
|
-
text-transform: uppercase;
|
|
1297
|
+
.dz-column[open] > .dz-column-head .dz-column-caret {
|
|
1298
|
+
transform: rotate(90deg);
|
|
1126
1299
|
}
|
|
1127
1300
|
|
|
1128
|
-
|
|
1129
|
-
.
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
justify-content: start;
|
|
1133
|
-
gap: 12px;
|
|
1301
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1302
|
+
.dz-column-caret {
|
|
1303
|
+
transition: none;
|
|
1304
|
+
}
|
|
1134
1305
|
}
|
|
1135
1306
|
|
|
1136
|
-
.
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1307
|
+
.dz-column-number {
|
|
1308
|
+
display: inline-grid;
|
|
1309
|
+
place-items: center;
|
|
1310
|
+
flex: none;
|
|
1311
|
+
min-width: 18px;
|
|
1312
|
+
height: 18px;
|
|
1313
|
+
padding: 0 4px;
|
|
1314
|
+
border-radius: 4px;
|
|
1315
|
+
background: var(--field-bg);
|
|
1316
|
+
color: var(--ink-soft);
|
|
1317
|
+
font-size: 10px;
|
|
1318
|
+
font-variant-numeric: tabular-nums;
|
|
1142
1319
|
}
|
|
1143
1320
|
|
|
1144
|
-
|
|
1321
|
+
.dz-column-head:hover .dz-column-number {
|
|
1322
|
+
background: var(--surface);
|
|
1323
|
+
}
|
|
1145
1324
|
|
|
1146
|
-
|
|
1147
|
-
.dz-title {
|
|
1325
|
+
.dz-column-name {
|
|
1148
1326
|
flex: 1;
|
|
1149
|
-
display: flex;
|
|
1150
|
-
flex-direction: column;
|
|
1151
|
-
gap: 1px;
|
|
1152
1327
|
min-width: 0;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
.dz-status {
|
|
1156
|
-
font-size: 10px;
|
|
1157
|
-
color: var(--ink-soft);
|
|
1158
1328
|
overflow: hidden;
|
|
1159
1329
|
text-overflow: ellipsis;
|
|
1160
1330
|
white-space: nowrap;
|
|
1331
|
+
font-weight: 600;
|
|
1161
1332
|
}
|
|
1162
1333
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
color: var(--
|
|
1334
|
+
.dz-column-width {
|
|
1335
|
+
flex: none;
|
|
1336
|
+
color: var(--ink-soft);
|
|
1337
|
+
font-variant-numeric: tabular-nums;
|
|
1166
1338
|
}
|
|
1167
1339
|
|
|
1168
|
-
/*
|
|
1169
|
-
.dz-
|
|
1170
|
-
|
|
1171
|
-
|
|
1340
|
+
/* remove waits on the right until the column is pointed at */
|
|
1341
|
+
.dz-panel .dz-column-head .dz-icon {
|
|
1342
|
+
width: 20px;
|
|
1343
|
+
height: 20px;
|
|
1344
|
+
opacity: 0;
|
|
1172
1345
|
}
|
|
1173
1346
|
|
|
1174
|
-
.dz-
|
|
1347
|
+
.dz-panel .dz-column-head:hover .dz-icon,
|
|
1348
|
+
.dz-panel .dz-column-head:focus-within .dz-icon,
|
|
1349
|
+
.dz-panel .dz-column-head .dz-icon:focus-visible {
|
|
1350
|
+
opacity: 1;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/* open, the column's controls on the rail's grid */
|
|
1354
|
+
.dz-column-body {
|
|
1355
|
+
display: grid;
|
|
1356
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1357
|
+
gap: 8px;
|
|
1358
|
+
padding: 6px 0 12px;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/* ---- a row of glyph buttons ---- */
|
|
1362
|
+
|
|
1363
|
+
/* a choice of a few, each a glyph, the chosen one raised on paper */
|
|
1364
|
+
.dz-segmented {
|
|
1175
1365
|
display: flex;
|
|
1176
|
-
align-items: center;
|
|
1177
1366
|
gap: 2px;
|
|
1178
|
-
|
|
1179
|
-
|
|
1367
|
+
height: var(--field-h);
|
|
1368
|
+
padding: 2px;
|
|
1369
|
+
border-radius: var(--field-radius);
|
|
1370
|
+
background: var(--field-bg);
|
|
1180
1371
|
}
|
|
1181
1372
|
|
|
1182
|
-
.dz-
|
|
1183
|
-
|
|
1373
|
+
.dz-seg {
|
|
1374
|
+
position: relative;
|
|
1375
|
+
display: flex;
|
|
1376
|
+
flex: 1;
|
|
1377
|
+
min-width: 0;
|
|
1378
|
+
cursor: pointer;
|
|
1184
1379
|
}
|
|
1185
1380
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1381
|
+
/* the radio stays, unseen, over its glyph: it is what takes the click and the keys */
|
|
1382
|
+
.dz-seg input {
|
|
1383
|
+
position: absolute;
|
|
1384
|
+
inset: 0;
|
|
1385
|
+
width: 100%;
|
|
1386
|
+
height: 100%;
|
|
1387
|
+
margin: 0;
|
|
1388
|
+
opacity: 0;
|
|
1389
|
+
cursor: pointer;
|
|
1189
1390
|
}
|
|
1190
1391
|
|
|
1191
|
-
.dz-
|
|
1192
|
-
|
|
1193
|
-
|
|
1392
|
+
.dz-seg-glyph {
|
|
1393
|
+
display: grid;
|
|
1394
|
+
flex: 1;
|
|
1395
|
+
place-items: center;
|
|
1396
|
+
border-radius: 3px;
|
|
1397
|
+
color: var(--ink-soft);
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.dz-seg-glyph svg {
|
|
1401
|
+
width: 14px;
|
|
1402
|
+
height: 14px;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.dz-seg:hover .dz-seg-glyph {
|
|
1194
1406
|
color: var(--ink);
|
|
1195
1407
|
}
|
|
1196
1408
|
|
|
1197
|
-
|
|
1409
|
+
.dz-seg input:checked + .dz-seg-glyph {
|
|
1410
|
+
background: var(--surface);
|
|
1411
|
+
color: var(--ink);
|
|
1412
|
+
box-shadow: 0 0 0 1px var(--border);
|
|
1413
|
+
}
|
|
1198
1414
|
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
* thing being read - which is a report name, and report names are long.
|
|
1203
|
-
*/
|
|
1204
|
-
.modal-card .dz-field-picker {
|
|
1205
|
-
margin-bottom: 6px;
|
|
1415
|
+
.dz-seg input:focus-visible + .dz-seg-glyph {
|
|
1416
|
+
outline: 2px solid var(--accent-strong);
|
|
1417
|
+
outline-offset: -1px;
|
|
1206
1418
|
}
|
|
1207
1419
|
|
|
1208
|
-
/*
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1420
|
+
/* ---- the band list ---- */
|
|
1421
|
+
|
|
1422
|
+
/* a row per band, as a layer list is: tick, name, then its height */
|
|
1423
|
+
.dz-band-row {
|
|
1424
|
+
display: grid;
|
|
1425
|
+
grid-template-columns: minmax(0, 1fr) 52px;
|
|
1426
|
+
align-items: center;
|
|
1427
|
+
column-gap: 8px;
|
|
1428
|
+
row-gap: 0;
|
|
1429
|
+
min-height: 28px;
|
|
1212
1430
|
}
|
|
1213
1431
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1432
|
+
.dz-band-row.has-fill {
|
|
1433
|
+
grid-template-columns: minmax(0, 1fr) auto 52px;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.dz-band-name {
|
|
1437
|
+
display: flex;
|
|
1438
|
+
align-items: center;
|
|
1439
|
+
gap: 8px;
|
|
1217
1440
|
min-width: 0;
|
|
1441
|
+
cursor: pointer;
|
|
1442
|
+
color: var(--ink-soft);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.dz-band-name span {
|
|
1218
1446
|
overflow: hidden;
|
|
1219
1447
|
text-overflow: ellipsis;
|
|
1220
1448
|
white-space: nowrap;
|
|
1221
|
-
text-align: left;
|
|
1222
1449
|
}
|
|
1223
1450
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
* it takes the dialog's type size rather than the toolbar's.
|
|
1228
|
-
*/
|
|
1229
|
-
.modal-card .dz-field-picker .dropdown-trigger,
|
|
1230
|
-
.modal-card .dz-field-picker .dropdown-item {
|
|
1231
|
-
font-size: 13px;
|
|
1451
|
+
/* an inactive band is legible but plainly off */
|
|
1452
|
+
.dz-band-row.is-on .dz-band-name {
|
|
1453
|
+
color: var(--ink);
|
|
1232
1454
|
}
|
|
1233
1455
|
|
|
1234
|
-
.
|
|
1235
|
-
|
|
1236
|
-
|
|
1456
|
+
.dz-panel .dz-band-height {
|
|
1457
|
+
font-variant-numeric: tabular-nums;
|
|
1458
|
+
text-align: right;
|
|
1237
1459
|
}
|
|
1238
1460
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
*
|
|
1244
|
-
* A report name is as long as someone typed it and the menu is a fixed width,
|
|
1245
|
-
* so it clips rather than pushing the menu wider than the trigger under it.
|
|
1246
|
-
*/
|
|
1247
|
-
.modal-card .dz-field-picker .dropdown-item {
|
|
1248
|
-
padding: 9px 12px 9px 8px;
|
|
1249
|
-
overflow: hidden;
|
|
1250
|
-
text-overflow: ellipsis;
|
|
1461
|
+
.dz-band-height-none {
|
|
1462
|
+
color: var(--ink-soft);
|
|
1463
|
+
font-size: 10px;
|
|
1464
|
+
text-align: right;
|
|
1251
1465
|
}
|
|
1252
1466
|
|
|
1253
|
-
.
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1467
|
+
.dz-band-row .dz-hint {
|
|
1468
|
+
grid-column: 1 / -1;
|
|
1469
|
+
padding: 0 0 4px 22px;
|
|
1470
|
+
font-size: 10px;
|
|
1471
|
+
line-height: 1.3;
|
|
1257
1472
|
}
|
|
1258
1473
|
|
|
1474
|
+
/* ---- a table's grouping levels ---- */
|
|
1475
|
+
|
|
1259
1476
|
/**
|
|
1260
|
-
* A
|
|
1261
|
-
*
|
|
1477
|
+
* A level is a block on the rail's grid, under a row naming it - the levels of
|
|
1478
|
+
* a nested grouping read as separate things, each with its own field, order,
|
|
1479
|
+
* page breaks and bands, rather than one run of controls.
|
|
1262
1480
|
*/
|
|
1263
|
-
.dz-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1481
|
+
.dz-panel .dz-group-level {
|
|
1482
|
+
display: grid;
|
|
1483
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1484
|
+
gap: 8px;
|
|
1485
|
+
padding-bottom: 12px;
|
|
1268
1486
|
}
|
|
1269
1487
|
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1488
|
+
.dz-panel .dz-group-level + .dz-group-level {
|
|
1489
|
+
padding-top: 12px;
|
|
1490
|
+
border-top: 1px dashed var(--border);
|
|
1273
1491
|
}
|
|
1274
1492
|
|
|
1275
|
-
.
|
|
1276
|
-
|
|
1277
|
-
|
|
1493
|
+
.dz-group-level-head {
|
|
1494
|
+
display: flex;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
justify-content: space-between;
|
|
1497
|
+
gap: 8px;
|
|
1498
|
+
height: 24px;
|
|
1278
1499
|
}
|
|
1279
1500
|
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1501
|
+
.dz-group-level-name {
|
|
1502
|
+
min-width: 0;
|
|
1503
|
+
overflow: hidden;
|
|
1504
|
+
text-overflow: ellipsis;
|
|
1505
|
+
white-space: nowrap;
|
|
1506
|
+
color: var(--ink-soft);
|
|
1285
1507
|
}
|
|
1286
1508
|
|
|
1287
|
-
.dz-
|
|
1288
|
-
width: 100%;
|
|
1289
|
-
padding: 10px 12px;
|
|
1290
|
-
border: 1px solid var(--border);
|
|
1291
|
-
border-radius: 6px;
|
|
1292
|
-
background: var(--backdrop);
|
|
1509
|
+
.dz-group-level-name b {
|
|
1293
1510
|
color: var(--ink);
|
|
1294
|
-
|
|
1511
|
+
font-weight: 600;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/* the move and remove buttons together on the right, not pushed apart */
|
|
1515
|
+
.dz-group-level-actions {
|
|
1516
|
+
display: flex;
|
|
1517
|
+
flex: none;
|
|
1518
|
+
gap: 2px;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/* ---- several items selected ---- */
|
|
1522
|
+
|
|
1523
|
+
.dz-selected {
|
|
1524
|
+
display: flex;
|
|
1525
|
+
flex-direction: column;
|
|
1526
|
+
gap: 2px;
|
|
1527
|
+
padding: 0;
|
|
1528
|
+
list-style: none;
|
|
1529
|
+
max-height: 30vh;
|
|
1530
|
+
overflow-y: auto;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.dz-selected li {
|
|
1534
|
+
display: flex;
|
|
1535
|
+
align-items: center;
|
|
1536
|
+
gap: 8px;
|
|
1537
|
+
height: 28px;
|
|
1538
|
+
padding: 0 8px;
|
|
1539
|
+
border-radius: var(--field-radius);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
.dz-selected li:hover {
|
|
1543
|
+
background: var(--field-bg);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.dz-selected-type {
|
|
1547
|
+
flex: none;
|
|
1548
|
+
width: 36px;
|
|
1549
|
+
color: var(--ink-soft);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
.dz-selected-id {
|
|
1553
|
+
overflow: hidden;
|
|
1554
|
+
text-overflow: ellipsis;
|
|
1555
|
+
white-space: nowrap;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
/* ---------------- the tool footer ---------------- */
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* The tools sit under the page, not in the bar: the bar is about the report as
|
|
1562
|
+
* a whole, and these act on the band being looked at.
|
|
1563
|
+
*
|
|
1564
|
+
* A floating pill rather than a docked strip, matching the preview's pager - so
|
|
1565
|
+
* the two screens read as the same product, and neither takes a permanent slice
|
|
1566
|
+
* off the height of the page being worked on.
|
|
1567
|
+
*/
|
|
1568
|
+
.dz-foot {
|
|
1569
|
+
position: absolute;
|
|
1570
|
+
left: 50%;
|
|
1571
|
+
bottom: var(--dz-foot-offset);
|
|
1572
|
+
transform: translateX(-50%);
|
|
1573
|
+
z-index: 5;
|
|
1574
|
+
|
|
1575
|
+
display: flex;
|
|
1576
|
+
align-items: center;
|
|
1577
|
+
gap: 4px;
|
|
1578
|
+
height: var(--dz-foot-height);
|
|
1579
|
+
padding: 0 8px;
|
|
1580
|
+
|
|
1581
|
+
background: var(--surface);
|
|
1582
|
+
border: 1px solid var(--border);
|
|
1583
|
+
border-radius: 999px;
|
|
1584
|
+
box-shadow: 0 4px 16px rgba(34, 39, 44, .12);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
.dz-tool {
|
|
1588
|
+
display: grid;
|
|
1589
|
+
place-items: center;
|
|
1590
|
+
width: 32px;
|
|
1591
|
+
height: 32px;
|
|
1592
|
+
padding: 0;
|
|
1593
|
+
|
|
1594
|
+
/* transparent rather than none, so hover adds no width and nothing shifts */
|
|
1595
|
+
border: 1px solid transparent;
|
|
1596
|
+
border-radius: 999px;
|
|
1597
|
+
background: none;
|
|
1598
|
+
/* the glyph is stroked with currentColor, so this colours it too */
|
|
1599
|
+
color: var(--ink);
|
|
1600
|
+
cursor: pointer;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
.dz-tool:hover {
|
|
1604
|
+
border-color: var(--accent);
|
|
1605
|
+
background: var(--accent-soft);
|
|
1606
|
+
color: var(--accent-ink);
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.dz-tool:active {
|
|
1610
|
+
background: var(--accent-tint);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.dz-tool:focus-visible {
|
|
1614
|
+
outline: 2px solid var(--accent-strong);
|
|
1615
|
+
outline-offset: 1px;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.dz-name {
|
|
1619
|
+
flex: 1;
|
|
1620
|
+
overflow: hidden;
|
|
1621
|
+
text-overflow: ellipsis;
|
|
1622
|
+
white-space: nowrap;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/* ---------------- structure controls ---------------- */
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* The right-click menu.
|
|
1629
|
+
*
|
|
1630
|
+
* Absolute inside .dz-main rather than fixed to the window, so it scrolls out
|
|
1631
|
+
* of the way with the page area it belongs to and cannot be left hanging over
|
|
1632
|
+
* the rail. Above the selection outline and its handles, below the bar.
|
|
1633
|
+
*
|
|
1634
|
+
* A list of named rows - icon, name, keys - as a context menu is everywhere
|
|
1635
|
+
* else, so what each one does is read rather than guessed from a glyph.
|
|
1636
|
+
*/
|
|
1637
|
+
.dz-menu {
|
|
1638
|
+
position: absolute;
|
|
1639
|
+
z-index: 8;
|
|
1640
|
+
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
min-width: 200px;
|
|
1644
|
+
padding: 4px;
|
|
1645
|
+
|
|
1646
|
+
border: 1px solid var(--border);
|
|
1647
|
+
border-radius: 8px;
|
|
1648
|
+
background: var(--surface);
|
|
1649
|
+
box-shadow: 0 8px 24px rgb(34 39 44 / .18);
|
|
1650
|
+
|
|
1651
|
+
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
1652
|
+
font-size: 12px;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
.dz-menu-item {
|
|
1656
|
+
display: grid;
|
|
1657
|
+
grid-template-columns: 16px 1fr auto;
|
|
1658
|
+
align-items: center;
|
|
1659
|
+
gap: 10px;
|
|
1660
|
+
height: 30px;
|
|
1661
|
+
padding: 0 10px;
|
|
1662
|
+
border: 0;
|
|
1663
|
+
border-radius: 5px;
|
|
1664
|
+
background: none;
|
|
1665
|
+
color: var(--ink);
|
|
1666
|
+
font: inherit;
|
|
1667
|
+
text-align: left;
|
|
1668
|
+
white-space: nowrap;
|
|
1669
|
+
cursor: pointer;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
.dz-menu-icon {
|
|
1673
|
+
display: inline-flex;
|
|
1674
|
+
color: var(--ink-soft);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
.dz-menu-keys {
|
|
1678
|
+
color: var(--ink-soft);
|
|
1679
|
+
font-family: inherit;
|
|
1680
|
+
font-size: 11px;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
.dz-menu-item:hover:not(:disabled),
|
|
1684
|
+
.dz-menu-item:focus-visible {
|
|
1685
|
+
background: var(--accent-soft);
|
|
1686
|
+
color: var(--accent-ink);
|
|
1687
|
+
outline: none;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.dz-menu-item:hover:not(:disabled) .dz-menu-icon,
|
|
1691
|
+
.dz-menu-item:focus-visible .dz-menu-icon {
|
|
1692
|
+
color: inherit;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/* the one action that cannot be taken back by moving something else */
|
|
1696
|
+
.dz-menu-item.is-danger:hover:not(:disabled),
|
|
1697
|
+
.dz-menu-item.is-danger:focus-visible {
|
|
1698
|
+
background: var(--danger-soft);
|
|
1699
|
+
color: var(--danger);
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.dz-menu-item:disabled {
|
|
1703
|
+
opacity: .4;
|
|
1704
|
+
cursor: default;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.dz-menu-sep {
|
|
1708
|
+
height: 1px;
|
|
1709
|
+
margin: 4px 6px;
|
|
1710
|
+
background: var(--border);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/* the column editor's remove button; .dz-column-head lays it out on the right */
|
|
1714
|
+
.dz-icon {
|
|
1715
|
+
display: inline-flex;
|
|
1716
|
+
align-items: center;
|
|
1717
|
+
justify-content: center;
|
|
1718
|
+
margin-left: auto;
|
|
1719
|
+
width: 20px;
|
|
1720
|
+
height: 20px;
|
|
1721
|
+
border: 1px solid transparent;
|
|
1722
|
+
border-radius: 4px;
|
|
1723
|
+
background: none;
|
|
1724
|
+
color: var(--ink-soft);
|
|
1725
|
+
font: inherit;
|
|
1726
|
+
font-size: 15px;
|
|
1727
|
+
line-height: 1;
|
|
1728
|
+
cursor: pointer;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.dz-icon:hover {
|
|
1732
|
+
border-color: var(--accent);
|
|
1733
|
+
background: var(--accent-soft);
|
|
1734
|
+
color: var(--accent-ink);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.dz-add-row {
|
|
1738
|
+
width: 100%;
|
|
1739
|
+
padding: 6px;
|
|
1740
|
+
border: 1px dashed var(--border);
|
|
1741
|
+
border-radius: 5px;
|
|
1742
|
+
background: none;
|
|
1743
|
+
color: var(--ink-soft);
|
|
1744
|
+
font: inherit;
|
|
1745
|
+
cursor: pointer;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
.dz-add-row::before {
|
|
1749
|
+
content: "+";
|
|
1750
|
+
margin-right: 5px;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
.dz-add-row:hover {
|
|
1754
|
+
border-color: var(--accent);
|
|
1755
|
+
border-style: solid;
|
|
1756
|
+
background: var(--accent-soft);
|
|
1757
|
+
color: var(--accent-ink);
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
/* ---------------- the corner ---------------- */
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* Messages stack in the top right of the page area.
|
|
1764
|
+
*
|
|
1765
|
+
* Out of the flow rather than above the page: one placed there pushed the
|
|
1766
|
+
* design down the canvas every time a half-finished layout failed to validate,
|
|
1767
|
+
* which moved the very thing the author was pointing at.
|
|
1768
|
+
*
|
|
1769
|
+
* The corner of the page area, not of the window - the window's corner is the
|
|
1770
|
+
* top of the properties rail, and that is where the band switches are, so a
|
|
1771
|
+
* message pinned there would cover the fix for what it was complaining about.
|
|
1772
|
+
*
|
|
1773
|
+
* The column itself lets the pointer through, so it never takes a click meant
|
|
1774
|
+
* for the page behind it; each toast takes its own back.
|
|
1775
|
+
*/
|
|
1776
|
+
.dz-toasts {
|
|
1777
|
+
position: absolute;
|
|
1778
|
+
top: 16px;
|
|
1779
|
+
right: 16px;
|
|
1780
|
+
z-index: 20;
|
|
1781
|
+
|
|
1782
|
+
display: flex;
|
|
1783
|
+
flex-direction: column;
|
|
1784
|
+
gap: 10px;
|
|
1785
|
+
width: min(340px, calc(100vw - 32px));
|
|
1786
|
+
|
|
1787
|
+
pointer-events: none;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
.dz-toast {
|
|
1791
|
+
pointer-events: auto;
|
|
1792
|
+
|
|
1793
|
+
display: flex;
|
|
1794
|
+
align-items: flex-start;
|
|
1795
|
+
gap: 10px;
|
|
1796
|
+
padding: 12px 12px 12px 14px;
|
|
1797
|
+
|
|
1798
|
+
background: var(--surface);
|
|
1799
|
+
border: 1px solid var(--border);
|
|
1800
|
+
border-radius: 2px;
|
|
1801
|
+
box-shadow: 0 10px 28px rgb(34 39 44 / .16);
|
|
1802
|
+
|
|
1803
|
+
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
1804
|
+
font-size: 12px;
|
|
1805
|
+
color: var(--ink);
|
|
1806
|
+
|
|
1807
|
+
animation: dz-toast-in .18s ease-out;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/* it arrives from the edge it lives on */
|
|
1811
|
+
@keyframes dz-toast-in {
|
|
1812
|
+
from { opacity: 0; transform: translateX(12px); }
|
|
1813
|
+
to { opacity: 1; transform: none; }
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1817
|
+
.dz-toast { animation: none; }
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.dz-toast-text {
|
|
1821
|
+
flex: 1;
|
|
1822
|
+
min-width: 0;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
.dz-toast-title {
|
|
1826
|
+
display: block;
|
|
1827
|
+
margin-bottom: 6px;
|
|
1828
|
+
font-size: 12px;
|
|
1829
|
+
font-weight: 600;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/* the findings themselves, which are field names as often as sentences */
|
|
1833
|
+
.dz-toast ul {
|
|
1834
|
+
margin: 0;
|
|
1835
|
+
padding-left: 16px;
|
|
1836
|
+
color: var(--ink-soft);
|
|
1837
|
+
line-height: 1.5;
|
|
1838
|
+
overflow-wrap: anywhere;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.dz-toast-close {
|
|
1842
|
+
flex: none;
|
|
1843
|
+
width: 20px;
|
|
1844
|
+
height: 20px;
|
|
1845
|
+
display: inline-flex;
|
|
1846
|
+
align-items: center;
|
|
1847
|
+
justify-content: center;
|
|
1848
|
+
|
|
1849
|
+
border: 1px solid transparent;
|
|
1850
|
+
border-radius: 4px;
|
|
1851
|
+
background: none;
|
|
1852
|
+
color: var(--ink-soft);
|
|
1853
|
+
font: inherit;
|
|
1854
|
+
font-size: 15px;
|
|
1855
|
+
line-height: 1;
|
|
1856
|
+
cursor: pointer;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
.dz-toast-close:hover {
|
|
1860
|
+
border-color: var(--accent);
|
|
1861
|
+
background: var(--accent-soft);
|
|
1862
|
+
color: var(--accent-ink);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/* ---------------- the dialog ---------------- */
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* The designer's dialogs take the rail's look a size up: grey borderless
|
|
1869
|
+
* boxes 32px tall that outline themselves on hover and take the accent ring
|
|
1870
|
+
* on focus, labels small and grey above them, choices that open the shared
|
|
1871
|
+
* menu. The card, its title bar and its footer are shared/modal.css.
|
|
1872
|
+
*/
|
|
1873
|
+
|
|
1874
|
+
/* wide enough for a report name to be read in full */
|
|
1875
|
+
.modal-card.is-roomy {
|
|
1876
|
+
width: min(560px, calc(100vw - 32px));
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* A dialog field stacks: the label above, the control across the full card.
|
|
1881
|
+
*
|
|
1882
|
+
* This used to be `auto 90px` for every field inside a modal, which was written
|
|
1883
|
+
* for the column count and then silently squeezed everything else that arrived
|
|
1884
|
+
* later - the report picker and the save dialog's name box were both 90px wide
|
|
1885
|
+
* because of it. Narrow is now the exception, and it asks for itself by name.
|
|
1886
|
+
*/
|
|
1887
|
+
.modal-card .dz-field {
|
|
1888
|
+
display: grid;
|
|
1889
|
+
grid-template-columns: 1fr;
|
|
1890
|
+
gap: 6px;
|
|
1891
|
+
margin-bottom: 12px;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
.modal-card .dz-field label {
|
|
1895
|
+
color: var(--ink-soft);
|
|
1896
|
+
font-size: 11px;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
/* every box in a dialog */
|
|
1900
|
+
.modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
|
|
1901
|
+
.modal-card .dz-hl-rule input[type="text"],
|
|
1902
|
+
.modal-card .dz-choice-trigger {
|
|
1903
|
+
width: 100%;
|
|
1904
|
+
height: 32px;
|
|
1905
|
+
padding: 0 10px;
|
|
1906
|
+
border: 1px solid transparent;
|
|
1907
|
+
border-radius: 6px;
|
|
1908
|
+
background-color: var(--surface-muted);
|
|
1909
|
+
color: var(--ink);
|
|
1910
|
+
font: inherit;
|
|
1911
|
+
font-size: 12px;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):hover,
|
|
1915
|
+
.modal-card .dz-hl-rule input[type="text"]:hover,
|
|
1916
|
+
.modal-card .dz-choice-trigger:hover {
|
|
1917
|
+
border-color: var(--border);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus-visible,
|
|
1921
|
+
.modal-card .dz-hl-rule input[type="text"]:focus-visible,
|
|
1922
|
+
.modal-card .dz-choice-trigger:focus-visible,
|
|
1923
|
+
.modal-card .dz-choice-trigger[aria-expanded="true"] {
|
|
1924
|
+
outline: none;
|
|
1925
|
+
border-color: var(--accent-strong);
|
|
1926
|
+
box-shadow: inset 0 0 0 1px var(--accent-strong);
|
|
1927
|
+
background-color: var(--surface);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
.modal-card input[type="number"] {
|
|
1931
|
+
appearance: textfield;
|
|
1932
|
+
-moz-appearance: textfield;
|
|
1933
|
+
font-variant-numeric: tabular-nums;
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
.modal-card input[type="number"]::-webkit-inner-spin-button,
|
|
1937
|
+
.modal-card input[type="number"]::-webkit-outer-spin-button {
|
|
1938
|
+
-webkit-appearance: none;
|
|
1939
|
+
margin: 0;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
/* a choice: the box, with the same chevron as the rail's */
|
|
1943
|
+
.modal-card .dz-choice-trigger {
|
|
1944
|
+
display: flex;
|
|
1945
|
+
align-items: center;
|
|
1946
|
+
padding-right: 28px;
|
|
1947
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
1948
|
+
background-repeat: no-repeat;
|
|
1949
|
+
background-position: right 10px center;
|
|
1950
|
+
background-size: 9px 6px;
|
|
1951
|
+
text-align: left;
|
|
1952
|
+
cursor: pointer;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
/* a count is two digits; a box the width of the card would be absurd */
|
|
1956
|
+
.modal-card .dz-field-count {
|
|
1957
|
+
grid-template-columns: auto 90px;
|
|
1958
|
+
align-items: center;
|
|
1959
|
+
justify-content: start;
|
|
1960
|
+
gap: 12px;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.modal-card .dz-field-count label {
|
|
1964
|
+
font-size: 12px;
|
|
1965
|
+
color: var(--ink);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/* glyph buttons in a dialog: no frame until pointed at, as in the rail */
|
|
1969
|
+
.modal-card .dz-icon {
|
|
1970
|
+
width: 28px;
|
|
1971
|
+
height: 28px;
|
|
1972
|
+
margin-left: 0;
|
|
1973
|
+
border: 0;
|
|
1974
|
+
border-radius: 6px;
|
|
1975
|
+
background: none;
|
|
1976
|
+
color: var(--ink-soft);
|
|
1977
|
+
font-size: 15px;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
.modal-card .dz-icon:hover {
|
|
1981
|
+
background: var(--surface-muted);
|
|
1982
|
+
color: var(--ink);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.modal-card .dz-icon:focus-visible {
|
|
1986
|
+
outline: 2px solid var(--accent-strong);
|
|
1987
|
+
outline-offset: -2px;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
/* ---------------- the bar's controls ---------------- */
|
|
1991
|
+
|
|
1992
|
+
/* the report's name, with what the disk currently knows underneath it */
|
|
1993
|
+
.dz-title {
|
|
1994
|
+
flex: 1;
|
|
1995
|
+
display: flex;
|
|
1996
|
+
flex-direction: column;
|
|
1997
|
+
gap: 1px;
|
|
1998
|
+
min-width: 0;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.dz-status {
|
|
2002
|
+
font-size: 10px;
|
|
2003
|
+
color: var(--ink-soft);
|
|
2004
|
+
overflow: hidden;
|
|
2005
|
+
text-overflow: ellipsis;
|
|
2006
|
+
white-space: nowrap;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/* unsaved is a state to notice, not to be alarmed by */
|
|
2010
|
+
.dz-bar[data-dirty="true"] .dz-status {
|
|
2011
|
+
color: var(--accent-ink);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/* a failure the user has to read, so it takes the accent outright */
|
|
2015
|
+
.dz-status[data-problem] {
|
|
2016
|
+
color: var(--accent-ink);
|
|
2017
|
+
font-weight: 600;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
.dz-bar-group {
|
|
2021
|
+
display: flex;
|
|
2022
|
+
align-items: center;
|
|
2023
|
+
gap: 2px;
|
|
2024
|
+
padding: 0 6px;
|
|
2025
|
+
border-left: 1px solid var(--border);
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
.dz-bar-group:first-of-type {
|
|
2029
|
+
border-left: none;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
.dz-tool:disabled {
|
|
2033
|
+
opacity: .35;
|
|
2034
|
+
cursor: default;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
.dz-tool:disabled:hover {
|
|
2038
|
+
border-color: transparent;
|
|
2039
|
+
background: none;
|
|
2040
|
+
color: var(--ink);
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
/* ---------------- the report picker ---------------- */
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* The label sits above the control, not beside it: the picker is the dialog's
|
|
2047
|
+
* one job, and a label in the same row would take a fifth of the width off the
|
|
2048
|
+
* thing being read - which is a report name, and report names are long.
|
|
2049
|
+
*/
|
|
2050
|
+
.modal-card .dz-field-picker {
|
|
2051
|
+
margin-bottom: 6px;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
/* the dropdown fills the card rather than sizing to its longest report name */
|
|
2055
|
+
.modal-card .dz-field-picker .dropdown,
|
|
2056
|
+
.modal-card .dz-field-picker .dropdown-trigger {
|
|
2057
|
+
width: 100%;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/* and the name gets whatever the caret does not */
|
|
2061
|
+
.modal-card .dz-field-picker .dropdown-value {
|
|
2062
|
+
flex: 1;
|
|
2063
|
+
min-width: 0;
|
|
2064
|
+
overflow: hidden;
|
|
2065
|
+
text-overflow: ellipsis;
|
|
2066
|
+
white-space: nowrap;
|
|
2067
|
+
text-align: left;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* The shared component is sized for the preview's zoom control, where the value
|
|
2072
|
+
* is "100%" in a crowded toolbar. Here it carries a report name in a dialog, so
|
|
2073
|
+
* it takes the dialog's type size rather than the toolbar's.
|
|
2074
|
+
*/
|
|
2075
|
+
.modal-card .dz-field-picker .dropdown-trigger,
|
|
2076
|
+
.modal-card .dz-field-picker .dropdown-item {
|
|
2077
|
+
font-size: 12px;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
.modal-card .dz-field-picker .dropdown-trigger {
|
|
2081
|
+
height: 32px;
|
|
2082
|
+
padding: 0 10px;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Vertical padding only. The left inset is the tick's ::before placeholder,
|
|
2087
|
+
* which the component already sizes - adding to it here would indent the
|
|
2088
|
+
* selected and unselected items by different amounts.
|
|
2089
|
+
*
|
|
2090
|
+
* A report name is as long as someone typed it and the menu is a fixed width,
|
|
2091
|
+
* so it clips rather than pushing the menu wider than the trigger under it.
|
|
2092
|
+
*/
|
|
2093
|
+
.modal-card .dz-field-picker .dropdown-item {
|
|
2094
|
+
padding: 6px 12px 6px 6px;
|
|
2095
|
+
overflow: hidden;
|
|
2096
|
+
text-overflow: ellipsis;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
/* exactly the trigger's width - dropdown.js sets it, a fixed menu has no 100% to use */
|
|
2100
|
+
.modal-card .dz-field-picker .dropdown-menu {
|
|
2101
|
+
width: var(--dropdown-trigger-width, auto);
|
|
2102
|
+
max-height: 40vh;
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
/**
|
|
2106
|
+
* A dropdown shows one line, so what the name alone does not settle - which
|
|
2107
|
+
* file it is, when it last changed - goes underneath rather than being lost.
|
|
2108
|
+
*/
|
|
2109
|
+
.dz-report-meta {
|
|
2110
|
+
margin-bottom: 16px;
|
|
2111
|
+
padding-left: 1px;
|
|
2112
|
+
color: var(--ink-soft);
|
|
2113
|
+
font-size: 11px;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/* a report that will not parse is still offered - it is the one to go and fix */
|
|
2117
|
+
.dz-report-meta[data-unreadable] {
|
|
2118
|
+
color: var(--accent-ink);
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
.modal-card code {
|
|
2122
|
+
font-family: "Courier Prime", monospace;
|
|
2123
|
+
color: var(--ink);
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
/* ---------------- the data dialog ---------------- */
|
|
2127
|
+
|
|
2128
|
+
/* a payload needs room to be read; the other dialogs do not */
|
|
2129
|
+
.modal-card.is-wide {
|
|
2130
|
+
width: min(640px, calc(100vw - 32px));
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
.dz-payload {
|
|
2134
|
+
display: block;
|
|
2135
|
+
width: 100%;
|
|
2136
|
+
margin-top: 12px;
|
|
2137
|
+
padding: 10px 12px;
|
|
2138
|
+
border: 1px solid transparent;
|
|
2139
|
+
border-radius: 8px;
|
|
2140
|
+
background: var(--surface-muted);
|
|
2141
|
+
color: var(--ink);
|
|
2142
|
+
|
|
2143
|
+
font-family: "Courier Prime", monospace;
|
|
2144
|
+
font-size: 12px;
|
|
2145
|
+
line-height: 1.5;
|
|
2146
|
+
tab-size: 2;
|
|
2147
|
+
resize: vertical;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.dz-payload:hover {
|
|
2151
|
+
border-color: var(--border);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
.dz-payload:focus-visible {
|
|
2155
|
+
outline: none;
|
|
2156
|
+
border-color: var(--accent-strong);
|
|
2157
|
+
box-shadow: inset 0 0 0 1px var(--accent-strong);
|
|
2158
|
+
background: var(--surface);
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* Beside the box rather than after the click that was meant to save: a payload
|
|
2163
|
+
* someone has pasted and broken should say so while they can still see where.
|
|
2164
|
+
*/
|
|
2165
|
+
.dz-parse-error {
|
|
2166
|
+
min-height: 16px;
|
|
2167
|
+
margin: 6px 0 12px;
|
|
2168
|
+
color: var(--accent-ink);
|
|
2169
|
+
font-size: 11px;
|
|
2170
|
+
line-height: 1.4;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
.modal-actions button:disabled {
|
|
2174
|
+
opacity: .5;
|
|
2175
|
+
cursor: default;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/* ---------------- running the report ---------------- */
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* The rail and the tools go while the report is running. There is nothing on
|
|
2182
|
+
* the rail that applies to a rendered page, and the insert tools would be
|
|
2183
|
+
* offering to add a text box to something that is no longer a design.
|
|
2184
|
+
*/
|
|
2185
|
+
.report-designer[data-mode="preview"] .dz-panel,
|
|
2186
|
+
.report-designer[data-mode="preview"] .dz-foot {
|
|
2187
|
+
display: none;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
/* the pages stack down the canvas, as sheets coming off a printer do */
|
|
2191
|
+
.report-designer[data-mode="preview"] #main-page {
|
|
2192
|
+
display: flex;
|
|
2193
|
+
flex-direction: column;
|
|
2194
|
+
align-items: center;
|
|
2195
|
+
gap: 24px;
|
|
2196
|
+
width: max-content;
|
|
2197
|
+
margin: 0 auto;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/* nothing here is grabbable; saying so with the cursor stops the invitation */
|
|
2201
|
+
.report-designer[data-mode="preview"] .dz-canvas [data-item-id] {
|
|
2202
|
+
cursor: default;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
/* the toggle stays lit while it is the thing being looked at */
|
|
2206
|
+
.dz-tool[aria-pressed="true"] {
|
|
2207
|
+
border-color: var(--accent);
|
|
2208
|
+
background: var(--accent-soft);
|
|
2209
|
+
color: var(--accent-ink);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
.dz-pages {
|
|
2213
|
+
color: var(--ink-soft);
|
|
2214
|
+
font-variant-numeric: tabular-nums;
|
|
2215
|
+
white-space: nowrap;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
.dz-truncated {
|
|
2219
|
+
max-width: 640px;
|
|
2220
|
+
margin: 4px auto 0;
|
|
2221
|
+
padding: 10px 14px;
|
|
2222
|
+
|
|
2223
|
+
background: var(--surface);
|
|
2224
|
+
border: 1px dashed var(--border);
|
|
2225
|
+
border-radius: 6px;
|
|
2226
|
+
|
|
2227
|
+
font-family: "Instrument Sans", system-ui, sans-serif;
|
|
2228
|
+
font-size: 12px;
|
|
2229
|
+
color: var(--ink-soft);
|
|
2230
|
+
text-align: center;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
/* ---------------- the field list ---------------- */
|
|
2234
|
+
|
|
2235
|
+
.dz-tokens {
|
|
2236
|
+
display: grid;
|
|
2237
|
+
grid-template-columns: 1fr 1fr;
|
|
2238
|
+
gap: 6px;
|
|
2239
|
+
max-height: 42vh;
|
|
2240
|
+
overflow-y: auto;
|
|
2241
|
+
margin-bottom: 16px;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
.dz-token {
|
|
2245
|
+
display: flex;
|
|
2246
|
+
align-items: flex-start;
|
|
2247
|
+
gap: 9px;
|
|
2248
|
+
padding: 9px 11px;
|
|
2249
|
+
border: 1px solid var(--border);
|
|
2250
|
+
border-radius: 8px;
|
|
2251
|
+
cursor: pointer;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
.dz-token:hover {
|
|
2255
|
+
border-color: var(--accent);
|
|
2256
|
+
background: var(--accent-soft);
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/* the darker mix on the border, so the chosen one is legible not just tinted */
|
|
2260
|
+
.dz-token:has(input:checked) {
|
|
2261
|
+
border-color: var(--accent-strong);
|
|
2262
|
+
background: var(--accent-soft);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
.dz-token:has(input:focus-visible) {
|
|
2266
|
+
outline: 2px solid var(--accent-strong);
|
|
2267
|
+
outline-offset: 1px;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
.dz-token input {
|
|
2271
|
+
margin-top: 2px;
|
|
2272
|
+
width: 14px;
|
|
2273
|
+
height: 14px;
|
|
2274
|
+
flex: none;
|
|
2275
|
+
accent-color: var(--accent-strong);
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
.dz-token-body {
|
|
2279
|
+
display: flex;
|
|
2280
|
+
flex-direction: column;
|
|
2281
|
+
gap: 2px;
|
|
2282
|
+
min-width: 0;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
.dz-token-name {
|
|
2286
|
+
font-weight: 500;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* The syntax is shown rather than hidden behind the label: the point is that
|
|
2291
|
+
* someone stops needing this dialog, and they only stop by seeing what it
|
|
2292
|
+
* writes.
|
|
2293
|
+
*/
|
|
2294
|
+
.dz-token-syntax {
|
|
2295
|
+
font-family: "Courier Prime", monospace;
|
|
2296
|
+
font-size: 11px;
|
|
2297
|
+
color: var(--accent-ink);
|
|
2298
|
+
overflow: hidden;
|
|
2299
|
+
text-overflow: ellipsis;
|
|
2300
|
+
white-space: nowrap;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.dz-token-note {
|
|
2304
|
+
color: var(--ink-soft);
|
|
2305
|
+
font-size: 11px;
|
|
2306
|
+
line-height: 1.35;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
/* a warning, not a refusal - it is the author's report */
|
|
2310
|
+
.dz-token-warning {
|
|
2311
|
+
margin-bottom: 14px;
|
|
2312
|
+
padding: 9px 12px;
|
|
2313
|
+
border: 1px solid var(--accent-strong);
|
|
2314
|
+
border-radius: 6px;
|
|
2315
|
+
color: var(--accent-ink);
|
|
2316
|
+
font-size: 11px;
|
|
2317
|
+
line-height: 1.45;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* The same box saying which rows an aggregate will cover, which is information
|
|
2322
|
+
* rather than a caution - so it drops back to the quiet border every other
|
|
2323
|
+
* field in the dialog has, and keeps only the indent that sets it apart from
|
|
2324
|
+
* the controls above it.
|
|
2325
|
+
*/
|
|
2326
|
+
.dz-token-warning.is-note {
|
|
2327
|
+
border-color: var(--border);
|
|
2328
|
+
color: var(--ink-soft);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
.dz-token-warning[hidden] {
|
|
2332
|
+
display: none;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* The band an item is about to land in, or has just been put in.
|
|
2337
|
+
*
|
|
2338
|
+
* A drag used to leave the item in the band it started from however far it was
|
|
2339
|
+
* moved, so there was nothing to show - and inserting a field chooses a band on
|
|
2340
|
+
* the user's behalf, which is worth pointing at rather than leaving to be found.
|
|
2341
|
+
*/
|
|
2342
|
+
.dz-zone.is-target {
|
|
2343
|
+
outline: 2px solid var(--accent-strong);
|
|
2344
|
+
outline-offset: -2px;
|
|
2345
|
+
background: var(--accent-soft);
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
/* the gutter name lights with it, so the band is identified and not just lit */
|
|
2349
|
+
.dz-sheet:has(.dz-zone.is-target) .dz-tag {
|
|
2350
|
+
opacity: .45;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
.dz-tag.is-target {
|
|
2354
|
+
opacity: 1;
|
|
2355
|
+
color: var(--accent-ink);
|
|
2356
|
+
font-weight: 600;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
/* ---------------- several items at once ---------------- */
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
* The one whose handles are drawn is solid; the rest are dashed. Without the
|
|
2363
|
+
* distinction a group of six looks like six things that can each be resized,
|
|
2364
|
+
* and only one of them can.
|
|
2365
|
+
*/
|
|
2366
|
+
.dz-select.is-secondary {
|
|
2367
|
+
outline-style: dashed;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
/* ---------------- the value box ---------------- */
|
|
2371
|
+
|
|
2372
|
+
.dz-field-top {
|
|
2373
|
+
display: flex;
|
|
2374
|
+
align-items: center;
|
|
2375
|
+
justify-content: space-between;
|
|
2376
|
+
gap: 8px;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
/* the button sits opposite the label, across the top of the value box */
|
|
2380
|
+
.dz-brace {
|
|
2381
|
+
padding: 1px 7px;
|
|
2382
|
+
border: 1px solid var(--border);
|
|
2383
|
+
border-radius: 4px;
|
|
2384
|
+
background: var(--surface);
|
|
2385
|
+
color: var(--accent-ink);
|
|
2386
|
+
font-family: "Courier Prime", monospace;
|
|
2387
|
+
font-size: 11px;
|
|
2388
|
+
line-height: 1.5;
|
|
2389
|
+
cursor: pointer;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
.dz-brace:hover {
|
|
2393
|
+
border-color: var(--accent);
|
|
2394
|
+
background: var(--accent-soft);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
.dz-brace:focus-visible {
|
|
2398
|
+
outline: 2px solid var(--accent-strong);
|
|
2399
|
+
outline-offset: 1px;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* A textarea cannot style its own contents, so the placeholders are marked on a
|
|
2404
|
+
* layer behind it and the box itself is given transparent text.
|
|
2405
|
+
*
|
|
2406
|
+
* Everything that affects where a character lands has to match between the two
|
|
2407
|
+
* exactly - font, size, line height, padding, border width, wrapping - or the
|
|
2408
|
+
* marks drift off the text they belong to. That is why both take their metrics
|
|
2409
|
+
* from the same declarations here rather than inheriting separately.
|
|
2410
|
+
*/
|
|
2411
|
+
.dz-value {
|
|
2412
|
+
position: relative;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
.dz-value textarea,
|
|
2416
|
+
.dz-value-marks {
|
|
2417
|
+
box-sizing: border-box;
|
|
2418
|
+
width: 100%;
|
|
2419
|
+
padding: 6px 8px;
|
|
2420
|
+
border: 1px solid transparent;
|
|
2421
|
+
border-radius: 4px;
|
|
2422
|
+
|
|
1295
2423
|
font-family: "Courier Prime", monospace;
|
|
1296
2424
|
font-size: 12px;
|
|
1297
2425
|
line-height: 1.5;
|
|
2426
|
+
letter-spacing: normal;
|
|
2427
|
+
|
|
2428
|
+
white-space: pre-wrap;
|
|
2429
|
+
overflow-wrap: break-word;
|
|
2430
|
+
word-break: normal;
|
|
1298
2431
|
tab-size: 2;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
.dz-value textarea {
|
|
2435
|
+
position: relative;
|
|
2436
|
+
z-index: 1;
|
|
2437
|
+
display: block;
|
|
2438
|
+
min-height: 52px;
|
|
2439
|
+
border-color: var(--border);
|
|
2440
|
+
background: transparent;
|
|
2441
|
+
/* the text is drawn by the layer behind; only the caret shows through */
|
|
2442
|
+
color: transparent;
|
|
2443
|
+
caret-color: var(--ink);
|
|
1299
2444
|
resize: vertical;
|
|
1300
2445
|
}
|
|
1301
2446
|
|
|
1302
|
-
.dz-
|
|
2447
|
+
.dz-value textarea::selection {
|
|
2448
|
+
/* a transparent-text selection would be invisible without a fill */
|
|
2449
|
+
background: var(--accent-tint);
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
.dz-value textarea:focus-visible {
|
|
1303
2453
|
outline: 2px solid var(--accent-strong);
|
|
1304
2454
|
outline-offset: -1px;
|
|
1305
2455
|
border-color: var(--accent-strong);
|
|
1306
2456
|
}
|
|
1307
2457
|
|
|
2458
|
+
.dz-value-marks {
|
|
2459
|
+
position: absolute;
|
|
2460
|
+
inset: 0;
|
|
2461
|
+
z-index: 0;
|
|
2462
|
+
overflow: hidden;
|
|
2463
|
+
color: var(--ink);
|
|
2464
|
+
background: var(--surface);
|
|
2465
|
+
pointer-events: none;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
1308
2468
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
*
|
|
2469
|
+
* The braces and what is between them, so a placeholder is told apart from the
|
|
2470
|
+
* words around it - and a half-typed one, with only an opening brace, is told
|
|
2471
|
+
* apart by not being marked at all.
|
|
1311
2472
|
*/
|
|
1312
|
-
.dz-
|
|
1313
|
-
|
|
1314
|
-
|
|
2473
|
+
.dz-mark {
|
|
2474
|
+
border-radius: 3px;
|
|
2475
|
+
background: var(--accent-soft);
|
|
1315
2476
|
color: var(--accent-ink);
|
|
1316
|
-
font-
|
|
1317
|
-
line-height: 1.4;
|
|
2477
|
+
font-weight: 700;
|
|
1318
2478
|
}
|
|
1319
2479
|
|
|
1320
|
-
|
|
1321
|
-
|
|
2480
|
+
/* the link to the other screen sits among the tools and behaves like one */
|
|
2481
|
+
a.dz-tool {
|
|
2482
|
+
text-decoration: none;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
a.dz-tool[aria-disabled="true"] {
|
|
2486
|
+
opacity: .35;
|
|
1322
2487
|
cursor: default;
|
|
2488
|
+
pointer-events: auto;
|
|
1323
2489
|
}
|
|
1324
2490
|
|
|
1325
|
-
|
|
2491
|
+
a.dz-tool[aria-disabled="true"]:hover {
|
|
2492
|
+
border-color: transparent;
|
|
2493
|
+
background: none;
|
|
2494
|
+
color: var(--ink);
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
/* ---------------- number and date formats ---------------- */
|
|
1326
2498
|
|
|
1327
2499
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
* offering to add a text box to something that is no longer a design.
|
|
2500
|
+
* A format's summary is the control: it reads as what the values look like,
|
|
2501
|
+
* and a click opens the editor. As wide as the column a control sits in.
|
|
1331
2502
|
*/
|
|
1332
|
-
.
|
|
1333
|
-
.report-designer[data-mode="preview"] .dz-foot {
|
|
1334
|
-
display: none;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
/* the pages stack down the canvas, as sheets coming off a printer do */
|
|
1338
|
-
.report-designer[data-mode="preview"] #main-page {
|
|
2503
|
+
.dz-format {
|
|
1339
2504
|
display: flex;
|
|
1340
|
-
|
|
2505
|
+
min-width: 0;
|
|
1341
2506
|
align-items: center;
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
2507
|
+
justify-content: space-between;
|
|
2508
|
+
gap: 8px;
|
|
2509
|
+
width: 100%;
|
|
2510
|
+
min-height: 30px;
|
|
2511
|
+
padding: 5px 8px;
|
|
2512
|
+
border: 1px solid var(--border);
|
|
2513
|
+
border-radius: 4px;
|
|
2514
|
+
background: var(--surface);
|
|
2515
|
+
color: var(--ink);
|
|
2516
|
+
font: inherit;
|
|
2517
|
+
text-align: left;
|
|
2518
|
+
cursor: pointer;
|
|
1350
2519
|
}
|
|
1351
2520
|
|
|
1352
|
-
|
|
1353
|
-
.dz-tool[aria-pressed="true"] {
|
|
2521
|
+
.dz-format:hover {
|
|
1354
2522
|
border-color: var(--accent);
|
|
1355
2523
|
background: var(--accent-soft);
|
|
1356
|
-
color: var(--accent-ink);
|
|
1357
2524
|
}
|
|
1358
2525
|
|
|
1359
|
-
.dz-
|
|
1360
|
-
|
|
1361
|
-
|
|
2526
|
+
.dz-format:focus-visible {
|
|
2527
|
+
outline: 2px solid var(--accent-strong);
|
|
2528
|
+
outline-offset: -1px;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
.dz-format-summary {
|
|
2532
|
+
overflow: hidden;
|
|
2533
|
+
text-overflow: ellipsis;
|
|
1362
2534
|
white-space: nowrap;
|
|
1363
2535
|
}
|
|
1364
2536
|
|
|
1365
|
-
.dz-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
2537
|
+
.dz-format-edit {
|
|
2538
|
+
flex: none;
|
|
2539
|
+
color: var(--accent-ink);
|
|
2540
|
+
font-size: 11px;
|
|
2541
|
+
}
|
|
1369
2542
|
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
2543
|
+
/* a button that belongs to a section's fields, not one that adds a row */
|
|
2544
|
+
.dz-section-action {
|
|
2545
|
+
margin-top: 4px;
|
|
2546
|
+
}
|
|
1373
2547
|
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
color: var(--ink-soft);
|
|
1377
|
-
text-align: center;
|
|
2548
|
+
.dz-section-action::before {
|
|
2549
|
+
content: none;
|
|
1378
2550
|
}
|
|
1379
2551
|
|
|
1380
|
-
/*
|
|
2552
|
+
/* the editor: wider than the other dialogs, for two columns of choices */
|
|
2553
|
+
.modal-card.dz-format-card {
|
|
2554
|
+
width: min(480px, calc(100vw - 32px));
|
|
2555
|
+
}
|
|
1381
2556
|
|
|
1382
|
-
.dz-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
max-height: 42vh;
|
|
1387
|
-
overflow-y: auto;
|
|
1388
|
-
margin-bottom: 16px;
|
|
2557
|
+
.dz-format-types {
|
|
2558
|
+
margin: 0 0 16px;
|
|
2559
|
+
padding: 0;
|
|
2560
|
+
border: 0;
|
|
1389
2561
|
}
|
|
1390
2562
|
|
|
1391
|
-
.dz-
|
|
2563
|
+
.dz-format-types legend {
|
|
2564
|
+
margin-bottom: 6px;
|
|
2565
|
+
padding: 0;
|
|
2566
|
+
color: var(--ink-soft);
|
|
2567
|
+
font-size: 11px;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* The type is a row of buttons in a grey track, the chosen one raised on
|
|
2572
|
+
* paper - a design tool's segmented control. The radio inside each stays for
|
|
2573
|
+
* the keyboard and for the form.
|
|
2574
|
+
*/
|
|
2575
|
+
.dz-format-track {
|
|
1392
2576
|
display: flex;
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
padding: 9px 11px;
|
|
1396
|
-
border: 1px solid var(--border);
|
|
2577
|
+
gap: 2px;
|
|
2578
|
+
padding: 2px;
|
|
1397
2579
|
border-radius: 8px;
|
|
2580
|
+
background: var(--surface-muted);
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
/* sized to their names, so "Date & time" is read whole beside "Date" */
|
|
2584
|
+
.dz-format-type {
|
|
2585
|
+
position: relative;
|
|
2586
|
+
display: flex;
|
|
2587
|
+
flex: 1 1 auto;
|
|
2588
|
+
min-width: 0;
|
|
1398
2589
|
cursor: pointer;
|
|
1399
2590
|
}
|
|
1400
2591
|
|
|
1401
|
-
.dz-
|
|
1402
|
-
|
|
1403
|
-
|
|
2592
|
+
.dz-format-type input {
|
|
2593
|
+
position: absolute;
|
|
2594
|
+
opacity: 0;
|
|
2595
|
+
pointer-events: none;
|
|
1404
2596
|
}
|
|
1405
2597
|
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
2598
|
+
.dz-format-type span {
|
|
2599
|
+
flex: 1;
|
|
2600
|
+
padding: 6px 8px;
|
|
2601
|
+
overflow: hidden;
|
|
2602
|
+
border-radius: 6px;
|
|
2603
|
+
color: var(--ink-soft);
|
|
2604
|
+
font-size: 12px;
|
|
2605
|
+
text-align: center;
|
|
2606
|
+
text-overflow: ellipsis;
|
|
2607
|
+
white-space: nowrap;
|
|
1410
2608
|
}
|
|
1411
2609
|
|
|
1412
|
-
.dz-
|
|
1413
|
-
|
|
1414
|
-
outline-offset: 1px;
|
|
2610
|
+
.dz-format-type:hover span {
|
|
2611
|
+
color: var(--ink);
|
|
1415
2612
|
}
|
|
1416
2613
|
|
|
1417
|
-
.dz-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
accent-color: var(--accent-strong);
|
|
2614
|
+
.dz-format-type input:checked + span {
|
|
2615
|
+
background: var(--surface);
|
|
2616
|
+
color: var(--ink);
|
|
2617
|
+
font-weight: 600;
|
|
2618
|
+
box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(34, 39, 44, .08);
|
|
1423
2619
|
}
|
|
1424
2620
|
|
|
1425
|
-
.dz-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
gap: 2px;
|
|
1429
|
-
min-width: 0;
|
|
2621
|
+
.dz-format-type input:focus-visible + span {
|
|
2622
|
+
outline: 2px solid var(--accent-strong);
|
|
2623
|
+
outline-offset: -1px;
|
|
1430
2624
|
}
|
|
1431
2625
|
|
|
1432
|
-
.dz-
|
|
1433
|
-
|
|
2626
|
+
.dz-format-group {
|
|
2627
|
+
display: grid;
|
|
2628
|
+
grid-template-columns: 1fr 1fr;
|
|
2629
|
+
column-gap: 12px;
|
|
1434
2630
|
}
|
|
1435
2631
|
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
2632
|
+
.dz-format-group[hidden] {
|
|
2633
|
+
display: none;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
.dz-format-group .modal-summary {
|
|
2637
|
+
grid-column: 1 / -1;
|
|
2638
|
+
margin-top: 0;
|
|
2639
|
+
margin-bottom: 12px;
|
|
1443
2640
|
font-size: 11px;
|
|
1444
|
-
color: var(--accent-ink);
|
|
1445
|
-
overflow: hidden;
|
|
1446
|
-
text-overflow: ellipsis;
|
|
1447
|
-
white-space: nowrap;
|
|
1448
2641
|
}
|
|
1449
2642
|
|
|
1450
|
-
.dz-
|
|
2643
|
+
.dz-format-group .dz-field[hidden] {
|
|
2644
|
+
display: none;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
/* what the choices make of real values, as the report will print them */
|
|
2648
|
+
.dz-format-sample {
|
|
2649
|
+
display: flex;
|
|
2650
|
+
align-items: baseline;
|
|
2651
|
+
gap: 12px;
|
|
2652
|
+
margin-top: 4px;
|
|
2653
|
+
padding: 12px;
|
|
2654
|
+
border: 1px dashed var(--border);
|
|
2655
|
+
border-radius: 8px;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
.dz-format-sample-label {
|
|
2659
|
+
flex: none;
|
|
1451
2660
|
color: var(--ink-soft);
|
|
1452
2661
|
font-size: 11px;
|
|
1453
|
-
line-height: 1.35;
|
|
1454
2662
|
}
|
|
1455
2663
|
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
font-size: 11px;
|
|
1464
|
-
line-height: 1.45;
|
|
2664
|
+
.dz-format-sample-values {
|
|
2665
|
+
display: flex;
|
|
2666
|
+
flex-wrap: wrap;
|
|
2667
|
+
gap: 6px 18px;
|
|
2668
|
+
font-family: "Courier Prime", monospace;
|
|
2669
|
+
font-size: 13px;
|
|
2670
|
+
font-variant-numeric: tabular-nums;
|
|
1465
2671
|
}
|
|
1466
2672
|
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
*/
|
|
1473
|
-
.dz-
|
|
1474
|
-
|
|
1475
|
-
|
|
2673
|
+
/* the report-defaults button sits apart from the two that close the dialog */
|
|
2674
|
+
.dz-format-card .modal-actions [data-role="reset"] {
|
|
2675
|
+
margin-right: auto;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
/* a choice with Custom…: the box for the custom value sits under the select */
|
|
2679
|
+
.dz-choice-custom {
|
|
2680
|
+
display: grid;
|
|
2681
|
+
gap: 6px;
|
|
1476
2682
|
}
|
|
1477
2683
|
|
|
1478
|
-
.dz-
|
|
2684
|
+
.dz-choice-custom [hidden] {
|
|
1479
2685
|
display: none;
|
|
1480
2686
|
}
|
|
1481
2687
|
|
|
2688
|
+
/* ---------------- highlight rules ---------------- */
|
|
2689
|
+
|
|
2690
|
+
/* wide enough for a rule to read as one sentence */
|
|
2691
|
+
.modal-card.dz-highlight-card {
|
|
2692
|
+
width: min(640px, calc(100vw - 32px));
|
|
2693
|
+
}
|
|
2694
|
+
|
|
1482
2695
|
/**
|
|
1483
|
-
* The
|
|
1484
|
-
*
|
|
1485
|
-
*
|
|
1486
|
-
* moved, so there was nothing to show - and inserting a field chooses a band on
|
|
1487
|
-
* the user's behalf, which is worth pointing at rather than leaving to be found.
|
|
2696
|
+
* The rules are a list, as a design tool lists layers or fills: each a row
|
|
2697
|
+
* across the whole card, ruled off from the next, rather than a card of its
|
|
2698
|
+
* own. The list scrolls inside the dialog once there are many.
|
|
1488
2699
|
*/
|
|
1489
|
-
.dz-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
2700
|
+
.dz-hl-rules {
|
|
2701
|
+
display: grid;
|
|
2702
|
+
max-height: 55vh;
|
|
2703
|
+
margin: -16px calc(-1 * var(--modal-x)) 12px;
|
|
2704
|
+
overflow-y: auto;
|
|
1493
2705
|
}
|
|
1494
2706
|
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
2707
|
+
/**
|
|
2708
|
+
* A rule is three columns - its label, its controls, its own buttons - the
|
|
2709
|
+
* same for every rule, so each control sits under the matching one in the rule
|
|
2710
|
+
* above whatever the label says or the test needs.
|
|
2711
|
+
*/
|
|
2712
|
+
.dz-hl-rule {
|
|
2713
|
+
display: grid;
|
|
2714
|
+
grid-template-columns: 64px minmax(0, 1fr) 60px;
|
|
2715
|
+
align-items: center;
|
|
2716
|
+
column-gap: 12px;
|
|
2717
|
+
row-gap: 8px;
|
|
2718
|
+
padding: 14px var(--modal-x);
|
|
2719
|
+
border-bottom: 1px solid var(--border);
|
|
1498
2720
|
}
|
|
1499
2721
|
|
|
1500
|
-
.dz-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
font-weight: 600;
|
|
2722
|
+
.dz-hl-label {
|
|
2723
|
+
color: var(--ink-soft);
|
|
2724
|
+
font-size: 11px;
|
|
1504
2725
|
}
|
|
1505
2726
|
|
|
1506
|
-
/* ---------------- several items at once ---------------- */
|
|
1507
|
-
|
|
1508
2727
|
/**
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
2728
|
+
* What to test, how, and against what. The value gets the most room: a
|
|
2729
|
+
* "between" puts two boxes and an "and" in it, and the dropdowns' longest
|
|
2730
|
+
* choice is "is not empty".
|
|
1512
2731
|
*/
|
|
1513
|
-
.dz-
|
|
1514
|
-
|
|
2732
|
+
.dz-hl-when {
|
|
2733
|
+
display: grid;
|
|
2734
|
+
grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.4fr);
|
|
2735
|
+
gap: 8px;
|
|
1515
2736
|
}
|
|
1516
2737
|
|
|
1517
|
-
.dz-
|
|
2738
|
+
.dz-hl-values {
|
|
1518
2739
|
display: flex;
|
|
1519
|
-
|
|
1520
|
-
gap:
|
|
1521
|
-
|
|
1522
|
-
padding: 0;
|
|
1523
|
-
list-style: none;
|
|
1524
|
-
max-height: 30vh;
|
|
1525
|
-
overflow-y: auto;
|
|
2740
|
+
align-items: center;
|
|
2741
|
+
gap: 6px;
|
|
2742
|
+
min-width: 0;
|
|
1526
2743
|
}
|
|
1527
2744
|
|
|
1528
|
-
.dz-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
gap: 8px;
|
|
1532
|
-
padding: 5px 8px;
|
|
1533
|
-
border: 1px solid var(--border);
|
|
1534
|
-
border-radius: 5px;
|
|
1535
|
-
background: var(--backdrop);
|
|
2745
|
+
.dz-hl-values input {
|
|
2746
|
+
flex: 1;
|
|
2747
|
+
min-width: 0;
|
|
1536
2748
|
}
|
|
1537
2749
|
|
|
1538
|
-
.dz-
|
|
2750
|
+
.dz-hl-and {
|
|
2751
|
+
flex: none;
|
|
1539
2752
|
color: var(--ink-soft);
|
|
1540
|
-
font-size: 10px;
|
|
1541
|
-
letter-spacing: .04em;
|
|
1542
|
-
text-transform: uppercase;
|
|
1543
2753
|
}
|
|
1544
2754
|
|
|
1545
|
-
.dz-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
text-overflow: ellipsis;
|
|
1549
|
-
white-space: nowrap;
|
|
2755
|
+
.dz-hl-novalue {
|
|
2756
|
+
color: var(--ink-soft);
|
|
2757
|
+
font-style: italic;
|
|
1550
2758
|
}
|
|
1551
2759
|
|
|
1552
|
-
|
|
2760
|
+
.dz-hl-actions {
|
|
2761
|
+
display: flex;
|
|
2762
|
+
justify-content: flex-end;
|
|
2763
|
+
gap: 2px;
|
|
2764
|
+
}
|
|
1553
2765
|
|
|
1554
|
-
.dz-
|
|
2766
|
+
.dz-hl-slot {
|
|
2767
|
+
width: 28px;
|
|
2768
|
+
height: 28px;
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
/* the style line: colours, then weight and slant, then the sample at the end */
|
|
2772
|
+
.dz-hl-style {
|
|
1555
2773
|
display: flex;
|
|
1556
2774
|
align-items: center;
|
|
1557
|
-
justify-content: space-between;
|
|
1558
2775
|
gap: 8px;
|
|
2776
|
+
min-width: 0;
|
|
1559
2777
|
}
|
|
1560
2778
|
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
2779
|
+
/**
|
|
2780
|
+
* A colour is a grey box like the others: the chip, what it colours, and a
|
|
2781
|
+
* minus to take it off - a design tool's fill row. The swatch's own wrapper
|
|
2782
|
+
* steps aside (display: contents) so the three line up in that order.
|
|
2783
|
+
*/
|
|
2784
|
+
.dz-hl-color {
|
|
2785
|
+
display: inline-flex;
|
|
2786
|
+
align-items: center;
|
|
2787
|
+
gap: 8px;
|
|
2788
|
+
height: 32px;
|
|
2789
|
+
padding: 0 4px 0 8px;
|
|
2790
|
+
border: 1px solid transparent;
|
|
2791
|
+
border-radius: 6px;
|
|
2792
|
+
background: var(--surface-muted);
|
|
1572
2793
|
}
|
|
1573
2794
|
|
|
1574
|
-
.dz-
|
|
1575
|
-
border-color: var(--
|
|
1576
|
-
background: var(--accent-soft);
|
|
2795
|
+
.dz-hl-color:hover {
|
|
2796
|
+
border-color: var(--border);
|
|
1577
2797
|
}
|
|
1578
2798
|
|
|
1579
|
-
.dz-
|
|
1580
|
-
|
|
1581
|
-
|
|
2799
|
+
.dz-hl-color:focus-within {
|
|
2800
|
+
border-color: var(--accent-strong);
|
|
2801
|
+
box-shadow: inset 0 0 0 1px var(--accent-strong);
|
|
2802
|
+
background: var(--surface);
|
|
1582
2803
|
}
|
|
1583
2804
|
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
* layer behind it and the box itself is given transparent text.
|
|
1587
|
-
*
|
|
1588
|
-
* Everything that affects where a character lands has to match between the two
|
|
1589
|
-
* exactly - font, size, line height, padding, border width, wrapping - or the
|
|
1590
|
-
* marks drift off the text they belong to. That is why both take their metrics
|
|
1591
|
-
* from the same declarations here rather than inheriting separately.
|
|
1592
|
-
*/
|
|
1593
|
-
.dz-value {
|
|
1594
|
-
position: relative;
|
|
2805
|
+
.dz-hl-rule .dz-swatch {
|
|
2806
|
+
display: contents;
|
|
1595
2807
|
}
|
|
1596
2808
|
|
|
1597
|
-
.dz-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
width: 100%;
|
|
1601
|
-
padding: 6px 8px;
|
|
1602
|
-
border: 1px solid transparent;
|
|
1603
|
-
border-radius: 4px;
|
|
1604
|
-
|
|
1605
|
-
font-family: "Courier Prime", monospace;
|
|
2809
|
+
.dz-hl-color-label {
|
|
2810
|
+
order: 1;
|
|
2811
|
+
color: var(--ink);
|
|
1606
2812
|
font-size: 12px;
|
|
1607
|
-
line-height: 1.5;
|
|
1608
|
-
letter-spacing: normal;
|
|
1609
|
-
|
|
1610
|
-
white-space: pre-wrap;
|
|
1611
|
-
overflow-wrap: break-word;
|
|
1612
|
-
word-break: normal;
|
|
1613
|
-
tab-size: 2;
|
|
1614
2813
|
}
|
|
1615
2814
|
|
|
1616
|
-
.dz-
|
|
2815
|
+
.dz-hl-rule .dz-swatch-well {
|
|
1617
2816
|
position: relative;
|
|
1618
|
-
z-index: 1;
|
|
1619
2817
|
display: block;
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
2818
|
+
flex: none;
|
|
2819
|
+
order: 0;
|
|
2820
|
+
width: 16px;
|
|
2821
|
+
height: 16px;
|
|
2822
|
+
overflow: hidden;
|
|
2823
|
+
border-radius: 4px;
|
|
2824
|
+
box-shadow: inset 0 0 0 1px rgba(34, 39, 44, .12);
|
|
1627
2825
|
}
|
|
1628
2826
|
|
|
1629
|
-
.dz-
|
|
1630
|
-
|
|
1631
|
-
|
|
2827
|
+
.dz-hl-rule .dz-swatch-well input[type="color"] {
|
|
2828
|
+
display: block;
|
|
2829
|
+
width: 100%;
|
|
2830
|
+
height: 100%;
|
|
2831
|
+
padding: 0;
|
|
2832
|
+
border: 0;
|
|
2833
|
+
background: none;
|
|
2834
|
+
cursor: pointer;
|
|
1632
2835
|
}
|
|
1633
2836
|
|
|
1634
|
-
.dz-
|
|
1635
|
-
|
|
1636
|
-
outline-offset: -1px;
|
|
1637
|
-
border-color: var(--accent-strong);
|
|
2837
|
+
.dz-hl-rule .dz-swatch-well input[type="color"]::-webkit-color-swatch-wrapper {
|
|
2838
|
+
padding: 0;
|
|
1638
2839
|
}
|
|
1639
2840
|
|
|
1640
|
-
.dz-
|
|
2841
|
+
.dz-hl-rule .dz-swatch-well input[type="color"]::-webkit-color-swatch {
|
|
2842
|
+
border: 0;
|
|
2843
|
+
border-radius: 4px;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
.dz-hl-rule .dz-swatch-well input[type="color"]::-moz-color-swatch {
|
|
2847
|
+
border: 0;
|
|
2848
|
+
border-radius: 4px;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
/* white with a red slash through it: the usual way of saying "no colour" */
|
|
2852
|
+
.dz-hl-rule .dz-swatch.is-none .dz-swatch-well::after {
|
|
2853
|
+
content: "";
|
|
1641
2854
|
position: absolute;
|
|
1642
2855
|
inset: 0;
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
2856
|
+
border: 1px solid var(--border);
|
|
2857
|
+
border-radius: 4px;
|
|
2858
|
+
background:
|
|
2859
|
+
linear-gradient(to top right,
|
|
2860
|
+
transparent calc(50% - .75px),
|
|
2861
|
+
var(--danger) calc(50% - .75px),
|
|
2862
|
+
var(--danger) calc(50% + .75px),
|
|
2863
|
+
transparent calc(50% + .75px)),
|
|
2864
|
+
var(--surface);
|
|
1647
2865
|
pointer-events: none;
|
|
1648
2866
|
}
|
|
1649
2867
|
|
|
1650
2868
|
/**
|
|
1651
|
-
* The
|
|
1652
|
-
*
|
|
1653
|
-
* apart by not being marked at all.
|
|
2869
|
+
* The minus keeps its place when there is no colour to clear, so the fill,
|
|
2870
|
+
* the toggles and the sample never shift from one rule to the next.
|
|
1654
2871
|
*/
|
|
1655
|
-
.dz-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
font-
|
|
2872
|
+
.dz-hl-rule .dz-swatch-clear {
|
|
2873
|
+
order: 2;
|
|
2874
|
+
width: 20px;
|
|
2875
|
+
height: 20px;
|
|
2876
|
+
font-size: 14px;
|
|
1660
2877
|
}
|
|
1661
2878
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
text-decoration: none;
|
|
2879
|
+
.dz-hl-rule .dz-swatch.is-none .dz-swatch-clear {
|
|
2880
|
+
visibility: hidden;
|
|
1665
2881
|
}
|
|
1666
2882
|
|
|
1667
|
-
a
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
2883
|
+
/* bold and italic: two glyph buttons in a grey track, the one on raised */
|
|
2884
|
+
.dz-hl-toggles {
|
|
2885
|
+
display: inline-flex;
|
|
2886
|
+
gap: 2px;
|
|
2887
|
+
height: 32px;
|
|
2888
|
+
padding: 2px;
|
|
2889
|
+
border-radius: 6px;
|
|
2890
|
+
background: var(--surface-muted);
|
|
1671
2891
|
}
|
|
1672
2892
|
|
|
1673
|
-
|
|
1674
|
-
|
|
2893
|
+
.dz-hl-toggle {
|
|
2894
|
+
width: 28px;
|
|
2895
|
+
height: 28px;
|
|
2896
|
+
border: 0;
|
|
2897
|
+
border-radius: 4px;
|
|
1675
2898
|
background: none;
|
|
2899
|
+
color: var(--ink-soft);
|
|
2900
|
+
font: inherit;
|
|
2901
|
+
font-size: 13px;
|
|
2902
|
+
cursor: pointer;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
.dz-hl-toggle:hover {
|
|
2906
|
+
color: var(--ink);
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
.dz-hl-toggle[aria-pressed="true"] {
|
|
2910
|
+
background: var(--surface);
|
|
2911
|
+
color: var(--ink);
|
|
2912
|
+
box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(34, 39, 44, .08);
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
.dz-hl-toggle:focus-visible {
|
|
2916
|
+
outline: 2px solid var(--accent-strong);
|
|
2917
|
+
outline-offset: -1px;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
/* what the rule does to a value, in the rule's own style, at the line's end */
|
|
2921
|
+
.dz-hl-preview {
|
|
2922
|
+
display: inline-flex;
|
|
2923
|
+
align-items: center;
|
|
2924
|
+
justify-content: flex-end;
|
|
2925
|
+
flex: 1;
|
|
2926
|
+
min-width: 0;
|
|
2927
|
+
height: 32px;
|
|
2928
|
+
padding: 0 10px;
|
|
2929
|
+
overflow: hidden;
|
|
2930
|
+
border: 1px dashed var(--border);
|
|
2931
|
+
border-radius: 6px;
|
|
2932
|
+
background: var(--surface);
|
|
2933
|
+
font-family: "Courier Prime", monospace;
|
|
2934
|
+
font-size: 13px;
|
|
2935
|
+
white-space: nowrap;
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
/* add a rule: a secondary button, as the footer's are */
|
|
2939
|
+
.dz-highlight-card .dz-add-row {
|
|
2940
|
+
width: auto;
|
|
2941
|
+
height: 32px;
|
|
2942
|
+
padding: 0 12px;
|
|
2943
|
+
border: 1px solid var(--border);
|
|
2944
|
+
border-radius: 6px;
|
|
2945
|
+
background: var(--surface);
|
|
2946
|
+
color: var(--ink);
|
|
2947
|
+
font: inherit;
|
|
2948
|
+
font-size: 12px;
|
|
2949
|
+
font-weight: 500;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.dz-highlight-card .dz-add-row:hover {
|
|
2953
|
+
border-style: solid;
|
|
2954
|
+
border-color: var(--border);
|
|
2955
|
+
background: var(--surface-muted);
|
|
1676
2956
|
color: var(--ink);
|
|
1677
2957
|
}
|
|
2958
|
+
|
|
2959
|
+
.dz-highlight-card .dz-add-row:focus-visible {
|
|
2960
|
+
outline: 2px solid var(--accent-strong);
|
|
2961
|
+
outline-offset: 2px;
|
|
2962
|
+
}
|