@webority/theme 0.163.0 → 0.164.0
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 +21 -21
- package/dist/purge-safelist.json +10 -11
- package/dist/webority-theme.css +1 -1
- package/package.json +6 -5
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +38 -34
- package/scss/_flags.scss +3 -3
- package/scss/_marketing.scss +6 -6
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_variables.scss +19 -19
- package/scss/_wui-components.scss +2 -0
- package/scss/_wui-core.scss +2 -0
- package/scss/wui/_card.scss +8 -8
- package/scss/wui/_choice.scss +4 -4
- package/scss/wui/_command-palette.scss +7 -2
- package/scss/wui/_comment-thread.scss +3 -3
- package/scss/wui/_context-menu.scss +14 -10
- package/scss/wui/_controls.scss +74 -73
- package/scss/wui/_data.scss +19 -33
- package/scss/wui/_dialog-motion.scss +14 -19
- package/scss/wui/_disclosure.scss +3 -3
- package/scss/wui/_display.scss +56 -56
- package/scss/wui/_dock.scss +4 -4
- package/scss/wui/_drawer.scss +18 -15
- package/scss/wui/_empty-state.scss +4 -4
- package/scss/wui/_file-viewer.scss +14 -2
- package/scss/wui/_filter-popover.scss +1 -1
- package/scss/wui/_floating.scss +1 -1
- package/scss/wui/_flow.scss +33 -33
- package/scss/wui/_hover-card.scss +6 -5
- package/scss/wui/_inline-edit.scss +1 -1
- package/scss/wui/_kanban.scss +1 -1
- package/scss/wui/_lightbox.scss +20 -9
- package/scss/wui/_media.scss +1 -1
- package/scss/wui/_mention-input.scss +3 -3
- package/scss/wui/_menu-motion.scss +23 -23
- package/scss/wui/_modal-remote.scss +3 -3
- package/scss/wui/_native-overlay.scss +76 -0
- package/scss/wui/_navigation-menu.scss +13 -17
- package/scss/wui/_navigation.scss +25 -1
- package/scss/wui/_notification-center.scss +6 -9
- package/scss/wui/_overlay-reset.scss +15 -0
- package/scss/wui/_overlays.scss +139 -99
- package/scss/wui/_page-header-bar.scss +24 -0
- package/scss/wui/_scrollbar.scss +1 -1
- package/scss/wui/_sections.scss +3 -3
- package/scss/wui/_select.scss +16 -10
- package/scss/wui/_shell-parts.scss +2 -2
- package/scss/wui/_shell.scss +131 -28
- package/scss/wui/_shortcuts.scss +3 -15
- package/scss/wui/_sortable.scss +1 -1
- package/scss/wui/_tone-pill.scss +2 -2
- package/scss/wui/_toolbar.scss +3 -3
- package/scss/wui/_truncate.scss +2 -2
- package/scss/wui/_typography.scss +8 -8
- package/scss/wui/_utilities.scss +4 -5
- package/scss/wui/_whats-new.scss +6 -7
- package/scss/wui/_workspace.scss +34 -9
- package/scss/wui/tour/_base.scss +11 -1
- package/scss/wui/tour/_end.scss +6 -0
- package/scss/wui/tour/_media.scss +1 -1
- package/scss/wui/tour/_placement.scss +6 -0
package/scss/wui/_flow.scss
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
// Wizard stepper, pricing card, form repeater.
|
|
4
4
|
//
|
|
5
|
-
// Part of the wui-components layer
|
|
5
|
+
// Part of the wui-components layer. See _wui-components.scss for the whole
|
|
6
6
|
// picture and the load order. Order within the layer is LOAD-BEARING: these
|
|
7
7
|
// partials are a split of one stylesheet, not independent modules, so a rule
|
|
8
8
|
// here may be overridden by a later partial. Never reorder the imports.
|
|
9
9
|
|
|
10
10
|
// Wizard stepper. Three variants of one component:
|
|
11
|
-
// .stepper
|
|
12
|
-
// .stepper-journey
|
|
13
|
-
// .stepper-icons
|
|
14
|
-
// .wui-step-tiles
|
|
11
|
+
// .stepper compact: numbered circle above a label, line behind.
|
|
12
|
+
// .stepper-journey wide, 40px dot beside a label + title, for a page masthead.
|
|
13
|
+
// .stepper-icons large connected icon badges with a "STEP n" eyebrow.
|
|
14
|
+
// .wui-step-tiles a row of tiles (rounded icon square, label and a state line, chevrons between).
|
|
15
15
|
//
|
|
16
|
-
// Fully themable through a small set of `--wui-step-*` custom properties
|
|
16
|
+
// Fully themable through a small set of `--wui-step-*` custom properties. Set them on
|
|
17
17
|
// the stepper (or the wizard host, or any ancestor: they inherit), or flip the whole
|
|
18
18
|
// accent with a `.wui-step-tone-*` class. Every colour/size below reads a var with the
|
|
19
19
|
// historical value as the fallback, so an UNSET wizard looks exactly as before while a
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// --wui-step-number-font the step number in a badge (default 12px; journey 13px, icons 22px)
|
|
33
33
|
// --wui-step-label-font the step label (default 13px; journey 16px, icons 15px)
|
|
34
34
|
// The `.wui-step-size-sm` / `.wui-step-size-lg` classes (end of this block) set these together.
|
|
35
|
-
// Every variant defaults to the brand primary
|
|
35
|
+
// Every variant defaults to the brand primary; active, done and rail share one accent
|
|
36
36
|
// (no multi-colour). Colour variety is opt-in: a `.wui-step-tone-*` class or a var override.
|
|
37
37
|
// ============================================================================
|
|
38
38
|
.stepper {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
// class placed on the stepper element itself overrides it. The wizard is excluded because
|
|
50
50
|
// its tone class rides on the wizard HOST (an ancestor of the generated header): declaring
|
|
51
51
|
// the vars on the header would block that inherited override, so the wizard leans on the
|
|
52
|
-
// var fallbacks instead
|
|
52
|
+
// var fallbacks instead, which now also default to primary. :where() keeps this at ZERO
|
|
53
53
|
// specificity, so a .wui-step-tone-* class or an inline --wui-step-* override still wins.
|
|
54
54
|
:where(.stepper:not(.wizard-stepper)) {
|
|
55
55
|
--wui-step-accent: var(--color-primary-text);
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
gap: 10px;
|
|
68
68
|
text-align: center;
|
|
69
69
|
}
|
|
70
|
-
// The connector belongs to the step on its RIGHT, drawn leftwards
|
|
70
|
+
// The connector belongs to the step on its RIGHT, drawn leftwards; that way the
|
|
71
71
|
// first step has none and no :last-child exception is needed.
|
|
72
72
|
.step + .step::before {
|
|
73
73
|
content: "";
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
.step.done .step-label {
|
|
133
133
|
color: var(--color-text);
|
|
134
134
|
}
|
|
135
|
-
// An interactive step
|
|
135
|
+
// An interactive step: an <a> deep-linking back to a stage, or a <button> in a
|
|
136
136
|
// JS-driven wizard. A button needs its chrome stripped so it reads as a step.
|
|
137
137
|
button.step {
|
|
138
138
|
border: none;
|
|
@@ -184,7 +184,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
184
184
|
0 0 0 4px var(--wui-step-done-soft, var(--wui-step-soft, var(--color-primary-soft))),
|
|
185
185
|
0 0 0 6px var(--wui-step-done-accent, var(--wui-step-accent, var(--color-primary-text)));
|
|
186
186
|
}
|
|
187
|
-
// A step that failed its stage
|
|
187
|
+
// A step that failed its stage: a red circle with an alert, so an invalid step
|
|
188
188
|
// reads as wrong at a glance rather than merely "not done".
|
|
189
189
|
.step.error .step-circle {
|
|
190
190
|
border-color: var(--color-danger);
|
|
@@ -194,7 +194,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
194
194
|
.step.error .step-label {
|
|
195
195
|
color: var(--color-danger-text);
|
|
196
196
|
}
|
|
197
|
-
// A secondary line under the label
|
|
197
|
+
// A secondary line under the label: a short "what this step is for". Muted and
|
|
198
198
|
// narrow so it never competes with the label it explains.
|
|
199
199
|
.step-desc {
|
|
200
200
|
max-width: 130px;
|
|
@@ -254,7 +254,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
254
254
|
}
|
|
255
255
|
// A flex column, not a bare wrapper: the index and the label are inline spans, so
|
|
256
256
|
// without this they sit on one line ("STEP 1Add site") and the label's margin-top
|
|
257
|
-
//
|
|
257
|
+
// a no-op on an inline element, cannot separate them.
|
|
258
258
|
.stepper-journey .step-text {
|
|
259
259
|
display: flex;
|
|
260
260
|
flex-direction: column;
|
|
@@ -293,7 +293,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
293
293
|
text-overflow: ellipsis;
|
|
294
294
|
color: var(--color-text);
|
|
295
295
|
}
|
|
296
|
-
// In the journey bar the description sits inside the text column, under the label
|
|
296
|
+
// In the journey bar the description sits inside the text column, under the label,
|
|
297
297
|
// wider and left-aligned to match, not the centred compact treatment.
|
|
298
298
|
.stepper-journey .step-desc {
|
|
299
299
|
max-width: none;
|
|
@@ -332,7 +332,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
332
332
|
display: none;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
// Vertical orientation. The steps run down a side rail instead of across
|
|
335
|
+
// Vertical orientation. The steps run down a side rail instead of across: for a
|
|
336
336
|
// narrow column, a drawer, or a settings wizard.
|
|
337
337
|
// ----------------------------------------------------------------------------
|
|
338
338
|
.stepper-vertical {
|
|
@@ -351,7 +351,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
351
351
|
display: grid;
|
|
352
352
|
grid-template-columns: var(--wui-step-size, 28px) 1fr;
|
|
353
353
|
column-gap: 12px;
|
|
354
|
-
// No gap between the label and its description
|
|
354
|
+
// No gap between the label and its description. They read as one block; the
|
|
355
355
|
// base .step gap of 10px is for the horizontal circle→label spacing.
|
|
356
356
|
row-gap: 0;
|
|
357
357
|
align-items: start;
|
|
@@ -415,10 +415,10 @@ button.step.done:focus-visible .step-circle {
|
|
|
415
415
|
display: none;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
// .stepper-icons
|
|
418
|
+
// .stepper-icons: large icon badges joined by a rail, with a "STEP n" eyebrow above
|
|
419
419
|
// each title. Done gets a soft-accent tint + filled connector; active is a solid-accent
|
|
420
|
-
// badge; pending is a muted badge
|
|
421
|
-
// icon-per-step flows
|
|
420
|
+
// badge; pending is a muted badge: all one accent (brand primary by default). Built for
|
|
421
|
+
// icon-per-step flows: each step sets `icon` (a step with no icon falls back to its number).
|
|
422
422
|
// ----------------------------------------------------------------------------
|
|
423
423
|
.stepper-icons {
|
|
424
424
|
align-items: flex-start;
|
|
@@ -443,7 +443,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
443
443
|
color var(--wui-duration-default) var(--wui-ease-ui),
|
|
444
444
|
transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
445
445
|
}
|
|
446
|
-
// Like every variant, the icons stepper defaults to the brand primary
|
|
446
|
+
// Like every variant, the icons stepper defaults to the brand primary: a solid-primary
|
|
447
447
|
// active badge, a soft-primary done badge, a primary rail. Every colour routes through the
|
|
448
448
|
// shared --wui-step-* vars, so a `.wui-step-tone-*` class or an override recolours it.
|
|
449
449
|
.stepper-icons .step.active .step-circle {
|
|
@@ -517,7 +517,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
517
517
|
transform: scale(1.04);
|
|
518
518
|
}
|
|
519
519
|
// Below md the six badges no longer fit across, so the icons stepper stacks into a
|
|
520
|
-
// vertical list
|
|
520
|
+
// vertical list; the shared .stepper-vertical rules take over from here.
|
|
521
521
|
@include media-breakpoint-down(md) {
|
|
522
522
|
.stepper-icons.stepper-icons {
|
|
523
523
|
flex-direction: column;
|
|
@@ -539,7 +539,7 @@ button.step.done:focus-visible .step-circle {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
// .wui-step-tiles
|
|
542
|
+
// .wui-step-tiles: each step is a list item holding a rounded icon square with the label and a
|
|
543
543
|
// state line (Done, Current, To do) beside it; chevrons join the tiles. Like every variant it is one
|
|
544
544
|
// brand-primary accent: the current tile is solid accent and done tiles the soft tint, so a tone
|
|
545
545
|
// class recolours the current one and a done-tone class the finished ones.
|
|
@@ -742,7 +742,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
-
// Tone presets
|
|
745
|
+
// Tone presets: flip the whole accent (active fill, done rail, ring, journey/icons
|
|
746
746
|
// done tint) to a semantic ramp in one class. Because custom properties inherit, the
|
|
747
747
|
// class can sit on the stepper itself OR on an ancestor (the wizard host), and an inline
|
|
748
748
|
// `style="--wui-step-accent: …"` on a closer element still wins over it. Placing the
|
|
@@ -781,7 +781,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
781
781
|
--wui-step-soft-fg: var(--color-info-text);
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
// Done-tone presets
|
|
784
|
+
// Done-tone presets: recolour COMPLETED steps only (their badge, "STEP n" eyebrow and the
|
|
785
785
|
// filled rail after them), leaving the active step on the accent above. Same ramps and the
|
|
786
786
|
// same placement rules as the tone presets: on the stepper or any ancestor (the wizard host).
|
|
787
787
|
// Error and skipped steps keep their own look.
|
|
@@ -861,7 +861,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
861
861
|
// Pricing card. A tier's name, price, pitch, feature list and CTA.
|
|
862
862
|
//
|
|
863
863
|
// The "Most popular" flag is a real element, not a `content:` string on
|
|
864
|
-
// ::before
|
|
864
|
+
// ::before: a label welded into CSS cannot be reworded, translated, or read by
|
|
865
865
|
// a screen reader.
|
|
866
866
|
// ============================================================================
|
|
867
867
|
.plan-grid {
|
|
@@ -1001,7 +1001,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
// ============================================================================
|
|
1004
|
-
// Form repeater
|
|
1004
|
+
// Form repeater: a list of rows the user can add to and remove from
|
|
1005
1005
|
// (contacts, line items, zones).
|
|
1006
1006
|
// ============================================================================
|
|
1007
1007
|
.repeater {
|
|
@@ -1014,7 +1014,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1014
1014
|
display: flex;
|
|
1015
1015
|
// When present, the row-label line is the full-width FIRST line (a header band) and the
|
|
1016
1016
|
// fields wrap to the line beneath it. The markup renders that band only when the row is
|
|
1017
|
-
// labelled or removable (see .repeater-row-label)
|
|
1017
|
+
// labelled or removable (see .repeater-row-label). A removable row's empty band reserves
|
|
1018
1018
|
// the gap that keeps the fields clear of the absolute remove control. A row that is neither
|
|
1019
1019
|
// has no band and stays compact; there is no overlap to avoid, since the control is absent too.
|
|
1020
1020
|
flex-wrap: wrap;
|
|
@@ -1068,7 +1068,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
.repeater-remove {
|
|
1070
1070
|
// Pulled out of the row's flex flow and parked in the top-right corner of the header
|
|
1071
|
-
// band, so it never steals horizontal room from the fields
|
|
1071
|
+
// band, so it never steals horizontal room from the fields. The last field can run to
|
|
1072
1072
|
// the row's right edge instead of stopping short. Sits a little below the top edge so it
|
|
1073
1073
|
// reads as part of the band rather than pinned to the corner.
|
|
1074
1074
|
position: absolute;
|
|
@@ -1078,7 +1078,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1078
1078
|
.repeater-add {
|
|
1079
1079
|
align-self: flex-start;
|
|
1080
1080
|
}
|
|
1081
|
-
// Shown in place of the rows when there are none
|
|
1081
|
+
// Shown in place of the rows when there are none: a repeater with no rows and no
|
|
1082
1082
|
// message looks broken rather than empty.
|
|
1083
1083
|
.repeater-empty {
|
|
1084
1084
|
padding: 18px;
|
|
@@ -1091,7 +1091,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
// ============================================================================
|
|
1094
|
-
// Form layout helpers
|
|
1094
|
+
// Form layout helpers: section, row (grid), actions footer.
|
|
1095
1095
|
//
|
|
1096
1096
|
// AppFormSection wraps related fields with a title + description intro.
|
|
1097
1097
|
// AppFormRow arranges fields in a responsive grid (1/2/3 columns).
|
|
@@ -1263,7 +1263,7 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
// ============================================================================
|
|
1266
|
-
// AppWizard (<wui-wizard>)
|
|
1266
|
+
// AppWizard (<wui-wizard>): stepper header + one visible step panel + a sticky
|
|
1267
1267
|
// Back/Skip/Next/Finish footer. Composes .stepper and .form-actions above.
|
|
1268
1268
|
// ============================================================================
|
|
1269
1269
|
wui-wizard {
|
|
@@ -1376,7 +1376,7 @@ wui-wizard-step[hidden] {
|
|
|
1376
1376
|
// swap in; content taller than this simply grows the panel.
|
|
1377
1377
|
min-height: 96px;
|
|
1378
1378
|
// A rounded squircle card around the step content. The surface (border + fill +
|
|
1379
|
-
// padding) is what makes the radius visible
|
|
1379
|
+
// padding) is what makes the radius visible. A radius on a border/background-less
|
|
1380
1380
|
// box shows nothing.
|
|
1381
1381
|
padding: 20px 24px;
|
|
1382
1382
|
border: 1px solid var(--color-border);
|
|
@@ -1385,7 +1385,7 @@ wui-wizard-step[hidden] {
|
|
|
1385
1385
|
background: var(--color-surface);
|
|
1386
1386
|
}
|
|
1387
1387
|
.wizard-footer {
|
|
1388
|
-
// The Back/Skip/Next/Finish bar sits at the END of the wizard content
|
|
1388
|
+
// The Back/Skip/Next/Finish bar sits at the END of the wizard content, NOT
|
|
1389
1389
|
// viewport-pinned. A transparent sticky bar (the old behaviour) pinned to the
|
|
1390
1390
|
// viewport bottom collided with a page/app footer below the wizard, burying the
|
|
1391
1391
|
// buttons behind it. Inline keeps them in the flow, always clear of a page footer.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Hover card ──
|
|
4
4
|
// AppHoverCard / <app-hover-card> (a <wui-hover-card> element): a small preview card beside a name or
|
|
5
|
-
// record link. The
|
|
6
|
-
//
|
|
5
|
+
// record link. The panel is a manual popover, so the open state is :popover-open (the browser owns it;
|
|
6
|
+
// a React re-render cannot reset it) and it is placed with position: fixed, so it escapes any
|
|
7
7
|
// clipping ancestor. Every colour is a theme token.
|
|
8
8
|
//
|
|
9
9
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
@@ -19,8 +19,9 @@ wui-hover-card {
|
|
|
19
19
|
|
|
20
20
|
.wui-hover-card-panel {
|
|
21
21
|
position: fixed;
|
|
22
|
+
// The popover UA style would stretch a fixed box between top and bottom; the element sets top and left.
|
|
23
|
+
inset: auto;
|
|
22
24
|
z-index: var(--wui-z-popover);
|
|
23
|
-
display: none;
|
|
24
25
|
width: 20rem;
|
|
25
26
|
max-width: calc(100vw - 16px);
|
|
26
27
|
max-height: calc(100vh - 8px);
|
|
@@ -33,7 +34,7 @@ wui-hover-card {
|
|
|
33
34
|
box-shadow: var(--wui-shadow-popover);
|
|
34
35
|
font-size: 13px;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
&:popover-open {
|
|
37
38
|
display: block;
|
|
38
39
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
39
40
|
}
|
|
@@ -51,7 +52,7 @@ wui-hover-card {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
@media (prefers-reduced-motion: reduce) {
|
|
54
|
-
.wui-hover-card-panel
|
|
55
|
+
.wui-hover-card-panel:popover-open {
|
|
55
56
|
animation: none;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// control. The element sets the states on the host: [data-wui-editing] and
|
|
7
7
|
// [data-wui-state="saving" | "saved" | "error"].
|
|
8
8
|
//
|
|
9
|
-
// Part of the wui-components layer
|
|
9
|
+
// Part of the wui-components layer: see _wui-components.scss for load order.
|
|
10
10
|
|
|
11
11
|
.wui-inline-edit {
|
|
12
12
|
display: inline-flex;
|
package/scss/wui/_kanban.scss
CHANGED
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
.wui-kanban-card[data-wui-lifted] {
|
|
348
348
|
box-shadow: var(--wui-shadow-popover);
|
|
349
349
|
outline: 2px solid var(--color-primary);
|
|
350
|
-
outline-offset:
|
|
350
|
+
outline-offset: var(--wui-focus-ring-offset);
|
|
351
351
|
}
|
|
352
352
|
// Saving: the card cannot move again until the server answers.
|
|
353
353
|
.wui-kanban-card[aria-busy="true"] {
|
package/scss/wui/_lightbox.scss
CHANGED
|
@@ -54,20 +54,31 @@
|
|
|
54
54
|
margin-top: var(--wui-space-sm);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
//
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
// A modal <dialog>: the top layer stacks it over a dialog it was opened from. The dialog box is the
|
|
58
|
+
// full screen; the dim is its ::backdrop.
|
|
59
|
+
dialog.wui-lightbox-overlay {
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
max-width: none;
|
|
63
|
+
max-height: none;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--color-on-scrim);
|
|
62
69
|
display: flex;
|
|
63
70
|
flex-direction: column;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-webkit-backdrop-filter: blur(12px);
|
|
71
|
+
&:not([open]) {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
68
74
|
&:focus {
|
|
69
75
|
outline: none;
|
|
70
76
|
}
|
|
77
|
+
&::backdrop {
|
|
78
|
+
background: var(--color-scrim-strong);
|
|
79
|
+
backdrop-filter: blur(12px);
|
|
80
|
+
-webkit-backdrop-filter: blur(12px);
|
|
81
|
+
}
|
|
71
82
|
}
|
|
72
83
|
@media (prefers-reduced-motion: no-preference) {
|
|
73
84
|
.wui-lightbox-overlay {
|
package/scss/wui/_media.scss
CHANGED
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
}
|
|
1055
1055
|
// The label has no room in the ring, so surface it as a hover/focus tooltip below the ring
|
|
1056
1056
|
// (reusing the AppTooltip surface look). Text comes from data-overlay-label on the ring — a
|
|
1057
|
-
// distinct attribute from data-wui-
|
|
1057
|
+
// distinct attribute from data-wui-tooltip so the trigger rule never styles this on a large
|
|
1058
1058
|
// ring. Only rendered inside this container query, so md/lg (label visible) never get it.
|
|
1059
1059
|
.wui-image-picker-ring[data-overlay-label]::after {
|
|
1060
1060
|
content: attr(data-overlay-label);
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
.wui-mention-menu {
|
|
20
20
|
position: fixed;
|
|
21
21
|
z-index: var(--wui-z-menu);
|
|
22
|
-
display: flex;
|
|
23
22
|
flex-direction: column;
|
|
24
23
|
gap: 2px;
|
|
25
24
|
min-width: 240px;
|
|
@@ -33,8 +32,9 @@
|
|
|
33
32
|
corner-shape: squircle;
|
|
34
33
|
box-shadow: var(--wui-shadow-popover);
|
|
35
34
|
}
|
|
36
|
-
.
|
|
37
|
-
|
|
35
|
+
// An author display would override the closed popover's display: none, so it applies only when open.
|
|
36
|
+
.wui-mention-menu:popover-open {
|
|
37
|
+
display: flex;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.wui-mention-option {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// `transform` — Popper and anchorOverlay position these panels via transform/fixed
|
|
21
21
|
// coordinates, and the standalone properties compose with that instead of clobbering.
|
|
22
22
|
// - Panels shown by removing `hidden` (the wui-* set) replay the animation on every
|
|
23
|
-
// reveal for free;
|
|
23
|
+
// reveal for free; the popover surfaces key off `:popover-open`. Close stays instant: the wui
|
|
24
24
|
// elements hide with `hidden` in the same tick, and delaying that for an exit
|
|
25
25
|
// animation would change observable close timing everywhere.
|
|
26
26
|
//
|
|
@@ -93,19 +93,19 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.dropdown-menu
|
|
97
|
-
.popover
|
|
98
|
-
.wui-select-menu:
|
|
99
|
-
.country-dropdown-menu:
|
|
100
|
-
.datepicker-pop:
|
|
101
|
-
.daterange-pop:
|
|
102
|
-
.timepicker-pop:
|
|
96
|
+
.dropdown-menu:popover-open,
|
|
97
|
+
.popover:popover-open,
|
|
98
|
+
.wui-select-menu:popover-open,
|
|
99
|
+
.country-dropdown-menu:popover-open,
|
|
100
|
+
.datepicker-pop:popover-open,
|
|
101
|
+
.daterange-pop:popover-open,
|
|
102
|
+
.timepicker-pop:popover-open {
|
|
103
103
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
104
104
|
transform-origin: top;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// End-aligned dropdowns zoom from the corner they attach to.
|
|
108
|
-
.dropdown-menu-end
|
|
108
|
+
.dropdown-menu-end:popover-open {
|
|
109
109
|
transform-origin: top right;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -115,41 +115,41 @@
|
|
|
115
115
|
.datepicker-pop.drop-up,
|
|
116
116
|
.daterange-pop.drop-up,
|
|
117
117
|
.timepicker-pop.drop-up,
|
|
118
|
-
.dropdown-menu
|
|
119
|
-
.dropup .dropdown-menu
|
|
118
|
+
.dropdown-menu:popover-open[data-side="top"],
|
|
119
|
+
.dropup .dropdown-menu:popover-open {
|
|
120
120
|
--wui-menu-drop: 6px;
|
|
121
121
|
|
|
122
122
|
transform-origin: bottom;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
// Popover follows its
|
|
126
|
-
.popover
|
|
125
|
+
// Popover follows its side; the drop always comes from the trigger's direction.
|
|
126
|
+
.popover:popover-open[data-side="top"] {
|
|
127
127
|
--wui-menu-drop: 6px;
|
|
128
128
|
|
|
129
129
|
transform-origin: bottom center;
|
|
130
130
|
}
|
|
131
|
-
.popover
|
|
131
|
+
.popover:popover-open[data-side="end"] {
|
|
132
132
|
--wui-menu-drop: 0px;
|
|
133
133
|
|
|
134
134
|
transform-origin: left center;
|
|
135
135
|
}
|
|
136
|
-
.popover
|
|
136
|
+
.popover:popover-open[data-side="start"] {
|
|
137
137
|
--wui-menu-drop: 0px;
|
|
138
138
|
|
|
139
139
|
transform-origin: right center;
|
|
140
140
|
}
|
|
141
|
-
.popover
|
|
141
|
+
.popover:popover-open[data-side="bottom"] {
|
|
142
142
|
transform-origin: top center;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
@media (prefers-reduced-motion: reduce) {
|
|
146
|
-
.dropdown-menu
|
|
147
|
-
.popover
|
|
148
|
-
.wui-select-menu:
|
|
149
|
-
.country-dropdown-menu:
|
|
150
|
-
.datepicker-pop:
|
|
151
|
-
.daterange-pop:
|
|
152
|
-
.timepicker-pop:
|
|
146
|
+
.dropdown-menu:popover-open,
|
|
147
|
+
.popover:popover-open,
|
|
148
|
+
.wui-select-menu:popover-open,
|
|
149
|
+
.country-dropdown-menu:popover-open,
|
|
150
|
+
.datepicker-pop:popover-open,
|
|
151
|
+
.daterange-pop:popover-open,
|
|
152
|
+
.timepicker-pop:popover-open {
|
|
153
153
|
animation: none;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
transform: translateX(100%);
|
|
74
74
|
transition: transform var(--wui-duration-default) var(--wui-ease-ui);
|
|
75
75
|
}
|
|
76
|
-
.modal.wui-remote-drawer
|
|
76
|
+
dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
|
|
77
77
|
transform: none;
|
|
78
78
|
}
|
|
79
79
|
.modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
margin: 0;
|
|
102
102
|
transform: translateY(100%);
|
|
103
103
|
}
|
|
104
|
-
.modal.wui-remote-drawer
|
|
104
|
+
dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
|
|
105
105
|
transform: none;
|
|
106
106
|
}
|
|
107
107
|
.modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// A side panel dims the page behind it without blurring it, so the list stays readable.
|
|
124
|
-
|
|
124
|
+
dialog.wui-modal-shell.wui-remote-drawer[open]::backdrop {
|
|
125
125
|
backdrop-filter: none;
|
|
126
126
|
-webkit-backdrop-filter: none;
|
|
127
127
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// wui/_native-overlay.scss
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// Looks of the native overlay surfaces: a <dialog> opened with showModal() and
|
|
5
|
+
// a panel carrying the popover attribute. Loaded after dialog-motion in both
|
|
6
|
+
// _wui-core.scss and _wui-components.scss.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
@use "overlay-reset" as *;
|
|
9
|
+
|
|
10
|
+
// The hosts are transparent: the dialog or popover inside is the box.
|
|
11
|
+
wui-modal,
|
|
12
|
+
wui-drawer,
|
|
13
|
+
wui-popover {
|
|
14
|
+
display: contents;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// <wui-dropdown> replaces a block wrapper div; zero specificity so a host class such as btn-group keeps its own display.
|
|
18
|
+
:where(wui-dropdown) {
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// The browser draws a dialog or a popover as a boxed surface of its own. Every library panel is listed
|
|
23
|
+
// by its marker, so a product's own popover keeps the browser's default look; a new library panel adds
|
|
24
|
+
// its marker here; an on-demand widget's panel is listed in that widget's own partial. Zero specificity, so any
|
|
25
|
+
// class rule still wins and only the browser's defaults are cleared.
|
|
26
|
+
:where(
|
|
27
|
+
dialog.wui-modal-shell,
|
|
28
|
+
dialog.wui-drawer-panel,
|
|
29
|
+
dialog.wui-lightbox-overlay,
|
|
30
|
+
[popover]:is(
|
|
31
|
+
.wui-shortcut-sheet,
|
|
32
|
+
.wui-tooltip,
|
|
33
|
+
[data-wui-dropdown-menu],
|
|
34
|
+
[data-wui-popover-panel],
|
|
35
|
+
[data-wui-picker],
|
|
36
|
+
[data-wui-menu],
|
|
37
|
+
.wui-select-menu,
|
|
38
|
+
.country-dropdown-menu,
|
|
39
|
+
.datepicker-pop,
|
|
40
|
+
.timepicker-pop,
|
|
41
|
+
.daterange-pop,
|
|
42
|
+
.wui-whats-new-panel,
|
|
43
|
+
.wui-notification-center-panel,
|
|
44
|
+
.wui-hover-card-panel,
|
|
45
|
+
.wui-filter-popover-panel,
|
|
46
|
+
.wui-nav-menu-panel,
|
|
47
|
+
.wui-context-menu-panel,
|
|
48
|
+
.wui-context-menu-subpanel,
|
|
49
|
+
.wui-toast-container,
|
|
50
|
+
wui-tour-host,
|
|
51
|
+
.app-sidebar
|
|
52
|
+
)
|
|
53
|
+
) {
|
|
54
|
+
@include wui-native-overlay-reset;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// A closed panel is display none. Bootstrap's .popover and .tooltip set display: block, which
|
|
58
|
+
// would otherwise show it.
|
|
59
|
+
:is(.wui-tooltip, [data-wui-dropdown-menu], [data-wui-popover-panel])[popover]:not(:popover-open) {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// The page behind an open modal does not scroll.
|
|
64
|
+
html:has(dialog:modal) {
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Closing fades the dialog out. It stays open until the fade ends, so the fade is never cut short.
|
|
69
|
+
dialog.wui-modal-shell[data-wui-closing] {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
73
|
+
dialog.wui-modal-shell[data-wui-closing] {
|
|
74
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-linear);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// ── Navigation menu ──
|
|
4
4
|
// AppNavigationMenu / <app-navigation-menu> (a <wui-navigation-menu> element): a site's top
|
|
5
|
-
// navigation. An entry is a link or a button that discloses a panel of links; the panel
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// row and a panel floats under its entry; below it the entries stack and a panel is part of the
|
|
9
|
-
// page flow, so nothing is placed by script on a phone. Every colour is a theme token.
|
|
5
|
+
// navigation. An entry is a link or a button that discloses a panel of links; the panel is a
|
|
6
|
+
// popover="auto" and shows while :popover-open, placed under its entry by anchorOverlay. From the md
|
|
7
|
+
// tier up the entries sit in a row. Every colour is a theme token.
|
|
10
8
|
//
|
|
11
9
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
12
10
|
|
|
@@ -72,9 +70,16 @@ wui-navigation-menu {
|
|
|
72
70
|
|
|
73
71
|
.wui-nav-menu-panel {
|
|
74
72
|
display: none;
|
|
73
|
+
inset: auto;
|
|
74
|
+
margin: 0;
|
|
75
75
|
padding: 4px 0 4px 12px;
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
&:popover-open {
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@include media-breakpoint-down(md) {
|
|
82
|
+
.wui-nav-menu-panel[data-open] {
|
|
78
83
|
display: block;
|
|
79
84
|
}
|
|
80
85
|
}
|
|
@@ -140,10 +145,6 @@ wui-navigation-menu {
|
|
|
140
145
|
margin-left: 0;
|
|
141
146
|
}
|
|
142
147
|
.wui-nav-menu-panel {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: calc(100% + 6px);
|
|
145
|
-
left: 0;
|
|
146
|
-
z-index: var(--wui-z-dropdown);
|
|
147
148
|
width: max-content;
|
|
148
149
|
min-width: 16rem;
|
|
149
150
|
max-width: min(36rem, calc(100vw - 16px));
|
|
@@ -155,19 +156,14 @@ wui-navigation-menu {
|
|
|
155
156
|
box-shadow: var(--wui-shadow-popover);
|
|
156
157
|
transform-origin: top left;
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
&:popover-open {
|
|
159
160
|
animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
|
|
160
161
|
}
|
|
161
|
-
&[data-align="end"] {
|
|
162
|
-
right: 0;
|
|
163
|
-
left: auto;
|
|
164
|
-
transform-origin: top right;
|
|
165
|
-
}
|
|
166
162
|
}
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
@media (prefers-reduced-motion: reduce) {
|
|
170
|
-
.wui-nav-menu-panel
|
|
166
|
+
.wui-nav-menu-panel:popover-open {
|
|
171
167
|
animation: none;
|
|
172
168
|
}
|
|
173
169
|
.wui-nav-menu-trigger > .wui-nav-menu-chevron {
|