@rokkit/themes 1.0.0-next.145 → 1.0.0-next.146
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/build.mjs +3 -2
- package/dist/base.css +349 -1
- package/dist/glass.css +276 -17
- package/dist/grada-ui.css +1681 -0
- package/dist/index.css +3596 -245
- package/dist/material.css +377 -61
- package/dist/minimal.css +522 -102
- package/dist/rokkit.css +327 -1
- package/package.json +5 -2
- package/src/base/alert-list.css +91 -0
- package/src/base/dropdown.css +166 -0
- package/src/base/index.css +4 -0
- package/src/base/message.css +62 -0
- package/src/base/status-list.css +19 -0
- package/src/base/toc.css +3 -1
- package/src/base/toolbar.css +4 -0
- package/src/glass/card.css +37 -0
- package/src/glass/dropdown.css +50 -0
- package/src/glass/index.css +4 -0
- package/src/glass/list.css +11 -11
- package/src/glass/menu.css +6 -6
- package/src/glass/message.css +36 -0
- package/src/glass/status-list.css +66 -0
- package/src/grada-ui/button.css +197 -0
- package/src/grada-ui/card.css +92 -0
- package/src/grada-ui/dropdown.css +53 -0
- package/src/grada-ui/floating-action.css +58 -0
- package/src/grada-ui/floating-navigation.css +64 -0
- package/src/grada-ui/index.css +54 -0
- package/src/grada-ui/input.css +155 -0
- package/src/grada-ui/list.css +109 -0
- package/src/grada-ui/menu.css +81 -0
- package/src/grada-ui/message.css +48 -0
- package/src/grada-ui/range.css +54 -0
- package/src/grada-ui/search-filter.css +42 -0
- package/src/grada-ui/select.css +168 -0
- package/src/grada-ui/status-list.css +61 -0
- package/src/grada-ui/switch.css +31 -0
- package/src/grada-ui/table.css +81 -0
- package/src/grada-ui/tabs.css +57 -0
- package/src/grada-ui/timeline.css +36 -0
- package/src/grada-ui/toc.css +24 -0
- package/src/grada-ui/toggle.css +42 -0
- package/src/grada-ui/toolbar.css +81 -0
- package/src/grada-ui/tree.css +93 -0
- package/src/material/button.css +4 -4
- package/src/material/card.css +38 -1
- package/src/material/dropdown.css +50 -0
- package/src/material/floating-action.css +9 -5
- package/src/material/floating-navigation.css +4 -4
- package/src/material/index.css +4 -0
- package/src/material/list.css +11 -11
- package/src/material/menu.css +6 -6
- package/src/material/message.css +36 -0
- package/src/material/range.css +1 -1
- package/src/material/search-filter.css +1 -1
- package/src/material/select.css +16 -11
- package/src/material/status-list.css +66 -0
- package/src/material/switch.css +2 -2
- package/src/material/table.css +3 -3
- package/src/material/tabs.css +23 -0
- package/src/material/toggle.css +3 -3
- package/src/material/toolbar.css +7 -7
- package/src/material/tree.css +24 -3
- package/src/minimal/button.css +6 -6
- package/src/minimal/card.css +38 -1
- package/src/minimal/dropdown.css +50 -0
- package/src/minimal/floating-action.css +9 -5
- package/src/minimal/floating-navigation.css +4 -4
- package/src/minimal/index.css +4 -0
- package/src/minimal/input.css +66 -15
- package/src/minimal/list.css +8 -8
- package/src/minimal/menu.css +6 -6
- package/src/minimal/message.css +36 -0
- package/src/minimal/range.css +1 -1
- package/src/minimal/search-filter.css +1 -1
- package/src/minimal/select.css +11 -11
- package/src/minimal/status-list.css +66 -0
- package/src/minimal/switch.css +2 -2
- package/src/minimal/table.css +3 -3
- package/src/minimal/tabs.css +91 -10
- package/src/minimal/toggle.css +3 -3
- package/src/minimal/toolbar.css +7 -7
- package/src/minimal/tree.css +24 -3
- package/src/rokkit/card.css +37 -0
- package/src/rokkit/dropdown.css +70 -0
- package/src/rokkit/index.css +4 -0
- package/src/rokkit/message.css +44 -0
- package/src/rokkit/status-list.css +68 -0
- package/src/rokkit/tabs.css +25 -1
- package/src/rokkit/toolbar.css +6 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dropdown - Base Structural Styles
|
|
3
|
+
*
|
|
4
|
+
* A trigger button that displays the selected value, opening a panel of options.
|
|
5
|
+
* No colors, shadows, or visual theming — those belong in theme styles.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* =============================================================================
|
|
9
|
+
Root Container
|
|
10
|
+
============================================================================= */
|
|
11
|
+
|
|
12
|
+
[data-dropdown] {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-dropdown][data-disabled='true'] {
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
opacity: 0.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* =============================================================================
|
|
23
|
+
Trigger Button
|
|
24
|
+
============================================================================= */
|
|
25
|
+
|
|
26
|
+
[data-dropdown-trigger] {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 0.375rem;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
user-select: none;
|
|
33
|
+
border: 1px solid transparent;
|
|
34
|
+
border-radius: 0.375rem;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
transition: all 150ms ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-dropdown-trigger]:disabled {
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-dropdown-trigger]:focus-visible {
|
|
44
|
+
outline: 2px solid currentColor;
|
|
45
|
+
outline-offset: 2px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Size variants */
|
|
49
|
+
[data-dropdown][data-size='sm'] [data-dropdown-trigger] {
|
|
50
|
+
height: 1.5rem;
|
|
51
|
+
padding-inline: 0.5rem;
|
|
52
|
+
font-size: 0.75rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-dropdown][data-size='md'] [data-dropdown-trigger],
|
|
56
|
+
[data-dropdown]:not([data-size]) [data-dropdown-trigger] {
|
|
57
|
+
height: 2rem;
|
|
58
|
+
padding-inline: 0.625rem;
|
|
59
|
+
font-size: 0.875rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-dropdown][data-size='lg'] [data-dropdown-trigger] {
|
|
63
|
+
height: 2.5rem;
|
|
64
|
+
padding-inline: 0.75rem;
|
|
65
|
+
font-size: 1rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* =============================================================================
|
|
69
|
+
Trigger Elements
|
|
70
|
+
============================================================================= */
|
|
71
|
+
|
|
72
|
+
[data-dropdown-trigger] > [data-dropdown-icon] {
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
font-size: 1em;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-dropdown-trigger] > [data-dropdown-label] {
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
text-transform: capitalize;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-dropdown-trigger] > [data-dropdown-arrow] {
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
font-size: 0.75em;
|
|
86
|
+
transition: transform 150ms ease;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-dropdown][data-open='true'] [data-dropdown-trigger] > [data-dropdown-arrow] {
|
|
90
|
+
transform: rotate(180deg);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* =============================================================================
|
|
94
|
+
Panel
|
|
95
|
+
============================================================================= */
|
|
96
|
+
|
|
97
|
+
[data-dropdown-panel] {
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 50;
|
|
100
|
+
min-width: 100%;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
border-radius: 0.5rem;
|
|
103
|
+
margin-top: 0.375rem;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-dropdown][data-align='end'] [data-dropdown-panel] {
|
|
107
|
+
right: 0;
|
|
108
|
+
left: auto;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-dropdown][data-align='start'] [data-dropdown-panel] {
|
|
112
|
+
left: 0;
|
|
113
|
+
right: auto;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-dropdown][data-direction='up'] [data-dropdown-panel] {
|
|
117
|
+
bottom: 100%;
|
|
118
|
+
top: auto;
|
|
119
|
+
margin-top: 0;
|
|
120
|
+
margin-bottom: 0.375rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* =============================================================================
|
|
124
|
+
Options
|
|
125
|
+
============================================================================= */
|
|
126
|
+
|
|
127
|
+
[data-dropdown-option] {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
width: 100%;
|
|
131
|
+
padding-block: 0.375rem;
|
|
132
|
+
padding-inline: 0.75rem;
|
|
133
|
+
font-size: 0.875rem;
|
|
134
|
+
text-align: left;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
border: none;
|
|
137
|
+
background: transparent;
|
|
138
|
+
transition: all 100ms ease;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-dropdown][data-size='sm'] [data-dropdown-option] {
|
|
143
|
+
padding-block: 0.25rem;
|
|
144
|
+
padding-inline: 0.625rem;
|
|
145
|
+
font-size: 0.75rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-dropdown-option]:disabled,
|
|
149
|
+
[data-dropdown-option][data-disabled='true'] {
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
opacity: 0.5;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-dropdown-option-label] {
|
|
155
|
+
flex: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* =============================================================================
|
|
159
|
+
Separator
|
|
160
|
+
============================================================================= */
|
|
161
|
+
|
|
162
|
+
[data-dropdown-separator] {
|
|
163
|
+
height: 1px;
|
|
164
|
+
border: none;
|
|
165
|
+
margin-block: 0.25rem;
|
|
166
|
+
}
|
package/src/base/index.css
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@import './button.css';
|
|
9
9
|
@import './item.css';
|
|
10
10
|
@import './menu.css';
|
|
11
|
+
@import './dropdown.css';
|
|
11
12
|
@import './select.css';
|
|
12
13
|
@import './toolbar.css';
|
|
13
14
|
@import './tabs.css';
|
|
@@ -39,3 +40,6 @@
|
|
|
39
40
|
@import './upload-target.css';
|
|
40
41
|
@import './upload-progress.css';
|
|
41
42
|
@import './toc.css';
|
|
43
|
+
@import './status-list.css';
|
|
44
|
+
@import './message.css';
|
|
45
|
+
@import './alert-list.css';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Message — base structural styles */
|
|
2
|
+
|
|
3
|
+
[data-message-root] {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
padding: 0.75rem 1rem;
|
|
8
|
+
border-radius: 0.375rem;
|
|
9
|
+
font-size: 0.875rem;
|
|
10
|
+
line-height: 1.5;
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
border-style: solid;
|
|
13
|
+
cursor: default;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-message-icon] {
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
width: 1rem;
|
|
20
|
+
height: 1rem;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
font-size: 0.75rem;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
margin-top: 0.125rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-message-text] {
|
|
30
|
+
flex: 1;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-message-actions] {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
margin-top: -0.125rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-message-dismiss] {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: 1.25rem;
|
|
48
|
+
height: 1.25rem;
|
|
49
|
+
margin-top: -0.125rem;
|
|
50
|
+
border: none;
|
|
51
|
+
background: transparent;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
font-size: 1rem;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
padding: 0;
|
|
56
|
+
opacity: 0.5;
|
|
57
|
+
border-radius: 0.25rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-message-dismiss]:hover {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* StatusList — base structural styles */
|
|
2
|
+
|
|
3
|
+
[data-status-list] {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 0.375rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-status-item] {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
line-height: 1.25rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-status-item] p {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
package/src/base/toc.css
CHANGED
package/src/base/toolbar.css
CHANGED
package/src/glass/card.css
CHANGED
|
@@ -64,3 +64,40 @@
|
|
|
64
64
|
@apply cursor-not-allowed opacity-50;
|
|
65
65
|
transform: none;
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
/* =============================================================================
|
|
69
|
+
Variants
|
|
70
|
+
============================================================================= */
|
|
71
|
+
|
|
72
|
+
/* Primary — tinted primary glass */
|
|
73
|
+
[data-style='glass'] [data-card][data-variant='primary'] {
|
|
74
|
+
@apply bg-primary-z4/40 border-primary-z5/30 text-on-primary border shadow-lg backdrop-blur-md;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-style='glass'] [data-card][data-variant='primary'] [data-card-header],
|
|
78
|
+
[data-style='glass'] [data-card][data-variant='primary'] [data-card-footer] {
|
|
79
|
+
@apply border-primary-z4/20;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-style='glass'] [data-card][data-variant='primary'] [data-card-body] {
|
|
83
|
+
@apply text-on-primary/80;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Secondary — tinted secondary glass */
|
|
87
|
+
[data-style='glass'] [data-card][data-variant='secondary'] {
|
|
88
|
+
@apply bg-secondary-z4/40 border-secondary-z5/30 text-on-secondary border shadow-lg backdrop-blur-md;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-style='glass'] [data-card][data-variant='secondary'] [data-card-header],
|
|
92
|
+
[data-style='glass'] [data-card][data-variant='secondary'] [data-card-footer] {
|
|
93
|
+
@apply border-secondary-z4/20;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-style='glass'] [data-card][data-variant='secondary'] [data-card-body] {
|
|
97
|
+
@apply text-on-secondary/80;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Tertiary — barely-there frosted glass */
|
|
101
|
+
[data-style='glass'] [data-card][data-variant='tertiary'] {
|
|
102
|
+
@apply bg-surface-z3/30 border-surface-z5/10 text-surface-z7 border backdrop-blur-md;
|
|
103
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dropdown - Glass Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Glassmorphism with blur and transparency.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='glass'] [data-dropdown-trigger] {
|
|
8
|
+
@apply bg-none bg-surface-z1/70 text-surface-z8 border-surface-z5/20 border backdrop-blur-md;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-style='glass'] [data-dropdown-trigger]:hover:not(:disabled) {
|
|
12
|
+
@apply bg-none bg-surface-z2/80 text-surface-z10 border-surface-z5/30;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='glass'] [data-dropdown-trigger]:focus-visible {
|
|
16
|
+
@apply ring-surface-z5/40 ring-1 outline-none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='glass'] [data-dropdown][data-open='true'] [data-dropdown-trigger] {
|
|
20
|
+
@apply bg-none bg-primary-z5/30 border-primary-z5/50;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='glass'] [data-dropdown-trigger] [data-dropdown-icon] {
|
|
24
|
+
@apply text-surface-z5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='glass'] [data-dropdown-trigger] [data-dropdown-arrow] {
|
|
28
|
+
@apply text-surface-z5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-style='glass'] [data-dropdown-panel] {
|
|
32
|
+
@apply bg-none bg-surface-z2/50 border-surface-z5/20 border shadow-lg backdrop-blur-lg;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-style='glass'] [data-dropdown-option] {
|
|
36
|
+
@apply text-surface-z8;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-style='glass'] [data-dropdown-option]:hover:not(:disabled),
|
|
40
|
+
[data-style='glass'] [data-dropdown-option]:focus:not(:disabled) {
|
|
41
|
+
@apply bg-none bg-surface-z2/15 text-surface-z10 outline-none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-style='glass'] [data-dropdown-option][data-active='true'] {
|
|
45
|
+
@apply bg-none bg-primary-z5/20 text-surface-z10;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-style='glass'] [data-dropdown-separator] {
|
|
49
|
+
@apply bg-none bg-surface-z5/20;
|
|
50
|
+
}
|
package/src/glass/index.css
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@import './tree.css';
|
|
16
16
|
@import './select.css';
|
|
17
17
|
@import './menu.css';
|
|
18
|
+
@import './dropdown.css';
|
|
18
19
|
@import './floating-action.css';
|
|
19
20
|
@import './table.css';
|
|
20
21
|
@import './search-filter.css';
|
|
@@ -22,3 +23,6 @@
|
|
|
22
23
|
@import './timeline.css';
|
|
23
24
|
@import './floating-navigation.css';
|
|
24
25
|
@import './toc.css';
|
|
26
|
+
@import './card.css';
|
|
27
|
+
@import './message.css';
|
|
28
|
+
@import './status-list.css';
|
package/src/glass/list.css
CHANGED
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
/* Hover and focus (keyboard navigation) */
|
|
29
29
|
[data-style='glass'] [data-list] [data-list-item]:hover:not(:disabled):not([data-disabled='true']),
|
|
30
30
|
[data-style='glass'] [data-list] [data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
|
|
31
|
-
@apply
|
|
31
|
+
@apply bg-none bg-surface-z2/15 text-surface-z10 outline-none;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* Active state — muted when list not focused */
|
|
35
35
|
[data-style='glass'] [data-list] [data-list-item][data-active='true'] {
|
|
36
|
-
@apply bg-surface-z2/15 text-primary-z9;
|
|
36
|
+
@apply bg-none bg-surface-z2/15 text-primary-z9;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Active state — full highlight when list has focus */
|
|
40
40
|
[data-style='glass'] [data-list]:focus-within [data-list-item][data-active='true'] {
|
|
41
|
-
@apply bg-primary-z5/30 text-primary-z9;
|
|
41
|
+
@apply bg-none bg-primary-z5/30 text-primary-z9;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/* Active + hover/focus */
|
|
45
45
|
[data-style='glass'] [data-list] [data-list-item][data-active='true']:hover:not(:disabled),
|
|
46
46
|
[data-style='glass'] [data-list] [data-list-item][data-active='true']:focus:not(:disabled) {
|
|
47
|
-
@apply bg-primary-z5/40;
|
|
47
|
+
@apply bg-none bg-primary-z5/40;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* =============================================================================
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
[data-style='glass'] [data-list] [data-list-item] [data-item-badge] {
|
|
76
|
-
@apply
|
|
76
|
+
@apply bg-none bg-surface-z2/15 text-surface-z6;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
[data-style='glass'] [data-list] [data-list-item][data-active='true'] [data-item-badge] {
|
|
80
|
-
@apply
|
|
80
|
+
@apply bg-none bg-primary-z5/25 text-primary-z8;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/* =============================================================================
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
[data-style='glass'] [data-list] [data-list-group]:hover:not(:disabled),
|
|
92
92
|
[data-style='glass'] [data-list] [data-list-group]:focus:not(:disabled) {
|
|
93
|
-
@apply bg-surface-z3/25 text-surface-z8;
|
|
93
|
+
@apply bg-none bg-surface-z3/25 text-surface-z8;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/* =============================================================================
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
============================================================================= */
|
|
99
99
|
|
|
100
100
|
[data-style='glass'] [data-list] [data-list-separator] {
|
|
101
|
-
@apply bg-surface-z5/20;
|
|
101
|
+
@apply bg-none bg-surface-z5/20;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/* =============================================================================
|
|
@@ -106,15 +106,15 @@
|
|
|
106
106
|
============================================================================= */
|
|
107
107
|
|
|
108
108
|
[data-style='glass'] [data-list] [data-list-item][data-selected='true'] {
|
|
109
|
-
@apply bg-primary-z5/20 text-primary-z9;
|
|
109
|
+
@apply bg-none bg-primary-z5/20 text-primary-z9;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
[data-style='glass'] [data-list]:focus-within [data-list-item][data-selected='true'] {
|
|
113
|
-
@apply bg-primary-z5/30;
|
|
113
|
+
@apply bg-none bg-primary-z5/30;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
[data-style='glass'] [data-list] [data-list-item][data-selected='true']:hover:not(:disabled) {
|
|
117
|
-
@apply bg-primary-z5/40;
|
|
117
|
+
@apply bg-none bg-primary-z5/40;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
[data-style='glass'] [data-list] [data-list-item][data-selected='true'] [data-item-icon] {
|
package/src/glass/menu.css
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-menu-trigger] {
|
|
12
|
-
@apply
|
|
12
|
+
@apply bg-none bg-surface-z1/70 text-surface-z8 border-surface-z5/20 border backdrop-blur-md;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[data-style='glass'] [data-menu-trigger]:hover:not(:disabled) {
|
|
16
|
-
@apply
|
|
16
|
+
@apply bg-none bg-surface-z2/80 text-surface-z10 border-surface-z5/30;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
[data-style='glass'] [data-menu-trigger]:focus-visible {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[data-style='glass'] [data-menu][data-open='true'] [data-menu-trigger] {
|
|
24
|
-
@apply bg-primary-z5/30 border-primary-z5/50;
|
|
24
|
+
@apply bg-none bg-primary-z5/30 border-primary-z5/50;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/* Trigger elements */
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
============================================================================= */
|
|
43
43
|
|
|
44
44
|
[data-style='glass'] [data-menu-dropdown] {
|
|
45
|
-
@apply bg-surface-z2/50 border-surface-z5/20 border shadow-lg backdrop-blur-lg;
|
|
45
|
+
@apply bg-none bg-surface-z2/50 border-surface-z5/20 border shadow-lg backdrop-blur-lg;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/* =============================================================================
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
[data-style='glass'] [data-menu-item]:hover:not(:disabled),
|
|
57
57
|
[data-style='glass'] [data-menu-item]:focus:not(:disabled) {
|
|
58
|
-
@apply
|
|
58
|
+
@apply bg-none bg-surface-z2/15 text-surface-z10 outline-none;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
[data-style='glass'] [data-menu-item]:focus-visible {
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
============================================================================= */
|
|
89
89
|
|
|
90
90
|
[data-style='glass'] [data-menu-separator] {
|
|
91
|
-
@apply bg-surface-z5/20;
|
|
91
|
+
@apply bg-none bg-surface-z5/20;
|
|
92
92
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message - Glass Theme Styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[data-style='glass'] [data-message-root][data-type='error'] {
|
|
7
|
+
@apply bg-error-z2/50 border-error-z4/40 text-error-z8 backdrop-blur-sm;
|
|
8
|
+
}
|
|
9
|
+
[data-style='glass'] [data-message-root][data-type='error'] [data-message-icon],
|
|
10
|
+
[data-style='glass'] [data-message-root][data-type='error'] [data-message-dismiss] {
|
|
11
|
+
@apply text-error-z6;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-style='glass'] [data-message-root][data-type='warning'] {
|
|
15
|
+
@apply bg-warning-z2/50 border-warning-z4/40 text-warning-z8 backdrop-blur-sm;
|
|
16
|
+
}
|
|
17
|
+
[data-style='glass'] [data-message-root][data-type='warning'] [data-message-icon],
|
|
18
|
+
[data-style='glass'] [data-message-root][data-type='warning'] [data-message-dismiss] {
|
|
19
|
+
@apply text-warning-z6;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-style='glass'] [data-message-root][data-type='info'] {
|
|
23
|
+
@apply bg-info-z2/50 border-info-z4/40 text-info-z8 backdrop-blur-sm;
|
|
24
|
+
}
|
|
25
|
+
[data-style='glass'] [data-message-root][data-type='info'] [data-message-icon],
|
|
26
|
+
[data-style='glass'] [data-message-root][data-type='info'] [data-message-dismiss] {
|
|
27
|
+
@apply text-info-z6;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-style='glass'] [data-message-root][data-type='success'] {
|
|
31
|
+
@apply bg-success-z2/50 border-success-z4/40 text-success-z8 backdrop-blur-sm;
|
|
32
|
+
}
|
|
33
|
+
[data-style='glass'] [data-message-root][data-type='success'] [data-message-icon],
|
|
34
|
+
[data-style='glass'] [data-message-root][data-type='success'] [data-message-dismiss] {
|
|
35
|
+
@apply text-success-z6;
|
|
36
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StatusList - Glass Theme Styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* ── @rokkit/ui StatusList: icon and text colors by status ── */
|
|
6
|
+
|
|
7
|
+
[data-style='glass'] [data-status-item][data-status='pass'] span {
|
|
8
|
+
@apply text-success-z6;
|
|
9
|
+
}
|
|
10
|
+
[data-style='glass'] [data-status-item][data-status='fail'] span {
|
|
11
|
+
@apply text-error-z6;
|
|
12
|
+
}
|
|
13
|
+
[data-style='glass'] [data-status-item][data-status='warn'] span {
|
|
14
|
+
@apply text-warning-z6;
|
|
15
|
+
}
|
|
16
|
+
[data-style='glass'] [data-status-item][data-status='unknown'] span {
|
|
17
|
+
@apply text-surface-z4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='glass'] [data-status-item][data-status='pass'] {
|
|
21
|
+
@apply text-success-z7;
|
|
22
|
+
}
|
|
23
|
+
[data-style='glass'] [data-status-item][data-status='fail'] {
|
|
24
|
+
@apply text-error-z7;
|
|
25
|
+
}
|
|
26
|
+
[data-style='glass'] [data-status-item][data-status='warn'] {
|
|
27
|
+
@apply text-warning-z7;
|
|
28
|
+
}
|
|
29
|
+
[data-style='glass'] [data-status-item][data-status='unknown'] {
|
|
30
|
+
@apply text-surface-z5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ── @rokkit/forms StatusList: group headers by severity ── */
|
|
34
|
+
|
|
35
|
+
[data-style='glass'] [data-status-group][data-severity='error'] [data-status-header] {
|
|
36
|
+
@apply text-error-z6;
|
|
37
|
+
}
|
|
38
|
+
[data-style='glass'] [data-status-group][data-severity='warning'] [data-status-header] {
|
|
39
|
+
@apply text-warning-z6;
|
|
40
|
+
}
|
|
41
|
+
[data-style='glass'] [data-status-group][data-severity='info'] [data-status-header] {
|
|
42
|
+
@apply text-info-z6;
|
|
43
|
+
}
|
|
44
|
+
[data-style='glass'] [data-status-group][data-severity='success'] [data-status-header] {
|
|
45
|
+
@apply text-success-z6;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ── @rokkit/forms StatusList: item colors ── */
|
|
49
|
+
|
|
50
|
+
[data-style='glass'] [data-status-item][data-status='error'] {
|
|
51
|
+
@apply text-error-z7;
|
|
52
|
+
}
|
|
53
|
+
[data-style='glass'] [data-status-item][data-status='warning'] {
|
|
54
|
+
@apply text-warning-z7;
|
|
55
|
+
}
|
|
56
|
+
[data-style='glass'] [data-status-item][data-status='info'] {
|
|
57
|
+
@apply text-info-z7;
|
|
58
|
+
}
|
|
59
|
+
[data-style='glass'] [data-status-item][data-status='success'] {
|
|
60
|
+
@apply text-success-z7;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Count badge */
|
|
64
|
+
[data-style='glass'] [data-status-count] {
|
|
65
|
+
@apply bg-surface-z2/60 backdrop-blur-sm text-surface-z7 font-semibold;
|
|
66
|
+
}
|