@webority/theme 0.82.0 → 0.82.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.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": {
|
package/scss/_components.scss
CHANGED
package/scss/wui/_card.scss
CHANGED
|
@@ -153,7 +153,10 @@
|
|
|
153
153
|
// ── Header icon + title stack ──
|
|
154
154
|
// A leading glyph before the title, with the title/subtitle stacked; the group
|
|
155
155
|
// stays left while header actions push right.
|
|
156
|
+
// The 12rem basis decides when a header with actions wraps: below it the actions take their own
|
|
157
|
+
// line, so the titles are never squeezed to a letter per line.
|
|
156
158
|
.card-header-main {
|
|
159
|
+
flex: 1 1 12rem;
|
|
157
160
|
display: flex;
|
|
158
161
|
align-items: center;
|
|
159
162
|
gap: 10px;
|
|
@@ -50,6 +50,13 @@
|
|
|
50
50
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
51
51
|
outline-offset: var(--wui-focus-ring-offset);
|
|
52
52
|
}
|
|
53
|
+
// Bootstrap paints a focused button in its hover colours, so an outline or unselected button
|
|
54
|
+
// fills solid and reads as selected. Focus keeps the resting look; the ring marks it.
|
|
55
|
+
.btn:focus-visible:not(:hover, :active, .active, .show, [aria-pressed="true"]) {
|
|
56
|
+
color: var(--bs-btn-color);
|
|
57
|
+
background-color: var(--bs-btn-bg);
|
|
58
|
+
border-color: var(--bs-btn-border-color);
|
|
59
|
+
}
|
|
53
60
|
|
|
54
61
|
// Bootstrap rings the close button on any :focus, a mouse click included.
|
|
55
62
|
.btn-close {
|
|
@@ -250,6 +257,25 @@ html:has(.form-actions-sticky) {
|
|
|
250
257
|
}
|
|
251
258
|
}
|
|
252
259
|
|
|
260
|
+
// Small inline controls answer clicks across at least 24px (the WCAG target-size floor) while the
|
|
261
|
+
// ink stays its size. Touch pointers widen the country toggle further, below.
|
|
262
|
+
.infotip-btn,
|
|
263
|
+
.chip-remove,
|
|
264
|
+
.country-toggle {
|
|
265
|
+
position: relative;
|
|
266
|
+
}
|
|
267
|
+
.infotip-btn::before,
|
|
268
|
+
.chip-remove::before,
|
|
269
|
+
.country-toggle::before {
|
|
270
|
+
content: "";
|
|
271
|
+
position: absolute;
|
|
272
|
+
top: 50%;
|
|
273
|
+
left: 50%;
|
|
274
|
+
transform: translate(-50%, -50%);
|
|
275
|
+
width: max(100%, 24px);
|
|
276
|
+
height: max(100%, 24px);
|
|
277
|
+
}
|
|
278
|
+
|
|
253
279
|
// Phone touch targets
|
|
254
280
|
// Below sm the pointer is a finger: every small control the library draws reaches 44px.
|
|
255
281
|
@media (max-width: 575.98px) {
|
package/scss/wui/_media.scss
CHANGED
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
border-radius: 999px;
|
|
37
37
|
background: color-mix(in srgb, var(--color-primary) 15%, var(--color-surface));
|
|
38
38
|
color: var(--color-primary-ink);
|
|
39
|
-
|
|
39
|
+
// Initials take 37.5% of the disc but never go under the 12px text floor; a disc under 24px
|
|
40
|
+
// takes half its size instead, the most two letters fit (the 20px preset sets 10px).
|
|
41
|
+
font-size: max(min(12px, calc(var(--avatar-size, 32px) * 0.5)), calc(var(--avatar-size, 32px) * 0.375));
|
|
40
42
|
font-weight: 600;
|
|
41
43
|
display: inline-flex;
|
|
42
44
|
align-items: center;
|