@rokkit/themes 1.0.0-next.124 → 1.0.0-next.127
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/README.md +118 -9
- package/package.json +31 -27
- package/src/base/breadcrumbs.css +46 -0
- package/src/base/button.css +243 -0
- package/src/base/card.css +36 -0
- package/src/base/carousel.css +122 -12
- package/src/base/connector.css +106 -0
- package/src/base/display.css +91 -0
- package/src/base/floating-action.css +388 -0
- package/src/base/floating-navigation.css +381 -0
- package/src/base/index.css +36 -0
- package/src/base/input.css +194 -39
- package/src/base/item.css +52 -0
- package/src/base/list.css +258 -0
- package/src/base/menu.css +322 -0
- package/src/base/pill.css +57 -0
- package/src/base/progress.css +28 -15
- package/src/base/range.css +121 -0
- package/src/base/rating.css +40 -0
- package/src/base/reveal.css +37 -0
- package/src/base/search-filter.css +132 -0
- package/src/base/select.css +411 -0
- package/src/base/shine.css +14 -0
- package/src/base/stepper.css +140 -0
- package/src/base/switch.css +152 -0
- package/src/base/table.css +143 -33
- package/src/base/tabs.css +171 -0
- package/src/base/tilt.css +14 -0
- package/src/base/timeline.css +84 -0
- package/src/base/toggle.css +134 -0
- package/src/base/toolbar.css +337 -0
- package/src/base/tree.css +156 -11
- package/src/glass/button.css +152 -0
- package/src/glass/floating-action.css +61 -0
- package/src/glass/floating-navigation.css +74 -0
- package/src/glass/index.css +23 -0
- package/src/glass/input.css +124 -0
- package/src/glass/list.css +122 -0
- package/src/glass/menu.css +92 -0
- package/src/glass/range.css +61 -0
- package/src/glass/search-filter.css +49 -0
- package/src/glass/select.css +178 -0
- package/src/glass/switch.css +28 -0
- package/src/glass/table.css +87 -0
- package/src/glass/tabs.css +58 -0
- package/src/glass/timeline.css +46 -0
- package/src/glass/toggle.css +48 -0
- package/src/glass/toolbar.css +84 -0
- package/src/glass/tree.css +104 -0
- package/src/index.css +18 -0
- package/src/index.js +25 -2
- package/src/material/button.css +153 -0
- package/src/material/floating-action.css +60 -0
- package/src/material/floating-navigation.css +74 -0
- package/src/material/index.css +23 -0
- package/src/material/input.css +118 -40
- package/src/material/list.css +90 -64
- package/src/material/menu.css +92 -0
- package/src/material/range.css +62 -0
- package/src/material/search-filter.css +49 -0
- package/src/material/select.css +170 -0
- package/src/material/switch.css +28 -0
- package/src/material/table.css +87 -0
- package/src/material/tabs.css +62 -0
- package/src/material/timeline.css +46 -0
- package/src/material/toggle.css +48 -0
- package/src/material/toolbar.css +84 -0
- package/src/material/tree.css +100 -0
- package/src/minimal/button.css +152 -0
- package/src/minimal/floating-action.css +59 -0
- package/src/minimal/floating-navigation.css +70 -0
- package/src/minimal/index.css +23 -0
- package/src/minimal/input.css +81 -120
- package/src/minimal/list.css +90 -104
- package/src/minimal/menu.css +88 -0
- package/src/minimal/range.css +61 -0
- package/src/minimal/search-filter.css +49 -0
- package/src/minimal/select.css +168 -0
- package/src/minimal/switch.css +28 -0
- package/src/minimal/table.css +87 -0
- package/src/minimal/tabs.css +53 -31
- package/src/minimal/timeline.css +45 -0
- package/src/minimal/toggle.css +48 -0
- package/src/minimal/toolbar.css +84 -0
- package/src/minimal/tree.css +100 -0
- package/src/rokkit/button.css +225 -0
- package/src/rokkit/connector.css +11 -0
- package/src/rokkit/floating-action.css +65 -0
- package/src/rokkit/floating-navigation.css +83 -0
- package/src/rokkit/index.css +24 -0
- package/src/rokkit/input.css +130 -0
- package/src/rokkit/list.css +141 -0
- package/src/rokkit/menu.css +123 -0
- package/src/rokkit/range.css +62 -0
- package/src/rokkit/search-filter.css +49 -0
- package/src/rokkit/select.css +185 -0
- package/src/rokkit/switch.css +28 -0
- package/src/rokkit/table.css +68 -38
- package/src/rokkit/tabs.css +82 -0
- package/src/rokkit/timeline.css +46 -0
- package/src/rokkit/toggle.css +36 -52
- package/src/rokkit/toolbar.css +84 -0
- package/src/rokkit/tree.css +123 -0
- package/src/base/alert.css +0 -30
- package/src/base/animation.css +0 -37
- package/src/base/atoms.css +0 -58
- package/src/base/core.css +0 -107
- package/src/base/layout.css +0 -65
- package/src/base/molecules.css +0 -109
- package/src/base/organisms.css +0 -66
- package/src/base/scrollbar.css +0 -16
- package/src/base/toggles.css +0 -17
- package/src/base.css +0 -13
- package/src/markdown.css +0 -955
- package/src/material/base.css +0 -12
- package/src/material/form.css +0 -30
- package/src/material.css +0 -9
- package/src/minimal/base.css +0 -8
- package/src/minimal/form.css +0 -87
- package/src/minimal.css +0 -11
- package/src/mixins/mixins.scss +0 -66
- package/src/mixins/palette.scss +0 -48
- package/src/prism.css +0 -102
- package/src/rokkit/alert.css +0 -4
- package/src/rokkit/atoms.css +0 -52
- package/src/rokkit/carousel.css +0 -19
- package/src/rokkit/layout.css +0 -17
- package/src/rokkit/molecules.css +0 -124
- package/src/rokkit/organisms.css +0 -307
- package/src/rokkit.css +0 -11
package/src/material/list.css
CHANGED
|
@@ -1,96 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[data-style='material']
|
|
12
|
-
|
|
13
|
-
@apply h-4 w-4 rounded;
|
|
14
|
-
}
|
|
15
|
-
[data-style='material'] .tab.is-hovering {
|
|
16
|
-
@apply bg-primary;
|
|
1
|
+
/**
|
|
2
|
+
* List - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Material Design inspired with subtle elevation and ripple effects.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
List Container
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-list]:focus-within {
|
|
12
|
+
@apply outline-none;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
/* =============================================================================
|
|
16
|
+
List Items
|
|
17
|
+
============================================================================= */
|
|
18
|
+
|
|
19
|
+
[data-style='material'] [data-list] [data-list-item] {
|
|
20
|
+
@apply text-surface-z8;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
|
|
23
|
+
[data-style='material'] [data-list] a[data-list-item],
|
|
24
|
+
[data-style='material'] [data-list] button[data-list-item] {
|
|
25
|
+
@apply text-surface-z7;
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
/* Hover and focus (keyboard navigation) */
|
|
29
|
+
[data-style='material'] [data-list] [data-list-item]:hover:not(:disabled):not([data-disabled='true']),
|
|
30
|
+
[data-style='material'] [data-list] [data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
|
|
31
|
+
@apply bg-surface-z2 text-surface-z10 outline-none;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
/* Active state — muted when list not focused */
|
|
35
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true'] {
|
|
36
|
+
@apply bg-surface-z2 text-primary-z9;
|
|
31
37
|
}
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
|
|
39
|
+
/* Active state — full highlight when list has focus */
|
|
40
|
+
[data-style='material'] [data-list]:focus-within [data-list-item][data-active='true'] {
|
|
41
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
34
42
|
}
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
|
|
44
|
+
/* Active + hover/focus */
|
|
45
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true']:hover:not(:disabled),
|
|
46
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true']:focus:not(:disabled) {
|
|
47
|
+
@apply bg-primary-z3;
|
|
37
48
|
}
|
|
38
49
|
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
/* =============================================================================
|
|
51
|
+
Item Elements
|
|
52
|
+
============================================================================= */
|
|
53
|
+
|
|
54
|
+
[data-style='material'] [data-list] [data-list-item] [data-item-icon] {
|
|
55
|
+
@apply text-surface-z5;
|
|
41
56
|
}
|
|
42
57
|
|
|
43
|
-
[data-style='material']
|
|
44
|
-
|
|
58
|
+
[data-style='material'] [data-list] [data-list-item]:hover:not(:disabled) [data-item-icon],
|
|
59
|
+
[data-style='material'] [data-list] [data-list-item]:focus:not(:disabled) [data-item-icon] {
|
|
60
|
+
@apply text-surface-z7;
|
|
45
61
|
}
|
|
46
62
|
|
|
47
|
-
[data-style='material']
|
|
48
|
-
|
|
63
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-icon] {
|
|
64
|
+
@apply text-primary-z6;
|
|
49
65
|
}
|
|
50
66
|
|
|
51
|
-
[data-style='material']
|
|
52
|
-
|
|
67
|
+
[data-style='material'] [data-list] [data-list-item] [data-item-description] {
|
|
68
|
+
@apply text-surface-z5;
|
|
53
69
|
}
|
|
54
70
|
|
|
55
|
-
[data-style='material']
|
|
56
|
-
|
|
57
|
-
@apply hover:text-primary-600;
|
|
71
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-description] {
|
|
72
|
+
@apply text-primary-z7;
|
|
58
73
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
[data-style='material'] rk-node[aria-selected='true'],
|
|
63
|
-
[data-style='material'] rk-list rk-item[aria-selected='true'] {
|
|
64
|
-
@apply bg-primary text-surface-z1;
|
|
74
|
+
|
|
75
|
+
[data-style='material'] [data-list] [data-list-item] [data-item-badge] {
|
|
76
|
+
@apply text-surface-z6 bg-surface-z2 rounded-full;
|
|
65
77
|
}
|
|
66
|
-
|
|
67
|
-
|
|
78
|
+
|
|
79
|
+
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-badge] {
|
|
80
|
+
@apply text-primary-z8 bg-primary-z2;
|
|
68
81
|
}
|
|
69
82
|
|
|
70
|
-
|
|
71
|
-
|
|
83
|
+
/* =============================================================================
|
|
84
|
+
Groups
|
|
85
|
+
============================================================================= */
|
|
86
|
+
|
|
87
|
+
[data-style='material'] [data-list] [data-list-group-label] {
|
|
88
|
+
@apply text-surface-z6 font-medium;
|
|
72
89
|
}
|
|
73
|
-
|
|
74
|
-
|
|
90
|
+
|
|
91
|
+
[data-style='material'] [data-list] [data-list-group-label]:hover:not(:disabled),
|
|
92
|
+
[data-style='material'] [data-list] [data-list-group-label]:focus:not(:disabled) {
|
|
93
|
+
@apply text-surface-z7;
|
|
75
94
|
}
|
|
76
95
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
/* =============================================================================
|
|
97
|
+
Divider
|
|
98
|
+
============================================================================= */
|
|
99
|
+
|
|
100
|
+
[data-style='material'] [data-list] [data-list-divider] {
|
|
101
|
+
@apply bg-surface-z3;
|
|
81
102
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
103
|
+
|
|
104
|
+
/* =============================================================================
|
|
105
|
+
Multi-Selection
|
|
106
|
+
============================================================================= */
|
|
107
|
+
|
|
108
|
+
[data-style='material'] [data-list] [data-list-item][data-selected='true'] {
|
|
109
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
85
110
|
}
|
|
86
111
|
|
|
87
|
-
[data-style='material']
|
|
88
|
-
|
|
112
|
+
[data-style='material'] [data-list]:focus-within [data-list-item][data-selected='true'] {
|
|
113
|
+
@apply bg-primary-z2;
|
|
89
114
|
}
|
|
90
115
|
|
|
91
|
-
|
|
92
|
-
|
|
116
|
+
[data-style='material'] [data-list] [data-list-item][data-selected='true']:hover:not(:disabled) {
|
|
117
|
+
@apply bg-primary-z3;
|
|
93
118
|
}
|
|
94
|
-
|
|
95
|
-
|
|
119
|
+
|
|
120
|
+
[data-style='material'] [data-list] [data-list-item][data-selected='true'] [data-item-icon] {
|
|
121
|
+
@apply text-primary-z6;
|
|
96
122
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Menu - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Material Design inspired with elevation and shadows.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Menu Trigger
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-menu-trigger] {
|
|
12
|
+
@apply border-surface-z4 bg-surface-z1 text-surface-z8 border shadow-sm;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='material'] [data-menu-trigger]:hover:not(:disabled) {
|
|
16
|
+
@apply bg-surface-z2 text-surface-z10 border-surface-z5 shadow-md;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='material'] [data-menu-trigger]:focus-visible {
|
|
20
|
+
@apply outline-none ring-2 ring-primary-z4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='material'] [data-menu][data-open='true'] [data-menu-trigger] {
|
|
24
|
+
@apply bg-primary-z2 border-primary-z5 shadow-md;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Trigger elements */
|
|
28
|
+
[data-style='material'] [data-menu-trigger] [data-menu-icon] {
|
|
29
|
+
@apply text-surface-z5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-style='material'] [data-menu-trigger]:hover:not(:disabled) [data-menu-icon] {
|
|
33
|
+
@apply text-surface-z7;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-style='material'] [data-menu-trigger] [data-menu-arrow] {
|
|
37
|
+
@apply text-surface-z5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* =============================================================================
|
|
41
|
+
Menu Dropdown
|
|
42
|
+
============================================================================= */
|
|
43
|
+
|
|
44
|
+
[data-style='material'] [data-menu-dropdown] {
|
|
45
|
+
@apply bg-surface-z1 border-surface-z3 border shadow-lg;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* =============================================================================
|
|
49
|
+
Menu Items
|
|
50
|
+
============================================================================= */
|
|
51
|
+
|
|
52
|
+
[data-style='material'] [data-menu-item] {
|
|
53
|
+
@apply text-surface-z8;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-style='material'] [data-menu-item]:hover:not(:disabled),
|
|
57
|
+
[data-style='material'] [data-menu-item]:focus:not(:disabled) {
|
|
58
|
+
@apply bg-surface-z2 text-surface-z10 outline-none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-style='material'] [data-menu-item]:focus-visible {
|
|
62
|
+
@apply outline-none ring-2 ring-primary-z4 ring-inset;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Item elements */
|
|
66
|
+
[data-style='material'] [data-menu-item] [data-item-icon] {
|
|
67
|
+
@apply text-surface-z5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-style='material'] [data-menu-item]:hover:not(:disabled) [data-item-icon] {
|
|
71
|
+
@apply text-surface-z7;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-style='material'] [data-menu-item] [data-item-description] {
|
|
75
|
+
@apply text-surface-z5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* =============================================================================
|
|
79
|
+
Groups
|
|
80
|
+
============================================================================= */
|
|
81
|
+
|
|
82
|
+
[data-style='material'] [data-menu-group-label] {
|
|
83
|
+
@apply text-surface-z5 font-medium;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* =============================================================================
|
|
87
|
+
Divider
|
|
88
|
+
============================================================================= */
|
|
89
|
+
|
|
90
|
+
[data-style='material'] [data-menu-divider] {
|
|
91
|
+
@apply bg-surface-z3;
|
|
92
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Range - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Flat design with subtle elevation.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Track
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-range-bar] {
|
|
12
|
+
@apply bg-surface-z3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='material'] [data-range-selected] {
|
|
16
|
+
@apply bg-primary;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* =============================================================================
|
|
20
|
+
Thumb
|
|
21
|
+
============================================================================= */
|
|
22
|
+
|
|
23
|
+
[data-style='material'] [data-range-thumb] {
|
|
24
|
+
@apply bg-primary border-primary shadow-md;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='material'] [data-range-thumb][data-sliding] {
|
|
28
|
+
@apply shadow-lg;
|
|
29
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-style='material'] [data-range-thumb]:focus-visible {
|
|
33
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* =============================================================================
|
|
37
|
+
Ticks
|
|
38
|
+
============================================================================= */
|
|
39
|
+
|
|
40
|
+
[data-style='material'] [data-range-tick] {
|
|
41
|
+
@apply text-surface-z6;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-style='material'] [data-tick-bar] {
|
|
45
|
+
@apply border-surface-z5;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-style='material'] [data-tick-label] {
|
|
49
|
+
@apply text-surface-z6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* =============================================================================
|
|
53
|
+
Disabled
|
|
54
|
+
============================================================================= */
|
|
55
|
+
|
|
56
|
+
[data-style='material'] [data-range][data-disabled] [data-range-thumb] {
|
|
57
|
+
@apply bg-surface-z4 border-surface-z4 shadow-none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-style='material'] [data-range][data-disabled] [data-range-selected] {
|
|
61
|
+
@apply bg-surface-z4;
|
|
62
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchFilter - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Material Design inspired with elevation and shadows.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Input
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-search-input] {
|
|
12
|
+
@apply text-surface-z8 border-surface-z4 bg-surface-z1 border shadow-sm;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='material'] [data-search-input]:focus {
|
|
16
|
+
@apply border-primary-z5 ring-1 ring-primary-z4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='material'] [data-search-input]::placeholder {
|
|
20
|
+
@apply text-surface-z5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* =============================================================================
|
|
24
|
+
Clear Button
|
|
25
|
+
============================================================================= */
|
|
26
|
+
|
|
27
|
+
[data-style='material'] [data-search-clear] {
|
|
28
|
+
@apply text-surface-z5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-style='material'] [data-search-clear]:hover {
|
|
32
|
+
@apply text-surface-z8 bg-surface-z2 rounded;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* =============================================================================
|
|
36
|
+
Tags
|
|
37
|
+
============================================================================= */
|
|
38
|
+
|
|
39
|
+
[data-style='material'] [data-search-tag] {
|
|
40
|
+
@apply text-surface-z8 bg-surface-z2 rounded-full shadow-sm;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='material'] [data-search-tag-remove] {
|
|
44
|
+
@apply text-surface-z6 rounded-full;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='material'] [data-search-tag-remove]:hover {
|
|
48
|
+
@apply text-surface-z9 bg-surface-z3;
|
|
49
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Material Design inspired with elevation and shadows.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Trigger Button
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-select-trigger] {
|
|
12
|
+
@apply bg-surface-z1 text-surface-z8 border-surface-z4 border shadow-sm;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='material'] [data-select-trigger]:hover:not(:disabled) {
|
|
16
|
+
@apply bg-surface-z2 border-surface-z5 shadow-md;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='material'] [data-select-trigger]:focus-visible {
|
|
20
|
+
@apply outline-none ring-1 ring-primary-z4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='material'] [data-select][data-open='true'] [data-select-trigger] {
|
|
24
|
+
@apply border-primary-z5 shadow-md;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* =============================================================================
|
|
28
|
+
Placeholder
|
|
29
|
+
============================================================================= */
|
|
30
|
+
|
|
31
|
+
[data-style='material'] [data-select-placeholder] {
|
|
32
|
+
@apply text-surface-z5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* =============================================================================
|
|
36
|
+
Arrow
|
|
37
|
+
============================================================================= */
|
|
38
|
+
|
|
39
|
+
[data-style='material'] [data-select-arrow] {
|
|
40
|
+
@apply text-surface-z5;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='material'] [data-select-trigger]:hover:not(:disabled) [data-select-arrow] {
|
|
44
|
+
@apply text-surface-z7;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* =============================================================================
|
|
48
|
+
Tags (MultiSelect)
|
|
49
|
+
============================================================================= */
|
|
50
|
+
|
|
51
|
+
[data-style='material'] [data-select-tag] {
|
|
52
|
+
@apply bg-surface-z2 text-surface-z8 rounded-full shadow-sm;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-style='material'] [data-select-tag-remove] {
|
|
56
|
+
@apply text-surface-z6 rounded-full;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-style='material'] [data-select-tag-remove]:hover {
|
|
60
|
+
@apply text-surface-z9 bg-surface-z3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* =============================================================================
|
|
64
|
+
Dropdown Panel
|
|
65
|
+
============================================================================= */
|
|
66
|
+
|
|
67
|
+
[data-style='material'] [data-select-dropdown] {
|
|
68
|
+
@apply bg-surface-z1 border-surface-z3 border shadow-lg;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* =============================================================================
|
|
72
|
+
Options
|
|
73
|
+
============================================================================= */
|
|
74
|
+
|
|
75
|
+
[data-style='material'] [data-select-option] {
|
|
76
|
+
@apply text-surface-z8;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-style='material'] [data-select-option]:hover:not(:disabled),
|
|
80
|
+
[data-style='material'] [data-select-option]:focus:not(:disabled) {
|
|
81
|
+
@apply bg-surface-z2 text-surface-z10;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-style='material'] [data-select-option]:focus-visible {
|
|
85
|
+
@apply outline-none ring-2 ring-primary-z4 ring-inset;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-style='material'] [data-select-option][data-selected='true'] {
|
|
89
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-style='material'] [data-select-option][data-selected='true']:hover:not(:disabled),
|
|
93
|
+
[data-style='material'] [data-select-option][data-selected='true']:focus:not(:disabled) {
|
|
94
|
+
@apply bg-primary-z3;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Check mark */
|
|
98
|
+
[data-style='material'] [data-select-check] {
|
|
99
|
+
@apply text-primary-z6;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Checkbox */
|
|
103
|
+
[data-style='material'] [data-select-checkbox] {
|
|
104
|
+
@apply border-surface-z5 bg-surface-z1 rounded;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-style='material'] [data-select-checkbox][data-checked='true'] {
|
|
108
|
+
@apply bg-primary-z5 border-primary-z5 text-white;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Item elements */
|
|
112
|
+
[data-style='material'] [data-select-option] [data-item-icon] {
|
|
113
|
+
@apply text-surface-z5;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-style='material'] [data-select-option]:hover:not(:disabled) [data-item-icon] {
|
|
117
|
+
@apply text-surface-z7;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-style='material'] [data-select-option][data-selected='true'] [data-item-icon] {
|
|
121
|
+
@apply text-primary-z6;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-style='material'] [data-select-option] [data-item-description] {
|
|
125
|
+
@apply text-surface-z5;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-style='material'] [data-select-option][data-selected='true'] [data-item-description] {
|
|
129
|
+
@apply text-primary-z7;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* =============================================================================
|
|
133
|
+
Groups
|
|
134
|
+
============================================================================= */
|
|
135
|
+
|
|
136
|
+
[data-style='material'] [data-select-group-label] {
|
|
137
|
+
@apply text-surface-z5 font-medium;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* =============================================================================
|
|
141
|
+
Divider
|
|
142
|
+
============================================================================= */
|
|
143
|
+
|
|
144
|
+
[data-style='material'] [data-select-divider] {
|
|
145
|
+
@apply bg-surface-z3;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* =============================================================================
|
|
149
|
+
Filter Input
|
|
150
|
+
============================================================================= */
|
|
151
|
+
|
|
152
|
+
[data-style='material'] [data-select-filter] {
|
|
153
|
+
@apply bg-surface-z1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-style='material'] [data-select-filter-input] {
|
|
157
|
+
@apply text-surface-z8 border-surface-z4 bg-surface-z1 border shadow-sm;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-style='material'] [data-select-filter-input]:focus {
|
|
161
|
+
@apply border-primary-z5 ring-1 ring-primary-z4;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-style='material'] [data-select-filter-input]::placeholder {
|
|
165
|
+
@apply text-surface-z5;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-style='material'] [data-select-empty] {
|
|
169
|
+
@apply text-surface-z5;
|
|
170
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Switch - Material Theme Styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
[data-style='material'] [data-switch-track] {
|
|
6
|
+
@apply bg-surface-z3;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-style='material'] [data-switch-thumb] {
|
|
10
|
+
@apply bg-surface-z6 shadow-md;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-style='material'] [data-switch]:focus-visible [data-switch-track] {
|
|
14
|
+
@apply ring-2 ring-primary-z5 ring-offset-1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* On state */
|
|
18
|
+
[data-style='material'] [data-switch][aria-checked='true'] [data-switch-track] {
|
|
19
|
+
@apply bg-primary-z5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-style='material'] [data-switch][aria-checked='true'] [data-switch-thumb] {
|
|
23
|
+
@apply bg-white shadow-lg;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-style='material'] [data-switch-label] {
|
|
27
|
+
@apply text-surface-z7;
|
|
28
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Material Design inspired with elevation and shadows.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Header
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-table-header] th {
|
|
12
|
+
@apply text-surface-z6 bg-surface-z2 border-b border-surface-z4 font-medium;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='material'] [data-table-header-cell][data-sortable='true']:hover {
|
|
16
|
+
@apply text-surface-z9 bg-surface-z3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='material'] [data-table-header-cell][data-sort-order='ascending'],
|
|
20
|
+
[data-style='material'] [data-table-header-cell][data-sort-order='descending'] {
|
|
21
|
+
@apply text-primary-z8;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-style='material'] [data-table-sort-icon] {
|
|
25
|
+
@apply text-surface-z5;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-style='material'] [data-table-header-cell][data-sort-order='ascending'] [data-table-sort-icon],
|
|
29
|
+
[data-style='material'] [data-table-header-cell][data-sort-order='descending'] [data-table-sort-icon] {
|
|
30
|
+
@apply text-primary-z6;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* =============================================================================
|
|
34
|
+
Caption
|
|
35
|
+
============================================================================= */
|
|
36
|
+
|
|
37
|
+
[data-style='material'] [data-table-caption] {
|
|
38
|
+
@apply text-surface-z7;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* =============================================================================
|
|
42
|
+
Rows
|
|
43
|
+
============================================================================= */
|
|
44
|
+
|
|
45
|
+
[data-style='material'] [data-table-row] {
|
|
46
|
+
@apply text-surface-z8 border-b border-surface-z3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-style='material'] [data-table-row]:hover {
|
|
50
|
+
@apply bg-surface-z2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-style='material'] [data-table-row]:focus {
|
|
54
|
+
@apply bg-surface-z2 text-surface-z10 outline-none ring-2 ring-primary-z4 ring-inset;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-style='material'] [data-table-row][data-selected='true'] {
|
|
58
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* =============================================================================
|
|
62
|
+
Striped
|
|
63
|
+
============================================================================= */
|
|
64
|
+
|
|
65
|
+
[data-style='material'] [data-striped='true'] [data-table-body] tr:nth-child(even) {
|
|
66
|
+
@apply bg-surface-z1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* =============================================================================
|
|
70
|
+
Empty
|
|
71
|
+
============================================================================= */
|
|
72
|
+
|
|
73
|
+
[data-style='material'] [data-table-empty] {
|
|
74
|
+
@apply text-surface-z5;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* =============================================================================
|
|
78
|
+
Cell Icon
|
|
79
|
+
============================================================================= */
|
|
80
|
+
|
|
81
|
+
[data-style='material'] [data-table-cell] [data-cell-icon] {
|
|
82
|
+
@apply text-surface-z5;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-style='material'] [data-table-row][data-selected='true'] [data-cell-icon] {
|
|
86
|
+
@apply text-primary-z6;
|
|
87
|
+
}
|