@revikornmann/muka-ui 0.57.0 → 0.60.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/cjs/components/Menu/Menu.css +33 -0
- package/dist/cjs/components/PhotoUploader/PhotoUploader.css +21 -0
- package/dist/cjs/components/ProfileBadge/ProfileBadge.css +6 -0
- package/dist/cjs/components/SiteHeader/SiteHeader.css +38 -0
- package/dist/cjs/components/SiteHeader/SiteHeader.js +2 -1
- package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -1
- package/dist/cjs/components/TopBar/TopBar.css +22 -28
- package/dist/cjs/components/TopBar/TopBar.js +21 -21
- package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
- package/dist/cjs/components/View/View.js +2 -2
- package/dist/cjs/components/View/View.js.map +1 -1
- package/dist/esm/components/Menu/Menu.css +33 -0
- package/dist/esm/components/PhotoUploader/PhotoUploader.css +21 -0
- package/dist/esm/components/ProfileBadge/ProfileBadge.css +6 -0
- package/dist/esm/components/SiteHeader/SiteHeader.css +38 -0
- package/dist/esm/components/SiteHeader/SiteHeader.js +2 -1
- package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -1
- package/dist/esm/components/TopBar/TopBar.css +22 -28
- package/dist/esm/components/TopBar/TopBar.js +21 -21
- package/dist/esm/components/TopBar/TopBar.js.map +1 -1
- package/dist/esm/components/View/View.js +2 -2
- package/dist/esm/components/View/View.js.map +1 -1
- package/dist/styles/components/Menu.css +33 -0
- package/dist/styles/components/PhotoUploader.css +21 -0
- package/dist/styles/components/ProfileBadge.css +6 -0
- package/dist/styles/components/SiteHeader.css +38 -0
- package/dist/styles/components/TopBar.css +22 -28
- package/dist/styles/index.css +1482 -1388
- package/dist/styles/muka-dark.css +1482 -1388
- package/dist/styles/muka-light.css +1482 -1388
- package/dist/styles/tokens-bouwplan-dark.css +3 -1
- package/dist/styles/tokens-bouwplan-light.css +3 -1
- package/dist/styles/tokens-fscl-dark.css +3 -1
- package/dist/styles/tokens-fscl-light.css +3 -1
- package/dist/styles/tokens-grip-dark.css +3 -1
- package/dist/styles/tokens-grip-light.css +3 -1
- package/dist/styles/tokens-muka-dark.css +3 -1
- package/dist/styles/tokens-muka-light.css +3 -1
- package/dist/styles/tokens-wireframe-dark.css +3 -1
- package/dist/styles/tokens-wireframe-light.css +3 -1
- package/dist/styles/wireframe-dark.css +1482 -1388
- package/dist/styles/wireframe-light.css +1482 -1388
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +7 -0
- package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -1
- package/dist/types/components/TopBar/TopBar.d.ts +3 -9
- package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
- package/dist/types/components/View/View.d.ts +0 -6
- package/dist/types/components/View/View.d.ts.map +1 -1
- package/package.json +1 -1
- package/tokens/t4-components/topbar.json +15 -1
|
@@ -34,8 +34,8 @@ function withTopBarButtons(node) {
|
|
|
34
34
|
* bottom sheets and non-modal dialogs.
|
|
35
35
|
*
|
|
36
36
|
* Sizing is responsive by default (small <768px, medium 768–1023px, large
|
|
37
|
-
* ≥1024px). At the large tier the title is left-aligned
|
|
38
|
-
*
|
|
37
|
+
* ≥1024px). At the large tier the title is left-aligned, a fixed gap after
|
|
38
|
+
* the `leading` back button. Pass `size` to force a tier,
|
|
39
39
|
* or `maxSize="md"` to stop at the medium tier.
|
|
40
40
|
*
|
|
41
41
|
* Icon-only Buttons in `leading`, `trailing` and `trailingSecondary` always
|
|
@@ -47,31 +47,31 @@ function withTopBarButtons(node) {
|
|
|
47
47
|
* - Navigation elements are focusable and keyboard-accessible
|
|
48
48
|
* - Title uses `aria-live="polite"` for dynamic updates
|
|
49
49
|
*/
|
|
50
|
-
export const TopBar = ({ title, subtitle, titleLeading, titleTrailing, titleLabel, onTitleClick, renderTitle, leading, trailing, trailingSecondary, variant = 'default', size, maxSize,
|
|
50
|
+
export const TopBar = ({ title, subtitle, titleLeading, titleTrailing, titleLabel, onTitleClick, renderTitle, leading, trailing, trailingSecondary, variant = 'default', size, maxSize, controlBar, disableSafeArea = false, className = '', }) => {
|
|
51
51
|
const topBarClasses = [
|
|
52
52
|
'muka-topbar',
|
|
53
53
|
variant === 'draggable' && 'muka-topbar--draggable',
|
|
54
54
|
disableSafeArea && 'muka-topbar--no-safe-area',
|
|
55
55
|
className,
|
|
56
56
|
].filter(Boolean).join(' ');
|
|
57
|
-
return (_jsxs("header", { className: topBarClasses, "data-size": size, "data-max-size": !size && maxSize === 'md' ? 'md' : undefined, children: [variant === 'draggable' && (_jsx("div", { className: "muka-topbar__drag-handle-container", children: _jsx("div", { className: "muka-topbar__drag-handle" }) })), _jsxs("div", { className: "muka-topbar__container", children: [leading && (_jsx("div", { className: "muka-topbar__leading", children: withTopBarButtons(leading) })),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
57
|
+
return (_jsxs("header", { className: topBarClasses, "data-size": size, "data-max-size": !size && maxSize === 'md' ? 'md' : undefined, children: [variant === 'draggable' && (_jsx("div", { className: "muka-topbar__drag-handle-container", children: _jsx("div", { className: "muka-topbar__drag-handle" }) })), _jsxs("div", { className: "muka-topbar__container", children: [leading && (_jsx("div", { className: "muka-topbar__leading", children: withTopBarButtons(leading) })), _jsx("div", { className: "muka-topbar__heading", children: title && (() => {
|
|
58
|
+
const subline = subtitle ? _jsx("span", { className: "muka-topbar__subtitle", children: subtitle }) : null;
|
|
59
|
+
let heading;
|
|
60
|
+
if (!titleTrailing && !subtitle) {
|
|
61
|
+
heading = (_jsx("p", { className: "muka-topbar__title", "aria-live": "polite", children: title }));
|
|
62
|
+
}
|
|
63
|
+
else if (!titleTrailing) {
|
|
64
|
+
heading = (_jsxs("div", { className: "muka-topbar__title-block", children: [_jsx("p", { className: "muka-topbar__title", "aria-live": "polite", children: title }), subline] }));
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const button = (_jsxs("button", { type: "button", className: "muka-topbar__title muka-topbar__title--button", "aria-label": titleLabel ? `${title}, ${titleLabel}` : undefined, onClick: onTitleClick, children: [_jsx("span", { className: "muka-topbar__title-text", "aria-live": "polite", children: title }), _jsx("span", { className: "muka-topbar__title-glyph", "aria-hidden": "true", children: _jsx(Icon, { name: titleTrailing === 'switch' ? 'arrow-drop-up-down' : 'arrow-down-s', variant: "line", size: "sm" }) })] }));
|
|
68
|
+
const trigger = renderTitle ? renderTitle(button) : button;
|
|
69
|
+
heading = subline ? (_jsxs("div", { className: "muka-topbar__title-block", children: [trigger, subline] })) : (trigger);
|
|
70
|
+
}
|
|
71
|
+
if (!titleLeading)
|
|
72
|
+
return heading;
|
|
73
|
+
return (_jsxs("div", { className: "muka-topbar__title-row", children: [_jsx("span", { className: "muka-topbar__title-leading", "aria-hidden": "true", children: titleLeading }), heading] }));
|
|
74
|
+
})() }), _jsxs("div", { className: "muka-topbar__trailing", children: [trailingSecondary && (_jsx("div", { className: "muka-topbar__trailing-action", children: withTopBarButtons(trailingSecondary) })), trailing && (_jsx("div", { className: "muka-topbar__trailing-action", children: withTopBarButtons(trailing) }))] })] }), controlBar && (_jsx("div", { className: "muka-topbar__controlbar", children: controlBar }))] }));
|
|
75
75
|
};
|
|
76
76
|
export default TopBar;
|
|
77
77
|
//# sourceMappingURL=TopBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.js","sourceRoot":"","sources":["../../../../components/TopBar/TopBar.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,cAAc,CAAC;
|
|
1
|
+
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EAEL,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,yBAAyB,YACrC,UAAU,GACP,CACP,IACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -42,14 +42,14 @@ function withViewButtons(node, variant) {
|
|
|
42
42
|
* - Uses `<main>` landmark for the scrollable body
|
|
43
43
|
* - TopBar provides semantic `<header>` structure
|
|
44
44
|
*/
|
|
45
|
-
export const View = ({ level, title, subtitle, titleLeading, titleTrailing, titleLabel, onTitleClick, renderTitle, leading, trailing, trailingSecondary, controlBar,
|
|
45
|
+
export const View = ({ level, title, subtitle, titleLeading, titleTrailing, titleLabel, onTitleClick, renderTitle, leading, trailing, trailingSecondary, controlBar, surfaceLevel = 2, size, footer, children, className = '', }) => {
|
|
46
46
|
const viewClasses = [
|
|
47
47
|
'muka-view',
|
|
48
48
|
`muka-view--${level}`,
|
|
49
49
|
`muka-view--surface-${surfaceLevel}`,
|
|
50
50
|
className,
|
|
51
51
|
].filter(Boolean).join(' ');
|
|
52
|
-
return (_jsxs("div", { className: viewClasses, "data-size": size, children: [_jsx(TopBar, { title: title, subtitle: subtitle, titleLeading: titleLeading, titleTrailing: titleTrailing, titleLabel: titleLabel, onTitleClick: onTitleClick, renderTitle: renderTitle, leading: withViewButtons(leading, 'secondary'), trailing: withViewButtons(trailing, 'ghost'), trailingSecondary: withViewButtons(trailingSecondary, 'ghost'), controlBar: controlBar,
|
|
52
|
+
return (_jsxs("div", { className: viewClasses, "data-size": size, children: [_jsx(TopBar, { title: title, subtitle: subtitle, titleLeading: titleLeading, titleTrailing: titleTrailing, titleLabel: titleLabel, onTitleClick: onTitleClick, renderTitle: renderTitle, leading: withViewButtons(leading, 'secondary'), trailing: withViewButtons(trailing, 'ghost'), trailingSecondary: withViewButtons(trailingSecondary, 'ghost'), controlBar: controlBar, size: size }), _jsxs("main", { className: "muka-view__body", children: [_jsx("div", { className: "muka-view__body-inner", children: children }), footer && (_jsx("div", { className: "muka-view__footer", children: footer }))] })] }));
|
|
53
53
|
};
|
|
54
54
|
export default View;
|
|
55
55
|
//# sourceMappingURL=View.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../components/View/View.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAA4B,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../components/View/View.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAA4B,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,YAAY,CAAC;AAgEpB;;;;;;GAMG;AACH,SAAS,eAAe,CACtB,IAAqB,EACrB,OAA8B;IAE9B,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;QACxC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAC/C,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,EAAE,CAAC;YAClC,MAAM,QAAQ,GAAG,KAA2D,CAAC;YAC7E,OAAO,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;QAC7F,CAAC;QACD,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC1B,MAAM,MAAM,GAAG,KAA4C,CAAC;YAC5D,OAAO,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAA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AI,CAAC"}
|
|
@@ -492,3 +492,36 @@
|
|
|
492
492
|
transform: translateX(0);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
+
|
|
496
|
+
/* ─── Items with an icon: compact ListItem rows ──────────────────────────── */
|
|
497
|
+
|
|
498
|
+
/*
|
|
499
|
+
* A menu whose items carry an icon uses the compact ListItem layout (Figma
|
|
500
|
+
* ListItem × Padding=Compact, the Bouwplan account menu): a 12px inset on the
|
|
501
|
+
* list, rows with an 8px inset, a 32px icon slot holding a 20px icon, 12px
|
|
502
|
+
* between icon and label. The icon takes
|
|
503
|
+
* the menu's icon colour, so an `<Icon>` passed in doesn't need a colour or
|
|
504
|
+
* a size of its own. Menus without icons keep their tighter rows.
|
|
505
|
+
*/
|
|
506
|
+
.muka-menu__viewport:has(.muka-menu__item-icon) {
|
|
507
|
+
padding: var(--spacing-3);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.muka-menu__item:has(> .muka-menu__item-icon) {
|
|
511
|
+
gap: var(--spacing-3);
|
|
512
|
+
padding-top: var(--spacing-2);
|
|
513
|
+
padding-bottom: var(--spacing-2);
|
|
514
|
+
padding-left: var(--spacing-2);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.muka-menu__item-icon {
|
|
518
|
+
min-width: var(--size-2xl);
|
|
519
|
+
min-height: var(--size-2xl);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.muka-menu__item-icon > .muka-icon,
|
|
523
|
+
.muka-menu__item-icon > svg {
|
|
524
|
+
width: var(--icon-size-sm);
|
|
525
|
+
height: var(--icon-size-sm);
|
|
526
|
+
color: inherit;
|
|
527
|
+
}
|
|
@@ -74,6 +74,27 @@
|
|
|
74
74
|
color: var(--color-text-default-default);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/*
|
|
78
|
+
* Touch devices (phones, tablets without a mouse) have nothing to drag a file
|
|
79
|
+
* from: the card and its "or drop here" hint go, and only the button stays.
|
|
80
|
+
* Keyed on input capability, not width, so a narrow desktop window keeps
|
|
81
|
+
* its drop zone.
|
|
82
|
+
*/
|
|
83
|
+
@media (hover: none) and (pointer: coarse) {
|
|
84
|
+
.muka-photo-uploader__dropzone {
|
|
85
|
+
align-items: flex-start;
|
|
86
|
+
padding: 0;
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
border: none;
|
|
89
|
+
border-radius: 0;
|
|
90
|
+
cursor: default;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.muka-photo-uploader__dropzone-text {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
77
98
|
/* ─── Disabled ────────────────────────────────────────── */
|
|
78
99
|
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
|
|
79
100
|
cursor: not-allowed;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.muka-profile-badge {
|
|
4
4
|
display: inline-flex;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
min-width: 0;
|
|
5
7
|
align-items: center;
|
|
6
8
|
font-family: var(--text-body-base-regular-fontFamily);
|
|
7
9
|
}
|
|
@@ -32,6 +34,10 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.muka-profile-badge__name {
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
35
41
|
font-family: var(--text-body-base-regular-fontFamily);
|
|
36
42
|
font-size: var(--text-body-base-regular-fontSize);
|
|
37
43
|
font-weight: var(--text-body-base-regular-fontWeight);
|
|
@@ -102,3 +102,41 @@
|
|
|
102
102
|
display: none;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* layout="full" (Figma Public header, Bouwplan): the content spans the width,
|
|
108
|
+
* the nav sits between brand and actions (space-between), and the inset grows
|
|
109
|
+
* with the screen: 24/16 on small screens, 16/24 from 768px, 32 from 1536px.
|
|
110
|
+
* Safe-area insets still win where they are larger.
|
|
111
|
+
*/
|
|
112
|
+
.muka-site-header--full .muka-site-header__inner {
|
|
113
|
+
max-width: none;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.muka-site-header--full .muka-site-header__actions {
|
|
118
|
+
margin-left: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (min-width: 768px) {
|
|
122
|
+
.muka-site-header--full .muka-site-header__inner {
|
|
123
|
+
padding-block: var(--spacing-4);
|
|
124
|
+
padding-left: max(var(--spacing-6), env(safe-area-inset-left, 0px));
|
|
125
|
+
padding-right: max(var(--spacing-6), env(safe-area-inset-right, 0px));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (min-width: 1536px) {
|
|
130
|
+
.muka-site-header--full .muka-site-header__inner {
|
|
131
|
+
padding-block: var(--spacing-8);
|
|
132
|
+
padding-left: max(var(--spacing-8), env(safe-area-inset-left, 0px));
|
|
133
|
+
padding-right: max(var(--spacing-8), env(safe-area-inset-right, 0px));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Small screens: no nav, so the actions take the end on their own. */
|
|
138
|
+
@media (max-width: 767px) {
|
|
139
|
+
.muka-site-header--full .muka-site-header__actions {
|
|
140
|
+
margin-left: auto;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
--tb-title-font-size: var(--text-heading-xs-fontSize);
|
|
30
30
|
--tb-title-line-height: var(--text-heading-xs-lineHeight);
|
|
31
31
|
--tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
|
|
32
|
-
--tb-breadcrumb-display: none;
|
|
33
32
|
--tb-pad-y: 0;
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
--tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
/* ─── Large tier: left-aligned title
|
|
58
|
+
/* ─── Large tier: back button, then a left-aligned title ─── */
|
|
60
59
|
@media (min-width: 1024px) {
|
|
61
60
|
.muka-topbar:not([data-size]):not([data-max-size='md']) {
|
|
62
61
|
--tb-height: var(--topbar-height-lg);
|
|
@@ -70,7 +69,6 @@
|
|
|
70
69
|
--tb-title-font-size: var(--text-heading-md-fontSize);
|
|
71
70
|
--tb-title-line-height: var(--text-heading-md-lineHeight);
|
|
72
71
|
--tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
|
|
73
|
-
--tb-breadcrumb-display: flex;
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
|
|
@@ -86,7 +84,6 @@
|
|
|
86
84
|
--tb-title-font-size: var(--text-heading-md-fontSize);
|
|
87
85
|
--tb-title-line-height: var(--text-heading-md-lineHeight);
|
|
88
86
|
--tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
|
|
89
|
-
--tb-breadcrumb-display: flex;
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
/* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
|
|
@@ -110,13 +107,6 @@
|
|
|
110
107
|
border-radius: var(--topbar-drag-handle-radius);
|
|
111
108
|
}
|
|
112
109
|
|
|
113
|
-
/* ─── Breadcrumb (large tier, stacked above the title) ── */
|
|
114
|
-
|
|
115
|
-
.muka-topbar__breadcrumb {
|
|
116
|
-
display: var(--tb-breadcrumb-display);
|
|
117
|
-
align-items: center;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
110
|
/* ─── Container (the bar itself) ──────────────────────── */
|
|
121
111
|
|
|
122
112
|
.muka-topbar__container {
|
|
@@ -145,46 +135,50 @@
|
|
|
145
135
|
z-index: 1;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
|
-
/*
|
|
149
|
-
@media (min-width: 1024px) {
|
|
150
|
-
.muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
|
|
151
|
-
display: none;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
|
|
156
|
-
display: none;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* ─── Heading (breadcrumb + title) ────────────────────── */
|
|
138
|
+
/* ─── Heading (title) ─────────────────────────────────── */
|
|
160
139
|
|
|
161
|
-
/* Base/sm/md: transparent wrapper so the title is the center grid item
|
|
162
|
-
the breadcrumb stays hidden. */
|
|
140
|
+
/* Base/sm/md: transparent wrapper so the title is the center grid item. */
|
|
163
141
|
.muka-topbar__heading {
|
|
164
142
|
display: contents;
|
|
165
143
|
}
|
|
166
144
|
|
|
167
|
-
/* Large tier:
|
|
145
|
+
/* Large tier: the heading takes the free width so a long title truncates
|
|
146
|
+
before the trailing actions, and sits a fixed gap after the back button. */
|
|
168
147
|
@media (min-width: 1024px) {
|
|
169
148
|
.muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
|
|
170
149
|
display: flex;
|
|
171
150
|
flex-direction: column;
|
|
172
151
|
justify-content: center;
|
|
173
|
-
gap: var(--spacing-1);
|
|
174
152
|
flex: 1 1 0%;
|
|
175
153
|
min-width: 0;
|
|
176
154
|
}
|
|
155
|
+
|
|
156
|
+
.muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
|
|
157
|
+
margin-left: var(--topbar-gap-lg);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
|
|
161
|
+
padding-left: var(--topbar-title-inset-lg);
|
|
162
|
+
}
|
|
177
163
|
}
|
|
178
164
|
|
|
179
165
|
.muka-topbar[data-size='lg'] .muka-topbar__heading {
|
|
180
166
|
display: flex;
|
|
181
167
|
flex-direction: column;
|
|
182
168
|
justify-content: center;
|
|
183
|
-
gap: var(--spacing-1);
|
|
184
169
|
flex: 1 1 0%;
|
|
185
170
|
min-width: 0;
|
|
186
171
|
}
|
|
187
172
|
|
|
173
|
+
.muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
|
|
174
|
+
margin-left: var(--topbar-gap-lg);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* No back button: the title sits a little further in than the bar padding. */
|
|
178
|
+
.muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
|
|
179
|
+
padding-left: var(--topbar-title-inset-lg);
|
|
180
|
+
}
|
|
181
|
+
|
|
188
182
|
/* ─── Title ───────────────────────────────────────────── */
|
|
189
183
|
|
|
190
184
|
.muka-topbar__title {
|