@osmova/quasar-design-system 0.9.2 → 0.10.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/CHANGELOG.md +114 -0
- package/README.md +55 -5
- package/dist/css/index.css +1 -0
- package/dist/css/layered/index.css +1 -0
- package/dist/css/layered/variants/glass.css +1 -0
- package/dist/css/layered/variants/ink.css +1 -0
- package/dist/css/layered/variants/one.css +1 -0
- package/dist/css/layered/variants/shadcn.css +1 -0
- package/dist/css/layered/variants/term.css +1 -0
- package/dist/css/layered/variants/zen.css +1 -0
- package/dist/css/variants/glass.css +1 -0
- package/dist/css/variants/ink.css +1 -0
- package/dist/css/variants/one.css +1 -0
- package/dist/css/variants/shadcn.css +1 -0
- package/dist/css/variants/term.css +1 -0
- package/dist/css/variants/zen.css +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/theme.d.ts +5 -1
- package/dist/runtime/theme.d.ts.map +1 -1
- package/dist/runtime/theme.js +56 -6
- package/dist/runtime/theme.js.map +1 -1
- package/dist/themes/index.d.ts +15 -3
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/index.js +36 -22
- package/dist/themes/index.js.map +1 -1
- package/package.json +12 -6
- package/src/css/_base.scss +7 -0
- package/src/css/components/_actions.scss +20 -8
- package/src/css/components/_badge.scss +0 -4
- package/src/css/components/_button.scss +18 -3
- package/src/css/components/_card.scss +32 -24
- package/src/css/components/_chip.scss +4 -4
- package/src/css/components/_complex-media.scss +4 -12
- package/src/css/components/_compositions.scss +0 -8
- package/src/css/components/_dialog.scss +33 -14
- package/src/css/components/_drawer.scss +24 -21
- package/src/css/components/_field.scss +4 -3
- package/src/css/components/_footer.scss +0 -2
- package/src/css/components/_form-field.scss +0 -8
- package/src/css/components/_forms.scss +0 -10
- package/src/css/components/_list.scss +13 -23
- package/src/css/components/_loading-data.scss +3 -7
- package/src/css/components/_menu.scss +4 -3
- package/src/css/components/_notification.scss +5 -9
- package/src/css/components/_pagination.scss +0 -4
- package/src/css/components/_plugins.scss +0 -12
- package/src/css/components/_popup.scss +0 -3
- package/src/css/components/_rating.scss +0 -4
- package/src/css/components/_selection.scss +42 -26
- package/src/css/components/_table.scss +13 -21
- package/src/css/components/_tabs.scss +14 -3
- package/src/css/components/_toolbar.scss +27 -23
- package/src/css/components/variants/_glass.scss +124 -0
- package/src/css/components/variants/_ink.scss +549 -0
- package/src/css/components/variants/_zen.scss +385 -82
- package/src/css/extensions/_qwindow-styles.scss +14 -6
- package/src/css/extensions/qwindow.layered.scss +2 -0
- package/src/css/extensions/qwindow.scss +2 -0
- package/src/css/index.layered.scss +4 -0
- package/src/css/index.scss +4 -0
- package/src/fonts/THIRD_PARTY_NOTICES.md +10 -1
- package/src/fonts/files/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2 +0 -0
- package/src/fonts/files/atkinson-hyperlegible-next-latin-wght-normal.woff2 +0 -0
- package/src/fonts/files/caveat-latin-ext-wght-normal.woff2 +0 -0
- package/src/fonts/files/caveat-latin-wght-normal.woff2 +0 -0
- package/src/fonts/files/figtree-latin-ext-wght-normal.woff2 +0 -0
- package/src/fonts/files/figtree-latin-wght-normal.woff2 +0 -0
- package/src/fonts/files/fraunces-latin-ext-wght-italic.woff2 +0 -0
- package/src/fonts/files/fraunces-latin-wght-italic.woff2 +0 -0
- package/src/fonts/ink.css +36 -0
- package/src/fonts/zen.css +36 -0
- package/src/index.ts +3 -0
- package/src/runtime/theme.ts +64 -5
- package/src/themes/default.scss +354 -86
- package/src/themes/index.ts +43 -25
- package/src/tokens/_default.scss +85 -26
- package/src/css/components/variants/_atrium.scss +0 -123
|
@@ -1,147 +1,450 @@
|
|
|
1
|
-
// Zen
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
$
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
// Zen: a soft tactile reading system. Faces are raised, wells inset, pressed
|
|
2
|
+
// recedes; every control keeps an essential edge so depth stays decorative.
|
|
3
|
+
// Self-contained: imports no compatibility grammar and emits only zen scopes.
|
|
4
|
+
$zen: '.qds-variant-zen:is(.qds-ui,.qds-ui *)';
|
|
5
|
+
// An explicit opt-in class, never a device heuristic; no e-paper hardware claim.
|
|
6
|
+
$reading: '.qds-variant-zen.qds-reading:is(.qds-ui,.qds-ui *)';
|
|
7
|
+
$local-dark: '.qds-ui.qds-theme-light.qds-variant-zen :is(.q-card--dark, .q-table--dark, .q-tree--dark, .q-stepper--dark, .q-list--dark, .q-menu--dark, .q-uploader--dark, .q-date--dark, .q-time--dark)';
|
|
8
|
+
$nav-parent: ':is(.q-drawer, nav) .q-expansion-item:is(.q-expansion-item--collapsed, .q-drawer--mini *):has(.q-item--active) > .q-expansion-item__container > .q-item';
|
|
9
|
+
|
|
10
|
+
// Depth model: aliases resolve at the painted element, so local dark still inverts them.
|
|
11
|
+
$base: var(--qds-bg-surface-1);
|
|
12
|
+
$raised: var(--qds-bg-card);
|
|
13
|
+
$inset: var(--qds-bg-surface-2);
|
|
14
|
+
$lift-1: var(--qds-shadow-sm);
|
|
15
|
+
$lift-2: var(--_qds-zen-lift-2);
|
|
16
|
+
$lift-3: var(--_qds-zen-lift-3);
|
|
17
|
+
$lift-4: var(--qds-shadow-lg);
|
|
18
|
+
$lift-5: var(--qds-shadow-md);
|
|
19
|
+
$edge: var(--_qds-zen-edge);
|
|
20
|
+
$well: var(--_qds-zen-inset);
|
|
21
|
+
$press: var(--_qds-zen-press);
|
|
22
|
+
$glow: 0 0 0 0.25rem color-mix(in srgb, var(--qds-stroke-focus) 26%, transparent);
|
|
23
|
+
$tint: color-mix(in srgb, var(--qds-fg-default) 6%, transparent);
|
|
24
|
+
$tint-edge: color-mix(in srgb, currentColor 62%, transparent);
|
|
25
|
+
$spring: var(--_qds-zen-spring);
|
|
26
|
+
$roles: primary, secondary, accent, positive, negative, warning, info;
|
|
27
|
+
$role-fill: ':is(.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-negative, .bg-warning, .bg-info, .bg-dark)';
|
|
28
|
+
$push: inset 0 -2px 0 color-mix(in srgb, var(--qds-fg-strong) 22%, transparent);
|
|
29
|
+
// Quasar `size` sets an inline font-size; the height and padding follow it along zen's ramp.
|
|
30
|
+
$btn-height: clamp(var(--qds-button-size-sm), calc(var(--qds-button-min-height) + (1em - 0.875rem) * 2), var(--qds-button-size-lg));
|
|
31
|
+
$btn-pad: clamp(0.75rem, calc(1.125rem + 1em - 0.875rem), 1.5rem);
|
|
32
|
+
$ease: var(--qds-motion-fast);
|
|
10
33
|
|
|
11
34
|
@mixin button {
|
|
12
35
|
#{$zen} .q-btn {
|
|
13
|
-
--_qds-zen-face:
|
|
14
|
-
|
|
15
|
-
padding-inline: 1rem;
|
|
36
|
+
--_qds-zen-face: #{$raised};
|
|
37
|
+
--_qds-zen-depth: #{$lift-1}, #{$edge};
|
|
16
38
|
border: 1px solid var(--qds-stroke-strong);
|
|
17
|
-
border-radius: var(--qds-radius-
|
|
39
|
+
border-radius: var(--qds-radius-full);
|
|
18
40
|
background: var(--_qds-zen-face);
|
|
19
|
-
box-shadow: var(--
|
|
41
|
+
box-shadow: var(--_qds-zen-depth);
|
|
20
42
|
color: var(--qds-fg-default);
|
|
21
43
|
font-weight: var(--qds-font-weight-semibold);
|
|
22
44
|
letter-spacing: 0;
|
|
23
45
|
text-transform: none;
|
|
46
|
+
transition: background-color #{$ease}, border-color #{$ease}, color #{$ease}, box-shadow #{$spring}, transform #{$spring};
|
|
24
47
|
}
|
|
25
|
-
#{$zen} .q-btn:not(.
|
|
48
|
+
#{$zen} .q-btn:where(:not(.q-btn--fab, .q-btn--fab-mini)) { min-height: #{$btn-height}; padding-inline: #{$btn-pad}; }
|
|
49
|
+
#{$zen} .q-btn--stack { padding-block: 0.375rem; border-radius: var(--qds-radius-control); }
|
|
50
|
+
#{$zen} .q-btn:not(.disabled):hover { --_qds-zen-depth: #{$lift-2}, #{$edge}; transform: translateY(-1px); }
|
|
26
51
|
// Pressed recedes into the page instead of lifting further off it.
|
|
27
|
-
#{$zen} .q-btn:not(.disabled):active { --_qds-zen-face:
|
|
28
|
-
#{$zen} .q-btn:
|
|
29
|
-
#{$zen} .q-btn--outline {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
#{$zen} .q-btn:is(
|
|
33
|
-
#{$zen} .q-btn.disabled {
|
|
34
|
-
|
|
52
|
+
#{$zen} .q-btn:not(.disabled):active { --_qds-zen-face: #{$inset}; --_qds-zen-depth: #{$press}; transform: translateY(1px); }
|
|
53
|
+
#{$zen} .q-btn:focus-visible { box-shadow: var(--_qds-zen-depth), #{$glow}; }
|
|
54
|
+
#{$zen} .q-btn:is(.q-btn--flat, .q-btn--outline) { --_qds-zen-face: transparent; --_qds-zen-depth: 0 0 transparent; }
|
|
55
|
+
#{$zen} .q-btn--flat { border-color: transparent; }
|
|
56
|
+
#{$zen} .q-btn--outline { border-color: currentColor; }
|
|
57
|
+
#{$zen} .q-btn:is(.q-btn--flat, .q-btn--outline):not(.disabled):hover { --_qds-zen-face: #{$tint}; --_qds-zen-depth: 0 0 transparent; transform: none; }
|
|
58
|
+
#{$zen} .q-btn:is(.q-btn--flat, .q-btn--outline):not(.disabled):active { --_qds-zen-face: color-mix(in srgb, currentColor 12%, transparent); --_qds-zen-depth: #{$press}; }
|
|
59
|
+
// Role fills clear 3:1 on every zen surface, so they are their own boundary.
|
|
60
|
+
#{$zen} .q-btn[class*='bg-']:not(.q-btn--flat, .q-btn--outline) { --_qds-zen-depth: #{$lift-1}; border-color: #{$tint-edge}; }
|
|
61
|
+
#{$zen} .q-btn#{$role-fill}:not(.q-btn--flat, .q-btn--outline) { border-color: transparent; }
|
|
62
|
+
#{$zen} .q-btn[class*='bg-']:not(.q-btn--flat, .q-btn--outline, .disabled):hover { --_qds-zen-depth: #{$lift-2}; }
|
|
63
|
+
#{$zen} .q-btn[class*='bg-']:not(.q-btn--flat, .q-btn--outline, .disabled):active { --_qds-zen-depth: #{$press}; }
|
|
64
|
+
// Tonal tints sit near the paper tone, so unlike role fills they keep an edge.
|
|
65
|
+
#{$zen} .q-btn.qds-tonal:not(.q-btn--flat, .q-btn--outline) { border-color: #{$tint-edge}; }
|
|
66
|
+
// Unelevated keeps face and edge but no lift; push carries a depth edge that collapses when pressed.
|
|
67
|
+
#{$zen} .q-btn.q-btn--unelevated:not(.disabled) { --_qds-zen-depth: 0 0 transparent; transform: none; }
|
|
68
|
+
#{$zen} .q-btn.q-btn--unelevated:not(.disabled):hover { --_qds-zen-face: color-mix(in srgb, var(--qds-bg-card) 92%, var(--qds-fg-default)); --_qds-zen-depth: 0 0 transparent; transform: none; }
|
|
69
|
+
#{$zen} .q-btn.q-btn--unelevated:not(.disabled):active { --_qds-zen-depth: #{$press}; }
|
|
70
|
+
#{$zen} .q-btn.q-btn--push:not(.disabled) { --_qds-zen-depth: #{$lift-1}, #{$push}; }
|
|
71
|
+
#{$zen} .q-btn.q-btn--push:not(.disabled):hover { --_qds-zen-depth: #{$lift-2}, #{$push}; }
|
|
72
|
+
#{$zen} .q-btn.q-btn--push:not(.disabled):active { --_qds-zen-depth: #{$press}; transform: translateY(2px); }
|
|
73
|
+
#{$zen} .q-btn.q-btn--push::before { content: none; }
|
|
74
|
+
#{$zen} .q-btn:is(.q-btn--fab, .q-btn--fab-mini):not(.q-btn--flat, .q-btn--outline, .q-btn--unelevated, .disabled) { --_qds-zen-depth: #{$lift-3}, #{$edge}; }
|
|
75
|
+
#{$zen} .q-btn:is(.q-btn--fab, .q-btn--fab-mini):not(.q-btn--flat, .q-btn--outline, .q-btn--unelevated, .disabled):hover { --_qds-zen-depth: #{$lift-3}, #{$edge}; }
|
|
76
|
+
#{$zen} .q-btn:is(.q-btn--fab, .q-btn--fab-mini):not(.q-btn--flat, .q-btn--outline, .q-btn--unelevated, .disabled):active { --_qds-zen-depth: #{$press}; }
|
|
77
|
+
#{$zen} .q-btn.disabled { --_qds-zen-depth: 0 0 transparent; transform: none; }
|
|
78
|
+
#{$zen} .q-btn--dense { min-height: var(--qds-button-dense-min-height); padding-inline: 0.75rem; }
|
|
79
|
+
#{$zen} .q-btn--square { border-radius: var(--qds-radius-md); }
|
|
80
|
+
#{$zen} .q-btn--round { padding-inline: 0; }
|
|
35
81
|
#{$zen} .q-btn__content { gap: 0.5rem; }
|
|
36
82
|
}
|
|
37
83
|
|
|
38
84
|
@mixin field {
|
|
39
|
-
//
|
|
40
|
-
// bottom focus bar and never depth alone.
|
|
85
|
+
// A recessed well with a real boundary; focus adds a soft glow, never a bottom bar.
|
|
41
86
|
#{$zen} .q-field__control {
|
|
42
87
|
height: var(--qds-field-height);
|
|
43
88
|
min-height: var(--qds-field-height);
|
|
44
|
-
padding-inline:
|
|
89
|
+
padding-inline: 1rem;
|
|
45
90
|
border: 1px solid var(--qds-stroke-strong);
|
|
46
91
|
border-radius: var(--qds-radius-control);
|
|
47
|
-
background:
|
|
48
|
-
box-shadow:
|
|
92
|
+
background: #{$base};
|
|
93
|
+
box-shadow: #{$well};
|
|
49
94
|
color: var(--qds-fg-default);
|
|
95
|
+
transition: border-color #{$ease}, box-shadow #{$ease}, background-color #{$ease};
|
|
50
96
|
}
|
|
97
|
+
#{$zen} .q-field--auto-height .q-field__control { height: auto; }
|
|
51
98
|
#{$zen} .q-field__control::before,
|
|
52
99
|
#{$zen} .q-field__control::after { content: none; }
|
|
53
|
-
|
|
54
|
-
// repaint them from its own control-fill ladder at equal specificity.
|
|
55
|
-
#{$zen} .q-field__control:hover { background: var(--qds-bg-surface-1); }
|
|
100
|
+
#{$zen} .q-field__control:hover { background: #{$base}; }
|
|
56
101
|
#{$zen} .q-field--focused .q-field__control {
|
|
57
102
|
border-color: var(--qds-stroke-focus);
|
|
58
|
-
background:
|
|
59
|
-
|
|
60
|
-
outline
|
|
103
|
+
background: #{$base};
|
|
104
|
+
box-shadow: #{$well}, #{$glow};
|
|
105
|
+
outline: 1px solid var(--qds-stroke-focus);
|
|
106
|
+
outline-offset: -2px;
|
|
107
|
+
}
|
|
108
|
+
// Standout rises out of its well on focus; custom standout classes keep their own ink.
|
|
109
|
+
#{$zen} .q-field--standout:not(.q-field--focused, .q-field--disabled, .q-field--readonly) .q-field__control { box-shadow: #{$well}; }
|
|
110
|
+
#{$zen} .q-field--standout.q-field--focused .q-field__control { background: #{$raised}; box-shadow: #{$lift-1}, #{$edge}, #{$glow}; outline: 1px solid var(--qds-stroke-focus); outline-offset: -2px; }
|
|
111
|
+
#{$zen} .q-field--standout.q-field--focused .q-field__control :is(.q-field__native, .q-field__input, .q-field__prefix, .q-field__suffix, .q-field__marginal, .q-field__label) { color: inherit; }
|
|
112
|
+
// Semantic role bars and standout fills own their on-fill ink, as role fills do everywhere else.
|
|
113
|
+
@each $role in $roles {
|
|
114
|
+
#{$zen} :is(:is(.q-tabs.bg-#{$role}, .bg-#{$role} > .q-tabs, :is(.q-toolbar, .q-header).bg-#{$role} .q-tabs) .q-tab, .q-field--standout.q-field--focused .q-field__control.bg-#{$role} :is(.q-field__native, .q-field__input, .q-field__prefix, .q-field__suffix, .q-field__marginal, .q-field__label)) { color: var(--qds-text-on-#{$role}); }
|
|
61
115
|
}
|
|
116
|
+
#{$zen} .q-field--rounded .q-field__control { border-radius: var(--qds-radius-full); padding-inline: 1.25rem; }
|
|
62
117
|
#{$zen} .q-field__label { color: var(--qds-fg-muted); font-size: var(--qds-field-label-size); }
|
|
63
118
|
#{$zen} .q-field__native { color: var(--qds-fg-default); }
|
|
64
119
|
#{$zen} .q-field__marginal { height: auto; color: var(--qds-fg-muted); }
|
|
65
|
-
#{$zen} .q-field__bottom { padding-top: 0.375rem; color: var(--qds-fg-muted); }
|
|
120
|
+
#{$zen} .q-field__bottom { padding-top: 0.375rem; padding-inline: 0.5rem; color: var(--qds-fg-muted); }
|
|
66
121
|
#{$zen} .q-field__counter { font-variant-numeric: tabular-nums; }
|
|
67
|
-
// Quasar's native #c10015 validation paint never reaches a
|
|
122
|
+
// Quasar's native #c10015 validation paint never reaches a zen field.
|
|
68
123
|
#{$zen} .q-field--error .q-field__control { border-color: var(--qds-stroke-error); }
|
|
124
|
+
#{$zen} .q-field--error.q-field--focused .q-field__control { outline-color: var(--qds-stroke-error); box-shadow: #{$well}, 0 0 0 0.25rem color-mix(in srgb, var(--qds-stroke-error) 22%, transparent); }
|
|
69
125
|
#{$zen} .q-field--error :is(.q-field__bottom, .q-field__marginal) { color: var(--qds-fg-negative); }
|
|
70
|
-
#{$zen} .
|
|
71
|
-
|
|
126
|
+
#{$zen} :is(.qds-field--positive, .qds-field--warning) .q-field__control { border-color: var(--qds-field-tone-fg); }
|
|
127
|
+
// Ghost and borderless are the quiet inline fields: no well or depth, only their 3:1 line.
|
|
128
|
+
#{$zen} :is(.q-field--borderless, .qds-field--ghost):not(.q-pagination *) .q-field__control { background: transparent; box-shadow: none; }
|
|
129
|
+
#{$zen} :is(.q-field--borderless, .qds-field--ghost).q-field--focused:not(.q-pagination *) .q-field__control { background: transparent; box-shadow: #{$glow}; outline: 1px solid var(--qds-stroke-focus); outline-offset: -2px; }
|
|
130
|
+
#{$zen} :is(.q-field--borderless, .qds-field--ghost).q-field--focused.q-field--error:not(.q-pagination *) .q-field__control { box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--qds-stroke-error) 22%, transparent); outline: 1px solid var(--qds-stroke-error); outline-offset: -2px; }
|
|
131
|
+
#{$zen} :is(.q-field--borderless, .qds-field--ghost):not(.q-field--focused, .q-field--error, .q-field--disabled, .q-field--readonly, .q-pagination *) .q-field__control:hover { background: #{$tint}; }
|
|
132
|
+
#{$zen} .q-field--borderless:not(.qds-field--ghost, .q-pagination *) .q-field__control { border-width: 0 0 1px; border-radius: 0; padding-inline: 0.25rem; }
|
|
133
|
+
#{$zen} .q-field--readonly .q-field__control { border-style: dashed; background: #{$raised}; box-shadow: none; }
|
|
134
|
+
#{$zen} .q-field--disabled .q-field__control { background: #{$inset}; box-shadow: none; }
|
|
72
135
|
}
|
|
73
136
|
|
|
74
137
|
@mixin tabs {
|
|
75
|
-
//
|
|
76
|
-
// raised, bounded and heavier, so it reads without shadow or colour alone.
|
|
138
|
+
// A raised tray: the active tab reads by a short drawn underline and weight, not shadow or colour alone.
|
|
77
139
|
#{$zen} .q-tabs {
|
|
78
|
-
// The enclosure adds padding and a border, so it must shrink inside a narrow cell.
|
|
79
140
|
max-width: 100%;
|
|
80
141
|
min-width: 0;
|
|
81
142
|
padding: 0.25rem;
|
|
82
143
|
border: 1px solid var(--qds-stroke-strong);
|
|
83
|
-
border-radius: var(--qds-radius-control);
|
|
84
|
-
background:
|
|
85
|
-
box-shadow:
|
|
144
|
+
border-radius: calc(var(--qds-radius-control) + 0.25rem);
|
|
145
|
+
background: #{$raised};
|
|
146
|
+
box-shadow: #{$lift-1}, #{$edge};
|
|
86
147
|
color: var(--qds-fg-default);
|
|
87
148
|
}
|
|
88
149
|
#{$zen} .q-tab {
|
|
89
150
|
min-height: var(--qds-tab-min-height);
|
|
90
|
-
padding: 0 var(--qds-space-
|
|
91
|
-
border:
|
|
92
|
-
border-radius: calc(var(--qds-radius-control) - 0.25rem);
|
|
151
|
+
padding: 0 var(--qds-space-md);
|
|
152
|
+
border-radius: var(--qds-radius-control);
|
|
93
153
|
opacity: 1;
|
|
94
154
|
color: var(--qds-fg-muted);
|
|
155
|
+
transition: color #{$ease}, background-color #{$ease};
|
|
95
156
|
}
|
|
157
|
+
@media (max-width: 30rem) { #{$zen} .q-tabs--horizontal .q-tab { padding-inline: 0.5rem; } }
|
|
158
|
+
#{$zen} .q-tab:not(.disabled):hover { background: #{$tint}; color: var(--qds-fg-strong); }
|
|
96
159
|
#{$zen} .q-tab__label { font-size: 0.875rem; font-weight: var(--qds-font-weight-medium); text-transform: none; letter-spacing: 0; }
|
|
97
|
-
#{$zen} .q-tab--active {
|
|
98
|
-
border-color: var(--qds-stroke-strong);
|
|
99
|
-
background: var(--qds-control-fill-default);
|
|
100
|
-
box-shadow: var(--qds-shadow-sm);
|
|
101
|
-
color: var(--qds-fg-default);
|
|
102
|
-
}
|
|
160
|
+
#{$zen} .q-tab--active { color: var(--qds-fg-strong); }
|
|
103
161
|
#{$zen} .q-tab--active .q-tab__label { font-weight: var(--qds-font-weight-semibold); }
|
|
104
|
-
#{$zen} .q-tab__indicator {
|
|
162
|
+
#{$zen} .q-tab .q-tab__indicator { height: 3px; border-radius: var(--qds-radius-full); color: var(--qds-fg-brand); }
|
|
163
|
+
#{$zen} .q-tabs--horizontal .q-tab > .q-tab__indicator { inset-inline: calc(50% - 0.75rem); bottom: 0.3125rem; }
|
|
164
|
+
#{$zen} .q-tabs--vertical .q-tab .q-tab__indicator { width: 3px; height: auto; inset-block: calc(50% - 0.625rem); }
|
|
105
165
|
#{$zen} .q-tab.disabled { opacity: var(--qds-disabled-opacity); }
|
|
166
|
+
// On a coloured bar the tray is the bar: tabs take its ink instead of the paper's muted text.
|
|
167
|
+
#{$zen} :is(.q-tabs#{$role-fill}, #{$role-fill} > .q-tabs, :is(.q-toolbar, .q-header)#{$role-fill} .q-tabs) { border-color: transparent; box-shadow: none; }
|
|
168
|
+
#{$zen} :is(.q-tabs[class*='bg-'], #{$role-fill} > .q-tabs, :is(.q-toolbar, .q-header)#{$role-fill} .q-tabs) .q-tab { color: inherit; }
|
|
169
|
+
#{$zen} :is(.q-tabs[class*='bg-'], #{$role-fill} > .q-tabs, :is(.q-toolbar, .q-header)#{$role-fill} .q-tabs) .q-tab:not(.q-tab--active) { opacity: 0.82; }
|
|
170
|
+
#{$zen} :is(.q-tabs[class*='bg-'], #{$role-fill} > .q-tabs, :is(.q-toolbar, .q-header)#{$role-fill} .q-tabs) .q-tab__indicator { color: currentColor; }
|
|
106
171
|
#{$zen} .q-tabs__arrow { color: var(--qds-fg-muted); text-shadow: none; }
|
|
172
|
+
// Floating pill dock for footer navigation; the active stop is a filled pebble.
|
|
173
|
+
#{$zen} .q-footer:has(> .q-tabs) { padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom)); border: 0; background: transparent; box-shadow: none; }
|
|
174
|
+
#{$zen} .q-footer > .q-tabs { width: fit-content; margin-inline: auto; padding: 0.375rem; border-radius: var(--qds-radius-full); box-shadow: #{$lift-5}, #{$edge}; }
|
|
175
|
+
#{$zen} .q-footer > .q-tabs .q-tab { min-width: var(--qds-control-size-lg); border-radius: var(--qds-radius-full); }
|
|
176
|
+
#{$zen} .q-footer > .q-tabs .q-tab--active { background: var(--qds-fg-strong); color: #{$raised}; }
|
|
177
|
+
#{$zen} .q-footer > .q-tabs .q-tab__indicator { display: none; }
|
|
107
178
|
}
|
|
108
179
|
|
|
109
180
|
@mixin menu {
|
|
110
|
-
//
|
|
111
|
-
|
|
112
|
-
#{$zen} .q-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
181
|
+
// Overlays teleport to the body, which also carries the variant class.
|
|
182
|
+
#{$zen} :is(.q-menu, .q-notification, .q-popup-edit),
|
|
183
|
+
#{$zen} .q-loading .q-loading__box { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: #{$raised}; color: var(--qds-fg-default); box-shadow: #{$lift-5}, #{$edge}; backdrop-filter: none; }
|
|
184
|
+
#{$zen} .q-menu { padding: 0.375rem; }
|
|
185
|
+
#{$zen} .q-menu.q-menu--square { border-radius: var(--qds-radius-md); }
|
|
186
|
+
#{$zen} .q-menu .q-item { min-height: var(--qds-menu-item-min-height); color: var(--qds-fg-default); }
|
|
187
|
+
#{$zen} .q-menu .q-item:not(.disabled):is(:hover, :focus-visible) { background: #{$tint}; }
|
|
188
|
+
#{$zen} .q-menu .q-item--active { border-color: var(--qds-stroke-strong); background: var(--qds-surface-brand-soft); color: var(--qds-fg-strong); }
|
|
189
|
+
#{$zen} .q-menu .q-separator { margin-block: 0.25rem; background: var(--qds-stroke-default); }
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@mixin type {
|
|
193
|
+
// The italic serif is a display voice; working titles stay upright in the UI face.
|
|
194
|
+
#{$zen} :where(h1, h2, h3, .text-h1, .text-h2, .text-h3, .qds-display) { font-style: italic; }
|
|
195
|
+
#{$zen} :is(h4, h5, h6, .text-h4, .text-h5, .text-h6, .q-toolbar__title) { font-family: var(--qds-font-family); font-style: normal; letter-spacing: 0; }
|
|
196
|
+
#{$zen} :is(h4, h5, h6, .text-h4, .text-h5, .text-h6, .q-toolbar__title):not([class*='text-weight-']) { font-weight: var(--qds-font-weight-semibold); }
|
|
197
|
+
#{$zen} :is(.text-overline, .q-item__label--header):not(.text-uppercase, .text-capitalize) { text-transform: none; letter-spacing: 0; font-weight: var(--qds-font-weight-semibold); }
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@mixin selection {
|
|
201
|
+
// Checkbox, radio and switch sit in wells; a checked mark rises out of it.
|
|
202
|
+
#{$zen} :is(.q-checkbox, .q-radio):not(.q-checkbox--dense, .q-radio--dense) { --qds-selection-mark-size: 1.25rem; }
|
|
203
|
+
#{$zen} :is(.q-checkbox, .q-radio, .q-toggle) .q-icon { color: var(--qds-text-on-solid); }
|
|
204
|
+
#{$zen} :is(.q-checkbox .q-checkbox__bg, .q-radio .q-radio__bg) { background: #{$base}; box-shadow: #{$well}; transition: background-color #{$ease}, box-shadow #{$ease}; }
|
|
205
|
+
#{$zen} .q-checkbox .q-checkbox__bg { border-color: var(--qds-stroke-strong); border-radius: var(--qds-radius-sm); }
|
|
206
|
+
#{$zen} .q-radio__inner--falsy { color: var(--qds-stroke-strong); }
|
|
207
|
+
#{$zen} .q-checkbox :is(.q-checkbox__inner--truthy, .q-checkbox__inner--indet) .q-checkbox__bg { border-color: transparent; background: currentColor; box-shadow: #{$lift-1}; }
|
|
208
|
+
#{$zen} .q-radio .q-radio__inner--truthy .q-radio__bg { border-width: 2px; }
|
|
209
|
+
#{$zen} .q-toggle .q-toggle__track { position: relative; border: 1px solid var(--qds-stroke-strong); background: #{$inset}; box-shadow: #{$well}; opacity: 1; }
|
|
210
|
+
#{$zen} .q-toggle .q-toggle__inner--truthy .q-toggle__track { border-color: transparent; background: currentColor; box-shadow: inset 0 1px 2px color-mix(in srgb, var(--qds-fg-strong) 24%, transparent); }
|
|
211
|
+
#{$zen} .q-toggle .q-toggle__thumb::after { border: 1px solid var(--qds-stroke-strong); background: #{$raised}; box-shadow: #{$lift-2}, #{$edge}; }
|
|
212
|
+
#{$zen} .q-toggle .q-toggle__inner--truthy .q-toggle__thumb::after { border-color: transparent; background: #{$raised}; }
|
|
213
|
+
#{$zen} .q-toggle .q-toggle__thumb { transition: inset-inline-start #{$spring}; }
|
|
214
|
+
// In-track state glyphs drawn from borders: a bar when on, a ring when off. They survive forced colours.
|
|
215
|
+
#{$zen} .q-toggle .q-toggle__inner--truthy .q-toggle__track::before { content: ''; position: absolute; inset-inline-start: calc(var(--qds-toggle-track-height) / 2 - 1px); top: 50%; height: 40%; translate: 0 -50%; border-inline-start: 2px solid var(--qds-selection-on, var(--qds-text-on-primary)); border-radius: 1px; }
|
|
216
|
+
#{$zen} .q-toggle .q-toggle__inner--falsy .q-toggle__track::after { content: ''; position: absolute; inset-inline-end: calc(var(--qds-toggle-track-height) / 2 - 0.25rem); top: 50%; width: 0.5rem; height: 0.5rem; translate: 0 -50%; border: 1.5px solid var(--qds-fg-muted); border-radius: 50%; }
|
|
217
|
+
#{$zen} .q-toggle.disabled .q-toggle__thumb::after { background: #{$inset}; box-shadow: none; }
|
|
218
|
+
#{$zen} .q-slider__track-container { border-radius: var(--qds-radius-full); }
|
|
219
|
+
// Quasar sizes the track inline, so the well and fill grow past it instead.
|
|
220
|
+
#{$zen} .q-slider--h :is(.q-slider__inner, .q-slider__selection) { top: -0.1875rem; bottom: -0.1875rem; }
|
|
221
|
+
#{$zen} .q-slider--v :is(.q-slider__inner, .q-slider__selection) { left: -0.1875rem; right: -0.1875rem; }
|
|
222
|
+
#{$zen} .q-slider .q-slider__inner { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-full); background: #{$inset}; box-shadow: #{$well}; }
|
|
223
|
+
#{$zen} .q-slider .q-slider__selection { border-radius: var(--qds-radius-full); }
|
|
224
|
+
#{$zen} .q-slider .q-slider__thumb { border: 1px solid var(--qds-stroke-strong); background: #{$raised}; box-shadow: #{$lift-2}, #{$edge}; }
|
|
225
|
+
#{$zen} .q-slider .q-slider__thumb-shape path { fill: transparent; }
|
|
226
|
+
#{$zen} .q-slider .q-slider__text-container { border-radius: var(--qds-radius-full); padding-inline: 0.625rem; }
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@mixin actions {
|
|
230
|
+
#{$zen} :is(.q-btn-group, .q-btn-toggle, .q-chip) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-full); box-shadow: #{$lift-1}, #{$edge}; }
|
|
231
|
+
// Outer corners follow the pill instead of clipping, so floating badges stay whole.
|
|
232
|
+
// Children of a group never lift on their own, whatever their fill; pressing still recedes.
|
|
233
|
+
#{$zen} .q-btn-group > .q-btn { border: 0; border-radius: 0; box-shadow: none; transform: none; }
|
|
234
|
+
#{$zen} .q-btn-group--push > .q-btn { box-shadow: #{$push}; }
|
|
235
|
+
#{$zen} .q-btn-group > .q-btn:focus-visible { box-shadow: #{$glow}; }
|
|
236
|
+
#{$zen} .q-btn-group > .q-btn:not(.disabled):active { box-shadow: #{$press}; }
|
|
237
|
+
#{$zen} .q-btn-group.q-btn-group--flat { border-color: transparent; box-shadow: none; }
|
|
238
|
+
#{$zen} .q-btn-group.q-btn-group--unelevated { box-shadow: none; }
|
|
239
|
+
#{$zen} .q-btn-group.q-btn-group--push { box-shadow: #{$lift-1}; }
|
|
240
|
+
#{$zen} .q-btn-group.q-btn-group--outline { border-color: transparent; box-shadow: none; }
|
|
241
|
+
#{$zen} .q-btn-group--outline > .q-btn { border: 1px solid currentColor; }
|
|
242
|
+
#{$zen} .q-btn-group--outline > .q-btn + .q-btn { border-inline-start-width: 0; }
|
|
243
|
+
#{$zen} .q-btn-group.q-btn-group--square { border-radius: var(--qds-radius-sm); }
|
|
244
|
+
#{$zen} .q-btn-group > .q-btn:first-child { border-start-start-radius: inherit; border-end-start-radius: inherit; }
|
|
245
|
+
#{$zen} .q-btn-group > .q-btn:last-child { border-start-end-radius: inherit; border-end-end-radius: inherit; }
|
|
246
|
+
#{$zen} .q-btn-group:not(.q-btn-group--outline) > .q-btn + .q-btn { border-inline-start: 1px solid var(--qds-stroke-default); }
|
|
247
|
+
// Segmented control: a raised tray whose active segment is pressed into it.
|
|
248
|
+
#{$zen} .q-btn-toggle { gap: 0.125rem; padding: 0.1875rem; background: #{$raised}; }
|
|
249
|
+
#{$zen} .q-btn-toggle > .q-btn.q-btn-item { min-height: calc(var(--qds-button-min-height) - 0.5rem); border: 1px solid transparent; border-radius: var(--qds-radius-full); --_qds-zen-depth: 0 0 transparent; transform: none; }
|
|
250
|
+
#{$zen} .q-btn-toggle:has(> .q-btn--dense) { padding: 0.125rem; }
|
|
251
|
+
#{$zen} .q-btn-toggle > .q-btn.q-btn-item.q-btn--dense { min-height: calc(var(--qds-button-dense-min-height) - 0.375rem); padding-inline: 0.625rem; }
|
|
252
|
+
#{$zen} .q-btn-toggle > .q-btn.q-btn-item:is([aria-pressed='true'], .q-btn--active, .qds-active) { --_qds-zen-depth: #{$press}; border-color: var(--qds-stroke-strong); box-shadow: #{$press}; }
|
|
253
|
+
#{$zen} :is(.q-breadcrumbs, .q-banner, .q-list--bordered, .q-table__container) { border: 1px solid var(--qds-stroke-default); border-radius: var(--qds-radius-lg); background: #{$raised}; box-shadow: #{$lift-1}, #{$edge}; }
|
|
254
|
+
#{$zen} .q-breadcrumbs { width: fit-content; max-width: 100%; padding: 0.25rem 0.75rem; }
|
|
255
|
+
#{$zen} .q-breadcrumbs .q-breadcrumbs__el:is([aria-current='page'], :not(a)) { color: var(--qds-fg-strong); font-weight: var(--qds-font-weight-semibold); }
|
|
256
|
+
#{$zen} .q-banner[class*='bg-'] { border-color: transparent; }
|
|
257
|
+
#{$zen} .q-avatar { box-shadow: 0 0 0 2px #{$raised}, 0 0 0 3px var(--qds-stroke-default); }
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@mixin badge-chip {
|
|
261
|
+
#{$zen} .q-badge { border-radius: var(--qds-radius-full); font-weight: var(--qds-font-weight-semibold); }
|
|
262
|
+
#{$zen} .q-badge:not([class*='bg-']) { border: 1px solid var(--qds-stroke-default); background: #{$raised}; color: var(--qds-fg-default); }
|
|
263
|
+
// Chips are pebbles: raised and bounded at rest, pressed when selected.
|
|
264
|
+
#{$zen} .q-chip { background: #{$raised}; transition: box-shadow #{$spring}, background-color #{$ease}; }
|
|
265
|
+
#{$zen} .q-chip[class*='bg-'] { box-shadow: none; }
|
|
266
|
+
#{$zen} .q-chip[class*='bg-']:not(.qds-solid) { border-color: #{$tint-edge}; }
|
|
267
|
+
#{$zen} .q-chip.qds-solid { border-color: transparent; }
|
|
268
|
+
#{$zen} .q-chip.q-chip--outline { border-color: currentColor; background: transparent; box-shadow: none; }
|
|
269
|
+
#{$zen} .q-chip.q-chip--square { border-radius: var(--qds-radius-sm); }
|
|
270
|
+
#{$zen} .q-badge.q-badge--outline { border: 1px solid currentColor; background: transparent; }
|
|
271
|
+
#{$zen} .q-chip.q-chip--clickable:not(.disabled):hover { box-shadow: #{$lift-2}, #{$edge}; }
|
|
272
|
+
#{$zen} .q-chip:is(.q-chip--selected, .q-chip--clickable:not(.disabled):active) { background: #{$inset}; box-shadow: #{$press}; }
|
|
273
|
+
#{$zen} .q-rating__icon { color: var(--qds-fg-muted); text-shadow: none; }
|
|
274
|
+
#{$zen} .q-rating__icon--active { color: var(--qds-color-warning); }
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@mixin blocks {
|
|
278
|
+
// Blocks are raised sheets; a nested block steps down a tone instead of stacking shadows.
|
|
279
|
+
#{$zen} :is(.q-card, .qds-card, .qds-tile, .qds-settings-card, .q-stepper, .q-uploader, .q-editor, .q-splitter, .q-date, .q-time, .q-color-picker) { border: 1px solid var(--qds-stroke-default); border-radius: var(--qds-radius-lg); background: #{$raised}; box-shadow: #{$lift-3}, #{$edge}; }
|
|
280
|
+
// Zen has no acrylic: the glass utility is a plain opaque surface with an edge.
|
|
281
|
+
#{$zen} .qds-glass { border-color: var(--qds-stroke-default); background: #{$raised}; backdrop-filter: none; }
|
|
282
|
+
#{$zen} :is(.q-card, .qds-card) .qds-glass { background: #{$base}; }
|
|
283
|
+
#{$zen} .q-card > .q-card__section--vert { padding: var(--qds-space-md) var(--qds-space-lg); }
|
|
284
|
+
#{$zen} .q-card > .q-card__section:is(.qds-card__header, .qds-card-header) { padding: var(--qds-space-md) var(--qds-space-lg); border-block-end: 1px solid var(--qds-stroke-default); background: none; }
|
|
285
|
+
#{$zen} .q-card > .q-card__actions { gap: var(--qds-space-sm); padding: var(--qds-space-sm) var(--qds-space-lg) var(--qds-space-md); }
|
|
286
|
+
#{$zen} .q-card > .q-card__actions .q-btn + .q-btn { margin-inline-start: 0; }
|
|
287
|
+
#{$zen} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile, .qds-settings-card) { border-radius: var(--qds-radius-md); background: #{$base}; box-shadow: none; }
|
|
288
|
+
#{$zen} :is(.q-card, .qds-card, .qds-tile).q-card--flat { box-shadow: none; }
|
|
289
|
+
#{$zen} .q-card.q-card--square { border-radius: 0; }
|
|
290
|
+
#{$zen} .q-card:focus-visible { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus); outline-offset: var(--qds-focus-ring-offset); }
|
|
291
|
+
#{$zen} .qds-tile__label { color: var(--qds-fg-muted); }
|
|
292
|
+
#{$zen} .qds-settings-group > .qds-settings-card + .qds-settings-card { margin-block-start: var(--qds-space-sm); }
|
|
293
|
+
#{$zen} .q-stepper { --qds-stepper-dot-size: 2rem; --qds-stepper-rail: var(--qds-stroke-strong); }
|
|
294
|
+
#{$zen} .q-stepper__tab:not(.q-stepper__tab--active, .q-stepper__tab--done, .q-stepper__tab--error) .q-stepper__dot { border-color: var(--qds-stroke-strong); background: #{$raised}; box-shadow: #{$lift-1}, #{$edge}; color: var(--qds-fg-default); }
|
|
295
|
+
#{$zen} .q-stepper__tab--active .q-stepper__dot { box-shadow: 0 0 0 0.25rem var(--qds-surface-brand-soft), #{$lift-1}; }
|
|
296
|
+
#{$zen} .q-carousel { border-radius: var(--qds-radius-lg); background: #{$base}; }
|
|
297
|
+
#{$zen} .q-message-sent .q-message-text { --qds-chat-bubble-bg: var(--qds-surface-brand-soft); --qds-chat-bubble-fg: var(--qds-fg-default); border-color: var(--qds-stroke-default); }
|
|
298
|
+
#{$zen} .q-message-text--received { border: 1px solid var(--qds-stroke-default); background: #{$raised}; }
|
|
299
|
+
#{$zen} .q-timeline__subtitle { color: var(--qds-fg-muted); }
|
|
300
|
+
#{$zen} .q-img { border-radius: var(--qds-radius-md); }
|
|
301
|
+
#{$zen} .q-date__content { width: 100%; min-width: 0; }
|
|
302
|
+
#{$zen} .q-date__arrow { width: auto; --qds-button-dense-min-height: 1.75rem; }
|
|
303
|
+
#{$zen} .q-time__clock-pointer { color: var(--qds-color-primary); }
|
|
304
|
+
#{$zen} .q-option-group--inline { gap: var(--qds-space-md); }
|
|
305
|
+
#{$zen} .qds-option-group--card :is(.q-radio, .q-checkbox) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: #{$raised}; box-shadow: #{$lift-1}, #{$edge}; }
|
|
306
|
+
#{$zen} .qds-option-group--card :is(.q-radio, .q-checkbox).qds-active { border-color: var(--qds-fg-brand); background: var(--qds-surface-brand-soft); box-shadow: #{$press}; }
|
|
307
|
+
#{$zen} .qds-pin .q-field__control { justify-content: center; }
|
|
308
|
+
#{$zen} .qds-form-field__label { color: var(--qds-fg-default); font-weight: var(--qds-font-weight-semibold); }
|
|
309
|
+
#{$zen} :is(.qds-form-field__hint, .qds-form-field__description) { color: var(--qds-fg-muted); }
|
|
310
|
+
#{$zen} .qds-field-group > :is(.q-field, .q-btn) { border-radius: 0; }
|
|
311
|
+
#{$zen} .qds-field--dropzone .q-field__control { border-style: dashed; background: #{$base}; box-shadow: none; }
|
|
312
|
+
#{$zen} .qds-menu-row__title { font-weight: var(--qds-font-weight-semibold); }
|
|
313
|
+
#{$zen} :is(.qds-menu-row__caption, .qds-menu-row__description) { color: var(--qds-fg-muted); }
|
|
314
|
+
#{$zen} .qds-subpage-tabs .q-tab--active { color: var(--qds-fg-brand); }
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@mixin data {
|
|
318
|
+
// Lists and tables are calm grouped blocks; rows are pebbles inside them.
|
|
319
|
+
#{$zen} .q-list--bordered { padding: 0.375rem; }
|
|
320
|
+
#{$zen} :is(.q-list--bordered, .q-table__container) { overflow: hidden; }
|
|
321
|
+
#{$zen} .q-item { min-height: var(--qds-list-item-min-height); padding-inline: var(--qds-space-md); border: 1px solid transparent; border-radius: var(--qds-radius-control); }
|
|
322
|
+
#{$zen} :is(.q-item.q-item--dense, .q-list--dense > .q-item) { min-height: calc(var(--qds-control-size-sm) + 0.25rem); padding-inline: var(--qds-space-sm); }
|
|
323
|
+
#{$zen} .q-list--separator { padding-block: 0; }
|
|
324
|
+
#{$zen} .q-list--separator > .q-item { border-radius: 0; }
|
|
325
|
+
#{$zen} .q-list--separator > .q-item-type + .q-item-type { border-block-start-color: var(--qds-stroke-default); }
|
|
326
|
+
#{$zen} .q-item:not(.disabled):hover { background-color: #{$tint}; }
|
|
327
|
+
// Selection presses the row in and gives it an edge, so it survives grayscale and reading.
|
|
328
|
+
#{$zen} .q-item:is(.q-item--active, [aria-selected='true']) { border-color: var(--qds-stroke-strong); background-color: #{$inset}; box-shadow: #{$press}; color: var(--qds-fg-strong); }
|
|
329
|
+
#{$zen} .q-item:is(.q-item--active, [aria-selected='true'])::before,
|
|
330
|
+
#{$zen} #{$nav-parent}::before { display: none; }
|
|
331
|
+
#{$zen} .q-item:is(.q-item--active, [aria-selected='true']) .q-item__section--side > .q-icon { color: var(--qds-fg-brand); }
|
|
332
|
+
#{$zen} .q-list .q-item__label--header { padding: var(--qds-space-md) var(--qds-space-md) var(--qds-space-xs); color: var(--qds-fg-muted); font-size: var(--qds-font-size-overline); font-weight: var(--qds-font-weight-semibold); }
|
|
333
|
+
#{$zen} .q-item .q-item__section--side > .q-icon { color: var(--qds-fg-muted); }
|
|
334
|
+
#{$zen} .q-expansion-item { border-radius: var(--qds-radius-lg); }
|
|
335
|
+
#{$zen} .q-tree__node--selected { border-radius: var(--qds-radius-control); outline: 1px solid transparent; outline-offset: -1px; background: #{$inset}; box-shadow: inset 0 0 0 1px var(--qds-stroke-strong), #{$press}; }
|
|
336
|
+
#{$zen} .q-tree__node--selected::after { display: none; }
|
|
337
|
+
#{$zen} .q-table thead th { color: var(--qds-fg-muted); font-weight: var(--qds-font-weight-semibold); background: #{$base}; }
|
|
338
|
+
#{$zen} .q-table :is(th, td) { border-color: var(--qds-stroke-default); }
|
|
339
|
+
#{$zen} .q-table tbody tr:last-child > td { border-bottom: 0; }
|
|
340
|
+
#{$zen} .q-table tbody tr:not(.disabled):hover > td { background: #{$tint}; }
|
|
341
|
+
#{$zen} .q-table tbody tr.selected > td { background: var(--qds-surface-brand-soft); }
|
|
342
|
+
#{$zen} :is(.q-table--flat, .q-stepper--flat) { box-shadow: none; }
|
|
343
|
+
#{$zen} :is(.q-card--bordered, .q-table--bordered, .q-stepper--bordered) { border-color: var(--qds-stroke-strong); }
|
|
344
|
+
#{$zen} .q-table__container.q-table--square { border-radius: 0; }
|
|
345
|
+
// Grid mode drops the frame; each row becomes its own raised block.
|
|
346
|
+
#{$zen} .q-table__container.q-table--grid { border: 0; background: transparent; box-shadow: none; overflow: visible; }
|
|
347
|
+
#{$zen} .q-table__grid-item-card { border: 1px solid var(--qds-stroke-default); border-radius: var(--qds-radius-lg); background: #{$raised}; color: var(--qds-fg-default); box-shadow: #{$lift-1}, #{$edge}; }
|
|
348
|
+
#{$zen} .q-card > .q-table__container { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
349
|
+
#{$zen} .q-table__bottom--nodata { margin: var(--qds-space-sm); border: 1px dashed var(--qds-stroke-strong); border-radius: var(--qds-radius-md); color: var(--qds-fg-muted); }
|
|
350
|
+
// Quasar inlines a 2em min-width; an explicit width sizes the pebble while it can still shrink.
|
|
351
|
+
#{$zen} .q-pagination .q-btn { width: var(--qds-button-min-height); border-radius: var(--qds-radius-full); }
|
|
352
|
+
#{$zen} .q-pagination .q-field__control { padding-inline: 0.25rem; }
|
|
353
|
+
#{$zen} .q-pagination .q-field__native { text-align: center; }
|
|
354
|
+
#{$zen} .q-pagination { --qds-pagination-active-bg: var(--qds-color-primary); --qds-pagination-active-text: var(--qds-text-on-solid); }
|
|
355
|
+
@each $role in $roles {
|
|
356
|
+
#{$zen} .q-pagination .q-btn[aria-current='page'].bg-#{$role} { --qds-pagination-active-bg: var(--qds-color-#{$role}); --qds-pagination-active-text: var(--qds-text-on-#{$role}); }
|
|
357
|
+
#{$zen} .q-pagination .q-btn[aria-current='page'].text-#{$role}:is(.q-btn--flat, .q-btn--outline) { --qds-pagination-active-text: var(--qds-fg-#{$role}); }
|
|
125
358
|
}
|
|
126
|
-
#{$zen} .q-
|
|
127
|
-
#{$zen} .q-
|
|
128
|
-
#{$zen} .q-
|
|
359
|
+
#{$zen} .q-pagination .q-btn[aria-current='page']:is(.q-btn--flat, .q-btn--outline) { --qds-pagination-active-bg: transparent; --qds-pagination-active-text: var(--qds-fg-brand); }
|
|
360
|
+
#{$zen} .q-pagination .q-btn[aria-current='page'].q-btn--flat { --qds-pagination-active-bg: var(--qds-surface-brand-soft); }
|
|
361
|
+
#{$zen} .q-pagination .q-btn[aria-current='page'].q-btn--outline { border-color: currentColor; }
|
|
362
|
+
#{$zen} .q-pagination .q-btn[aria-current='page'] { --_qds-zen-depth: #{$lift-1}; }
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@mixin chrome {
|
|
366
|
+
// Header, drawer and footer share the base tone, bounded by an edge; the current place is a raised pebble.
|
|
367
|
+
#{$zen} :is(.q-header, .q-footer) { background: #{$base}; color: var(--qds-fg-default); box-shadow: none; }
|
|
368
|
+
#{$zen} .q-header { border-bottom: 1px solid var(--qds-stroke-default); }
|
|
369
|
+
#{$zen} .q-footer { border-top: 1px solid var(--qds-stroke-default); }
|
|
370
|
+
#{$zen} .q-drawer { border-color: var(--qds-stroke-default); background: #{$base}; box-shadow: none; }
|
|
371
|
+
#{$zen} .q-drawer .q-item { border-radius: var(--qds-radius-full); }
|
|
372
|
+
#{$zen} .q-drawer .q-item:is(.q-item--active, [aria-selected='true']) { background-color: #{$raised}; box-shadow: #{$lift-1}, #{$edge}; color: var(--qds-fg-strong); font-weight: var(--qds-font-weight-semibold); }
|
|
373
|
+
#{$zen} .q-drawer__backdrop { background: var(--qds-bg-overlay); }
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@mixin overlays {
|
|
377
|
+
#{$zen} .q-dialog__inner > :is(.q-card, .q-bottom-sheet) { border: 1px solid var(--qds-stroke-strong); box-shadow: #{$lift-4}, #{$edge}; backdrop-filter: none; }
|
|
378
|
+
#{$zen} .q-dialog__inner > .q-card { border-radius: var(--qds-radius-xl); }
|
|
379
|
+
#{$zen} .q-dialog__inner--top > :is(.q-card, .q-bottom-sheet) { border-start-start-radius: 0; border-start-end-radius: 0; }
|
|
380
|
+
#{$zen} .q-dialog__inner--bottom > :is(.q-card, .q-bottom-sheet) { border-end-start-radius: 0; border-end-end-radius: 0; }
|
|
381
|
+
#{$zen} .q-dialog__inner--left > :is(.q-card, .q-bottom-sheet) { border-start-start-radius: 0; border-end-start-radius: 0; }
|
|
382
|
+
#{$zen} .q-dialog__inner--right > :is(.q-card, .q-bottom-sheet) { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
383
|
+
#{$zen} .q-dialog__inner--maximized > .q-card { border: 0; border-radius: 0; box-shadow: none; }
|
|
384
|
+
#{$zen} .q-bottom-sheet { border-start-start-radius: var(--qds-radius-xl); border-start-end-radius: var(--qds-radius-xl); background: #{$raised}; }
|
|
385
|
+
#{$zen} .q-bottom-sheet .q-separator { background: var(--qds-stroke-default); }
|
|
386
|
+
#{$zen} .q-bottom-sheet__item { border: 1px solid transparent; border-radius: var(--qds-radius-control); color: var(--qds-fg-default); }
|
|
387
|
+
#{$zen} .q-bottom-sheet__item:not(.disabled):is(:hover, :focus-visible) { background: #{$tint}; }
|
|
388
|
+
#{$zen} .q-bottom-sheet__item:not(.disabled):active { background: #{$inset}; box-shadow: #{$press}; }
|
|
389
|
+
#{$zen} .q-bottom-sheet__item > .q-focus-helper { opacity: 0; }
|
|
390
|
+
#{$zen} .q-loading .q-loading__box { box-shadow: #{$lift-4}, #{$edge}; }
|
|
391
|
+
#{$zen} .q-notification[class*='bg-'] { border-color: transparent; }
|
|
392
|
+
#{$zen} .q-notification:not([class*='bg-']) .q-notification__message { color: var(--qds-fg-default); }
|
|
393
|
+
// Tooltips invert into a quiet ink pill, like a printed marginal note.
|
|
394
|
+
#{$zen} .q-tooltip { border: 1px solid transparent; border-radius: var(--qds-radius-md); background: var(--qds-fg-strong); color: #{$raised}; box-shadow: #{$lift-2}; backdrop-filter: none; }
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@mixin feedback {
|
|
398
|
+
#{$zen} .q-skeleton { border-radius: var(--qds-radius-control); background: #{$inset}; box-shadow: #{$well}; }
|
|
399
|
+
#{$zen} .q-skeleton--type-text { border-radius: var(--qds-radius-full); }
|
|
400
|
+
#{$zen} :is(.q-skeleton--type-circle, .q-skeleton--type-QAvatar, .q-skeleton--type-QRadio) { border-radius: 50%; }
|
|
401
|
+
#{$zen} :is(.q-skeleton--type-QBtn, .q-skeleton--type-QChip, .q-skeleton--type-QBadge, .q-skeleton--type-QToggle) { border-radius: var(--qds-radius-full); }
|
|
402
|
+
#{$zen} .q-linear-progress { font-size: 0.375rem; }
|
|
403
|
+
#{$zen} .q-linear-progress__track { background: #{$inset}; box-shadow: #{$well}; }
|
|
404
|
+
#{$zen} .q-linear-progress__model { border-radius: var(--qds-radius-full); }
|
|
405
|
+
#{$zen} .q-circular-progress__track { color: color-mix(in srgb, var(--qds-fg-default) 16%, transparent); }
|
|
129
406
|
}
|
|
130
407
|
|
|
131
|
-
|
|
132
|
-
//
|
|
408
|
+
@mixin local-dark {
|
|
409
|
+
// A light page's explicit-dark block drops the light highlight edge with the rest of its palette.
|
|
410
|
+
#{$local-dark} { --_qds-zen-edge: inset 0 0 0 transparent; }
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Reading presentation keeps every boundary, strengthens block edges, and drops decorative depth and motion.
|
|
133
414
|
@mixin reading {
|
|
134
|
-
#{$reading} :is(.q-btn, .q-field__control, .q-tabs, .q-tab, .q-menu, .q-item) { box-shadow: none; }
|
|
135
|
-
|
|
136
|
-
#{$reading}
|
|
137
|
-
#{$reading} .q-
|
|
138
|
-
#{$reading} .q-
|
|
139
|
-
#{$reading} :is(.q-
|
|
140
|
-
#{$reading} :is(.q-
|
|
141
|
-
#{$reading} :is(.q-
|
|
415
|
+
#{$reading} :is(.q-btn, .q-field__control, .q-tabs, .q-tab, .q-menu, .q-item, .q-chip, .q-btn-toggle, .q-btn-group, .q-breadcrumbs, .q-banner, .q-toggle__track, .q-slider__inner, .q-slider__thumb, .q-checkbox__bg, .q-radio__bg, .q-skeleton, .q-linear-progress__track, .q-stepper__dot, .q-pagination .q-btn) { box-shadow: none; transform: none; }
|
|
416
|
+
#{$reading} .q-toggle__thumb::after { box-shadow: none; }
|
|
417
|
+
#{$reading} .q-btn-toggle > .q-btn.q-btn-item:is([aria-pressed='true'], .q-btn--active, .qds-active) { box-shadow: none; }
|
|
418
|
+
#{$reading} :is(.q-table__grid-item-card, .qds-glass) { border-color: var(--qds-stroke-strong); box-shadow: none; }
|
|
419
|
+
#{$reading} :is(.q-card, .qds-card, .qds-tile, .qds-settings-card, .q-list--bordered, .q-table__container, .q-stepper, .q-uploader, .q-editor, .q-splitter, .q-date, .q-time, .q-color-picker, .q-notification, .q-tooltip, .q-popup-edit, .q-dialog__inner > .q-card, .q-dialog__inner > .q-bottom-sheet, .q-loading .q-loading__box, .q-drawer, .q-header, .q-footer, .q-footer > .q-tabs) { box-shadow: none; }
|
|
420
|
+
#{$reading} :is(.q-card, .qds-card, .qds-tile, .qds-settings-card, .q-list--bordered, .q-table__container, .q-banner, .q-breadcrumbs) { border-color: var(--qds-stroke-strong); }
|
|
421
|
+
#{$reading} :is(.q-field__control, .q-slider__inner, .q-toggle__track, .q-checkbox__bg, .q-radio__bg) { background: var(--qds-control-fill-default); }
|
|
422
|
+
#{$reading} .q-item:is(.q-item--active, [aria-selected='true']) { background-color: var(--qds-surface-brand-soft); }
|
|
423
|
+
#{$reading} .q-tree__node--selected { background: var(--qds-surface-brand-soft); box-shadow: inset 0 0 0 1px var(--qds-stroke-strong); }
|
|
424
|
+
#{$reading} :is(.q-btn, .q-field__control, .q-tab, .q-menu, .q-item, .q-chip, .q-toggle__thumb, .q-toggle__track),
|
|
425
|
+
#{$reading} :is(.q-field__control, .q-item, .q-toggle__thumb, .q-toggle__track)::before,
|
|
426
|
+
#{$reading} :is(.q-field__control, .q-item, .q-toggle__thumb, .q-toggle__track)::after {
|
|
142
427
|
transition: none;
|
|
143
428
|
animation: none;
|
|
144
429
|
backdrop-filter: none;
|
|
145
430
|
background-image: none;
|
|
146
431
|
}
|
|
147
432
|
}
|
|
433
|
+
|
|
434
|
+
@mixin styles {
|
|
435
|
+
@include type;
|
|
436
|
+
@include button;
|
|
437
|
+
@include field;
|
|
438
|
+
@include tabs;
|
|
439
|
+
@include menu;
|
|
440
|
+
@include selection;
|
|
441
|
+
@include actions;
|
|
442
|
+
@include badge-chip;
|
|
443
|
+
@include blocks;
|
|
444
|
+
@include data;
|
|
445
|
+
@include chrome;
|
|
446
|
+
@include overlays;
|
|
447
|
+
@include feedback;
|
|
448
|
+
@include local-dark;
|
|
449
|
+
@include reading;
|
|
450
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../importance';
|
|
3
3
|
|
|
4
4
|
$shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
|
|
5
|
+
$zen: '.qds-variant-zen:is(.qds-ui, .qds-ui *)';
|
|
5
6
|
|
|
6
7
|
@mixin styles {
|
|
7
8
|
// This optional extension intentionally targets only the QWindow BEM contract.
|
|
@@ -41,10 +42,6 @@ $shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
|
|
|
41
42
|
.qds-ui .qds-window--minimized .qds-window__body,
|
|
42
43
|
.qds-ui .qds-window--headless .qds-window__titlebar { display: none; }
|
|
43
44
|
|
|
44
|
-
.qds-ui.qds-variant-ink .qds-window,
|
|
45
|
-
.qds-ui .qds-variant-ink .qds-window,
|
|
46
|
-
.qds-ui.qds-variant-ink .qds-window__titlebar,
|
|
47
|
-
.qds-ui .qds-variant-ink .qds-window__titlebar,
|
|
48
45
|
.qds-ui.qds-variant-one .qds-window,
|
|
49
46
|
.qds-ui .qds-variant-one .qds-window { background: var(--qds-surface-focus-block); }
|
|
50
47
|
.qds-ui.qds-variant-one .qds-window,
|
|
@@ -55,8 +52,6 @@ $shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
|
|
|
55
52
|
--qds-control-fill-hover: color-mix(in srgb, var(--qds-surface-transient) 90%, var(--qds-text));
|
|
56
53
|
background: var(--qds-surface-transient);
|
|
57
54
|
}
|
|
58
|
-
.qds-ui.qds-variant-ink .qds-window:not(.qds-window--active),
|
|
59
|
-
.qds-ui .qds-variant-ink .qds-window:not(.qds-window--active),
|
|
60
55
|
.qds-ui.qds-variant-one .qds-window:not(.qds-window--active),
|
|
61
56
|
.qds-ui .qds-variant-one .qds-window:not(.qds-window--active) { border-color: var(--qds-card-border); }
|
|
62
57
|
.qds-ui.qds-variant-one .qds-window__titlebar,
|
|
@@ -87,5 +82,18 @@ $shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
|
|
|
87
82
|
.qds-window--headless { border-color: var(--qds-stroke-default); }
|
|
88
83
|
.qds-window--dense .qds-window__chrome { gap: var(--qds-space-xs); }
|
|
89
84
|
}
|
|
85
|
+
// Zen: an opaque raised sheet with an essential edge; no acrylic, depth drops in reading mode.
|
|
86
|
+
#{$zen} {
|
|
87
|
+
.qds-window { color: var(--qds-fg-default); background: var(--qds-bg-card); border-color: var(--qds-stroke-default); border-radius: var(--qds-radius-lg); box-shadow: var(--qds-shadow-lg), var(--_qds-zen-edge); }
|
|
88
|
+
.qds-window--floating { @include materials.solid(var(--qds-bg-card)); }
|
|
89
|
+
.qds-window--active { border-color: var(--qds-stroke-strong); }
|
|
90
|
+
.qds-window--embedded { box-shadow: var(--qds-shadow-sm), var(--_qds-zen-edge); }
|
|
91
|
+
.qds-window__titlebar { color: var(--qds-fg-strong); background: var(--qds-bg-surface-1); border-block-end: 1px solid var(--qds-stroke-default); }
|
|
92
|
+
.qds-window__title { font-family: var(--qds-font-family); letter-spacing: 0; }
|
|
93
|
+
.qds-window__action.q-btn.q-btn--flat { border-radius: var(--qds-radius-full); }
|
|
94
|
+
.qds-window__body { color: var(--qds-fg-default); background: var(--qds-bg-card); }
|
|
95
|
+
:is(.qds-window--maximized, .qds-window--fullscreen) { border-radius: 0; box-shadow: none; }
|
|
96
|
+
}
|
|
97
|
+
.qds-variant-zen.qds-reading:is(.qds-ui, .qds-ui *) .qds-window { border-color: var(--qds-stroke-strong); box-shadow: none; }
|
|
90
98
|
@media (forced-colors: active) { :is(.qds-variant-shadcn,.qds-variant-term,.qds-variant-one):is(.qds-ui,.qds-ui *) .qds-window__action--close { --_qds-window-close-ring: Highlight; } }
|
|
91
99
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Layered optional QWindow extension for apps that also layer Quasar/QWindow CSS.
|
|
2
2
|
@use '../importance' with ($layered: true);
|
|
3
3
|
@use 'qwindow-styles' as qwindow;
|
|
4
|
+
@use '../components/variants/ink';
|
|
4
5
|
|
|
5
6
|
@layer qds.quasar {
|
|
6
7
|
@include qwindow.styles;
|
|
8
|
+
@include ink.qwindow;
|
|
7
9
|
}
|