@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
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
// Ink: one ink on paper, rendered like an e-reader screen. Crisp 1.5px strokes with
|
|
2
|
+
// deterministic hand-cut corners, no blur, tint or soft shadow. Greys are patterns
|
|
3
|
+
// (dot screen, hatching); selection inverts; depth is a hard offset sheet.
|
|
4
|
+
// Print face everywhere; handwriting only for display titles and opt-in classes.
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
$ink: '.qds-variant-ink:is(.qds-ui,.qds-ui *)';
|
|
8
|
+
|
|
9
|
+
$line: 1.5px;
|
|
10
|
+
$i: var(--qds-fg-strong);
|
|
11
|
+
$p: var(--qds-bg-card);
|
|
12
|
+
$hand-sm: 0.55rem 0.3rem 0.5rem 0.25rem / 0.3rem 0.5rem 0.25rem 0.55rem;
|
|
13
|
+
$hand-md: 0.75rem 0.35rem 0.65rem 0.3rem / 0.35rem 0.7rem 0.3rem 0.75rem;
|
|
14
|
+
$hand-round: 52% 48% 50% 46% / 46% 52% 48% 54%;
|
|
15
|
+
$hand: var(--qds-font-family-display);
|
|
16
|
+
$print: var(--qds-font-family);
|
|
17
|
+
$focus: var(--qds-focus-ring-width) solid var(--qds-stroke-focus);
|
|
18
|
+
// Patterns in the current ink. The 16-20% lines keep ink text above 4.5:1 on top of them.
|
|
19
|
+
@function tone($weight, $color: currentColor) { @return color-mix(in srgb, #{$color} #{$weight}, transparent); }
|
|
20
|
+
$dots: radial-gradient(#{tone(24%)} 0.75px, transparent 1px) 0 0 / 4px 4px;
|
|
21
|
+
$hatch: repeating-linear-gradient(-45deg, #{tone(18%)} 0 1px, transparent 1px 4px);
|
|
22
|
+
$rule-dotted: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px);
|
|
23
|
+
$rule-dotted-down: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 4px);
|
|
24
|
+
@function sheet($offset, $edge: $i) { @return #{$offset} #{$offset} 0 0 #{$edge}; }
|
|
25
|
+
$r: var(--qds-fg-negative);
|
|
26
|
+
// Roles without hue: primary is solid ink; the others are paper with an edge or a fill pattern.
|
|
27
|
+
// Negative is the one red, still cross-hatched so it reads without colour.
|
|
28
|
+
$role-fill: (
|
|
29
|
+
secondary: $p,
|
|
30
|
+
accent: $p,
|
|
31
|
+
positive: repeating-linear-gradient(-45deg, #{tone(20%, $i)} 0 1px, #{$p} 1px 5px),
|
|
32
|
+
negative: (repeating-linear-gradient(45deg, #{tone(20%, $r)} 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, #{tone(20%, $r)} 0 1px, #{$p} 1px 5px)),
|
|
33
|
+
warning: radial-gradient(#{tone(30%, $i)} 0.9px, #{$p} 1.2px) 0 0 / 5px 5px,
|
|
34
|
+
info: repeating-linear-gradient(180deg, #{$p} 0 4px, #{tone(22%, $i)} 4px 5px),
|
|
35
|
+
);
|
|
36
|
+
$role-edge: (
|
|
37
|
+
secondary: inset 0 0 0 #{$line} #{$i},
|
|
38
|
+
accent: (inset 0 0 0 1px #{$i}, inset 0 0 0 3px #{$p}, inset 0 0 0 4px #{$i}),
|
|
39
|
+
positive: inset 0 0 0 #{$line} #{$i},
|
|
40
|
+
negative: inset 0 0 0 2.5px #{$r},
|
|
41
|
+
warning: inset 0 0 0 #{$line} #{$i},
|
|
42
|
+
info: inset 0 0 0 #{$line} #{$i},
|
|
43
|
+
);
|
|
44
|
+
$local-dark: ':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)';
|
|
45
|
+
$fills: '.bg-secondary, .bg-accent, .bg-positive, .bg-negative, .bg-warning, .bg-info';
|
|
46
|
+
|
|
47
|
+
@mixin type {
|
|
48
|
+
#{$ink} :is(h1, h2, h3, h4, h5, h6, .text-h4, .text-h5, .text-h6) { font-family: #{$print}; }
|
|
49
|
+
#{$ink} :is(.text-h1, .text-h2, .text-h3) { font-family: #{$hand}; font-weight: 600; letter-spacing: 0; }
|
|
50
|
+
// Opt-in handwriting; font-size-adjust matches Caveat's small x-height to the print face.
|
|
51
|
+
#{$ink} :is(.qds-display, .qds-hand, .text-hand) { font-family: #{$hand}; font-size-adjust: 0.5; letter-spacing: 0.01em; }
|
|
52
|
+
#{$ink} .qds-display { font-weight: 600; }
|
|
53
|
+
#{$ink} a:not([class*='q-']) { color: inherit; text-decoration: underline 1px; text-underline-offset: 0.2em; }
|
|
54
|
+
#{$ink} a:not([class*='q-']):hover { text-decoration-thickness: 2px; }
|
|
55
|
+
#{$ink} ::selection { color: #{$p}; background: #{$i}; }
|
|
56
|
+
#{$ink} .q-separator { background: #{$rule-dotted}; color: var(--qds-stroke-strong); opacity: 1; }
|
|
57
|
+
#{$ink} .q-separator--vertical { background: #{$rule-dotted-down}; }
|
|
58
|
+
#{$ink} .q-separator.q-separator--horizontal-inset, #{$ink} .q-separator--spaced { color: var(--qds-stroke-strong); }
|
|
59
|
+
#{$ink} .q-icon { color: inherit; }
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Italic text is written by hand.
|
|
63
|
+
@mixin italic-hand {
|
|
64
|
+
#{$ink} :is(em, i:not(.q-icon, [class*='material-'], [class*='ph-'], [class*='fa-'], [class*='mdi'])) { font-family: #{$hand}; font-style: normal; font-size-adjust: 0.5; }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin button {
|
|
68
|
+
#{$ink} .q-btn {
|
|
69
|
+
--_qds-ink-edge: var(--qds-stroke-strong);
|
|
70
|
+
--_qds-ink-state: none;
|
|
71
|
+
--qds-button-disabled-fill: transparent;
|
|
72
|
+
--qds-button-disabled-stroke: var(--qds-fg-disabled);
|
|
73
|
+
min-height: var(--qds-button-min-height);
|
|
74
|
+
padding-inline: 1rem;
|
|
75
|
+
border: #{$line} solid var(--_qds-ink-edge);
|
|
76
|
+
border-radius: #{$hand-sm};
|
|
77
|
+
background: #{$p};
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
color: var(--qds-fg-default);
|
|
80
|
+
font-weight: var(--qds-font-weight-semibold);
|
|
81
|
+
letter-spacing: 0.01em;
|
|
82
|
+
text-transform: none;
|
|
83
|
+
transition: none;
|
|
84
|
+
}
|
|
85
|
+
// Quasar's own layer carries state: a dot screen on hover, hatching while pressed.
|
|
86
|
+
#{$ink} .q-btn::before { display: block; inset: 0; border: 0; border-radius: inherit; background: var(--_qds-ink-state); box-shadow: none; }
|
|
87
|
+
#{$ink} .q-btn::after { content: none; }
|
|
88
|
+
#{$ink} .q-btn > .q-focus-helper { display: none; }
|
|
89
|
+
#{$ink} .q-btn:not(.disabled):hover { --_qds-ink-state: #{$dots}; }
|
|
90
|
+
#{$ink} .q-btn:not(.disabled):active { --_qds-ink-state: #{$hatch}; transform: translate(1px, 1px); }
|
|
91
|
+
#{$ink} .q-btn:is(.q-btn--flat, .q-btn--outline) { background: transparent; }
|
|
92
|
+
#{$ink} .q-btn--flat { border-color: transparent; }
|
|
93
|
+
#{$ink} .q-btn--outline { --_qds-ink-edge: currentColor; }
|
|
94
|
+
#{$ink} .q-btn:is(.q-btn--push, .q-btn--glossy) { background-image: none; }
|
|
95
|
+
#{$ink} .q-btn.bg-primary:not(.q-btn--flat, .q-btn--outline) { --_qds-ink-edge: #{$i}; }
|
|
96
|
+
#{$ink} .q-btn:is(#{$fills}):not(.q-btn--flat, .q-btn--outline) { border-color: #{$i}; box-shadow: none; }
|
|
97
|
+
#{$ink} .q-btn.bg-negative:not(.q-btn--flat, .q-btn--outline) { border-width: 2.5px; border-color: #{$r}; }
|
|
98
|
+
#{$ink} .q-btn.bg-accent:not(.q-btn--flat, .q-btn--outline) { border-style: double; border-width: 4px; }
|
|
99
|
+
#{$ink} .q-btn.qds-tonal:not(.q-btn--flat, .q-btn--outline) { border-color: currentColor; }
|
|
100
|
+
#{$ink} .q-btn.disabled { --_qds-ink-edge: var(--qds-fg-disabled); --_qds-ink-state: #{$hatch}; border-style: dashed; transform: none; }
|
|
101
|
+
#{$ink} .q-btn--dense { min-height: var(--qds-button-dense-min-height); padding-inline: 0.625rem; }
|
|
102
|
+
#{$ink} .q-btn--square { border-radius: var(--qds-radius-xs); }
|
|
103
|
+
#{$ink} .q-btn:is(.q-btn--round, .q-btn--fab, .q-btn--fab-mini) { padding-inline: 0; }
|
|
104
|
+
#{$ink} .q-btn--round { border-radius: #{$hand-round}; }
|
|
105
|
+
#{$ink} .q-btn--rounded { border-radius: 2rem 1.6rem 2.2rem 1.7rem / 1.7rem 2.2rem 1.6rem 2rem; }
|
|
106
|
+
#{$ink} .q-btn__content { gap: 0.5rem; }
|
|
107
|
+
#{$ink} .q-btn.qds-active { color: #{$p}; background: #{$i}; }
|
|
108
|
+
// Groups and toggles share one frame; the selected segment inverts.
|
|
109
|
+
#{$ink} .q-btn-group { gap: 0; border-radius: #{$hand-sm}; box-shadow: none; }
|
|
110
|
+
#{$ink} .q-btn-group > .q-btn { border-radius: 0; }
|
|
111
|
+
#{$ink} .q-btn-group > .q-btn:first-child { border-start-start-radius: 0.45rem; border-end-start-radius: 0.3rem; }
|
|
112
|
+
#{$ink} .q-btn-group > .q-btn:last-child { border-start-end-radius: 0.3rem; border-end-end-radius: 0.5rem; }
|
|
113
|
+
#{$ink} .q-btn-group > .q-btn:not(:first-child) { margin-inline-start: -#{$line}; }
|
|
114
|
+
#{$ink} .q-btn-toggle { gap: 0; padding: 0; border: #{$line} solid #{$i}; border-radius: #{$hand-sm}; background: #{$p}; }
|
|
115
|
+
#{$ink} .q-btn-toggle > .q-btn.q-btn-item { min-height: calc(var(--qds-button-min-height) - 3px); border: 0; border-radius: 0; box-shadow: none; }
|
|
116
|
+
#{$ink} .q-btn-toggle > .q-btn.q-btn-item:not(:first-child) { border-inline-start: 1px solid #{$i}; }
|
|
117
|
+
#{$ink} .q-btn-toggle > .q-btn.q-btn-item:is([aria-pressed='true'], .q-btn--active, .qds-active) { --qds-segmented-thumb-bg: var(--qds-text-strong); --qds-fg-strong: var(--qds-bg-card); box-shadow: none; }
|
|
118
|
+
#{$ink} .q-btn-dropdown--split > .q-btn-dropdown__arrow-container { border-inline-start: 1px solid currentColor; }
|
|
119
|
+
#{$ink} .q-fab .q-btn--fab:not(.q-btn--rounded) { border-radius: #{$hand-round}; }
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@mixin roles {
|
|
123
|
+
// The role token feeds Quasar's !important background shorthand, so a pattern there paints the fill.
|
|
124
|
+
@each $role, $fill in $role-fill {
|
|
125
|
+
$pen: $i;
|
|
126
|
+
@if $role == negative { $pen: $r; }
|
|
127
|
+
#{$ink} .bg-#{$role} { --qds-color-#{$role}: #{$fill}; --qds-text-on-#{$role}: #{$pen}; --qds-color-#{$role}-hover: #{$p}; --qds-color-#{$role}-pressed: #{$p}; }
|
|
128
|
+
#{$ink} .bg-#{$role}:not(.q-btn, .q-chip, .q-badge, .q-field, .q-banner, .q-notification) { box-shadow: map.get($role-edge, $role); }
|
|
129
|
+
}
|
|
130
|
+
#{$ink} :is(.q-chip, .q-badge):is(#{$fills}) { border-color: #{$i}; }
|
|
131
|
+
#{$ink} :is(.q-chip, .q-badge).bg-negative { border-width: 2px; border-color: #{$r}; }
|
|
132
|
+
#{$ink} :is(.q-chip, .q-badge).bg-accent { border-style: double; border-width: 3px; }
|
|
133
|
+
#{$ink} .bg-primary { --qds-color-primary-hover: #{$i}; --qds-color-primary-pressed: #{$i}; }
|
|
134
|
+
// Inverted selections draw role-coloured text and icons in their own paper.
|
|
135
|
+
#{$ink} :is(.q-chip--selected, .q-chip.bg-primary, .q-chip.qds-solid, .q-item--active, .q-router-link--exact-active, .q-tab--active, .q-tree__node--selected, tr.selected, .q-btn.bg-primary, .q-btn.qds-active) {
|
|
136
|
+
@each $role in primary, secondary, accent, positive, negative, warning, info { --qds-fg-#{$role}: currentColor; }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@mixin chips {
|
|
141
|
+
#{$ink} .q-chip { border: #{$line} solid #{$i}; border-radius: #{$hand-sm}; background: #{$p}; box-shadow: none; color: #{$i}; font-weight: var(--qds-font-weight-medium); }
|
|
142
|
+
#{$ink} .q-chip.bg-primary, #{$ink} .q-chip--selected, #{$ink} .q-chip.qds-solid:not(#{$fills}) { color: #{$p}; background: #{$i}; }
|
|
143
|
+
// QDS chips are tonal by default; in ink the primary tone is the solid ink itself.
|
|
144
|
+
#{$ink} .q-chip.bg-primary:not(.qds-solid) { --qds-surface-brand-soft: #{$i}; --qds-fg-primary: #{$p}; }
|
|
145
|
+
#{$ink} .q-chip--clickable:not(.q-chip--selected, .bg-primary):hover { background-image: #{$dots}; }
|
|
146
|
+
#{$ink} .q-chip > .q-focus-helper { display: none; }
|
|
147
|
+
#{$ink} .q-chip--outline { border-style: dashed; }
|
|
148
|
+
#{$ink} .q-chip .q-chip__icon { color: inherit; opacity: 1; }
|
|
149
|
+
#{$ink} .q-chip--dense { border-width: 1px; }
|
|
150
|
+
#{$ink} .q-chip.bg-negative { color: #{$r}; }
|
|
151
|
+
#{$ink} .q-badge { border: 1px solid #{$i}; border-radius: 0.4rem 0.25rem 0.4rem 0.3rem; color: #{$p}; background: #{$i}; box-shadow: none; font-weight: var(--qds-font-weight-semibold); }
|
|
152
|
+
#{$ink} .q-badge:is(#{$fills}) { color: #{$i}; }
|
|
153
|
+
#{$ink} .q-badge.bg-negative { color: #{$r}; }
|
|
154
|
+
#{$ink} .q-badge.bg-grey { color: #{$i}; }
|
|
155
|
+
#{$ink} .q-badge--outline, #{$ink} .q-badge.qds-tonal { color: #{$i}; background: #{$p}; }
|
|
156
|
+
#{$ink} .q-badge--floating { box-shadow: 0 0 0 2px #{$p}; }
|
|
157
|
+
#{$ink} .q-avatar { border-radius: #{$hand-round}; color: #{$p}; background: #{$i}; box-shadow: none; }
|
|
158
|
+
#{$ink} .q-avatar--square, #{$ink} .q-avatar--rounded { border-radius: #{$hand-sm}; }
|
|
159
|
+
#{$ink} .q-avatar:is(#{$fills}) { color: #{$i}; }
|
|
160
|
+
// Media is greyscale, as on an e-ink screen. Opt back into colour on the media or an ancestor:
|
|
161
|
+
// .qds-media-color always, .qds-media-color-hover on hover or focus, .qds-media-color-reveal once when it renders.
|
|
162
|
+
// The reveal is time-based: Quasar wraps pages in scroll panels that never scroll, which freeze a scroll-driven timeline.
|
|
163
|
+
#{$ink} :is(.q-avatar, .q-img, .q-parallax__media, .q-video) :is(img, video), #{$ink} :is(.q-carousel__slide, img.q-message-avatar) { filter: var(--_qds-ink-media, grayscale(1) contrast(1.05)); }
|
|
164
|
+
#{$ink} :is(.qds-media-color, .qds-media-color-hover:is(:hover, :focus-within), .qds-media-color-reveal) { --_qds-ink-media: none; }
|
|
165
|
+
#{$ink} :is(.qds-media-color-reveal :is(img, video, .q-carousel__slide), :is(img, video, .q-carousel__slide).qds-media-color-reveal) { animation: qds-variant-ink-reveal 1.2s ease-out both; }
|
|
166
|
+
@keyframes qds-variant-ink-reveal { from { filter: grayscale(1) contrast(1.05); } }
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@mixin field {
|
|
170
|
+
#{$ink} .q-field {
|
|
171
|
+
--qds-field-radius: 0.55rem;
|
|
172
|
+
--qds-field-shadow: none;
|
|
173
|
+
--qds-field-focus-halo: none;
|
|
174
|
+
--qds-field-stroke: var(--qds-stroke-strong);
|
|
175
|
+
--qds-field-focus-stroke: var(--qds-stroke-focus);
|
|
176
|
+
--qds-field-fill: transparent;
|
|
177
|
+
--qds-control-fill-default: #{$p};
|
|
178
|
+
--qds-control-fill-hover: #{$p};
|
|
179
|
+
--qds-control-fill-input-active: #{$p};
|
|
180
|
+
}
|
|
181
|
+
// The hand-cut frame is drawn here; the token stays one radius so joined groups can square single corners.
|
|
182
|
+
#{$ink} .q-field__control { border-radius: #{$hand-md}; background: var(--qds-control-fill-default); box-shadow: none; }
|
|
183
|
+
#{$ink} .q-field .q-field__control::before { border-color: var(--qds-stroke-strong); background: transparent; }
|
|
184
|
+
#{$ink} .q-field--outlined .q-field__control::before { border-width: #{$line}; }
|
|
185
|
+
// Standard, filled and borderless fields sit on a ruled line, like a form on paper.
|
|
186
|
+
#{$ink} :is(.q-field--standard, .q-field--filled, .q-field--borderless) .q-field__control { border-radius: 0; }
|
|
187
|
+
#{$ink} :is(.q-field--standard, .q-field--filled) .q-field__control::before { border-width: 0 0 #{$line}; border-style: solid; }
|
|
188
|
+
#{$ink} .q-field--filled .q-field__control::before { border-width: 1px 1px #{$line}; border-style: dotted dotted solid; border-radius: 0.3rem 0.4rem 0 0; }
|
|
189
|
+
#{$ink} .q-field--borderless .q-field__control::before { border-width: 0 0 1px; border-style: dotted; }
|
|
190
|
+
#{$ink} .q-field--standout .q-field__control { border: 1px solid var(--qds-stroke-strong); }
|
|
191
|
+
#{$ink} .q-field--standout.q-field--highlighted .q-field__control { color: #{$p}; background: #{$i}; box-shadow: none; }
|
|
192
|
+
#{$ink} .q-field--standout.q-field--highlighted :is(.q-field__native, .q-field__input, .q-field__label, .q-field__marginal, .q-field__prefix, .q-field__suffix) { color: #{$p}; }
|
|
193
|
+
// Focus draws one heavier ruled stroke under the field; no animated bar.
|
|
194
|
+
#{$ink} .q-field .q-field__control::after { inset: auto 0 -1px; height: 0; border: 0; border-bottom: 3px solid var(--qds-stroke-focus); border-radius: 0; background: none; clip-path: none; transition: none; }
|
|
195
|
+
#{$ink} .q-field--standout .q-field__control::after { content: none; }
|
|
196
|
+
#{$ink} .q-field--outlined.q-field--highlighted .q-field__control::before { border-width: 2.5px; }
|
|
197
|
+
#{$ink} .q-field__label { color: var(--qds-fg-muted); }
|
|
198
|
+
#{$ink} .q-field--highlighted .q-field__label, #{$ink} .q-field__native { color: var(--qds-fg-default); }
|
|
199
|
+
// Errors take the one red, drawn as a double frame so they read without colour too.
|
|
200
|
+
#{$ink} .q-field--error .q-field__control::before { border-style: double; border-width: 0 0 4px; border-color: #{$r}; }
|
|
201
|
+
#{$ink} .q-field--error.q-field--outlined .q-field__control::before { border-width: 4px; }
|
|
202
|
+
#{$ink} .q-field--error .q-field__control::after { content: none; border-bottom-color: #{$r}; }
|
|
203
|
+
#{$ink} .q-field--error :is(.q-field__label, .q-field__bottom, .q-field__marginal) { color: #{$r}; }
|
|
204
|
+
#{$ink} .q-field--error .q-field__bottom { font-weight: var(--qds-font-weight-semibold); }
|
|
205
|
+
#{$ink} .q-field--readonly .q-field__control::before,
|
|
206
|
+
#{$ink} .q-field--readonly .q-field__control:hover::before { border-style: dashed; border-color: var(--qds-stroke-strong); }
|
|
207
|
+
#{$ink} .q-field--disabled .q-field__control::before { border-style: dotted; border-color: var(--qds-fg-disabled); }
|
|
208
|
+
#{$ink} .q-field--disabled .q-field__control { background: #{$p}; }
|
|
209
|
+
#{$ink} .q-field__marginal { color: var(--qds-fg-default); }
|
|
210
|
+
#{$ink} .q-field .q-chip { margin-block: 0.125rem; }
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@mixin selection {
|
|
214
|
+
#{$ink} :is(.q-checkbox, .q-radio, .q-toggle) { --qds-selection-fill: #{$i}; --qds-selection-on: #{$p}; }
|
|
215
|
+
#{$ink} .q-checkbox__bg { border: #{$line} solid #{$i}; border-radius: 0.3rem 0.2rem 0.32rem 0.18rem; background: #{$p}; box-shadow: none; }
|
|
216
|
+
#{$ink} :is(.q-checkbox__inner--truthy, .q-checkbox__inner--indet) .q-checkbox__bg { background: #{$i}; }
|
|
217
|
+
#{$ink} .q-checkbox__svg { color: #{$p}; }
|
|
218
|
+
#{$ink} .q-radio__bg { color: #{$i}; }
|
|
219
|
+
#{$ink} .q-radio__bg path:first-child { stroke-width: 0.8; }
|
|
220
|
+
#{$ink} :is(.q-checkbox, .q-radio, .q-toggle) .q-checkbox__inner::before,
|
|
221
|
+
#{$ink} :is(.q-checkbox, .q-radio, .q-toggle) :is(.q-radio__inner, .q-toggle__inner)::before { display: none; }
|
|
222
|
+
#{$ink} :is(.q-checkbox, .q-radio, .q-toggle).disabled { opacity: 1; color: var(--qds-fg-disabled); }
|
|
223
|
+
#{$ink} .q-checkbox.disabled .q-checkbox__bg { border-style: dashed; border-color: var(--qds-fg-disabled); background: #{$hatch}; }
|
|
224
|
+
// Switch: off is an outlined track with an outlined knob at the start; on fills the track with ink
|
|
225
|
+
// and carries a paper knob to the end. Disabled keeps the same shapes in the disabled ink, dashed when off.
|
|
226
|
+
#{$ink} .q-toggle__track { border: #{$line} solid #{$i}; border-radius: 0.7rem 0.62rem 0.68rem 0.6rem / 0.62rem 0.7rem 0.6rem 0.68rem; background: #{$p}; box-shadow: none; }
|
|
227
|
+
#{$ink} .q-toggle__inner--truthy .q-toggle__track { background: #{$i}; }
|
|
228
|
+
#{$ink} .q-toggle__thumb::after { border: #{$line} solid #{$i}; border-radius: 50%; background: #{$p}; box-shadow: none; }
|
|
229
|
+
#{$ink} .q-toggle__inner--truthy .q-toggle__thumb::after { border-color: #{$p}; }
|
|
230
|
+
#{$ink} .q-toggle__inner--indet .q-toggle__thumb::after { background: #{$i}; }
|
|
231
|
+
#{$ink} .q-toggle__thumb .q-icon { color: #{$i}; }
|
|
232
|
+
#{$ink} .q-toggle__thumb::before { display: none; }
|
|
233
|
+
#{$ink} .q-toggle.disabled .q-toggle__track { border-color: var(--qds-fg-disabled); }
|
|
234
|
+
#{$ink} .q-toggle.disabled .q-toggle__inner--falsy .q-toggle__track { border-style: dashed; }
|
|
235
|
+
#{$ink} .q-toggle.disabled .q-toggle__inner--truthy .q-toggle__track { background: var(--qds-fg-disabled); }
|
|
236
|
+
#{$ink} .q-toggle.disabled .q-toggle__thumb::after { border-color: var(--qds-fg-disabled); background: #{$p}; }
|
|
237
|
+
#{$ink} :is(.q-checkbox, .q-radio, .q-toggle):focus-visible :is(.q-checkbox__bg, .q-radio__bg, .q-toggle__track) { outline: #{$focus}; outline-offset: 2px; }
|
|
238
|
+
// Slider: a ruled track, a solid ink selection and a drawn knob.
|
|
239
|
+
#{$ink} .q-slider { --qds-selection-fill: #{$i}; }
|
|
240
|
+
#{$ink} .q-slider__track { border-radius: 0; background: none; }
|
|
241
|
+
#{$ink} .q-slider__inner { border-radius: 0; background: repeating-linear-gradient(90deg, #{$i} 0 2px, transparent 2px 5px) 0 50% / 100% 2px no-repeat; }
|
|
242
|
+
#{$ink} .q-slider--v .q-slider__inner { background: repeating-linear-gradient(180deg, #{$i} 0 2px, transparent 2px 5px) 50% 0 / 2px 100% no-repeat; }
|
|
243
|
+
#{$ink} .q-slider__selection { border-radius: 0; background: #{$i}; }
|
|
244
|
+
#{$ink} .q-slider__thumb { color: #{$i}; }
|
|
245
|
+
#{$ink} .q-slider__thumb-shape path { fill: #{$p}; stroke: #{$i}; stroke-width: 2.5; }
|
|
246
|
+
#{$ink} .q-slider__focus-ring { background: none; box-shadow: none; opacity: 1; }
|
|
247
|
+
#{$ink} .q-slider--focus .q-slider__focus-ring { outline: #{$focus}; outline-offset: 1px; border-radius: 50%; }
|
|
248
|
+
#{$ink} .q-slider { --qds-slider-label-bg: #{$i}; --qds-slider-label-text: #{$p}; --qds-slider-label-border: #{$i}; }
|
|
249
|
+
#{$ink} .q-slider__marker-labels { color: var(--qds-fg-default); }
|
|
250
|
+
#{$ink} .q-rating__icon { text-shadow: none; }
|
|
251
|
+
#{$ink} .q-option-group .q-separator { margin-block: 0.25rem; }
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@mixin tabs {
|
|
255
|
+
#{$ink} .q-tabs { color: var(--qds-fg-default); }
|
|
256
|
+
#{$ink} .q-tab {
|
|
257
|
+
min-height: var(--qds-tab-min-height);
|
|
258
|
+
padding-inline: 0.875rem;
|
|
259
|
+
border-radius: #{$hand-sm};
|
|
260
|
+
color: var(--qds-fg-default);
|
|
261
|
+
background: none;
|
|
262
|
+
opacity: 1;
|
|
263
|
+
transition: none;
|
|
264
|
+
}
|
|
265
|
+
@media (max-width: 30rem) { #{$ink} .q-tabs--horizontal .q-tab { padding-inline: 0.5rem; } }
|
|
266
|
+
#{$ink} .q-tab__label { font-family: #{$print}; font-weight: var(--qds-font-weight-medium); letter-spacing: 0.01em; text-transform: none; }
|
|
267
|
+
#{$ink} .q-tab > .q-focus-helper, #{$ink} .q-tab .q-tab__indicator { display: none; }
|
|
268
|
+
#{$ink} .q-tab:not(.disabled, .q-tab--active):hover { background: #{$dots}; }
|
|
269
|
+
// Active inverts, like a selected entry on an e-reader menu.
|
|
270
|
+
#{$ink} .q-tab.q-tab--active { color: #{$p}; background: #{$i}; }
|
|
271
|
+
#{$ink} .q-tab--active .q-tab__label { font-weight: var(--qds-font-weight-semibold); }
|
|
272
|
+
#{$ink} .q-tab:focus-visible { outline: #{$focus}; outline-offset: 2px; }
|
|
273
|
+
#{$ink} .q-tab.disabled { color: var(--qds-fg-disabled); opacity: 1; }
|
|
274
|
+
#{$ink} .q-tab .q-badge { box-shadow: 0 0 0 1.5px #{$p}; }
|
|
275
|
+
#{$ink} .q-tabs--horizontal:not(.q-tabs--dense) .q-tab { margin-block: 0.25rem; }
|
|
276
|
+
#{$ink} .q-tabs__arrow { color: #{$i}; text-shadow: none; }
|
|
277
|
+
#{$ink} .q-tabs--horizontal.qds-tabs--underline, #{$ink} .q-tabs--horizontal:has(+ .q-separator) { border-block-end: 0; }
|
|
278
|
+
#{$ink} .q-tab-panels { background: transparent; }
|
|
279
|
+
// A coloured tab bar is an inverted ink bar: the active tab then turns back to paper.
|
|
280
|
+
#{$ink} .q-tabs.bg-primary .q-tab.q-tab--active { color: #{$i}; background: #{$p}; }
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@mixin lists {
|
|
284
|
+
#{$ink} .q-item { border-radius: #{$hand-sm}; color: var(--qds-fg-default); }
|
|
285
|
+
#{$ink} .q-item::before { content: none; }
|
|
286
|
+
#{$ink} .q-item > .q-focus-helper { display: none; }
|
|
287
|
+
#{$ink} .q-item.q-item--clickable:not(.q-item--active, .disabled):hover,
|
|
288
|
+
#{$ink} .q-expansion-item__container > .q-item:not(.disabled):hover,
|
|
289
|
+
#{$ink} .q-tree__node-header:not(.q-tree__node--selected, .q-tree__node--disabled):hover { background: #{$dots}; }
|
|
290
|
+
#{$ink} .q-item:is(.q-item--active, .q-router-link--exact-active),
|
|
291
|
+
#{$ink} .q-tree__node--selected { color: #{$p}; background: #{$i}; }
|
|
292
|
+
#{$ink} .q-item:is(.q-item--active, .q-router-link--exact-active) :is(.q-item__label, .q-item__label--caption, .q-icon) { color: inherit; }
|
|
293
|
+
#{$ink} .q-item:focus-visible, #{$ink} .q-tree__node-header:focus-visible { outline: #{$focus}; outline-offset: -2px; }
|
|
294
|
+
#{$ink} .q-item__label--caption { color: var(--qds-fg-muted); }
|
|
295
|
+
#{$ink} .q-item__label--header { color: var(--qds-fg-default); font-weight: var(--qds-font-weight-semibold); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
|
|
296
|
+
#{$ink} .q-item.disabled { color: var(--qds-fg-disabled); opacity: 1; }
|
|
297
|
+
#{$ink} .q-list--bordered { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; }
|
|
298
|
+
#{$ink} .q-list--separator > .q-item-type + .q-item-type, #{$ink} .q-list--separator > .q-virtual-scroll__content > .q-item-type + .q-item-type { border-top: 1px dotted #{$i}; }
|
|
299
|
+
#{$ink} .q-expansion-item { border-radius: #{$hand-md}; }
|
|
300
|
+
#{$ink} .q-expansion-item--expanded > .q-expansion-item__container > .q-item { background: none; border-bottom: 1px dotted #{$i}; border-radius: 0; }
|
|
301
|
+
#{$ink} .q-expansion-item--popup > .q-expansion-item__container { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; box-shadow: none; }
|
|
302
|
+
#{$ink} .q-expansion-item--popup.q-expansion-item--expanded > .q-expansion-item__container { box-shadow: sheet(4px); }
|
|
303
|
+
#{$ink} .q-expansion-item__toggle-icon { color: #{$i}; }
|
|
304
|
+
// Tree and virtual rows: dotted connectors and rules.
|
|
305
|
+
#{$ink} .q-tree { color: var(--qds-fg-default); }
|
|
306
|
+
#{$ink} .q-tree__node-header { border-radius: #{$hand-sm}; }
|
|
307
|
+
#{$ink} .q-tree__node-header::before, #{$ink} .q-tree__node::after, #{$ink} .q-tree__children::before { border-color: #{$i}; border-style: dotted; }
|
|
308
|
+
#{$ink} .q-tree__children::before { width: 1.5px; border: 0; background: #{$rule-dotted-down}; color: #{$i}; }
|
|
309
|
+
#{$ink} .q-tree__node--selected::after { content: none; }
|
|
310
|
+
#{$ink} .q-tree__node--selected :is(.q-tree__node-header-content, .q-tree__arrow, .q-tree__icon, .q-icon) { color: inherit; }
|
|
311
|
+
// Checkboxes inside an inverted row are drawn in paper: an empty frame, or a paper box with an ink tick.
|
|
312
|
+
#{$ink} :is(.q-tree__node--selected, tr.selected, .q-item--active) .q-checkbox__bg { border-color: #{$p}; background: transparent; }
|
|
313
|
+
#{$ink} :is(.q-tree__node--selected, tr.selected, .q-item--active) :is(.q-checkbox__inner--truthy, .q-checkbox__inner--indet) .q-checkbox__bg { background: #{$p}; }
|
|
314
|
+
#{$ink} :is(.q-tree__node--selected, tr.selected, .q-item--active) .q-checkbox__svg { color: #{$i}; }
|
|
315
|
+
#{$ink} .q-tree__node--disabled { color: var(--qds-fg-disabled); opacity: 1; }
|
|
316
|
+
#{$ink} :is(.q-virtual-scroll__content > .q-item + .q-item, .qds-virtual-row + .qds-virtual-row) { border-top: 1px dotted #{$i}; border-radius: 0; }
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@mixin surfaces {
|
|
320
|
+
#{$ink} :is(.q-card, .qds-card) { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; box-shadow: none; color: var(--qds-fg-default); backdrop-filter: none; }
|
|
321
|
+
#{$ink} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile) { border-width: 1px; }
|
|
322
|
+
#{$ink} .q-card--flat:not(.q-card--bordered) { border-style: dotted; border-width: 1px; }
|
|
323
|
+
#{$ink} .q-card > .q-separator, #{$ink} .q-card__actions:not(:first-child) { border-top: 0; }
|
|
324
|
+
#{$ink} .qds-glass { border: #{$line} solid #{$i}; background: #{$p}; backdrop-filter: none; }
|
|
325
|
+
#{$ink} .q-card--dark, #{$ink} .q-card.bg-primary { border-color: #{$i}; }
|
|
326
|
+
// A dark sheet on a light page is the same ink inverted: paper text and strokes, no tints, the dark red.
|
|
327
|
+
.qds-theme-light.qds-variant-ink #{$local-dark}, .qds-theme-light .qds-variant-ink #{$local-dark} {
|
|
328
|
+
@each $token in fg-muted, fg-brand, fg-primary, fg-secondary, fg-accent, fg-positive, fg-warning, fg-info, stroke-strong, stroke-default, stroke-subtle, stroke-divider, stroke-focus, control-stroke-default, control-stroke-strong, control-stroke-secondary, card-stroke, material-stroke, tab-active-rail {
|
|
329
|
+
--qds-#{$token}: var(--qds-surface-0);
|
|
330
|
+
}
|
|
331
|
+
@each $token in bg-surface-1, bg-surface-2, bg-layer, bg-card-hover, control-fill-hover, control-fill-pressed, control-fill-input-active, surface-brand-soft, surface-accent-soft, surface-positive-soft, surface-negative-soft, surface-warning-soft, surface-info-soft, segmented-track-bg, surface-focus-block {
|
|
332
|
+
--qds-#{$token}: var(--qds-text-strong);
|
|
333
|
+
}
|
|
334
|
+
@each $token in state-hover, state-pressed, state-selected {
|
|
335
|
+
--qds-#{$token}: transparent;
|
|
336
|
+
}
|
|
337
|
+
--qds-color-negative: var(--_qds-danger-inverse);
|
|
338
|
+
--qds-fg-negative: var(--_qds-danger-inverse);
|
|
339
|
+
--qds-stroke-error: var(--_qds-danger-inverse);
|
|
340
|
+
}
|
|
341
|
+
// App chrome: paper bars ruled off in ink.
|
|
342
|
+
#{$ink} :is(.q-header, .q-footer, .q-toolbar) { color: var(--qds-fg-default); background: #{$p}; box-shadow: none; backdrop-filter: none; }
|
|
343
|
+
#{$ink} .q-header { border-bottom: #{$line} solid #{$i}; }
|
|
344
|
+
#{$ink} .q-footer { border-top: #{$line} solid #{$i}; }
|
|
345
|
+
#{$ink} :is(.q-header, .q-footer) .q-toolbar { background: transparent; }
|
|
346
|
+
#{$ink} .q-toolbar__title { font-weight: var(--qds-font-weight-semibold); letter-spacing: 0; }
|
|
347
|
+
#{$ink} .q-bar { border-bottom: 1px solid #{$i}; }
|
|
348
|
+
#{$ink} .q-bar:not(.q-bar--dark) { color: var(--qds-fg-default); background: #{$p}; }
|
|
349
|
+
#{$ink} .q-drawer { color: var(--qds-fg-default); background: #{$p}; box-shadow: none; }
|
|
350
|
+
#{$ink} .q-drawer.q-drawer--bordered, #{$ink} .q-drawer--left.q-drawer--bordered { border-color: #{$i}; border-width: 0 #{$line} 0 0; }
|
|
351
|
+
#{$ink} .q-drawer--right.q-drawer--bordered { border-width: 0 0 0 #{$line}; }
|
|
352
|
+
#{$ink} .q-layout__shadow::after { box-shadow: none; }
|
|
353
|
+
#{$ink} .q-drawer .q-item { margin-block: 1px; }
|
|
354
|
+
#{$ink} .q-drawer__backdrop, #{$ink} .q-dialog__backdrop { background: #{repeating-linear-gradient(-45deg, tone(30%, var(--qds-text-strong)) 0 1px, transparent 1px 5px)}; backdrop-filter: none; }
|
|
355
|
+
#{$ink} .q-breadcrumbs, #{$ink} .q-breadcrumbs__el { color: var(--qds-fg-default); }
|
|
356
|
+
#{$ink} .q-breadcrumbs a.q-breadcrumbs__el { text-decoration: underline 1px; text-underline-offset: 0.2em; background: none; }
|
|
357
|
+
#{$ink} .q-breadcrumbs a.q-breadcrumbs__el:hover { text-decoration-thickness: 2px; background: none; }
|
|
358
|
+
#{$ink} .q-breadcrumbs__separator { color: #{$i}; }
|
|
359
|
+
#{$ink} .q-banner { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; box-shadow: none; color: var(--qds-fg-default); }
|
|
360
|
+
#{$ink} .q-banner:is(.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-negative, .bg-warning, .bg-info, .text-primary, .text-secondary, .text-accent, .text-positive, .text-negative, .text-warning, .text-info) { border: #{$line} solid #{$i}; }
|
|
361
|
+
#{$ink} .q-banner__avatar > .q-icon { padding: 0.25rem; border: #{$line} solid currentColor; border-radius: #{$hand-sm}; }
|
|
362
|
+
#{$ink} .q-banner:is(.bg-negative, .text-negative) { border-color: #{$r}; }
|
|
363
|
+
#{$ink} .q-banner:is(.bg-negative, .text-negative) .q-banner__avatar { color: #{$r}; }
|
|
364
|
+
#{$ink} .q-splitter__separator { background: #{$i}; }
|
|
365
|
+
#{$ink} .q-splitter--vertical > .q-splitter__separator { width: #{$line}; }
|
|
366
|
+
#{$ink} .q-splitter--horizontal > .q-splitter__separator { height: #{$line}; }
|
|
367
|
+
#{$ink} .q-scrollarea__thumb { background: #{$i}; border-radius: 0; opacity: 0.7; }
|
|
368
|
+
#{$ink} .q-scrollarea__bar { background: none; }
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@mixin overlays {
|
|
372
|
+
#{$ink} .q-menu {
|
|
373
|
+
padding: 0.375rem;
|
|
374
|
+
border: #{$line} solid #{$i};
|
|
375
|
+
border-radius: #{$hand-md};
|
|
376
|
+
background: #{$p};
|
|
377
|
+
color: var(--qds-fg-default);
|
|
378
|
+
box-shadow: sheet(5px);
|
|
379
|
+
backdrop-filter: none;
|
|
380
|
+
}
|
|
381
|
+
#{$ink} .q-menu .q-item { min-height: var(--qds-menu-item-min-height); }
|
|
382
|
+
#{$ink} .q-menu .q-item__label--header { padding-block: 0.5rem 0.25rem; text-decoration: underline 1px; text-underline-offset: 0.3em; }
|
|
383
|
+
#{$ink} .q-menu .q-separator { margin-block: 0.25rem; }
|
|
384
|
+
#{$ink} .q-tooltip { padding: 0.375rem 0.625rem; border-radius: #{$hand-sm}; color: var(--qds-surface-0); background: var(--qds-text-strong); box-shadow: none; font-size: 0.8125rem; backdrop-filter: none; }
|
|
385
|
+
#{$ink} .q-dialog__inner > :is(.q-card, .q-bottom-sheet, div > .q-card) { border: 2px solid #{$i}; box-shadow: sheet(6px); }
|
|
386
|
+
#{$ink} .q-dialog__inner--maximized > .q-card { box-shadow: none; border-radius: 0; }
|
|
387
|
+
#{$ink} .q-dialog__inner > .q-bottom-sheet { border-width: 2px 2px 0; box-shadow: none; }
|
|
388
|
+
#{$ink} .q-dialog .q-card__section .text-h6 { font-weight: var(--qds-font-weight-semibold); }
|
|
389
|
+
#{$ink} .q-notification {
|
|
390
|
+
--qds-notify-bg: #{$p};
|
|
391
|
+
--qds-notify-accent: #{$i};
|
|
392
|
+
--qds-notify-on-accent: #{$p};
|
|
393
|
+
--qds-notify-wash: #{$p};
|
|
394
|
+
border: #{$line} solid #{$i};
|
|
395
|
+
border-radius: #{$hand-md};
|
|
396
|
+
box-shadow: sheet(4px);
|
|
397
|
+
backdrop-filter: none;
|
|
398
|
+
}
|
|
399
|
+
#{$ink} .q-notification :is(.q-notification__message, .q-notification__caption, .q-notification__icon, .q-btn) { color: #{$i}; }
|
|
400
|
+
#{$ink} .q-notification.bg-negative { --qds-notify-accent: #{$r}; border-color: #{$r}; }
|
|
401
|
+
#{$ink} .q-notification.bg-negative :is(.q-notification__message, .q-notification__caption, .q-notification__icon, .q-btn) { color: #{$r}; }
|
|
402
|
+
#{$ink} .q-notification__badge { color: #{$p}; background: #{$i}; box-shadow: none; }
|
|
403
|
+
#{$ink} .q-loading { color: #{$i}; }
|
|
404
|
+
#{$ink} .q-loading .q-loading__backdrop { background: #{repeating-linear-gradient(-45deg, tone(30%, var(--qds-text-strong)) 0 1px, var(--qds-surface-1) 1px 5px)}; opacity: 1; }
|
|
405
|
+
#{$ink} .q-loading__box { border: 2px solid var(--qds-text-strong); border-radius: #{$hand-md}; color: var(--qds-text-strong); background: var(--qds-surface-0); box-shadow: sheet(5px, var(--qds-text-strong)); }
|
|
406
|
+
#{$ink} .q-bottom-sheet__item:hover { background: #{$dots}; }
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
@mixin data {
|
|
410
|
+
#{$ink} .q-table__container { --qds-table-divider: #{$i}; --qds-table-header-bg: transparent; border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; box-shadow: none; }
|
|
411
|
+
#{$ink} .q-table__container.q-table--flat:not(.q-table--bordered) { border-width: 0; }
|
|
412
|
+
#{$ink} .q-table thead tr th { border-bottom: #{$line} solid #{$i}; color: var(--qds-fg-default); font-weight: var(--qds-font-weight-semibold); background: transparent; }
|
|
413
|
+
#{$ink} .q-table tbody td { border-bottom: 1px dotted #{$i}; }
|
|
414
|
+
#{$ink} .q-table tbody tr:last-child > td { border-bottom: 0; }
|
|
415
|
+
#{$ink} .q-table tbody tr:not(.selected):hover > td { background: #{$dots}; }
|
|
416
|
+
#{$ink} .q-table tbody tr > td::before, #{$ink} .q-table tbody tr > td::after { content: none; }
|
|
417
|
+
#{$ink} .q-table tbody tr.selected > td { color: #{$p}; background: #{$i}; box-shadow: none; }
|
|
418
|
+
#{$ink} .q-table__bottom { border-top: 1px dotted #{$i}; color: var(--qds-fg-default); }
|
|
419
|
+
#{$ink} .q-table__top { color: var(--qds-fg-default); }
|
|
420
|
+
#{$ink} .q-markup-table { overflow: hidden; }
|
|
421
|
+
#{$ink} .q-pagination .q-btn { border-color: transparent; }
|
|
422
|
+
#{$ink} .q-pagination .q-btn[aria-current='page'] { border-color: #{$i}; border-radius: #{$hand-sm}; }
|
|
423
|
+
// Progress and loading: crisp frames, solid ink, no shimmer.
|
|
424
|
+
#{$ink} :is(.q-ajax-bar, .q-loading-bar) { background: var(--qds-text-strong); box-shadow: none; }
|
|
425
|
+
#{$ink} .q-linear-progress { height: 0.5rem; border: 1px solid #{$i}; border-radius: 0.25rem 0.15rem 0.25rem 0.1rem; color: #{$i}; font-size: inherit; }
|
|
426
|
+
#{$ink} .q-linear-progress__track { background: transparent; opacity: 1; }
|
|
427
|
+
#{$ink} .q-linear-progress__model { border-radius: 0; background: currentColor; }
|
|
428
|
+
#{$ink} .q-linear-progress--striped .q-linear-progress__model { background-image: #{$hatch}; }
|
|
429
|
+
#{$ink} .q-circular-progress { color: #{$i}; }
|
|
430
|
+
#{$ink} .q-circular-progress__track { stroke: #{$i}; opacity: 1; stroke-dasharray: 1 3; }
|
|
431
|
+
#{$ink} .q-knob { color: #{$i}; }
|
|
432
|
+
#{$ink} .q-skeleton { background: #{$hatch}; color: var(--qds-text-strong); border-radius: #{$hand-sm}; animation: none; }
|
|
433
|
+
#{$ink} .q-skeleton::before { content: none; }
|
|
434
|
+
#{$ink} .q-skeleton--type-circle, #{$ink} .q-skeleton--type-QAvatar, #{$ink} .q-skeleton--type-QRadio { border-radius: #{$hand-round}; }
|
|
435
|
+
#{$ink} .q-skeleton--bordered { border: 1px dotted var(--qds-text-strong); }
|
|
436
|
+
#{$ink} .q-spinner { color: inherit; }
|
|
437
|
+
#{$ink} .q-inner-loading { background: #{$p}; backdrop-filter: none; }
|
|
438
|
+
#{$ink} .q-inner-loading .q-spinner { color: #{$i}; }
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
@mixin pickers {
|
|
442
|
+
#{$ink} :is(.q-date, .q-time, .q-color-picker) { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; box-shadow: none; }
|
|
443
|
+
#{$ink} :is(.q-date__header, .q-time__header) { color: #{$p}; background: #{$i}; border-radius: 0; }
|
|
444
|
+
#{$ink} :is(.q-date__header, .q-time__header) :is(div, span, .q-btn) { color: inherit; }
|
|
445
|
+
#{$ink} .q-date__calendar-item > .q-btn, #{$ink} :is(.q-date__months-item, .q-date__years-item) > .q-btn { border-color: transparent; border-radius: #{$hand-sm}; }
|
|
446
|
+
#{$ink} .q-date__calendar-item > .q-btn.bg-primary, #{$ink} :is(.q-date__months-item, .q-date__years-item) > .q-btn.bg-primary { border-color: #{$i}; }
|
|
447
|
+
#{$ink} .q-date__today { border-color: #{$i}; box-shadow: none; }
|
|
448
|
+
#{$ink} .q-date__range::before, #{$ink} :is(.q-date__range-from, .q-date__range-to)::before { background: #{$hatch}; color: #{$i}; }
|
|
449
|
+
#{$ink} .q-date__edit-range::after { border-color: #{$i}; }
|
|
450
|
+
#{$ink} .q-time__clock { border: #{$line} solid #{$i}; background: #{$p}; }
|
|
451
|
+
#{$ink} .q-time__clock-pointer { color: #{$i}; background: #{$i}; }
|
|
452
|
+
#{$ink} .q-time__clock-pointer::before, #{$ink} .q-time__clock-pointer::after { background: #{$i}; }
|
|
453
|
+
#{$ink} .q-time__clock-position--active { color: #{$p}; background: #{$i}; }
|
|
454
|
+
#{$ink} .q-time__clock-position--disable { opacity: 0.5; }
|
|
455
|
+
#{$ink} .q-time__header-label .q-time__link { opacity: 0.7; }
|
|
456
|
+
#{$ink} .q-time__header-label .q-time__link--active { opacity: 1; text-decoration: underline 2px; text-underline-offset: 0.15em; }
|
|
457
|
+
#{$ink} .q-color-picker__header-tabs .q-tab--active { color: #{$p}; }
|
|
458
|
+
#{$ink} .q-editor { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; }
|
|
459
|
+
#{$ink} .q-editor__toolbar { border-bottom: #{$line} solid #{$i}; background: transparent; }
|
|
460
|
+
#{$ink} .q-editor__toolbar-group + .q-editor__toolbar-group::before { background: #{$rule-dotted-down}; }
|
|
461
|
+
#{$ink} .q-editor__toolbar .q-btn { border-color: transparent; }
|
|
462
|
+
#{$ink} .q-editor--fullscreen { box-shadow: none; }
|
|
463
|
+
#{$ink} .q-popup-edit { border: #{$line} solid #{$i}; box-shadow: sheet(5px); }
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@mixin flows {
|
|
467
|
+
#{$ink} :is(.q-stepper, .q-uploader, .q-carousel) { border: #{$line} solid #{$i}; border-radius: #{$hand-md}; background: #{$p}; box-shadow: none; }
|
|
468
|
+
#{$ink} .q-stepper--flat:not(.q-stepper--bordered) { border-style: dotted; border-width: 1px; }
|
|
469
|
+
#{$ink} .q-stepper__header--border { border-bottom: #{$line} solid #{$i}; }
|
|
470
|
+
#{$ink} .q-stepper__tab { color: var(--qds-fg-default); }
|
|
471
|
+
#{$ink} .q-stepper__dot { border: #{$line} solid #{$i}; border-radius: #{$hand-round}; color: #{$i}; background: #{$p}; box-shadow: none; }
|
|
472
|
+
#{$ink} :is(.q-stepper__tab--active, .q-stepper__tab--done, .q-stepper__tab--error) .q-stepper__dot { color: #{$p}; background: #{$i}; }
|
|
473
|
+
// Error takes the red fill and a double ring.
|
|
474
|
+
#{$ink} .q-stepper__tab--error .q-stepper__dot { --qds-color-negative: #{$r}; --qds-text-on-negative: #{$p}; border-color: #{$r}; box-shadow: 0 0 0 2px #{$p}, 0 0 0 3.5px #{$r}; }
|
|
475
|
+
#{$ink} .q-stepper__tab--error :is(.q-stepper__title, .q-stepper__caption) { color: #{$r}; font-weight: var(--qds-font-weight-semibold); }
|
|
476
|
+
#{$ink} .q-stepper__tab--active .q-stepper__title { font-weight: var(--qds-font-weight-semibold); text-decoration: underline 1.5px; text-underline-offset: 0.25em; }
|
|
477
|
+
#{$ink} .q-stepper__tab--disabled { color: var(--qds-fg-disabled); }
|
|
478
|
+
#{$ink} .q-stepper__tab--disabled .q-stepper__dot { border-style: dashed; border-color: var(--qds-fg-disabled); color: var(--qds-fg-disabled); }
|
|
479
|
+
#{$ink} .q-stepper__line::before, #{$ink} .q-stepper__line::after, #{$ink} .q-stepper--vertical .q-stepper__dot::before, #{$ink} .q-stepper--vertical .q-stepper__dot::after { background: #{$rule-dotted}; color: #{$i}; }
|
|
480
|
+
#{$ink} .q-stepper--vertical .q-stepper__dot::before, #{$ink} .q-stepper--vertical .q-stepper__dot::after { background: #{$rule-dotted-down}; width: 1.5px; }
|
|
481
|
+
#{$ink} .q-stepper--horizontal .q-stepper__line::before, #{$ink} .q-stepper--horizontal .q-stepper__line::after { height: 1.5px; }
|
|
482
|
+
#{$ink} .q-stepper__tab .q-focus-helper { display: none; }
|
|
483
|
+
#{$ink} .q-stepper__tab--navigation:hover { background: #{$dots}; }
|
|
484
|
+
#{$ink} .q-stepper--dark, #{$ink} .q-stepper.bg-primary { border-color: #{$i}; }
|
|
485
|
+
#{$ink} .q-timeline { color: var(--qds-fg-default); }
|
|
486
|
+
#{$ink} .q-timeline__dot::after { width: 1.5px; background: #{$rule-dotted-down}; color: #{$i}; opacity: 1; }
|
|
487
|
+
#{$ink} .q-timeline__dot::before { border: #{$line} solid #{$i}; border-radius: #{$hand-round}; background: #{$p}; box-shadow: none; }
|
|
488
|
+
#{$ink} .q-timeline__dot .q-icon { color: #{$i}; }
|
|
489
|
+
#{$ink} .q-timeline__subtitle { color: var(--qds-fg-muted); opacity: 1; }
|
|
490
|
+
#{$ink} .q-timeline__title { font-weight: var(--qds-font-weight-semibold); }
|
|
491
|
+
#{$ink} .q-uploader__header { border-bottom: #{$line} solid #{$i}; color: var(--qds-fg-default); background: #{$p}; }
|
|
492
|
+
#{$ink} .q-uploader__file { border: 1px solid #{$i}; border-radius: #{$hand-sm}; background: #{$p}; box-shadow: none; }
|
|
493
|
+
#{$ink} .q-uploader__file--failed { border-style: double; border-width: 3px; border-color: #{$r}; color: #{$r}; }
|
|
494
|
+
#{$ink} .q-uploader__file--uploaded { border-style: dashed; }
|
|
495
|
+
#{$ink} .q-uploader__file::before { background: #{$hatch}; color: #{$i}; }
|
|
496
|
+
#{$ink} .q-uploader--disable { border-style: dashed; }
|
|
497
|
+
#{$ink} .q-carousel__navigation .q-btn { border-color: transparent; }
|
|
498
|
+
#{$ink} .q-carousel__control .q-btn, #{$ink} .q-carousel__arrow .q-btn { color: #{$i}; background: #{$p}; border-color: #{$i}; }
|
|
499
|
+
#{$ink} .q-carousel__navigation-icon--active { color: #{$i}; }
|
|
500
|
+
#{$ink} .q-message-text { border-radius: #{$hand-md}; }
|
|
501
|
+
#{$ink} .q-message-text--received { border: #{$line} solid #{$i}; color: #{$i}; background: #{$p}; }
|
|
502
|
+
#{$ink} .q-message-text--sent { border: #{$line} solid #{$i}; color: #{$p}; background: #{$i}; }
|
|
503
|
+
#{$ink} .q-message-text::before { display: none; }
|
|
504
|
+
#{$ink} .q-message-text-content--received { color: #{$i}; }
|
|
505
|
+
#{$ink} .q-message-text-content--sent { color: #{$p}; }
|
|
506
|
+
#{$ink} .q-message-name, #{$ink} .q-message-stamp { color: inherit; opacity: 0.85; }
|
|
507
|
+
#{$ink} .q-slide-item__left, #{$ink} .q-slide-item__right { color: #{$p}; background: #{$i}; }
|
|
508
|
+
#{$ink} .q-slide-item__content { background: #{$p}; }
|
|
509
|
+
#{$ink} .q-pull-to-refresh__puller { border: #{$line} solid #{$i}; color: #{$i}; background: #{$p}; box-shadow: none; }
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@mixin fallbacks {
|
|
513
|
+
@media (forced-colors: active) {
|
|
514
|
+
#{$ink} :is(.q-btn, .q-tab, .q-item, .q-chip, .q-tree__node-header, .q-table tbody td)::before { background: none; }
|
|
515
|
+
#{$ink} :is(.q-menu, .q-notification, .q-dialog__inner > .q-card, .q-popup-edit, .q-loading__box) { box-shadow: none; }
|
|
516
|
+
#{$ink} :is(.q-separator, .q-slider__track) { background: CanvasText; }
|
|
517
|
+
#{$ink} :is(.q-skeleton, .q-drawer__backdrop, .q-dialog__backdrop) { background: Canvas; }
|
|
518
|
+
#{$ink} :is(.q-item--active, .q-tab--active, .q-tree__node--selected, tr.selected > td) { color: HighlightText; background: Highlight; forced-color-adjust: none; }
|
|
519
|
+
}
|
|
520
|
+
@media (prefers-reduced-motion: reduce) {
|
|
521
|
+
#{$ink} .q-btn:not(.disabled):active { transform: none; }
|
|
522
|
+
#{$ink} :is(.qds-media-color-reveal :is(img, video, .q-carousel__slide), :is(img, video, .q-carousel__slide).qds-media-color-reveal) { animation: none; }
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@mixin qwindow {
|
|
527
|
+
// The wrapper writes border width and style inline; the width follows the control token.
|
|
528
|
+
// A short scope keeps the optional extension inside its byte cap; it is emitted after the shared window rules.
|
|
529
|
+
.qds-variant-ink .qds-window { --qds-border-width-control: 2px; --qds-font-family-display: #{$print}; border-color: #{$i}; }
|
|
530
|
+
.qds-variant-ink .qds-window--active .qds-window__titlebar { color: #{$p}; background: #{$i}; }
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
@mixin styles {
|
|
534
|
+
@include type;
|
|
535
|
+
@include italic-hand;
|
|
536
|
+
@include button;
|
|
537
|
+
@include chips;
|
|
538
|
+
@include field;
|
|
539
|
+
@include selection;
|
|
540
|
+
@include tabs;
|
|
541
|
+
@include lists;
|
|
542
|
+
@include surfaces;
|
|
543
|
+
@include overlays;
|
|
544
|
+
@include data;
|
|
545
|
+
@include pickers;
|
|
546
|
+
@include flows;
|
|
547
|
+
@include roles;
|
|
548
|
+
@include fallbacks;
|
|
549
|
+
}
|