unocss-preset-quasar 0.1.5 → 0.1.6
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/dark.unocss.js +4 -1
- package/dist/core/flex.unocss.js +17 -6
- package/dist/index.js +31 -18
- package/dist/styles/md2/components/QBanner.unocss.js +5 -0
- package/dist/styles/md2/components/QCheckbox.unocss.js +1 -1
- package/dist/styles/md2/components/QItem.unocss.js +2 -2
- package/dist/styles/md2/components/QScrollarea.unocss.js +2 -5
- package/dist/styles/md2/components/QTabs.unocss.js +14 -5
- package/dist/styles/md3/components/QBanner.unocss.js +7 -2
- package/dist/styles/md3/components/QBtn.unocss.js +1 -1
- package/dist/styles/md3/components/QBtnToggle.unocss.js +1 -0
- package/dist/styles/md3/components/QCard.unocss.js +6 -1
- package/dist/styles/md3/components/QCheckbox.unocss.js +7 -3
- package/dist/styles/md3/components/QChip.unocss.js +4 -3
- package/dist/styles/md3/components/QDrawer.unocss.js +4 -3
- package/dist/styles/md3/components/QField.unocss.js +17 -16
- package/dist/styles/md3/components/QItem.unocss.js +10 -5
- package/dist/styles/md3/components/QScrollarea.unocss.js +2 -5
- package/dist/styles/md3/components/QStepper.unocss.js +30 -4
- package/dist/styles/md3/components/QTabs.unocss.js +15 -6
- package/dist/styles/md3/index.js +9 -1
- package/dist/theme.js +1 -1
- package/dist/types/styles/md3/index.d.ts +3 -1
- package/dist/types/theme.d.ts +4 -0
- package/package.json +1 -1
- package/src/core/dark.unocss.ts +4 -1
- package/src/core/flex.unocss.ts +16 -6
- package/src/index.ts +31 -18
- package/src/styles/md2/components/QBanner.unocss.ts +7 -0
- package/src/styles/md2/components/QCheckbox.unocss.ts +1 -1
- package/src/styles/md2/components/QItem.unocss.ts +2 -2
- package/src/styles/md2/components/QScrollarea.unocss.ts +2 -5
- package/src/styles/md2/components/QTabs.unocss.ts +14 -5
- package/src/styles/md3/components/QBanner.unocss.ts +9 -2
- package/src/styles/md3/components/QBtn.unocss.ts +1 -1
- package/src/styles/md3/components/QBtnToggle.unocss.ts +1 -0
- package/src/styles/md3/components/QCard.unocss.ts +8 -1
- package/src/styles/md3/components/QCheckbox.unocss.ts +9 -3
- package/src/styles/md3/components/QChip.unocss.ts +4 -3
- package/src/styles/md3/components/QDrawer.unocss.ts +4 -3
- package/src/styles/md3/components/QField.unocss.ts +17 -16
- package/src/styles/md3/components/QItem.unocss.ts +10 -5
- package/src/styles/md3/components/QScrollarea.unocss.ts +2 -5
- package/src/styles/md3/components/QStepper.unocss.ts +32 -4
- package/src/styles/md3/components/QTabs.unocss.ts +15 -6
- package/src/styles/md3/index.ts +13 -1
- package/src/theme.ts +5 -1
package/dist/core/dark.unocss.js
CHANGED
package/dist/core/flex.unocss.js
CHANGED
|
@@ -8,6 +8,7 @@ const colGutter = {
|
|
|
8
8
|
lg: 6,
|
|
9
9
|
xl: 12
|
|
10
10
|
};
|
|
11
|
+
const sizes = ['none', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
11
12
|
const shortcuts = [
|
|
12
13
|
[
|
|
13
14
|
/^row$/,
|
|
@@ -18,18 +19,28 @@ const shortcuts = [
|
|
|
18
19
|
([, c], { theme }) => `flex flex-col flex-wrap flex-auto [&.reverse]:(flex-col-reverse)`
|
|
19
20
|
],
|
|
20
21
|
[
|
|
21
|
-
/^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
22
|
+
/^col(?:-)?(none|xs|sm|md|lg|xl|all|auto|grow)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
22
23
|
([, size, nr], { theme }) => {
|
|
24
|
+
const classes = ['w-auto max-w-full'];
|
|
23
25
|
if (size && nr) {
|
|
24
|
-
|
|
26
|
+
classes.push(`${size}:basis-${nr}/12)`);
|
|
25
27
|
}
|
|
26
28
|
else if (nr) {
|
|
27
|
-
|
|
29
|
+
classes.push(`basis-${nr}/12`);
|
|
28
30
|
}
|
|
29
|
-
else if (size) {
|
|
30
|
-
|
|
31
|
+
else if (size === 'all') {
|
|
32
|
+
classes.push('basis-12/12');
|
|
31
33
|
}
|
|
32
|
-
|
|
34
|
+
else if (size === 'auto') {
|
|
35
|
+
classes.push('basis-auto');
|
|
36
|
+
}
|
|
37
|
+
else if (sizes.includes(size)) {
|
|
38
|
+
classes.push(`${size}:basis-auto ${size}:grow`);
|
|
39
|
+
}
|
|
40
|
+
else if (size === 'grow' || size === void 0) {
|
|
41
|
+
classes.push('grow');
|
|
42
|
+
}
|
|
43
|
+
return classes.join(' ');
|
|
33
44
|
}
|
|
34
45
|
],
|
|
35
46
|
[
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePreset, presetIcons, presetWebFonts, transformerVariantGroup } from 'unocss';
|
|
1
|
+
import { definePreset, presetIcons, presetWebFonts, transformerDirectives, transformerVariantGroup } from 'unocss';
|
|
2
2
|
import presetWind3 from '@unocss/preset-wind3';
|
|
3
3
|
import { generateTheme } from './theme.js';
|
|
4
4
|
import { animatedUno } from 'animated-unocss';
|
|
@@ -121,6 +121,20 @@ const QSliderSafelist = [
|
|
|
121
121
|
'q-slider--dark',
|
|
122
122
|
'q-slider--dense'
|
|
123
123
|
];
|
|
124
|
+
const QChipSafelist = [
|
|
125
|
+
'q-chip',
|
|
126
|
+
'q-chip--colored',
|
|
127
|
+
'q-chip--dark',
|
|
128
|
+
'q-chip--outline',
|
|
129
|
+
'q-chip--selected',
|
|
130
|
+
'q-chip__icon',
|
|
131
|
+
'q-chip__icon--left',
|
|
132
|
+
'q-chip__icon--right',
|
|
133
|
+
'q-chip__icon--remove',
|
|
134
|
+
'q-chip__content',
|
|
135
|
+
'q-chip--dense',
|
|
136
|
+
'q-chip--square'
|
|
137
|
+
];
|
|
124
138
|
const componentsSafelistMap = {
|
|
125
139
|
QIcon: ['q-icon'],
|
|
126
140
|
QTabPanel: ['q-panel', 'q-panel-parent'],
|
|
@@ -136,6 +150,7 @@ const componentsSafelistMap = {
|
|
|
136
150
|
],
|
|
137
151
|
QBanner: [
|
|
138
152
|
'q-banner',
|
|
153
|
+
'q-banner__content',
|
|
139
154
|
'q-banner--top-padding',
|
|
140
155
|
'q-banner__avatar',
|
|
141
156
|
'q-banner__actions',
|
|
@@ -256,20 +271,7 @@ const componentsSafelistMap = {
|
|
|
256
271
|
'q-checkbox--dark',
|
|
257
272
|
'q-checkbox--dense'
|
|
258
273
|
],
|
|
259
|
-
QChip:
|
|
260
|
-
'q-chip',
|
|
261
|
-
'q-chip--colored',
|
|
262
|
-
'q-chip--dark',
|
|
263
|
-
'q-chip--outline',
|
|
264
|
-
'q-chip--selected',
|
|
265
|
-
'q-chip__icon',
|
|
266
|
-
'q-chip__icon--left',
|
|
267
|
-
'q-chip__icon--right',
|
|
268
|
-
'q-chip__icon--remove',
|
|
269
|
-
'q-chip__content',
|
|
270
|
-
'q-chip--dense',
|
|
271
|
-
'q-chip--square'
|
|
272
|
-
],
|
|
274
|
+
QChip: QChipSafelist,
|
|
273
275
|
QCircularProgress: [
|
|
274
276
|
'q-circular-progress',
|
|
275
277
|
'q-circular-progress__svg',
|
|
@@ -612,9 +614,11 @@ const componentsSafelistMap = {
|
|
|
612
614
|
'q-scrollarea__bar--invisible',
|
|
613
615
|
'q-scrollarea__thumb--invisible',
|
|
614
616
|
'q-scrollarea__content',
|
|
615
|
-
'q-scrollarea--dark'
|
|
617
|
+
'q-scrollarea--dark',
|
|
618
|
+
'relative-position'
|
|
616
619
|
],
|
|
617
620
|
QSelect: [
|
|
621
|
+
...QChipSafelist,
|
|
618
622
|
'q-list',
|
|
619
623
|
'q-item',
|
|
620
624
|
'q-virtual-scroll',
|
|
@@ -677,6 +681,7 @@ const componentsSafelistMap = {
|
|
|
677
681
|
],
|
|
678
682
|
QStepper: [
|
|
679
683
|
'q-stepper',
|
|
684
|
+
'q-stepper__label',
|
|
680
685
|
'q-stepper__title',
|
|
681
686
|
'q-stepper__caption',
|
|
682
687
|
'q-stepper__dot',
|
|
@@ -698,7 +703,8 @@ const componentsSafelistMap = {
|
|
|
698
703
|
'q-stepper--flat',
|
|
699
704
|
'q-stepper--bordered',
|
|
700
705
|
'q-stepper--horizontal',
|
|
701
|
-
'q-stepper--vertical'
|
|
706
|
+
'q-stepper--vertical',
|
|
707
|
+
'col-grow'
|
|
702
708
|
],
|
|
703
709
|
QTabPanels: ['q-tab-panels', 'q-tab-panel'],
|
|
704
710
|
QMarkupTable: ['q-markup-table'],
|
|
@@ -1004,6 +1010,12 @@ const pluginSafelistMap = {
|
|
|
1004
1010
|
'q-loading-bar--right',
|
|
1005
1011
|
'q-loading-bar--left'
|
|
1006
1012
|
],
|
|
1013
|
+
Loading: [
|
|
1014
|
+
'q-loading',
|
|
1015
|
+
'q-loading__backdrop',
|
|
1016
|
+
'q-loading__box',
|
|
1017
|
+
'q-loading__message'
|
|
1018
|
+
],
|
|
1007
1019
|
Notify: [
|
|
1008
1020
|
'q-avatar',
|
|
1009
1021
|
'q-avatar__content',
|
|
@@ -1594,7 +1606,8 @@ export const QuasarPreset = definePreset((options) => {
|
|
|
1594
1606
|
}
|
|
1595
1607
|
],
|
|
1596
1608
|
transformers: [
|
|
1597
|
-
transformerVariantGroup()
|
|
1609
|
+
transformerVariantGroup(),
|
|
1610
|
+
transformerDirectives()
|
|
1598
1611
|
// {
|
|
1599
1612
|
// name: 'find-classes-in-quasar-src',
|
|
1600
1613
|
// enforce: 'pre', // enforce before other transformers
|
|
@@ -10,6 +10,11 @@ const shortcuts = [
|
|
|
10
10
|
([, c], { theme }) => theme.quasar?.components?.['q-banner__avatar'] ??
|
|
11
11
|
`!flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
|
|
12
12
|
],
|
|
13
|
+
[
|
|
14
|
+
/^q-banner__content$/,
|
|
15
|
+
([, c], { theme }) => theme.quasar?.components?.['q-banner__content'] ??
|
|
16
|
+
`max-w-[calc(100%-56px)]`
|
|
17
|
+
],
|
|
13
18
|
[
|
|
14
19
|
/^q-banner__actions$/,
|
|
15
20
|
([, c], { theme }) => theme.quasar?.components?.['q-banner__actions'] ??
|
|
@@ -51,7 +51,7 @@ const shortcuts = [
|
|
|
51
51
|
[
|
|
52
52
|
/^q-checkbox__inner$/,
|
|
53
53
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__inner'] ??
|
|
54
|
-
`text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
|
|
54
|
+
`mr-2px text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
|
|
55
55
|
],
|
|
56
56
|
[
|
|
57
57
|
/^q-checkbox__inner--truthy$/,
|
|
@@ -8,12 +8,12 @@ const shortcuts = [
|
|
|
8
8
|
[
|
|
9
9
|
/^q-item__section--side$/,
|
|
10
10
|
([, c], { theme }) => theme.quasar?.components?.['q-item__section--side'] ??
|
|
11
|
-
`!flex-initial text-[#757575] items-start pr-[16px] w-auto
|
|
11
|
+
`!flex-initial text-[#757575] items-start pr-[16px] w-auto max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
|
|
12
12
|
],
|
|
13
13
|
[
|
|
14
14
|
/^q-item__section--avatar$/,
|
|
15
15
|
([, c], { theme }) => theme.quasar?.components?.['q-item__section--avatar'] ??
|
|
16
|
-
`!flex-initial [color:inherit] min-w-[
|
|
16
|
+
`!flex-initial [color:inherit] min-w-[40px]`
|
|
17
17
|
],
|
|
18
18
|
[
|
|
19
19
|
/^q-item__section--thumbnail$/,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-scrollarea$/, ([, c], { theme }) => `relative`],
|
|
2
|
+
[/^q-scrollarea$/, ([, c], { theme }) => `relative [contain:strict]`],
|
|
3
3
|
[
|
|
4
4
|
/^q-scrollarea__bar$/,
|
|
5
5
|
([, c], { theme }) => theme.quasar?.components?.['q-scrollarea__bar'] ??
|
|
@@ -26,10 +26,7 @@ const shortcuts = [
|
|
|
26
26
|
],
|
|
27
27
|
[/^q-scrollarea__thumb:hover$/, ([, c], { theme }) => `hover:opacity-30`],
|
|
28
28
|
[/^q-scrollarea__thumb:active$/, ([, c], { theme }) => `active:opacity-50`],
|
|
29
|
-
[
|
|
30
|
-
/^q-scrollarea__content$/,
|
|
31
|
-
([, c], { theme }) => `!relative min-h-full min-w-full`
|
|
32
|
-
],
|
|
29
|
+
[/^q-scrollarea__content$/, ([, c], { theme }) => `min-h-full w-full`],
|
|
33
30
|
[
|
|
34
31
|
/^q-scrollarea--dark$/,
|
|
35
32
|
([, c], { theme }) => theme.quasar?.components?.['q-scrollarea--dark'] ??
|
|
@@ -2,11 +2,13 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-tab$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-tab'] ??
|
|
5
|
-
`px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s]
|
|
5
|
+
`px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s] whitespace-nowrap [color:inherit] no-underline
|
|
6
|
+
[&_.q-badge]:(top-[3px] -right-[12px])
|
|
7
|
+
`
|
|
6
8
|
],
|
|
7
9
|
[
|
|
8
10
|
/^q-tab--full$/,
|
|
9
|
-
([, c], { theme }) => theme.quasar?.components?.['q-tab--full'] ?? `min-h-
|
|
11
|
+
([, c], { theme }) => theme.quasar?.components?.['q-tab--full'] ?? `min-h-72px h-72px`
|
|
10
12
|
],
|
|
11
13
|
[
|
|
12
14
|
/^q-tab--no-caps$/,
|
|
@@ -15,7 +17,7 @@ const shortcuts = [
|
|
|
15
17
|
[
|
|
16
18
|
/^q-tab__content$/,
|
|
17
19
|
([, c], { theme }) => theme.quasar?.components?.['q-tab__content'] ??
|
|
18
|
-
`[height:inherit] px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-[0] -right-[16px])`
|
|
20
|
+
`[height:inherit] z-2 px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-[0] -right-[16px])`
|
|
19
21
|
],
|
|
20
22
|
[
|
|
21
23
|
/^q-tab__content--inline$/,
|
|
@@ -45,7 +47,7 @@ const shortcuts = [
|
|
|
45
47
|
[
|
|
46
48
|
/^q-tab__indicator$/,
|
|
47
49
|
([, c], { theme }) => theme.quasar?.components?.['q-tab__indicator'] ??
|
|
48
|
-
|
|
50
|
+
`opacity-0 h-[2px] bg-current`
|
|
49
51
|
],
|
|
50
52
|
[
|
|
51
53
|
/^q-tab--active$/,
|
|
@@ -108,7 +110,14 @@ const shortcuts = [
|
|
|
108
110
|
[
|
|
109
111
|
/^q-tabs--vertical$/,
|
|
110
112
|
([, c], { theme }) => theme.quasar?.components?.['q-tabs--vertical'] ??
|
|
111
|
-
`!block h-full [&_.q-tabs\\_\\_content]:(!block h-full)
|
|
113
|
+
`!block h-full [&_.q-tabs\\_\\_content]:(!block h-full)
|
|
114
|
+
[&_.q-tabs\\_\\_arrow]:(w-full h-[36px] text-center)
|
|
115
|
+
[&_.q-tabs\\_\\_arrow--left]:(top-[0] left-[0] right-[0])
|
|
116
|
+
[&_.q-tabs\\_\\_arrow--right]:(left-[0] right-[0] bottom-[0])
|
|
117
|
+
[&_.q-tab]:(px-[8px] py-[0])
|
|
118
|
+
[&_.q-tab\\_\\_indicator]:(h-[unset] w-2px min-h-100%)
|
|
119
|
+
[&_.q-tabs--not-scrollable_.q-tabs\\_\\_content]:(h-full)
|
|
120
|
+
[&_.q-tabs--dense_.q-tab\\_\\_content]:(min-w-[24px])`
|
|
112
121
|
],
|
|
113
122
|
[
|
|
114
123
|
/^q-tabs--dense$/,
|
|
@@ -2,13 +2,18 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-banner$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-banner'] ??
|
|
5
|
-
`min-h-[54px] px-[16px] py-[8px] bg-
|
|
5
|
+
`min-h-[54px] px-[16px] py-[8px] bg-transparent`
|
|
6
6
|
],
|
|
7
7
|
[/^q-banner--top-padding$/, ([, c], { theme }) => `pt-[14px]`],
|
|
8
8
|
[
|
|
9
9
|
/^q-banner__avatar$/,
|
|
10
10
|
([, c], { theme }) => theme.quasar?.components?.['q-banner__avatar'] ??
|
|
11
|
-
`!flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
|
|
11
|
+
`!self-auto !flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
/^q-banner__content$/,
|
|
15
|
+
([, c], { theme }) => theme.quasar?.components?.['q-banner__content'] ??
|
|
16
|
+
`max-w-[calc(100%-56px)]`
|
|
12
17
|
],
|
|
13
18
|
[
|
|
14
19
|
/^q-banner__actions$/,
|
|
@@ -15,7 +15,7 @@ const shortcuts = [
|
|
|
15
15
|
/^q-btn--outline$/,
|
|
16
16
|
([, c], { theme }) => theme.quasar?.components?.['q-btn--outline'] ??
|
|
17
17
|
`!bg-transparent layer-components:text-light-primary layer-components:dark:text-dark-primary
|
|
18
|
-
[&:before]:(border-[1px] border-solid border-[currentColor]
|
|
18
|
+
[&:before]:(shadow-none border-[1px] border-solid border-[currentColor])
|
|
19
19
|
[&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
|
|
20
20
|
],
|
|
21
21
|
[
|
|
@@ -7,6 +7,7 @@ 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-light-surface-container layer-components:dark:bg-dark-surface-container)
|
|
10
11
|
[&_>_.q-btn-item]:(text-light-on-surface dark:text-dark-on-surface self-stretch)
|
|
11
12
|
[&_>_.q-btn-item.bg-primary]:(!bg-light-primary !text-light-on-primary dark:!bg-dark-primary dark:!text-dark-on-primary)
|
|
12
13
|
[&_>_.q-btn-item:before]:([box-shadow:none])
|
|
@@ -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-[12px] align-top
|
|
5
|
+
`p-16px rounded-[12px] 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])
|
|
@@ -15,6 +15,11 @@ const shortcuts = [
|
|
|
15
15
|
[&:not(.disabled):hover]:(shadow-md)
|
|
16
16
|
[&.disabled]:(op-38)`
|
|
17
17
|
],
|
|
18
|
+
[
|
|
19
|
+
/^q-card--filled$/,
|
|
20
|
+
([, c], { theme }) => theme.quasar?.components?.['q-card--filled'] ??
|
|
21
|
+
`bg-light-surface-container-highest dark:bg-dark-surface-container-highest`
|
|
22
|
+
],
|
|
18
23
|
[
|
|
19
24
|
/^q-card--bordered$/,
|
|
20
25
|
([, c], { theme }) => theme.quasar?.components?.['q-card--bordered'] ??
|
|
@@ -10,14 +10,18 @@ const shortcuts = [
|
|
|
10
10
|
/^q-checkbox$/,
|
|
11
11
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox'] ??
|
|
12
12
|
`align-middle [&.disabled]:(!opacity-75)
|
|
13
|
-
[&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-
|
|
13
|
+
[&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-0 left-0 bottom-0 right-0 border-rd-50 bg-current op-12 scale-x-120 scale-y-120 scale-z-100)
|
|
14
14
|
[&:not(.disabled):focus_.q-checkbox\\_\\_inner:before]:(scale-z-100)`
|
|
15
15
|
],
|
|
16
16
|
[/^q-checkbox__native$/, ([, c], { theme }) => `w-px h-px`],
|
|
17
|
+
[
|
|
18
|
+
/^q-checkbox__label$/,
|
|
19
|
+
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__label'] ?? `pl-0.25em`
|
|
20
|
+
],
|
|
17
21
|
[
|
|
18
22
|
/^q-checkbox__bg$/,
|
|
19
23
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__bg'] ??
|
|
20
|
-
`select-none top-1/4 left-1/4 w-1/2 h-1/2 border-[2px] border-solid border-[currentColor] rounded-[2px] [transition:background_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms]`
|
|
24
|
+
`ml--2px mt--2px select-none top-1/4 left-1/4 w-1/2 h-1/2 border-[2px] border-solid border-[currentColor] rounded-[2px] [transition:background_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms]`
|
|
21
25
|
],
|
|
22
26
|
[/^q-checkbox__icon-container$/, ([, c], { theme }) => `select-none`],
|
|
23
27
|
[/^q-checkbox__icon$/, ([, c], { theme }) => `text-current text-[0.5em]`],
|
|
@@ -35,7 +39,7 @@ const shortcuts = [
|
|
|
35
39
|
[
|
|
36
40
|
/^q-checkbox__inner$/,
|
|
37
41
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox__inner'] ??
|
|
38
|
-
`text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
|
|
42
|
+
`mr-2px text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
|
|
39
43
|
],
|
|
40
44
|
[
|
|
41
45
|
/^q-checkbox__inner--truthy$/,
|
|
@@ -15,8 +15,9 @@ 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
|
-
|
|
19
|
-
|
|
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
|
|
20
21
|
text-[14px] px-[1em] py-[0.375em]
|
|
21
22
|
[&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
|
|
22
23
|
],
|
|
@@ -70,7 +71,7 @@ const shortcuts = [
|
|
|
70
71
|
[
|
|
71
72
|
/^q-chip--square$/,
|
|
72
73
|
([, c], { theme }) => theme.quasar?.components?.['q-chip--square'] ??
|
|
73
|
-
`rounded-[
|
|
74
|
+
`rounded-[8px] [&_.q-avatar]:(rounded-tl-[3px] rounded-br-[0] rounded-tr-[0] rounded-bl-[3px])`
|
|
74
75
|
]
|
|
75
76
|
];
|
|
76
77
|
export { preflights, shortcuts };
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-drawer$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-drawer'] ??
|
|
5
|
-
`absolute top-[0] bottom-[0] bg-light-surface-container-low dark:bg-dark-surface-container-low z-${theme.quasar.z['side']}`
|
|
5
|
+
`border-rd-16px 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,10 @@ 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-item:hover]:(bg-light-on-secondary-container/8 dark:bg-dark-on-secondary-container/8)
|
|
74
75
|
[&_.q-list_>_.q-router-link--active]:(text-light-primary dark:text-dark-primary)
|
|
75
|
-
[&_.q-list_.q-router-link--
|
|
76
|
-
|
|
76
|
+
[&_.q-list_.q-router-link--active]:(bg-light-secondary-container dark:bg-dark-secondary-container)
|
|
77
|
+
`
|
|
77
78
|
]
|
|
78
79
|
];
|
|
79
80
|
export { shortcuts };
|
|
@@ -229,27 +229,28 @@ 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-high
|
|
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)])
|
|
233
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)])
|
|
234
235
|
[&_.q-field\\_\\_control:hover:before]:(opacity-100)
|
|
235
236
|
[&.q-field--rounded_.q-field\\_\\_control]:(rounded-[28px])
|
|
236
|
-
[&.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)]
|
|
237
|
-
[&.q-field--highlighted_.q-field\\_\\_native]:(text-
|
|
238
|
-
[&.q-field--highlighted_.q-field\\_\\_prefix]:(text-
|
|
239
|
-
[&.q-field--highlighted_.q-field\\_\\_suffix]:(text-
|
|
240
|
-
[&.q-field--highlighted_.q-field\\_\\_prepend]:(text-
|
|
241
|
-
[&.q-field--highlighted_.q-field\\_\\_append]:(text-
|
|
242
|
-
[&.q-field--highlighted_.q-field\\_\\_input]:(text-
|
|
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-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)
|
|
243
244
|
[&.q-field--readonly_.q-field\\_\\_control:before]:(opacity-100 bg-transparent border-[1px] border-dashed border-black/24)
|
|
244
|
-
[&.q-field--dark_.q-field\\_\\_control]:(bg-
|
|
245
|
+
[&.q-field--dark_.q-field\\_\\_control]:(bg-dark-surface-container-high)
|
|
245
246
|
[&.q-field--dark_.q-field\\_\\_control:before]:(layer-components:bg-white/7)
|
|
246
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_control]:(layer-components:bg-
|
|
247
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_native]:(text-
|
|
248
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prefix]:(text-
|
|
249
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_suffix]:(text-
|
|
250
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_prepend]:(text-
|
|
251
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_append]:(text-
|
|
252
|
-
[&.q-field--dark.q-field--highlighted_.q-field\\_\\_input]:(text-
|
|
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]:(!text-dark-on-surface)
|
|
253
254
|
[&.q-field--dark.q-field--readonly_.q-field\\_\\_control:before]:(border-white/24)`
|
|
254
255
|
],
|
|
255
256
|
[
|
|
@@ -3,17 +3,17 @@ 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-primary)`
|
|
6
|
+
[&.q-router-link--active]:(text-light-primary dark:text-dark-primary)`
|
|
7
7
|
],
|
|
8
8
|
[
|
|
9
9
|
/^q-item__section--side$/,
|
|
10
10
|
([, c], { theme }) => theme.quasar?.components?.['q-item__section--side'] ??
|
|
11
|
-
`!flex-initial text-[#757575] items-start pr-[16px] w-auto
|
|
11
|
+
`!flex-initial text-[#757575] items-start pr-[16px] w-auto max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
|
|
12
12
|
],
|
|
13
13
|
[
|
|
14
14
|
/^q-item__section--avatar$/,
|
|
15
15
|
([, c], { theme }) => theme.quasar?.components?.['q-item__section--avatar'] ??
|
|
16
|
-
`!flex-initial [color:inherit] min-w-[
|
|
16
|
+
`!flex-initial [color:inherit] min-w-[40px]`
|
|
17
17
|
],
|
|
18
18
|
[
|
|
19
19
|
/^q-item__section--thumbnail$/,
|
|
@@ -79,13 +79,18 @@ const shortcuts = [
|
|
|
79
79
|
[
|
|
80
80
|
/^q-list--dark$/,
|
|
81
81
|
([, c], { theme }) => theme.quasar?.components?.['q-list--dark'] ??
|
|
82
|
-
`text-[#fff] border-[rgba(255,_255,_255,_0.28)]
|
|
82
|
+
`text-[#fff] border-[rgba(255,_255,_255,_0.28)]
|
|
83
|
+
[&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)])
|
|
84
|
+
[&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
|
|
83
85
|
],
|
|
84
86
|
[
|
|
85
87
|
/^q-item--dark$/,
|
|
86
88
|
([, c], { theme }) => theme.quasar?.components?.['q-item--dark'] ??
|
|
87
89
|
`text-[#fff] border-[rgba(255,_255,_255,_0.28)] [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
|
|
88
90
|
],
|
|
89
|
-
[
|
|
91
|
+
[
|
|
92
|
+
/^q-item--active$/,
|
|
93
|
+
([, c], { theme }) => `text-light-primary dark:text-dark-primary`
|
|
94
|
+
]
|
|
90
95
|
];
|
|
91
96
|
export { shortcuts };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-scrollarea$/, ([, c], { theme }) => `relative`],
|
|
2
|
+
[/^q-scrollarea$/, ([, c], { theme }) => `relative [contain:strict]`],
|
|
3
3
|
[
|
|
4
4
|
/^q-scrollarea__bar$/,
|
|
5
5
|
([, c], { theme }) => theme.quasar?.components?.['q-scrollarea__bar'] ??
|
|
@@ -26,10 +26,7 @@ const shortcuts = [
|
|
|
26
26
|
],
|
|
27
27
|
[/^q-scrollarea__thumb:hover$/, ([, c], { theme }) => `hover:opacity-30`],
|
|
28
28
|
[/^q-scrollarea__thumb:active$/, ([, c], { theme }) => `active:opacity-50`],
|
|
29
|
-
[
|
|
30
|
-
/^q-scrollarea__content$/,
|
|
31
|
-
([, c], { theme }) => `!relative min-h-full min-w-full`
|
|
32
|
-
],
|
|
29
|
+
[/^q-scrollarea__content$/, ([, c], { theme }) => `min-h-full w-full`],
|
|
33
30
|
[
|
|
34
31
|
/^q-scrollarea--dark$/,
|
|
35
32
|
([, c], { theme }) => theme.quasar?.components?.['q-scrollarea--dark'] ??
|
|
@@ -2,7 +2,14 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-stepper$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-stepper'] ??
|
|
5
|
-
`[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]
|
|
5
|
+
`[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]
|
|
6
|
+
bg-light-surface dark:bg-dark-surface
|
|
7
|
+
`
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
/^q-stepper__label$/,
|
|
11
|
+
([, c], { theme }) => theme.quasar?.components?.['q-stepper__label'] ??
|
|
12
|
+
`bg-light-surface dark:bg-dark-surface`
|
|
6
13
|
],
|
|
7
14
|
[
|
|
8
15
|
/^q-stepper__title$/,
|
|
@@ -27,7 +34,16 @@ const shortcuts = [
|
|
|
27
34
|
[
|
|
28
35
|
/^q-stepper--dark$/,
|
|
29
36
|
([, c], { theme }) => theme.quasar?.components?.['q-stepper--dark'] ??
|
|
30
|
-
`[box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]
|
|
37
|
+
`[box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]
|
|
38
|
+
[&_.q-stepper\\_\\_dot_span]:(text-[#000]) [&.q-stepper--bordered]:(border-[rgba(255,_255,_255,_0.28)])
|
|
39
|
+
[&_.q-stepper\\_\\_header--border]:(border-[rgba(255,_255,_255,_0.28)])
|
|
40
|
+
[&.q-stepper--horizontal_.q-stepper\\_\\_line:before]:(bg-[rgba(255,_255,_255,_0.28)])
|
|
41
|
+
[&.q-stepper--horizontal_.q-stepper\\_\\_line:after]:(bg-[rgba(255,_255,_255,_0.28)])
|
|
42
|
+
[&.q-stepper--vertical_.q-stepper\\_\\_dot:before]:(bg-[rgba(255,_255,_255,_0.28)])
|
|
43
|
+
[&.q-stepper--vertical_.q-stepper\\_\\_dot:after]:(bg-[rgba(255,_255,_255,_0.28)])
|
|
44
|
+
[&_.q-stepper\\_\\_tab--disabled]:(text-[rgba(255,_255,_255,_0.28)])
|
|
45
|
+
[&_.q-stepper\\_\\_tab--disabled_.q-stepper\\_\\_dot]:(bg-[rgba(255,_255,_255,_0.28)])
|
|
46
|
+
[&_.q-stepper\\_\\_tab--disabled_.q-stepper\\_\\_label]:(text-[rgba(255,_255,_255,_0.54)])`
|
|
31
47
|
],
|
|
32
48
|
[
|
|
33
49
|
/^q-stepper__tab--navigation$/,
|
|
@@ -37,7 +53,8 @@ const shortcuts = [
|
|
|
37
53
|
[
|
|
38
54
|
/^q-stepper__tab--active$/,
|
|
39
55
|
([, c], { theme }) => theme.quasar?.components?.['q-stepper__tab--active'] ??
|
|
40
|
-
`
|
|
56
|
+
`text-light-primary dark:text-dark-primary [&_.q-stepper\\_\\_dot]:([text-shadow:0_0_0_currentColor])
|
|
57
|
+
[&_.q-stepper\\_\\_label]:([text-shadow:0_0_0_currentColor])`
|
|
41
58
|
],
|
|
42
59
|
[
|
|
43
60
|
/^q-stepper__tab--done$/,
|
|
@@ -107,7 +124,16 @@ __.q-stepper\\_\\_tab:last-child]:(items-end) [&_.q-stepper\\_\\_tab]:(px-[0] py
|
|
|
107
124
|
[
|
|
108
125
|
/^q-stepper--horizontal$/,
|
|
109
126
|
([, c], { theme }) => theme.quasar?.components?.['q-stepper--horizontal'] ??
|
|
110
|
-
`[&_.q-stepper\\_\\_step-inner]:(p-[24px])
|
|
127
|
+
`[&_.q-stepper\\_\\_step-inner]:(p-[24px])
|
|
128
|
+
[&_.q-stepper\\_\\_tab:first-child]:([border-top-left-radius:inherit])
|
|
129
|
+
[&_.q-stepper\\_\\_tab:last-child]:([border-top-right-radius:inherit])
|
|
130
|
+
[&_.q-stepper\\_\\_tab:first-child_.q-stepper\\_\\_dot:before]:(hidden)
|
|
131
|
+
[&_.q-stepper\\_\\_tab:last-child_.q-stepper\\_\\_label:after]:(hidden)
|
|
132
|
+
[&_.q-stepper\\_\\_tab:last-child_.q-stepper\\_\\_dot:after]:(hidden)
|
|
133
|
+
[&_.q-stepper\\_\\_tab]:(overflow-hidden)
|
|
134
|
+
[&_.q-stepper\\_\\_line]:(contain-layout)
|
|
135
|
+
[&_.q-stepper\\_\\_line:before]:(absolute top-2/4 h-px w-screen bg-[rgba(0,_0,_0,_0.12)])
|
|
136
|
+
[&_.q-stepper\\_\\_line:after]:(absolute top-2/4 h-px w-screen bg-[rgba(0,_0,_0,_0.12)]) [&_.q-stepper\\_\\_label:after]:(content-[''] left-full ml-[8px]) [&_.q-stepper\\_\\_dot:after]:(content-[''] left-full ml-[8px]) [&_.q-stepper\\_\\_dot:before]:(content-[''] right-full mr-[8px]) [&_>_.q-stepper\\_\\_nav]:(pt-[0] px-[24px] pb-[24px])`
|
|
111
137
|
],
|
|
112
138
|
[
|
|
113
139
|
/^q-stepper--vertical$/,
|
|
@@ -2,11 +2,14 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-tab$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-tab'] ??
|
|
5
|
-
`px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s] whitespace-nowrap [color:inherit] no-underline
|
|
5
|
+
`px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s] whitespace-nowrap [color:inherit] no-underline
|
|
6
|
+
[&_.q-badge]:(top-[3px] -right-[12px])
|
|
7
|
+
[&_>_.q-focus-helper]:(!absolute !h-32px !w-52px !top-[calc(50%-23px)] !left-[calc(50%-26px)] !border-rd-16px)
|
|
8
|
+
`
|
|
6
9
|
],
|
|
7
10
|
[
|
|
8
11
|
/^q-tab--full$/,
|
|
9
|
-
([, c], { theme }) => theme.quasar?.components?.['q-tab--full'] ?? `min-h-
|
|
12
|
+
([, c], { theme }) => theme.quasar?.components?.['q-tab--full'] ?? `min-h-72px h-72px`
|
|
10
13
|
],
|
|
11
14
|
[
|
|
12
15
|
/^q-tab--no-caps$/,
|
|
@@ -45,12 +48,12 @@ const shortcuts = [
|
|
|
45
48
|
[
|
|
46
49
|
/^q-tab__indicator$/,
|
|
47
50
|
([, c], { theme }) => theme.quasar?.components?.['q-tab__indicator'] ??
|
|
48
|
-
`
|
|
51
|
+
`opacity-0 h-[2px] bg-current`
|
|
49
52
|
],
|
|
50
53
|
[
|
|
51
54
|
/^q-tab--active$/,
|
|
52
55
|
([, c], { theme }) => theme.quasar?.components?.['q-tab--active'] ??
|
|
53
|
-
`[&_.q-tab\\_\\_indicator]:(opacity-100 origin-left)`
|
|
56
|
+
`text-light-primary dark:text-dark-primary [&_.q-tab\\_\\_indicator]:(opacity-100 origin-left)`
|
|
54
57
|
],
|
|
55
58
|
[
|
|
56
59
|
/^q-tab--inactive$/,
|
|
@@ -108,8 +111,14 @@ const shortcuts = [
|
|
|
108
111
|
[
|
|
109
112
|
/^q-tabs--vertical$/,
|
|
110
113
|
([, c], { theme }) => theme.quasar?.components?.['q-tabs--vertical'] ??
|
|
111
|
-
`!block h-full [&_.q-tabs\\_\\_content]:(!block h-full)
|
|
112
|
-
[
|
|
114
|
+
`!block h-full [&_.q-tabs\\_\\_content]:(!block h-full)
|
|
115
|
+
[&_.q-tabs\\_\\_arrow]:(w-full h-[36px] text-center)
|
|
116
|
+
[&_.q-tabs\\_\\_arrow--left]:(top-[0] left-[0] right-[0])
|
|
117
|
+
[&_.q-tabs\\_\\_arrow--right]:(left-[0] right-[0] bottom-[0])
|
|
118
|
+
[&_.q-tab]:(px-[8px] py-[0])
|
|
119
|
+
[&_.q-tab\\_\\_indicator]:(h-[unset] w-2px min-h-100%)
|
|
120
|
+
[&_.q-tabs--not-scrollable_.q-tabs\\_\\_content]:(h-full)
|
|
121
|
+
[&_.q-tabs--dense_.q-tab\\_\\_content]:(min-w-[24px])`
|
|
113
122
|
],
|
|
114
123
|
[
|
|
115
124
|
/^q-tabs--dense$/,
|