unocss-preset-quasar 0.1.6 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/colors.unocss.js +78 -2
- package/dist/core/index.js +4 -3
- package/dist/core/shape.unocss.js +11 -0
- package/dist/index.js +2 -4
- package/dist/styles/md2/components/QBtn.unocss.js +2 -2
- package/dist/styles/md3/components/QBtn.unocss.js +8 -8
- package/dist/styles/md3/components/QBtnToggle.unocss.js +4 -4
- package/dist/styles/md3/components/QCard.unocss.js +3 -3
- package/dist/styles/md3/components/QCheckbox.unocss.js +4 -4
- package/dist/styles/md3/components/QChip.unocss.js +7 -7
- package/dist/styles/md3/components/QCircularProgress.unocss.js +1 -1
- package/dist/styles/md3/components/QDate.unocss.js +14 -14
- package/dist/styles/md3/components/QDrawer.unocss.js +3 -4
- package/dist/styles/md3/components/QField.unocss.js +19 -18
- package/dist/styles/md3/components/QIcon.unocss.js +1 -1
- package/dist/styles/md3/components/QItem.unocss.js +2 -2
- package/dist/styles/md3/components/QLayout.unocss.js +1 -1
- package/dist/styles/md3/components/QMenu.unocss.js +1 -1
- package/dist/styles/md3/components/QRadio.unocss.js +2 -2
- package/dist/styles/md3/components/QSlider.unocss.js +2 -2
- package/dist/styles/md3/components/QStepper.unocss.js +3 -3
- package/dist/styles/md3/components/QTabs.unocss.js +2 -2
- package/dist/styles/md3/components/QTime.unocss.js +11 -11
- package/dist/styles/md3/components/QToggle.unocss.js +6 -6
- package/dist/theme.js +45 -2
- package/dist/types/core/colors.unocss.d.ts +3 -2
- package/dist/types/core/shape.unocss.d.ts +4 -0
- package/dist/types/theme.d.ts +14 -2
- package/package.json +13 -9
- package/src/core/colors.unocss.ts +80 -3
- package/src/core/index.ts +8 -2
- package/src/core/shape.unocss.ts +15 -0
- package/src/index.ts +2 -5
- package/src/styles/md2/components/QBtn.unocss.ts +2 -2
- package/src/styles/md3/components/QBtn.unocss.ts +8 -8
- package/src/styles/md3/components/QBtnToggle.unocss.ts +4 -4
- package/src/styles/md3/components/QCard.unocss.ts +3 -3
- package/src/styles/md3/components/QCheckbox.unocss.ts +4 -4
- package/src/styles/md3/components/QChip.unocss.ts +7 -7
- package/src/styles/md3/components/QCircularProgress.unocss.ts +1 -1
- package/src/styles/md3/components/QDate.unocss.ts +14 -14
- package/src/styles/md3/components/QDrawer.unocss.ts +3 -4
- package/src/styles/md3/components/QField.unocss.ts +19 -18
- package/src/styles/md3/components/QIcon.unocss.ts +1 -1
- package/src/styles/md3/components/QItem.unocss.ts +2 -2
- package/src/styles/md3/components/QLayout.unocss.ts +1 -1
- package/src/styles/md3/components/QMenu.unocss.ts +1 -1
- package/src/styles/md3/components/QRadio.unocss.ts +2 -2
- package/src/styles/md3/components/QSlider.unocss.ts +2 -2
- package/src/styles/md3/components/QStepper.unocss.ts +3 -3
- package/src/styles/md3/components/QTabs.unocss.ts +2 -2
- package/src/styles/md3/components/QTime.unocss.ts +11 -11
- package/src/styles/md3/components/QToggle.unocss.ts +6 -6
- package/src/theme.ts +60 -2
|
@@ -9,9 +9,85 @@ const preflights = [
|
|
|
9
9
|
--q-negative: ${theme.colors.negative};
|
|
10
10
|
--q-info: ${theme.colors.info};
|
|
11
11
|
--q-warning: ${theme.colors.warning};
|
|
12
|
-
--q-dark: ${theme.colors.dark};
|
|
12
|
+
--q-dark: ${theme.colors.dark.primary};
|
|
13
13
|
--q-dark-page: ${theme.colors['dark-page']};
|
|
14
|
+
--light-primary: ${theme.colors.light.primary};
|
|
15
|
+
--light-on-primary: ${theme.colors.light.onPrimary};
|
|
16
|
+
--light-primary-container: ${theme.colors.light.primaryContainer};
|
|
17
|
+
--light-on-primary-container: ${theme.colors.light.onPrimaryContainer};
|
|
18
|
+
--light-secondary: ${theme.colors.light.secondary};
|
|
19
|
+
--light-on-secondary: ${theme.colors.light.onSecondary};
|
|
20
|
+
--light-secondary-container: ${theme.colors.light.secondaryContainer};
|
|
21
|
+
--light-on-secondary-container: ${theme.colors.light.onSecondaryContainer};
|
|
22
|
+
--light-tertiary: ${theme.colors.light.tertiary};
|
|
23
|
+
--light-on-tertiary: ${theme.colors.light.onTertiary};
|
|
24
|
+
--light-tertiary-container: ${theme.colors.light.tertiaryContainer};
|
|
25
|
+
--light-on-tertiary-container: ${theme.colors.light.onTertiaryContainer};
|
|
26
|
+
--light-error: ${theme.colors.light.error};
|
|
27
|
+
--light-on-error: ${theme.colors.light.onError};
|
|
28
|
+
--light-error-container: ${theme.colors.light.errorContainer};
|
|
29
|
+
--light-on-error-container: ${theme.colors.light.onErrorContainer};
|
|
30
|
+
--light-background: ${theme.colors.light.background};
|
|
31
|
+
--light-on-background: ${theme.colors.light.onBackground};
|
|
32
|
+
--light-surface: ${theme.colors.light.surface};
|
|
33
|
+
--light-on-surface: ${theme.colors.light.onSurface};
|
|
34
|
+
--light-surface-variant: ${theme.colors.light.surfaceVariant};
|
|
35
|
+
--light-on-surface-variant: ${theme.colors.light.onSurfaceVariant};
|
|
36
|
+
--light-outline: ${theme.colors.light.outline};
|
|
37
|
+
--light-outline-variant: ${theme.colors.light.outlineVariant};
|
|
38
|
+
--light-shadow: ${theme.colors.light.shadow};
|
|
39
|
+
--light-scrim: ${theme.colors.light.scrim};
|
|
40
|
+
--light-inverse-surface: ${theme.colors.light.inverseSurface};
|
|
41
|
+
--light-inverse-on-surface: ${theme.colors.light.inverseOnSurface};
|
|
42
|
+
--light-inverse-primary: ${theme.colors.light.inversePrimary};
|
|
43
|
+
--light-surface-dim: ${theme.colors.light.surfaceDim};
|
|
44
|
+
--light-surface-bright: ${theme.colors.light.surfaceBright};
|
|
45
|
+
--light-surface-container-lowest: ${theme.colors.light.surfaceContainerLowest};
|
|
46
|
+
--light-surface-container-low: ${theme.colors.light.surfaceContainerLow};
|
|
47
|
+
--light-surface-container: ${theme.colors.light.surfaceContainer};
|
|
48
|
+
--light-surface-container-high: ${theme.colors.light.surfaceContainerHigh};
|
|
49
|
+
--light-surface-container-highest: ${theme.colors.light.surfaceContainerHighest};
|
|
50
|
+
--dark-primary: ${theme.colors.dark.primary};
|
|
51
|
+
--dark-on-primary: ${theme.colors.dark.onPrimary};
|
|
52
|
+
--dark-primary-container: ${theme.colors.dark.primaryContainer};
|
|
53
|
+
--dark-on-primary-container: ${theme.colors.dark.onPrimaryContainer};
|
|
54
|
+
--dark-secondary: ${theme.colors.dark.secondary};
|
|
55
|
+
--dark-on-secondary: ${theme.colors.dark.onSecondary};
|
|
56
|
+
--dark-secondary-container: ${theme.colors.dark.secondaryContainer};
|
|
57
|
+
--dark-on-secondary-container: ${theme.colors.dark.onSecondaryContainer};
|
|
58
|
+
--dark-tertiary: ${theme.colors.dark.tertiary};
|
|
59
|
+
--dark-on-tertiary: ${theme.colors.dark.onTertiary};
|
|
60
|
+
--dark-tertiary-container: ${theme.colors.dark.tertiaryContainer};
|
|
61
|
+
--dark-on-tertiary-container: ${theme.colors.dark.onTertiaryContainer};
|
|
62
|
+
--dark-error: ${theme.colors.dark.error};
|
|
63
|
+
--dark-on-error: ${theme.colors.dark.onError};
|
|
64
|
+
--dark-error-container: ${theme.colors.dark.errorContainer};
|
|
65
|
+
--dark-on-error-container: ${theme.colors.dark.onErrorContainer};
|
|
66
|
+
--dark-background: ${theme.colors.dark.background};
|
|
67
|
+
--dark-on-background: ${theme.colors.dark.onBackground};
|
|
68
|
+
--dark-surface: ${theme.colors.dark.surface};
|
|
69
|
+
--dark-on-surface: ${theme.colors.dark.onSurface};
|
|
70
|
+
--dark-surface-variant: ${theme.colors.dark.surfaceVariant};
|
|
71
|
+
--dark-on-surface-variant: ${theme.colors.dark.onSurfaceVariant};
|
|
72
|
+
--dark-outline: ${theme.colors.dark.outline};
|
|
73
|
+
--dark-outline-variant: ${theme.colors.dark.outlineVariant};
|
|
74
|
+
--dark-shadow: ${theme.colors.dark.shadow};
|
|
75
|
+
--dark-scrim: ${theme.colors.dark.scrim};
|
|
76
|
+
--dark-inverse-surface: ${theme.colors.dark.inverseSurface};
|
|
77
|
+
--dark-inverse-on-surface: ${theme.colors.dark.inverseOnSurface};
|
|
78
|
+
--dark-inverse-primary: ${theme.colors.dark.inversePrimary};
|
|
79
|
+
--dark-surface-dim: ${theme.colors.dark.surfaceDim};
|
|
80
|
+
--dark-surface-bright: ${theme.colors.dark.surfaceBright};
|
|
81
|
+
--dark-surface-container-lowest: ${theme.colors.dark.surfaceContainerLowest};
|
|
82
|
+
--dark-surface-container-low: ${theme.colors.dark.surfaceContainerLow};
|
|
83
|
+
--dark-surface-container: ${theme.colors.dark.surfaceContainer};
|
|
84
|
+
--dark-surface-container-high: ${theme.colors.dark.surfaceContainerHigh};
|
|
85
|
+
--dark-surface-container-highest: ${theme.colors.dark.surfaceContainerHighest};
|
|
14
86
|
}`
|
|
15
87
|
}
|
|
16
88
|
];
|
|
17
|
-
|
|
89
|
+
const shortcuts = [
|
|
90
|
+
[/^text-(primary|secondary|accent)$/, ([, c], { theme }) => `text-$q-${c}`],
|
|
91
|
+
[/^bg-(primary|secondary|accent)$/, ([, c], { theme }) => `bg-$q-${c}`]
|
|
92
|
+
];
|
|
93
|
+
export { preflights, shortcuts };
|
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { preflights as ColorPreflights } from './colors.unocss.js';
|
|
1
|
+
import { preflights as ColorPreflights, shortcuts as ColorShortcuts } from './colors.unocss.js';
|
|
2
2
|
import { preflights as DarkPreflights, shortcuts as DarkShortcuts } from './dark.unocss.js';
|
|
3
3
|
import { shortcuts as ElevationShortcuts, rules as ElevationRules } from './elevation.unocss.js';
|
|
4
4
|
import { shortcuts as FlexShortcuts } from './flex.unocss.js';
|
|
@@ -11,6 +11,7 @@ import { shortcuts as TouchShortcuts } from './touch.unocss.js';
|
|
|
11
11
|
import { preflights as TransitionPreflights, shortcuts as TransitionsShortcuts } from './transitions.unocss.js';
|
|
12
12
|
import { preflights as TypographyPreflights, shortcuts as TypographyShortcuts } from './typography.unocss.js';
|
|
13
13
|
import { rules as VisibilityRules, preflights as VisibilityPreflights, shortcuts as VisibilityShortcuts } from './visibility.unocss.js';
|
|
14
|
+
import { preflights as ShapePreflights } from './shape.unocss.js';
|
|
14
15
|
export const preflights = [
|
|
15
16
|
{
|
|
16
17
|
getCSS: ({ theme }) => `/* beasties:include start */
|
|
@@ -296,6 +297,6 @@ body {
|
|
|
296
297
|
|
|
297
298
|
/* beasties:include end */`
|
|
298
299
|
}
|
|
299
|
-
].concat(ColorPreflights, DarkPreflights, HelperPreflights, MousePreflights, TypographyPreflights, VisibilityPreflights, TransitionPreflights, SizePreflights);
|
|
300
|
+
].concat(ColorPreflights, DarkPreflights, HelperPreflights, MousePreflights, TypographyPreflights, VisibilityPreflights, TransitionPreflights, SizePreflights, ShapePreflights);
|
|
300
301
|
export const rules = [].concat(MouseRules, HelperRules, ElevationRules, VisibilityRules);
|
|
301
|
-
export const shortcuts = [].concat(DarkShortcuts, FlexShortcuts, HelperShortcuts, MouseShortcuts, OrientationShortcuts, PositionShortcuts, SizeShortcuts, TouchShortcuts, TransitionsShortcuts, TypographyShortcuts, VisibilityShortcuts, ElevationShortcuts);
|
|
302
|
+
export const shortcuts = [].concat(ColorShortcuts, DarkShortcuts, FlexShortcuts, HelperShortcuts, MouseShortcuts, OrientationShortcuts, PositionShortcuts, SizeShortcuts, TouchShortcuts, TransitionsShortcuts, TypographyShortcuts, VisibilityShortcuts, ElevationShortcuts);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const preflights = [
|
|
2
|
+
{
|
|
3
|
+
getCSS: ({ theme }) => `
|
|
4
|
+
:root {
|
|
5
|
+
--shape-corner-small: ${theme.shape.corner.small};
|
|
6
|
+
--shape-corner-medium: ${theme.shape.corner.medium};
|
|
7
|
+
--shape-corner-large: ${theme.shape.corner.large};
|
|
8
|
+
}`
|
|
9
|
+
}
|
|
10
|
+
];
|
|
11
|
+
export { preflights };
|
package/dist/index.js
CHANGED
|
@@ -841,7 +841,8 @@ const componentsSafelistMap = {
|
|
|
841
841
|
'q-toggle--dark',
|
|
842
842
|
'q-toggle--dense'
|
|
843
843
|
],
|
|
844
|
-
QToolbar: ['q-toolbar', 'q-toolbar--inset'
|
|
844
|
+
QToolbar: ['q-toolbar', 'q-toolbar--inset'],
|
|
845
|
+
QToolbarTitle: ['q-toolbar__title'],
|
|
845
846
|
QTooltip: ['q-tooltip--style', 'q-tooltip'],
|
|
846
847
|
QTree: [
|
|
847
848
|
'q-tree',
|
|
@@ -1500,9 +1501,6 @@ const generateSafelist = ({ plugins, iconSet }) => {
|
|
|
1500
1501
|
return safelist;
|
|
1501
1502
|
};
|
|
1502
1503
|
export const QuasarPreset = definePreset((options) => {
|
|
1503
|
-
if (!options.sourceColor) {
|
|
1504
|
-
options.sourceColor = '#806cb0';
|
|
1505
|
-
}
|
|
1506
1504
|
const style = options.style;
|
|
1507
1505
|
const theme = generateTheme(options.sourceColor);
|
|
1508
1506
|
return [
|
|
@@ -2,12 +2,12 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-btn$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-btn'] ??
|
|
5
|
-
`inline-flex flex-col font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium text-center w-auto min-h-40px cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit]
|
|
5
|
+
`inline-flex flex-col font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium text-center w-auto min-h-40px cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] shadow-md shadow-gray/14)`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-btn--actionable$/,
|
|
9
9
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--actionable'] ??
|
|
10
|
-
`cursor-pointer [&.q-btn--standard:before]:([transition:box-shadow_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--standard:active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)]) [&.q-btn--standard.q-btn--active:before]:([
|
|
10
|
+
`cursor-pointer [&.q-btn--standard:before]:([transition:box-shadow_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--standard:active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)]) [&.q-btn--standard.q-btn--active:before]:([shadow-lg shadow-gray/14)`
|
|
11
11
|
],
|
|
12
12
|
[/^q-btn--no-uppercase$/, ([, c], { theme }) => `normal-case`],
|
|
13
13
|
[/^q-btn--rectangle$/, ([, c], { theme }) => `rounded-[3px]`],
|
|
@@ -2,19 +2,19 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-btn$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-btn'] ??
|
|
5
|
-
`layer-components:bg
|
|
5
|
+
`layer-components:bg-$light-primary dark:bg-$dark-primary layer-components:text-$light-on-primary layer-components:dark:text-$dark-on-primary inline-flex flex-col font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline font-medium text-center w-auto min-h-40px cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] shadow-md shadow-gray/14)`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-btn--actionable$/,
|
|
9
9
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--actionable'] ??
|
|
10
|
-
`cursor-pointer [&.q-btn--standard:before]:([transition:box-shadow_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--standard:active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)]) [&.q-btn--standard.q-btn--active:before]:(
|
|
10
|
+
`cursor-pointer [&.q-btn--standard:before]:([transition:box-shadow_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--standard:active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)]) [&.q-btn--standard.q-btn--active:before]:(shadow-lg shadow-gray/14)`
|
|
11
11
|
],
|
|
12
12
|
[/^q-btn--no-uppercase$/, ([, c], { theme }) => `normal-case`],
|
|
13
13
|
[/^q-btn--rectangle$/, ([, c], { theme }) => `rounded-[3px]`],
|
|
14
14
|
[
|
|
15
15
|
/^q-btn--outline$/,
|
|
16
16
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--outline'] ??
|
|
17
|
-
`!bg-transparent layer-components:text
|
|
17
|
+
`!bg-transparent layer-components:text-$light-primary layer-components:dark:text-$dark-primary
|
|
18
18
|
[&:before]:(shadow-none border-[1px] border-solid border-[currentColor])
|
|
19
19
|
[&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
|
|
20
20
|
],
|
|
@@ -33,7 +33,7 @@ const shortcuts = [
|
|
|
33
33
|
[
|
|
34
34
|
/^q-btn--flat$/,
|
|
35
35
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--flat'] ??
|
|
36
|
-
`!bg-transparent layer-components:text
|
|
36
|
+
`!bg-transparent layer-components:text-$light-primary layer-components:dark:text-$dark-primary
|
|
37
37
|
[&:before]:([box-shadow:none])
|
|
38
38
|
[&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
|
|
39
39
|
],
|
|
@@ -51,8 +51,8 @@ const shortcuts = [
|
|
|
51
51
|
[
|
|
52
52
|
/^q-btn--fab$/,
|
|
53
53
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--fab'] ??
|
|
54
|
-
`layer-components:bg
|
|
55
|
-
w-56px h-56px !rounded-
|
|
54
|
+
`layer-components:bg-$light-primary-container layer-components:dark:bg-$dark-primary-container layer-components:text-$light-on-surface layer-components:dark:text-$dark-on-surface
|
|
55
|
+
w-56px h-56px !rounded-$shape-corner-large
|
|
56
56
|
z-${theme.quasar.z.fab}
|
|
57
57
|
[&_.q-icon]:(text-[24px]) [&_.q-icon]:(m-auto)`
|
|
58
58
|
// min-h-[56px] min-w-[56px] p-[16px] pb-0
|
|
@@ -60,8 +60,8 @@ const shortcuts = [
|
|
|
60
60
|
[
|
|
61
61
|
/^q-btn--fab-mini$/,
|
|
62
62
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--fab-mini'] ??
|
|
63
|
-
`layer-components:bg
|
|
64
|
-
w-40px h-40px !rounded-
|
|
63
|
+
`layer-components:bg-$light-primary-container layer-components:dark:bg-$dark-primary-container layer-components:text-$light-on-surface layer-components:dark:text-$dark-on-surface
|
|
64
|
+
w-40px h-40px !rounded-$shape-corner-large
|
|
65
65
|
[&_.q-icon]:(text-[24px])`
|
|
66
66
|
// min-h-[40px] min-w-[40px]
|
|
67
67
|
],
|
|
@@ -7,13 +7,13 @@ const shortcuts = [
|
|
|
7
7
|
rounded-[3px]
|
|
8
8
|
[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)]
|
|
9
9
|
align-middle
|
|
10
|
-
[&_>_.q-btn]:(layer-components:bg
|
|
11
|
-
[&_>_.q-btn-item]:(text
|
|
12
|
-
[&_>_.q-btn-item.bg-primary]:(!bg
|
|
10
|
+
[&_>_.q-btn]:(layer-components:bg-$light-surface-container layer-components:dark:bg-$dark-surface-container)
|
|
11
|
+
[&_>_.q-btn-item]:(text-$light-on-surface dark:text-$dark-on-surface self-stretch)
|
|
12
|
+
[&_>_.q-btn-item.bg-primary]:(!bg-$light-primary !text-$light-on-primary dark:!bg-$dark-primary dark:!text-$dark-on-primary)
|
|
13
13
|
[&_>_.q-btn-item:before]:([box-shadow:none])
|
|
14
14
|
[&_>_.q-btn-item_.q-badge--floating]:(right-0)
|
|
15
15
|
[&_>_.q-btn-group]:([box-shadow:none])
|
|
16
|
-
[&_>_.q-btn-group:first-child_>_.q-btn--active]:(!bg
|
|
16
|
+
[&_>_.q-btn-group:first-child_>_.q-btn--active]:(!bg-$light-secondary-container dark:!bg-$dark-secondary-container)
|
|
17
17
|
[&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit])
|
|
18
18
|
[&_>_.q-btn-group:last-child_>_.q-btn:last-child]:()
|
|
19
19
|
[&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child]:(border-rd-l-0)
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-card$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-card'] ??
|
|
5
|
-
`p-16px rounded-
|
|
5
|
+
`p-16px rounded-$shape-corner-medium align-top relative bg-$light-surface-container-low dark:bg-$dark-surface-container-low
|
|
6
6
|
[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
|
|
7
7
|
[&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
|
|
8
8
|
[&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit])
|
|
@@ -11,14 +11,14 @@ const shortcuts = [
|
|
|
11
11
|
[&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit])
|
|
12
12
|
[&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] shadow-none)
|
|
13
13
|
[&_>_img]:(block w-full max-w-full border-[0])
|
|
14
|
-
[&:not(.disabled):focus]:(bg
|
|
14
|
+
[&:not(.disabled):focus]:(bg-$light-secondary dark:bg-$dark-secondary)
|
|
15
15
|
[&:not(.disabled):hover]:(shadow-md)
|
|
16
16
|
[&.disabled]:(op-38)`
|
|
17
17
|
],
|
|
18
18
|
[
|
|
19
19
|
/^q-card--filled$/,
|
|
20
20
|
([, c], { theme }) => theme.quasar?.components?.['q-card--filled'] ??
|
|
21
|
-
`bg
|
|
21
|
+
`bg-$light-surface-container-highest dark:bg-$dark-surface-container-highest`
|
|
22
22
|
],
|
|
23
23
|
[
|
|
24
24
|
/^q-card--bordered$/,
|
|
@@ -44,22 +44,22 @@ const shortcuts = [
|
|
|
44
44
|
[
|
|
45
45
|
/^q-checkbox__inner--truthy$/,
|
|
46
46
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__inner--truthy'] ??
|
|
47
|
-
`text
|
|
47
|
+
`text-$light-primary dark:text-$dark-primary
|
|
48
48
|
[&_.q-checkbox\\_\\_bg]:(bg-current)
|
|
49
49
|
[&_path]:(stroke-offset-none [transition:stroke-dashoffset_0.18s_cubic-bezier(0.4,_0,_0.6,_1)_0ms])`
|
|
50
50
|
],
|
|
51
51
|
[
|
|
52
52
|
/^q-checkbox__inner--indet$/,
|
|
53
53
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__inner--indet'] ??
|
|
54
|
-
`text
|
|
54
|
+
`text-$light-primary dark:text-$dark-primary [&_.q-checkbox\\_\\_bg]:(bg-current) [&_.q-checkbox\\_\\_indet]:(rotate-[0] scale-100 [transition:transform_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms])`
|
|
55
55
|
],
|
|
56
56
|
[
|
|
57
57
|
/^q-checkbox--dark$/,
|
|
58
58
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox--dark'] ??
|
|
59
59
|
`[&_.q-checkbox\\_\\_inner]:(layer-components:text-[rgba(255,_255,_255,_0.7)])
|
|
60
60
|
[&_.q-checkbox\\_\\_inner:before]:(!opacity-[0.32])
|
|
61
|
-
[&_.q-checkbox\\_\\_inner--truthy]:(layer-components:(text
|
|
62
|
-
[&_.q-checkbox\\_\\_inner--indet]:(layer-components:(text
|
|
61
|
+
[&_.q-checkbox\\_\\_inner--truthy]:(layer-components:(text-$light-primary dark:text-$dark-primary))
|
|
62
|
+
[&_.q-checkbox\\_\\_inner--indet]:(layer-components:(text-$light-primary dark:text-$dark-primary))`
|
|
63
63
|
],
|
|
64
64
|
[
|
|
65
65
|
/^q-checkbox--dense$/,
|
|
@@ -15,11 +15,11 @@ const shortcuts = [
|
|
|
15
15
|
/^q-chip$/,
|
|
16
16
|
([, c], { theme }) => theme.quasar?.components?.['q-chip'] ??
|
|
17
17
|
`!flex-initial align-middle rounded-[0.5em] outline-[0] relative h-[2em] max-w-full m-[4px]
|
|
18
|
-
outline-solid outline-1px outline
|
|
19
|
-
bg
|
|
20
|
-
text
|
|
18
|
+
outline-solid outline-1px outline-$light-outline-variant dark:outline-$dark-outline-variant
|
|
19
|
+
bg-$light-surface-container-low dark:bg-$dark-secondary-container
|
|
20
|
+
text-$light-on-surface-variant dark:text-$dark-on-secondary-container
|
|
21
21
|
text-[14px] px-[1em] py-[0.375em]
|
|
22
|
-
[&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-
|
|
22
|
+
[&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-$shape-corner-large)`
|
|
23
23
|
],
|
|
24
24
|
[
|
|
25
25
|
/^q-chip--colored$/,
|
|
@@ -43,7 +43,7 @@ const shortcuts = [
|
|
|
43
43
|
[
|
|
44
44
|
/^q-chip__icon$/,
|
|
45
45
|
([, c], { theme }) => theme.quasar?.components?.['q-chip__icon'] ??
|
|
46
|
-
`text
|
|
46
|
+
`text-$light-primary dark:text-$dark-primary text-[1.40625em] -m-[0.2em]`
|
|
47
47
|
],
|
|
48
48
|
[
|
|
49
49
|
/^q-chip__icon--left$/,
|
|
@@ -66,12 +66,12 @@ const shortcuts = [
|
|
|
66
66
|
[
|
|
67
67
|
/^q-chip--dense$/,
|
|
68
68
|
([, c], { theme }) => theme.quasar?.components?.['q-chip--dense'] ??
|
|
69
|
-
`rounded-
|
|
69
|
+
`rounded-$shape-corner-medium px-[0.4em] py-[0] h-[1.5em] [&_.q-avatar]:(text-[1.5em] -ml-[0.27em] mr-[0.1em] rounded-$shape-corner-medium) [&_.q-chip\\_\\_icon]:(text-[1.25em]) [&_.q-chip\\_\\_icon--left]:(mr-[0.195em]) [&_.q-chip\\_\\_icon--remove]:(-mr-[0.25em])`
|
|
70
70
|
],
|
|
71
71
|
[
|
|
72
72
|
/^q-chip--square$/,
|
|
73
73
|
([, c], { theme }) => theme.quasar?.components?.['q-chip--square'] ??
|
|
74
|
-
`rounded-
|
|
74
|
+
`rounded-$shape-corner-small [&_.q-avatar]:(rounded-tl-[3px] rounded-br-[0] rounded-tr-[0] rounded-bl-[3px])`
|
|
75
75
|
]
|
|
76
76
|
];
|
|
77
77
|
export { preflights, shortcuts };
|
|
@@ -21,7 +21,7 @@ const shortcuts = [
|
|
|
21
21
|
[
|
|
22
22
|
/^q-circular-progress$/,
|
|
23
23
|
([, c], { theme }) => theme.quasar?.components?.['q-circular-progress'] ??
|
|
24
|
-
`text
|
|
24
|
+
`text-$light-primary dark:text-$dark-primary inline-block relative align-middle w-[1em] h-[1em] leading-none`
|
|
25
25
|
],
|
|
26
26
|
[/^q-circular-progress__svg$/, ([, c], { theme }) => `w-full h-full`],
|
|
27
27
|
[/^q-circular-progress__text$/, ([, c], { theme }) => `text-[0.25em]`],
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-date$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-date'] ??
|
|
5
|
-
`bg
|
|
5
|
+
`bg-$light-surface-container-high dark:bg-$dark-surface-container-high inline-flex [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] bg-[#fff] w-[290px] min-w-[290px] max-w-full`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-date--bordered$/,
|
|
@@ -50,7 +50,7 @@ const shortcuts = [
|
|
|
50
50
|
([, c], { theme }) => theme.quasar?.components?.['q-date__navigation'] ??
|
|
51
51
|
`h-[12.5%]
|
|
52
52
|
[&_>_div:first-child]:(w-[8%] min-w-[24px] justify-end) [&_>_div:last-child]:(w-[8%] min-w-[24px] justify-start)
|
|
53
|
-
[&_.q-btn]:(text
|
|
53
|
+
[&_.q-btn]:(text-$light-on-surface dark:text-$dark-on-surface)`
|
|
54
54
|
],
|
|
55
55
|
[
|
|
56
56
|
/^q-date__calendar-weekdays$/,
|
|
@@ -67,8 +67,8 @@ const shortcuts = [
|
|
|
67
67
|
[
|
|
68
68
|
/^q-date__calendar-item--in$/,
|
|
69
69
|
([, c], { theme }) => theme.quasar?.components?.['q-date__calendar-item--in'] ??
|
|
70
|
-
`[&_.q-btn]:(text
|
|
71
|
-
[&_.q-btn--flat]:(text
|
|
70
|
+
`[&_.q-btn]:(text-$light-on-primary dark:text-$dark-on-primary bg-$light-primary dark:bg-$dark-primary)
|
|
71
|
+
[&_.q-btn--flat]:(text-$light-on-surface dark:text-$dark-on-surface)`
|
|
72
72
|
],
|
|
73
73
|
[
|
|
74
74
|
/^q-date__range$/,
|
|
@@ -88,7 +88,7 @@ const shortcuts = [
|
|
|
88
88
|
[
|
|
89
89
|
/^q-date__edit-range$/,
|
|
90
90
|
([, c], { theme }) => theme.quasar?.components?.['q-date__edit-range'] ??
|
|
91
|
-
`[&:after]:(border
|
|
91
|
+
`[&:after]:(border-$light-primary dark:border-$dark-primary border-l-transparent border-r-transparent)
|
|
92
92
|
[&:nth-child(7n-6):after]:(rounded-tl-none rounded-bl-none)
|
|
93
93
|
[&:nth-child(7n):after]:(rounded-tr-none rounded-br-none)`
|
|
94
94
|
],
|
|
@@ -96,18 +96,18 @@ const shortcuts = [
|
|
|
96
96
|
/^q-date__edit-range-from$/,
|
|
97
97
|
([, c], { theme }) => theme.quasar?.components?.['q-date__edit-range-from'] ??
|
|
98
98
|
`[&:after]:(left-[4px]
|
|
99
|
-
border-r-0 border
|
|
99
|
+
border-r-0 border-$light-primary dark:border-$dark-primary rounded-tl-[28px] rounded-bl-[28px])`
|
|
100
100
|
],
|
|
101
101
|
[
|
|
102
102
|
/^q-date__edit-range-from-to$/,
|
|
103
103
|
([, c], { theme }) => theme.quasar?.components?.['q-date__edit-range-from-to'] ??
|
|
104
|
-
`[&:after]:(left-[4px] border
|
|
105
|
-
[&:after]:(right-[4px] [border
|
|
104
|
+
`[&:after]:(left-[4px] border-$light-primary dark:border-$dark-primary border-r-transparent rounded-tl-[28px] rounded-bl-[28px])
|
|
105
|
+
[&:after]:(right-[4px] [border-$light-primary dark:border-$dark-primary border-l-transparent rounded-tr-[28px] rounded-br-[28px])`
|
|
106
106
|
],
|
|
107
107
|
[
|
|
108
108
|
/^q-date__edit-range-to$/,
|
|
109
109
|
([, c], { theme }) => theme.quasar?.components?.['q-date__edit-range-to'] ??
|
|
110
|
-
`[&:after]:(right-[4px] border-l-transparent border
|
|
110
|
+
`[&:after]:(right-[4px] border-l-transparent border-$light-primary dark:border-$dark-primary rounded-tr-[28px] rounded-br-[28px])`
|
|
111
111
|
],
|
|
112
112
|
[
|
|
113
113
|
/^q-date__calendar-days-container$/,
|
|
@@ -118,7 +118,7 @@ const shortcuts = [
|
|
|
118
118
|
[
|
|
119
119
|
/^q-date__event$/,
|
|
120
120
|
([, c], { theme }) => theme.quasar?.components?.['q-date__event'] ??
|
|
121
|
-
`absolute bottom-[2px] left-2/4 h-[5px] w-[8px] rounded-[5px] [transform:translate3d(-50%,_0,_0)] bg
|
|
121
|
+
`absolute bottom-[2px] left-2/4 h-[5px] w-[8px] rounded-[5px] [transform:translate3d(-50%,_0,_0)] bg-$light-primary dark:bg-$dark-primary`
|
|
122
122
|
],
|
|
123
123
|
[
|
|
124
124
|
/^q-date__today$/,
|
|
@@ -134,8 +134,8 @@ const shortcuts = [
|
|
|
134
134
|
/^q-date__years-item$/,
|
|
135
135
|
([, c], { theme }) => theme.quasar?.components?.['q-date__years-item'] ??
|
|
136
136
|
`flex-[0_0_33.3333%]
|
|
137
|
-
[&_.q-btn]:(h-30px w-60px text
|
|
138
|
-
[&_.q-btn--flat]:(h-30px w-60px text
|
|
137
|
+
[&_.q-btn]:(h-30px w-60px text-$light-on-primary dark:text-$dark-on-primary bg-$light-primary dark:bg-$dark-primary)
|
|
138
|
+
[&_.q-btn--flat]:(h-30px w-60px text-$light-on-surface dark:text-$dark-on-surface)`
|
|
139
139
|
],
|
|
140
140
|
[
|
|
141
141
|
/^q-date__arrow$/,
|
|
@@ -151,8 +151,8 @@ const shortcuts = [
|
|
|
151
151
|
/^q-date__months-item$/,
|
|
152
152
|
([, c], { theme }) => theme.quasar?.components?.['q-date__months-item'] ??
|
|
153
153
|
`flex-[0_0_33.3333%]
|
|
154
|
-
[&_.q-btn]:(text
|
|
155
|
-
[&_.q-btn--flat]:(text
|
|
154
|
+
[&_.q-btn]:(text-$light-on-primary dark:text-$dark-on-primary bg-$light-primary dark:bg-$dark-primary)
|
|
155
|
+
[&_.q-btn--flat]:(text-$light-on-surface dark:text-$dark-on-surface)`
|
|
156
156
|
],
|
|
157
157
|
[
|
|
158
158
|
/^q-date--readonly$/,
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-drawer$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-drawer'] ??
|
|
5
|
-
`
|
|
5
|
+
`rounded-$shape-corner-large absolute top-[0] bottom-[0] bg-$light-surface-container-low dark:bg-$dark-surface-container-low z-${theme.quasar.z['side']}`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-drawer--on-top$/,
|
|
@@ -71,9 +71,8 @@ const shortcuts = [
|
|
|
71
71
|
[&_>_.q-scrollarea]:(px-0)
|
|
72
72
|
[&_>_.q-list]:(px-12px)
|
|
73
73
|
[&_.q-list_.q-item]:(border-rd-32px)
|
|
74
|
-
[&_.q-list_.q-
|
|
75
|
-
[&_.q-list_
|
|
76
|
-
[&_.q-list_.q-router-link--active]:(bg-light-secondary-container dark:bg-dark-secondary-container)
|
|
74
|
+
[&_.q-list_>_.q-router-link--active]:(text-$light-primary dark:text-$dark-primary)
|
|
75
|
+
[&_.q-list_.q-router-link--active]:(bg-$light-secondary-container dark:bg-$dark-secondary-container)
|
|
77
76
|
`
|
|
78
77
|
]
|
|
79
78
|
];
|
|
@@ -83,7 +83,7 @@ const shortcuts = [
|
|
|
83
83
|
[
|
|
84
84
|
/^q-field__control$/,
|
|
85
85
|
([, c], { theme }) => theme.quasar?.components?.['q-field__control'] ??
|
|
86
|
-
`h-[56px] max-w-full outline-none text
|
|
86
|
+
`h-[56px] max-w-full outline-none text-$light-primary dark:text-$dark-primary
|
|
87
87
|
[&:before]:(content-empty top-[0] right-[0] bottom-[0] left-[0] pointer-events-none absolute border-rd-inherit)
|
|
88
88
|
[&:after]:(content-empty top-[0] right-[0] bottom-[0] left-[0] pointer-events-none absolute)`
|
|
89
89
|
],
|
|
@@ -174,8 +174,8 @@ const shortcuts = [
|
|
|
174
174
|
[
|
|
175
175
|
/^q-field--filled$/,
|
|
176
176
|
([, c], { theme }) => theme.quasar?.components?.['q-field--filled'] ??
|
|
177
|
-
`[&_.q-field\\_\\_control]:(bg
|
|
178
|
-
dark:bg
|
|
177
|
+
`[&_.q-field\\_\\_control]:(bg-$light-surface-container-highest text-$light-on-surface-variant
|
|
178
|
+
dark:bg-$dark-surface-container-highest dark:text-$dark-on-surface-variant)
|
|
179
179
|
[&_.q-field\\_\\_control]:(px-[16px] py-[0] layer-components:bg-black/5 rounded-tl-[4px] rounded-br-[0] rounded-tr-[4px] rounded-bl-[0])
|
|
180
180
|
[&_.q-field\\_\\_control:before]:(layer-components:bg-black/5 [border-bottom:1px_solid_rgba(0,_0,_0,_0.42)] opacity-0 [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
|
|
181
181
|
[&_.q-field\\_\\_control:hover:before]:(opacity-100)
|
|
@@ -229,28 +229,29 @@ const shortcuts = [
|
|
|
229
229
|
[
|
|
230
230
|
/^q-field--standout$/,
|
|
231
231
|
([, c], { theme }) => theme.quasar?.components?.['q-field--standout'] ??
|
|
232
|
-
`[&_.q-field\\_\\_control]:(px-[12px] py-[0] layer-components:bg
|
|
232
|
+
`[&_.q-field\\_\\_control]:(px-[12px] py-[0] layer-components:bg-$light-surface-container-highest
|
|
233
233
|
rounded-[4px] [transition:box-shadow_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
|
|
234
234
|
[&_.q-field\\_\\_control:before]:(layer-components:bg-black/7 opacity-0 [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
|
|
235
235
|
[&_.q-field\\_\\_control:hover:before]:(opacity-100)
|
|
236
236
|
[&.q-field--rounded_.q-field\\_\\_control]:(rounded-[28px])
|
|
237
237
|
[&.q-field--highlighted_.q-field\\_\\_control]:([box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])
|
|
238
|
-
[&.q-field--highlighted_.q-field\\_\\_native]:(text
|
|
239
|
-
[&.q-field--highlighted_.q-field\\_\\_prefix]:(text
|
|
240
|
-
[&.q-field--highlighted_.q-field\\_\\_suffix]:(text
|
|
241
|
-
[&.q-field--highlighted_.q-field\\_\\_prepend]:(text
|
|
242
|
-
[&.q-field--highlighted_.q-field\\_\\_append]:(text
|
|
243
|
-
[&.q-field--highlighted_.q-field\\_\\_input]:(text
|
|
238
|
+
[&.q-field--highlighted_.q-field\\_\\_native]:(text-$light-primary)
|
|
239
|
+
[&.q-field--highlighted_.q-field\\_\\_prefix]:(text-$light-primary)
|
|
240
|
+
[&.q-field--highlighted_.q-field\\_\\_suffix]:(text-$light-primary)
|
|
241
|
+
[&.q-field--highlighted_.q-field\\_\\_prepend]:(text-$light-primary)
|
|
242
|
+
[&.q-field--highlighted_.q-field\\_\\_append]:(text-$light-primary)
|
|
243
|
+
[&.q-field--highlighted_.q-field\\_\\_input]:(text-$light-on-surface)
|
|
244
244
|
[&.q-field--readonly_.q-field\\_\\_control:before]:(opacity-100 bg-transparent border-[1px] border-dashed border-black/24)
|
|
245
|
-
[&.q-field--dark_.q-field\\_\\_control]:(bg
|
|
245
|
+
[&.q-field--dark_.q-field\\_\\_control]:(bg-$dark-surface-container-highest)
|
|
246
246
|
[&.q-field--dark_.q-field\\_\\_control:before]:(layer-components:bg-white/7)
|
|
247
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_control]:(layer-components:bg
|
|
248
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_native]:(text
|
|
249
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prefix]:(text
|
|
250
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_suffix]:(text
|
|
251
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prepend]:(text
|
|
252
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_append]:(text
|
|
253
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_input]:(!text-dark-on-surface)
|
|
247
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_control]:(layer-components:bg-$dark-surface-container-highest)
|
|
248
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_native]:(text-$dark-primary)
|
|
249
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prefix]:(text-$dark-primary)
|
|
250
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_suffix]:(text-$dark-primary)
|
|
251
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prepend]:(text-$dark-primary)
|
|
252
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_append]:(text-$dark-primary)
|
|
253
|
+
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_input]:(! [&_>_.q-btn-item]:(text-$light-on-surface dark:text-$dark-on-surface self-stretch)
|
|
254
|
+
text-$dark-on-surface)
|
|
254
255
|
[&.q-field--dark.q-field--readonly_.q-field\\_\\_control:before]:(border-white/24)`
|
|
255
256
|
],
|
|
256
257
|
[
|
|
@@ -7,7 +7,7 @@ const shortcuts = [
|
|
|
7
7
|
[&>img]:(h-full w-full)
|
|
8
8
|
[&:before]:(w-full h-full flex! items-center justify-center)
|
|
9
9
|
[&:after]:(w-full h-full flex! items-center justify-center)
|
|
10
|
-
select-none cursor-inherit layer-components:text
|
|
10
|
+
select-none cursor-inherit layer-components:text-$light-on-surface layer-components:dark:text-$dark-on-surface inline-flex items-center justify-center v-middle
|
|
11
11
|
`
|
|
12
12
|
],
|
|
13
13
|
// [
|
|
@@ -3,7 +3,7 @@ const shortcuts = [
|
|
|
3
3
|
/^q-item$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-item'] ??
|
|
5
5
|
`min-h-[28px] px-[16px] py-[8px] [color:inherit] [transition:color_0.3s,_background-color_0.3s] [&_>_.q-item\\_\\_section--thumbnail:first-child]:(-ml-[16px]) [&_>_.q-focus-helper_+_.q-item\\_\\_section--thumbnail]:(-ml-[16px]) [&_>_.q-item\\_\\_section--thumbnail:last-of-type]:(-mr-[16px]) relative
|
|
6
|
-
[&.q-router-link--active]:(text
|
|
6
|
+
[&.q-router-link--active]:(text-$light-primary dark:text-$dark-primary)`
|
|
7
7
|
],
|
|
8
8
|
[
|
|
9
9
|
/^q-item__section--side$/,
|
|
@@ -90,7 +90,7 @@ const shortcuts = [
|
|
|
90
90
|
],
|
|
91
91
|
[
|
|
92
92
|
/^q-item--active$/,
|
|
93
|
-
([, c], { theme }) => `text
|
|
93
|
+
([, c], { theme }) => `text-$light-primary dark:text-$dark-primary`
|
|
94
94
|
]
|
|
95
95
|
];
|
|
96
96
|
export { shortcuts };
|
|
@@ -78,7 +78,7 @@ const shortcuts = [
|
|
|
78
78
|
[
|
|
79
79
|
/^q-layout__section--marginal$/,
|
|
80
80
|
([, c], { theme }) => theme.quasar?.components?.['q-layout__section--marginal'] ??
|
|
81
|
-
`text-[#fff] bg
|
|
81
|
+
`text-[#fff] bg-$light-surface-container-low dark:bg-$dark-surface-container-low text-$light-on-surface dark:text-$dark-on-surface`
|
|
82
82
|
]
|
|
83
83
|
];
|
|
84
84
|
export { preflights, shortcuts };
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-menu$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-menu'] ??
|
|
5
|
-
`bg
|
|
5
|
+
`bg-$light-surface-container dark:bg-$dark-surface-container text-$light-on-surface dark:text-$dark-on-surface
|
|
6
6
|
!fixed inline-block max-w-[95vw] max-h-[65vh] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] overflow-y-auto overflow-x-hidden outline-0 z-${theme.quasar.z['menu']}`
|
|
7
7
|
],
|
|
8
8
|
[/^q-menu--square$/, ([, c], { theme }) => `rounded-none`],
|
|
@@ -49,13 +49,13 @@ const shortcuts = [
|
|
|
49
49
|
/^q-radio__check$/,
|
|
50
50
|
([, c], { theme }) => theme.quasar?.components?.['q-radio__check'] ??
|
|
51
51
|
`origin-[50%_50%] [transform:scale3d(0,_0,_1)] [transition:transform_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms]
|
|
52
|
-
text
|
|
52
|
+
text-$light-primary dark:text-$dark-primary`
|
|
53
53
|
],
|
|
54
54
|
[
|
|
55
55
|
/^q-radio__inner$/,
|
|
56
56
|
([, c], { theme }) => theme.quasar?.components?.['q-radio__inner'] ??
|
|
57
57
|
`text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%]
|
|
58
|
-
text
|
|
58
|
+
text-$light-on-surface-variant dark:text-$dark-on-surface-variant`
|
|
59
59
|
],
|
|
60
60
|
[
|
|
61
61
|
/^q-radio__inner--truthy$/,
|
|
@@ -21,12 +21,12 @@ const shortcuts = [
|
|
|
21
21
|
[
|
|
22
22
|
/^q-slider__track$/,
|
|
23
23
|
([, c], { theme }) => theme.quasar?.components?.['q-slider__track'] ??
|
|
24
|
-
`bg
|
|
24
|
+
`bg-$light-secondary-container/10 dark:bg-$dark-secondary-container/10 rounded-[4px] [width:inherit] [height:inherit] text-$light-primary dark:text-$dark-primary`
|
|
25
25
|
],
|
|
26
26
|
[
|
|
27
27
|
/^q-slider__inner$/,
|
|
28
28
|
([, c], { theme }) => theme.quasar?.components?.['q-slider__inner'] ??
|
|
29
|
-
`bg
|
|
29
|
+
`bg-$light-secondary-container/10 dark:bg-$dark-secondary-container/10 [border-radius:inherit] w-full h-full`
|
|
30
30
|
],
|
|
31
31
|
[
|
|
32
32
|
/^q-slider__selection$/,
|