@webority/theme 0.103.0 → 0.104.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/dist/purge-safelist.json +3 -0
- package/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/wui/_choice.scss +7 -0
- package/scss/wui/_controls.scss +8 -0
- package/scss/wui/_page-header-bar.scss +3 -1
- package/scss/wui/_shell.scss +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.104.1",
|
|
4
4
|
"description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"country-flag-icons": "^1.6.20",
|
|
52
52
|
"sass-embedded": "^1.97.0",
|
|
53
53
|
"vite": "^8.0.12",
|
|
54
|
-
"@webority/tokens": "0.
|
|
54
|
+
"@webority/tokens": "0.104.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.104.1 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
$body-color: #252f4a !default;
|
|
3
3
|
$body-secondary-color: #4b5675 !default;
|
|
4
4
|
$body-tertiary-color: #626a82 !default;
|
package/scss/wui/_choice.scss
CHANGED
|
@@ -73,6 +73,13 @@
|
|
|
73
73
|
background: var(--color-surface);
|
|
74
74
|
color: var(--color-primary-text);
|
|
75
75
|
}
|
|
76
|
+
// Opt-in (selected-style="filled"): the checked card's icon disc fills with primary. The hover
|
|
77
|
+
// rule above is more specific, so the hovered, enabled card repeats the selector to keep its glyph on-primary.
|
|
78
|
+
.wui-struct-card-filled:has(.struct-card-input:checked) .struct-card-ic,
|
|
79
|
+
.wui-struct-card-filled:has(.struct-card-input:checked):hover:not(:has(.struct-card-input:disabled)) .struct-card-ic {
|
|
80
|
+
background: var(--color-primary);
|
|
81
|
+
color: var(--color-on-primary);
|
|
82
|
+
}
|
|
76
83
|
// The linear and bold glyphs are both rendered; the input's checked state picks one.
|
|
77
84
|
.wui-struct-card-glyph-on {
|
|
78
85
|
display: none;
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -364,6 +364,14 @@
|
|
|
364
364
|
.form-switch-pill .form-check-input {
|
|
365
365
|
corner-shape: squircle;
|
|
366
366
|
}
|
|
367
|
+
|
|
368
|
+
// Round checkbox (app-checkbox shape="circle"): the same glyph, ring, disabled and error states
|
|
369
|
+
// as the square box, drawn as a circle. The wrapper class and the type selector outrank the square
|
|
370
|
+
// box's own radius rule.
|
|
371
|
+
.form-check-circle .form-check-input[type="checkbox"] {
|
|
372
|
+
border-radius: 50%;
|
|
373
|
+
corner-shape: round;
|
|
374
|
+
}
|
|
367
375
|
@media (prefers-reduced-motion: reduce) {
|
|
368
376
|
.form-check-input,
|
|
369
377
|
.wui-check,
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
}
|
|
17
17
|
.page-header.page-header-bar .page-title {
|
|
18
18
|
flex: 0 1 auto;
|
|
19
|
-
|
|
19
|
+
// Zero, not a floor: the tools are `flex: none`, so the title must be the part that gives way.
|
|
20
|
+
// `min()` cannot take `max-content`, and an invalid floor falls back to `auto`, which never shrinks.
|
|
21
|
+
min-width: 0;
|
|
20
22
|
font-size: 20px;
|
|
21
23
|
overflow: hidden;
|
|
22
24
|
text-overflow: ellipsis;
|
package/scss/wui/_shell.scss
CHANGED
|
@@ -521,6 +521,7 @@
|
|
|
521
521
|
padding: 9px 0;
|
|
522
522
|
}
|
|
523
523
|
.app-shell.collapsed .app-nav-badge,
|
|
524
|
+
.app-shell.collapsed .wui-nav-new,
|
|
524
525
|
.app-shell.collapsed .app-nav-group-label,
|
|
525
526
|
.app-shell.collapsed .wui-nav-group-toggle,
|
|
526
527
|
.app-shell.collapsed .wui-nav-header,
|
|
@@ -589,6 +590,19 @@
|
|
|
589
590
|
color: var(--color-primary-text);
|
|
590
591
|
}
|
|
591
592
|
|
|
593
|
+
// A "New" pill after a label, shown through a date (`new-until`). It takes the success
|
|
594
|
+
// tint the tone badge uses, so it reads green in every theme.
|
|
595
|
+
.wui-nav-new {
|
|
596
|
+
flex: none;
|
|
597
|
+
padding: 0 var(--wui-space-xs);
|
|
598
|
+
border-radius: var(--wui-radius-pill);
|
|
599
|
+
background: var(--color-success-soft);
|
|
600
|
+
font-size: var(--wui-fs-xs);
|
|
601
|
+
font-weight: var(--wui-fw-bold);
|
|
602
|
+
line-height: var(--wui-lh-heading);
|
|
603
|
+
color: var(--color-success-text);
|
|
604
|
+
}
|
|
605
|
+
|
|
592
606
|
// ── Expandable sub-items ─────────────────────────────────────────────────────
|
|
593
607
|
// A parent row that toggles a nested list. It reuses the .app-nav-item chrome but
|
|
594
608
|
// is a <button>; the caret rotates open. The nested list animates its height via
|
|
@@ -968,6 +982,7 @@
|
|
|
968
982
|
}
|
|
969
983
|
.app-shell.app-shell.collapsed .app-nav-text,
|
|
970
984
|
.app-shell.app-shell.collapsed .app-nav-badge,
|
|
985
|
+
.app-shell.app-shell.collapsed .wui-nav-new,
|
|
971
986
|
.app-shell.app-shell.collapsed .app-nav-group-label,
|
|
972
987
|
.app-shell.app-shell.collapsed .wui-nav-header,
|
|
973
988
|
.app-shell.app-shell.collapsed .wui-nav-group-after,
|