@webority/theme 0.35.2 → 0.36.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 +1 -1
- package/scss/wui/_kanban.scss +36 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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": {
|
package/scss/wui/_kanban.scss
CHANGED
|
@@ -8,14 +8,24 @@
|
|
|
8
8
|
// above it that stays at the top of the viewport while the page scrolls. The board scrolls inside
|
|
9
9
|
// itself, so the page never scrolls sideways.
|
|
10
10
|
//
|
|
11
|
+
// A board with the `fill` attribute (React `fill`, Razor fill="true") fits the screen from md up:
|
|
12
|
+
// the board is the viewport's height less --wui-kanban-fill-offset, every column stretches to it,
|
|
13
|
+
// and each column's card list scrolls inside the column under its fixed head. A long column then
|
|
14
|
+
// never scrolls the page, so every column stays under the pointer while a card is carried. Below
|
|
15
|
+
// md a fill board keeps the phone layout unchanged: the page scrolls, which a thumb expects and
|
|
16
|
+
// which keeps the sticky switcher, rather than a short scroll box nested inside a short screen.
|
|
17
|
+
//
|
|
11
18
|
// Sizing variables, set on .wui-kanban (or any ancestor) to override:
|
|
12
19
|
// --wui-kanban-column-width basis width of an open column (288px)
|
|
13
20
|
// --wui-kanban-collapsed-width width of a collapsed column strip (56px)
|
|
14
21
|
// --wui-kanban-gap space between columns (16px)
|
|
15
22
|
// --wui-kanban-column-min-height least height of a column, so short columns still read as
|
|
16
|
-
// lanes (560px; not applied in the phone one-column mode
|
|
23
|
+
// lanes (560px; not applied in the phone one-column mode or on
|
|
24
|
+
// a fill board)
|
|
17
25
|
// --wui-kanban-sticky-top where the phone switcher sticks (0, or under the app shell's
|
|
18
26
|
// topbar inside .app-shell)
|
|
27
|
+
// --wui-kanban-fill-offset the height a fill board leaves for the page around it: the
|
|
28
|
+
// topbar, the page head, filters (240px)
|
|
19
29
|
//
|
|
20
30
|
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
21
31
|
|
|
@@ -25,6 +35,7 @@
|
|
|
25
35
|
--wui-kanban-gap: 16px;
|
|
26
36
|
--wui-kanban-column-min-height: 560px;
|
|
27
37
|
--wui-kanban-sticky-top: 0px;
|
|
38
|
+
--wui-kanban-fill-offset: 240px;
|
|
28
39
|
display: block;
|
|
29
40
|
position: relative;
|
|
30
41
|
min-width: 0;
|
|
@@ -466,6 +477,30 @@
|
|
|
466
477
|
}
|
|
467
478
|
}
|
|
468
479
|
|
|
480
|
+
// ── Fill: the board fits the screen and each column scrolls inside itself (md and up) ──
|
|
481
|
+
@media (min-width: 768px) {
|
|
482
|
+
.wui-kanban[fill] .wui-kanban-board {
|
|
483
|
+
align-items: stretch;
|
|
484
|
+
height: calc(100dvh - var(--wui-kanban-fill-offset));
|
|
485
|
+
}
|
|
486
|
+
.wui-kanban[fill] .wui-kanban-column {
|
|
487
|
+
min-height: 0;
|
|
488
|
+
}
|
|
489
|
+
// 4px off the head and onto the list keeps the spacing, and leaves room inside the scroll box
|
|
490
|
+
// for the 2px focus ring of the first card.
|
|
491
|
+
.wui-kanban[fill] .wui-kanban-column:not([data-collapsed]) .wui-kanban-head {
|
|
492
|
+
flex: none;
|
|
493
|
+
padding-bottom: 4px;
|
|
494
|
+
}
|
|
495
|
+
.wui-kanban[fill] .wui-kanban-body {
|
|
496
|
+
flex: 1 1 auto;
|
|
497
|
+
min-height: 0;
|
|
498
|
+
overflow-y: auto;
|
|
499
|
+
overscroll-behavior-y: contain;
|
|
500
|
+
padding-top: 4px;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
469
504
|
// ── Phone column switcher and swipe hint (hidden from md up) ──
|
|
470
505
|
.wui-kanban-switcher,
|
|
471
506
|
.wui-kanban-hint {
|