@webority/theme 0.141.0 → 0.143.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/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +5 -5
- package/scss/_wui-components.scss +1 -0
- package/scss/_wui-core.scss +1 -0
- package/scss/wui/_controls.scss +1 -0
- package/scss/wui/_media.scss +10 -0
- package/scss/wui/_support.scss +90 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.143.0",
|
|
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": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"postcss": "^8.5.31"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@webority/tokens": "0.
|
|
50
|
+
"@webority/tokens": "0.143.0",
|
|
51
51
|
"bootstrap": "5.3.3",
|
|
52
52
|
"country-flag-icons": "^1.6.20",
|
|
53
53
|
"sass-embedded": "^1.97.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.143.0 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.143.0 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--wui-primary: #4F46E5;
|
|
@@ -185,9 +185,9 @@
|
|
|
185
185
|
--wui-section-sm: 80px;
|
|
186
186
|
--wui-section-md: 96px;
|
|
187
187
|
--wui-section-lg: 120px;
|
|
188
|
-
--wui-control-sm:
|
|
189
|
-
--wui-control-md:
|
|
190
|
-
--wui-control-lg:
|
|
188
|
+
--wui-control-sm: 35px;
|
|
189
|
+
--wui-control-md: 45px;
|
|
190
|
+
--wui-control-lg: 55px;
|
|
191
191
|
--wui-container-max: 1512px;
|
|
192
192
|
--wui-container-pad: 24px;
|
|
193
193
|
--wui-table-pad: 20px;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
|
|
372
372
|
@media (max-width: 575.98px), (pointer: coarse) {
|
|
373
373
|
:root {
|
|
374
|
-
--wui-control-md:
|
|
374
|
+
--wui-control-md: 45px;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
|
package/scss/_wui-core.scss
CHANGED
package/scss/wui/_controls.scss
CHANGED
|
@@ -1339,6 +1339,7 @@ wui-date-range {
|
|
|
1339
1339
|
.field:has(> .file-input),
|
|
1340
1340
|
.field:has(> .file-preview) {
|
|
1341
1341
|
width: var(--wui-file-width, 100%);
|
|
1342
|
+
max-width: 100%;
|
|
1342
1343
|
}
|
|
1343
1344
|
// Doubled selectors — see the lg-tier block below: a media query carries no
|
|
1344
1345
|
// extra specificity, so a consumer's later single-class rule would win.
|
package/scss/wui/_media.scss
CHANGED
|
@@ -774,6 +774,16 @@
|
|
|
774
774
|
.file-input.wui-file-input-button-field:focus-within {
|
|
775
775
|
background: none;
|
|
776
776
|
}
|
|
777
|
+
.wui-file-input-button-field > label {
|
|
778
|
+
display: inline-flex;
|
|
779
|
+
align-items: center;
|
|
780
|
+
gap: var(--wui-space-xs);
|
|
781
|
+
}
|
|
782
|
+
// The input is a visually hidden sibling of the button label, so keyboard focus is drawn on the label.
|
|
783
|
+
.wui-file-input-button-field > label:has(+ input:focus-visible) {
|
|
784
|
+
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
785
|
+
outline-offset: var(--wui-focus-ring-offset);
|
|
786
|
+
}
|
|
777
787
|
|
|
778
788
|
// Large preview shown once an image exists; hover reveals a "Change image"
|
|
779
789
|
// overlay.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Help desk (@webority/support-react): the ticket list toolbar and subject cell,
|
|
3
|
+
// and the ticket page's reply rows and composer. Everything else on those pages
|
|
4
|
+
// is catalogue components.
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
// Status tabs take the free width and never move; the search beside them is capped.
|
|
8
|
+
.wui-support-toolbar {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--wui-space-sm);
|
|
12
|
+
}
|
|
13
|
+
.wui-support-tabs {
|
|
14
|
+
flex: 1 1 auto;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
}
|
|
17
|
+
.wui-support-search {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.wui-support-toolbar {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--wui-space-md);
|
|
25
|
+
}
|
|
26
|
+
.wui-support-search {
|
|
27
|
+
flex: 0 0 320px;
|
|
28
|
+
width: 320px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Subject cell: a one-line link cut by AppTruncate, the ticket number and category below.
|
|
33
|
+
.wui-support-subject {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
max-width: 440px;
|
|
38
|
+
}
|
|
39
|
+
.wui-support-subject-meta {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: var(--wui-space-sm);
|
|
42
|
+
font-size: var(--wui-fs-xs);
|
|
43
|
+
color: var(--color-text-muted);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// One reply: the avatar inside the row, the sender and time on one line, the text below.
|
|
47
|
+
.wui-support-reply {
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: var(--wui-space-sm);
|
|
50
|
+
padding: var(--wui-space-sm) var(--wui-space-md);
|
|
51
|
+
}
|
|
52
|
+
.wui-support-reply + .wui-support-reply,
|
|
53
|
+
.wui-support-reply + .wui-support-event,
|
|
54
|
+
.wui-support-event + .wui-support-reply {
|
|
55
|
+
border-top: 1px solid var(--color-border);
|
|
56
|
+
}
|
|
57
|
+
.wui-support-reply-agent {
|
|
58
|
+
background: var(--bs-tertiary-bg);
|
|
59
|
+
}
|
|
60
|
+
.wui-support-reply-head {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: var(--wui-space-sm);
|
|
64
|
+
min-height: 24px;
|
|
65
|
+
}
|
|
66
|
+
.wui-support-reply-body {
|
|
67
|
+
margin-top: var(--wui-space-xxs);
|
|
68
|
+
font-size: var(--wui-fs-sm);
|
|
69
|
+
line-height: var(--wui-lh-body);
|
|
70
|
+
max-width: 72ch;
|
|
71
|
+
white-space: pre-wrap;
|
|
72
|
+
overflow-wrap: anywhere;
|
|
73
|
+
}
|
|
74
|
+
.wui-support-event {
|
|
75
|
+
padding: var(--wui-space-xs) var(--wui-space-md);
|
|
76
|
+
text-align: center;
|
|
77
|
+
font-size: var(--wui-fs-xs);
|
|
78
|
+
color: var(--color-text-muted);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// The reply box at the foot of the Replies card, pinned to the bottom of the window while the
|
|
82
|
+
// card runs past it, so a long thread is answered without scrolling to its end.
|
|
83
|
+
.wui-support-composer {
|
|
84
|
+
position: sticky;
|
|
85
|
+
bottom: 0;
|
|
86
|
+
z-index: 1;
|
|
87
|
+
padding: var(--wui-space-sm) var(--wui-space-md) var(--wui-space-md);
|
|
88
|
+
border-top: 1px solid var(--color-border);
|
|
89
|
+
background: var(--color-surface);
|
|
90
|
+
}
|