@rokkit/themes 1.0.0-next.105 → 1.0.0-next.106
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/package.json +4 -7
- package/src/base/alert.css +16 -16
- package/src/base/animation.css +15 -0
- package/src/base/atoms.css +23 -24
- package/src/base/carousel.css +6 -6
- package/src/base/core.css +35 -15
- package/src/base/layout.css +1 -1
- package/src/base/molecules.css +35 -52
- package/src/base/organisms.css +49 -9
- package/src/base/progress.css +21 -0
- package/src/base/table.css +2 -2
- package/src/base/toggles.css +21 -0
- package/src/base/tree.css +6 -6
- package/src/base.css +2 -0
- package/src/markdown.css +6 -6
- package/src/material/base.css +3 -3
- package/src/material/form.css +9 -9
- package/src/material/input.css +20 -20
- package/src/material/list.css +29 -29
- package/src/minimal/base.css +2 -2
- package/src/minimal/form.css +27 -27
- package/src/minimal/input.css +36 -36
- package/src/minimal/list.css +46 -46
- package/src/minimal/tabs.css +14 -14
- package/src/palette.css +4 -4
- package/src/rokkit/alert.css +1 -1
- package/src/rokkit/atoms.css +17 -30
- package/src/rokkit/carousel.css +6 -6
- package/src/rokkit/input.css +35 -14
- package/src/rokkit/layout.css +7 -7
- package/src/rokkit/molecules.css +46 -35
- package/src/rokkit/organisms.css +122 -130
- package/src/rokkit/table.css +4 -4
- package/src/rokkit/toggle.css +21 -6
package/src/minimal/list.css
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
|
|
1
|
+
[data-style='minimal'] rk-item {
|
|
2
2
|
@apply flex items-center gap-1;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
[data-style='minimal'] rk-accordion {
|
|
5
5
|
@apply flex-grow overflow-y-scroll focus-within:outline-none;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
[data-style='minimal'] rk-accordion > div,
|
|
8
|
+
[data-style='minimal'] rk-accordion > details {
|
|
9
9
|
@apply relative;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
[data-style='minimal'] rk-list,
|
|
12
|
+
[data-style='minimal'] rk-accordion rk-summary {
|
|
13
13
|
@apply border-l-2px border-l-neutral-muted;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
[data-style='minimal'] :not(rk-accordion > div) rk-list:focus-within {
|
|
16
16
|
@apply outline-offset-3 outline-secondary-700 outline;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
[data-style='minimal'] rk-list > rk-item,
|
|
19
|
+
[data-style='minimal'] rk-accordion summary {
|
|
20
20
|
@apply bg-neutral-base items-center px-2 leading-8 text-neutral-700;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
[data-style='minimal'] rk-item > a {
|
|
24
24
|
@apply gap-2 px-0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[data-style='minimal'] rk-list rk-item:hover {
|
|
28
28
|
@apply -m-l-2px border-l-2px border-l-neutral-subtle;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
[data-style='minimal'] rk-accordion summary:hover {
|
|
31
31
|
@apply border-l-neutral-subtle;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
[data-style='minimal'] rk-list rk-item[aria-selected='true'] {
|
|
34
34
|
@apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-neutral-subtle;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
[data-style='minimal'] rk-accordion .is-selected summary {
|
|
37
37
|
@apply border-l-2px border-l-secondary-600 bg-neutral-subtle;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[data-style='minimal'] rk-accordion .is-expanded summary {
|
|
41
41
|
@apply z-1 sticky top-0;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
[data-style='minimal'] rk-accordion rk-item > a {
|
|
44
44
|
@apply px-0;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
[data-style='minimal'] rk-item > img,
|
|
47
|
+
[data-style='minimal'] rk-item > a > img {
|
|
48
48
|
@apply h-6 w-6;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
[data-style='minimal'] rk-accordion .is-selected rk-summary,
|
|
52
|
+
[data-style='minimal'] rk-accordion .is-selected rk-summary > a,
|
|
53
|
+
[data-style='minimal'] rk-accordion rk-item[aria-selected='true'],
|
|
54
|
+
[data-style='minimal'] rk-accordion rk-item[aria-selected='true'] > a {
|
|
55
55
|
@apply text-secondary-600;
|
|
56
56
|
/* @apply hover:text-secondary; */
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
/*
|
|
59
|
+
/* [data-style="minimal"] nested-list {
|
|
60
60
|
@apply text-sm;
|
|
61
61
|
} */
|
|
62
|
-
|
|
62
|
+
[data-style='minimal'] rk-node > div {
|
|
63
63
|
@apply h-7 px-2 py-1;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
[data-style='minimal'] rk-node > rk-item {
|
|
66
66
|
@apply gap-1 px-1;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
[data-style='minimal'] rk-node > div > span > i {
|
|
69
69
|
@apply w-3 border-none;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
[data-style='minimal'] rk-node > div > rk-icon {
|
|
72
72
|
@apply text-xs text-neutral-400;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
[data-style='minimal'] rk-node[aria-selected='true'] > rk-item > p {
|
|
75
75
|
@apply text-secondary-600;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
[data-style='minimal'] rk-node.is-selected rk-icon {
|
|
78
78
|
@apply text-secondary-600;
|
|
79
79
|
@apply hover:text-secondary-600;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
[data-style='minimal'] .small rk-list > rk-item,
|
|
83
|
+
[data-style='minimal'] .small rk-accordion rk-summary {
|
|
84
84
|
@apply text-sm;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
[data-style='minimal'] .small rk-node > div {
|
|
88
88
|
@apply h-5 gap-1 text-sm;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
[data-style='minimal'] .small rk-node > div > rk-icon {
|
|
91
91
|
@apply text-sm;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
[data-style='minimal'] .small rk-item > img,
|
|
94
|
+
[data-style='minimal'] .small rk-item > a > img {
|
|
95
95
|
@apply h-4 w-4;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
[data-style='minimal'] .small rk-item > a > rk-icon {
|
|
98
98
|
@apply text-sm leading-6;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
[data-style='minimal'] rk-accordion.indented rk-list > rk-item {
|
|
101
101
|
@apply px-4;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
[data-style='minimal'] .folder-tree {
|
|
105
105
|
@apply bg-neutral-inset h-full min-w-40;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/*
|
|
108
|
+
/* [data-style="minimal"] rk-node > div > i {
|
|
109
109
|
@apply border-neutral-muted;
|
|
110
110
|
} */
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
[data-style='minimal'] rk-crumbs {
|
|
113
113
|
@apply flex-grow gap-1 text-sm;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
[data-style='minimal'] rk-crumbs rk-crumb.is-selected {
|
|
116
116
|
@apply text-secondary;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
[data-style='minimal'] rk-switch {
|
|
120
120
|
@apply mx-auto min-h-6 min-w-12 rounded;
|
|
121
121
|
@apply bg-neutral-subtle border-neutral-muted border;
|
|
122
122
|
@apply p-2px leading-loose;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
[data-style='minimal'] rk-switch rk-item {
|
|
125
125
|
@apply items-center justify-center gap-1 px-3;
|
|
126
126
|
@apply min-h-6 min-w-6 cursor-pointer rounded;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
[data-style='minimal'] rk-switch.compact {
|
|
129
129
|
@apply rounded-full;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
[data-style='minimal'] rk-switch.compact > rk-item {
|
|
132
132
|
@apply gap-0 rounded-full px-0;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
[data-style='minimal'] rk-switch rk-item[aria-selected='true'] {
|
|
135
135
|
@apply bg-secondary text-neutral-800;
|
|
136
136
|
}
|
package/src/minimal/tabs.css
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
[data-style='minimal'] rk-tabs:focus {
|
|
2
2
|
@apply outline-none;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
[data-style='minimal'] rk-tabs {
|
|
5
5
|
@apply border-neutral-subtle box-border cursor-pointer select-none gap-2 border-b-2 px-2;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
[data-style='minimal'] rk-tabs .tab {
|
|
8
8
|
@apply px-2 text-base leading-8;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
[data-style='minimal'] rk-tabs .tab rk-icon[role='img'] {
|
|
11
11
|
@apply h-6 w-6;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
[data-style='minimal'] rk-tabs .tab rk-icon[role='button'] {
|
|
14
14
|
@apply h-4 w-4;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
[data-style='minimal'] rk-tabs.is-below {
|
|
17
17
|
@apply border-b-none border-t-2;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
[data-style='minimal'] rk-tabs > p {
|
|
20
20
|
@apply pr-4;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
[data-style='minimal'] rk-tabs .tab {
|
|
23
23
|
@apply relative flex items-center gap-1;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
[data-style='minimal'] rk-tabs .tab > img {
|
|
26
26
|
@apply h-5 w-5;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
[data-style='minimal'] rk-tabs .tab[aria-selected='true'] {
|
|
30
30
|
@apply -mb-2px border-secondary-600 border-b-2;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
[data-style='minimal'] rk-tabs.is-below .tab {
|
|
33
33
|
@apply pt-2px;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
[data-style='minimal'] rk-tabs.is-below .tab[aria-selected='true'] {
|
|
36
36
|
@apply -mt-2px border-b-none border-b-secondary-600 mb-0 border-t-2;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
[data-style='minimal'] .small rk-tabs .tab {
|
|
40
40
|
@apply px-2 text-sm leading-8;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
[data-style='minimal'] .small rk-tabs rk-tab > img {
|
|
43
43
|
@apply h-5 w-5;
|
|
44
44
|
}
|
package/src/palette.css
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
--scroll-width: 0.5rem;
|
|
4
4
|
}
|
|
5
5
|
/* light theme colors */
|
|
6
|
-
|
|
6
|
+
[data-mode='light'] {
|
|
7
7
|
@apply rokkit-mode-light;
|
|
8
8
|
}
|
|
9
9
|
@media (prefers-color-scheme: dark) {
|
|
10
|
-
body:not(
|
|
10
|
+
body:not([data-mode='light']) {
|
|
11
11
|
@apply rokkit-mode-dark;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* dark theme colors */
|
|
16
|
-
|
|
16
|
+
[data-mode='dark'] {
|
|
17
17
|
@apply rokkit-mode-dark;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@media (prefers-color-scheme: light) {
|
|
21
|
-
body:not(
|
|
21
|
+
body:not([data-mode='dark']) {
|
|
22
22
|
@apply rokkit-mode-light;
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/rokkit/alert.css
CHANGED
package/src/rokkit/atoms.css
CHANGED
|
@@ -1,37 +1,24 @@
|
|
|
1
|
-
/* General styles */
|
|
2
|
-
.rokkit {
|
|
3
|
-
@apply select-none;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
/* Zebra styles */
|
|
7
|
-
|
|
2
|
+
[data-style='rokkit'] .zebra rk-item,
|
|
3
|
+
[data-style='rokkit'] .zebra rk-list-item {
|
|
8
4
|
@apply even:bg-neutral-zebra hover:bg-neutral-50;
|
|
9
5
|
}
|
|
10
6
|
|
|
11
|
-
/* Styles for '
|
|
12
|
-
|
|
7
|
+
/* Styles for 'rk-icon' class */
|
|
8
|
+
/* [data-style="rokkit"] rk-icon {
|
|
13
9
|
@apply text-neutral-700 focus:outline-none;
|
|
14
|
-
}
|
|
15
|
-
.rokkit button {
|
|
16
|
-
@apply hover:text-secondary rounded-md text-neutral-700 focus:rounded;
|
|
17
|
-
}
|
|
18
|
-
.rokkit button:focus {
|
|
19
|
-
@apply from-primary to-secondary bg-gradient-to-r text-neutral-200 outline-none dark:text-neutral-800;
|
|
20
|
-
}
|
|
21
|
-
.rokkit button:disabled {
|
|
22
|
-
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
23
|
-
}
|
|
10
|
+
} */
|
|
24
11
|
|
|
25
12
|
/* Styles for input[type='number'] */
|
|
26
|
-
|
|
13
|
+
[data-style='rokkit'] input[type='number'] {
|
|
27
14
|
@apply text-right;
|
|
28
15
|
}
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
[data-style='rokkit'] input[type='number']::-webkit-inner-spin-button,
|
|
17
|
+
[data-style='rokkit'] input[type='number']::-webkit-outer-spin-button {
|
|
31
18
|
-webkit-appearance: none;
|
|
32
19
|
}
|
|
33
20
|
|
|
34
|
-
|
|
21
|
+
[data-style='rokkit'] rk-progress-bar rk-value-bar {
|
|
35
22
|
@apply from-primary to-secondary text-neutral-subtle bg-gradient-to-r dark:text-neutral-800;
|
|
36
23
|
}
|
|
37
24
|
|
|
@@ -40,30 +27,30 @@
|
|
|
40
27
|
@apply border-neutral-subtle border;
|
|
41
28
|
}
|
|
42
29
|
|
|
43
|
-
|
|
30
|
+
[data-style='rokkit'] a {
|
|
44
31
|
@apply text-primary-800 cursor-pointer underline underline-offset-4;
|
|
45
32
|
/* text-underline-offset: 0.25rem; */
|
|
46
33
|
}
|
|
47
|
-
|
|
34
|
+
[data-style='rokkit'] a:hover {
|
|
48
35
|
@apply text-secondary-700 cursor-pointer;
|
|
49
36
|
}
|
|
50
|
-
|
|
37
|
+
[data-style='rokkit'] a:visited {
|
|
51
38
|
@apply text-primary-700;
|
|
52
39
|
}
|
|
53
|
-
|
|
40
|
+
[data-style='rokkit'] a:focus {
|
|
54
41
|
@apply outline-none;
|
|
55
42
|
}
|
|
56
43
|
|
|
57
|
-
|
|
44
|
+
[data-style='rokkit'] [aria-current='true'] a {
|
|
58
45
|
@apply text-primary-100;
|
|
59
46
|
}
|
|
60
|
-
|
|
47
|
+
[data-style='rokkit'] [aria-current='true'] a:visited {
|
|
61
48
|
@apply text-primary-100;
|
|
62
49
|
}
|
|
63
|
-
|
|
50
|
+
[data-style='rokkit'] [aria-current='true'] a:hover {
|
|
64
51
|
@apply text-primary-100;
|
|
65
52
|
}
|
|
66
53
|
|
|
67
|
-
|
|
54
|
+
[data-style='rokkit'].dark ::-webkit-calendar-picker-indicator {
|
|
68
55
|
filter: invert(1);
|
|
69
56
|
}
|
package/src/rokkit/carousel.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
rk-carousel rk-slide {
|
|
2
2
|
@apply min-h-100 items-center gap-3 px-12;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
rk-carousel rk-slide > img {
|
|
5
5
|
@apply h-80 w-80 object-cover;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
rk-carousel rk-slide > p {
|
|
8
8
|
@apply text-center text-2xl;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
rk-carousel rk-dot-nav {
|
|
11
11
|
@apply flex h-4 w-full justify-center gap-2;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
rk-carousel rk-dot {
|
|
14
14
|
/* @apply block h-4 w-4 p-0 m-0 text-xs rounded-full bg-neutral-subtle cursor-pointer focus:outline-none; */
|
|
15
15
|
@apply from-neutral-subtle to-neutral-subtle bg-gradient-to-r;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
rk-carousel rk-dot[aria-checked='true'] {
|
|
18
18
|
@apply from-primary to-secondary bg-gradient-to-r;
|
|
19
19
|
}
|
package/src/rokkit/input.css
CHANGED
|
@@ -1,36 +1,57 @@
|
|
|
1
|
-
/* Styles for '
|
|
2
|
-
|
|
1
|
+
/* Styles for 'rk-input-field' class */
|
|
2
|
+
|
|
3
|
+
[data-style='rokkit'] rk-input-select select {
|
|
4
|
+
@apply border-none;
|
|
5
|
+
}
|
|
6
|
+
[data-style='rokkit'] rk-input-field rk-field,
|
|
7
|
+
[data-style='rokkit'] rk-input-select {
|
|
3
8
|
@apply p-2px border-neutral-muted box-border rounded border;
|
|
4
9
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
[data-style='rokkit'] rk-input-select {
|
|
11
|
+
@apply flex h-8 items-center px-2;
|
|
12
|
+
}
|
|
13
|
+
[data-style='rokkit'] rk-input-field input,
|
|
14
|
+
[data-style='rokkit'] rk-input-field textarea,
|
|
15
|
+
[data-style='rokkit'] rk-input-field select {
|
|
8
16
|
@apply rounded-sm border-0;
|
|
9
17
|
}
|
|
10
|
-
|
|
18
|
+
[data-style='rokkit'] rk-checkbox {
|
|
11
19
|
@apply outline-none;
|
|
12
20
|
}
|
|
13
|
-
|
|
21
|
+
[data-style='rokkit'] rk-input-field > label {
|
|
14
22
|
@apply text-secondary-600;
|
|
15
23
|
}
|
|
16
|
-
|
|
24
|
+
[data-style='rokkit'] rk-input-field rk-field > label {
|
|
17
25
|
@apply text-secondary-600 flex h-full w-full items-center text-xs uppercase;
|
|
18
26
|
}
|
|
19
|
-
|
|
27
|
+
[data-style='rokkit'] rk-input-field:not(.disabled) rk-field:focus-within {
|
|
20
28
|
@apply border-neutral-base from-primary to-secondary bg-gradient-to-r;
|
|
21
29
|
}
|
|
22
|
-
|
|
30
|
+
[data-style='rokkit'] rk-input-field.disabled label {
|
|
23
31
|
@apply text-neutral-500;
|
|
24
32
|
}
|
|
25
|
-
/*
|
|
33
|
+
/* [data-style="rokkit"] rk-input-field.disabled rk-field:focus-within {
|
|
26
34
|
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
27
35
|
} */
|
|
28
|
-
|
|
36
|
+
[data-style='rokkit'] rk-input-field > span {
|
|
29
37
|
@apply border-neutral-muted bg-neutral-base aspect-square h-full border-r px-1;
|
|
30
38
|
}
|
|
31
|
-
|
|
39
|
+
[data-style='rokkit'] rk-input-field message {
|
|
32
40
|
@apply bg-neutral-base rounded px-2 py-1;
|
|
33
41
|
}
|
|
34
|
-
|
|
42
|
+
[data-style='rokkit'] rk-input-field.fail {
|
|
35
43
|
@apply bg-error rounded px-2;
|
|
36
44
|
}
|
|
45
|
+
|
|
46
|
+
[data-style='rokkit'] rk-select,
|
|
47
|
+
[data-style='rokkit'] rk-toggle {
|
|
48
|
+
@apply p-2px border-neutral-subtle box-border rounded-md border;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='rokkit'] rk-toggle {
|
|
52
|
+
@apply aspect-square h-9 w-9;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-style='rokkit'] rk-select > select {
|
|
56
|
+
@apply bg-neutral-subtle text-on-neutral-subtle;
|
|
57
|
+
}
|
package/src/rokkit/layout.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* Styles for '
|
|
2
|
-
|
|
1
|
+
/* Styles for ' rk-switch' */
|
|
2
|
+
[data-style='rokkit'] rk-field rk-switch:focus-within {
|
|
3
3
|
@apply outline-none;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
@apply min-h-
|
|
5
|
+
[data-style='rokkit'] rk-field rk-switch {
|
|
6
|
+
@apply min-h-8 items-center justify-center rounded-sm border-none px-1;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
[data-style='rokkit'] rk-field rk-switch rk-item {
|
|
9
9
|
@apply rounded-sm leading-loose;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
[data-style='rokkit'] rk-field rk-switch rk-item p {
|
|
12
12
|
@apply justify-center;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
[data-style='rokkit'] .horizontal > rk-field radio-group {
|
|
16
16
|
@apply md:flex-row md:gap-4;
|
|
17
17
|
}
|
package/src/rokkit/molecules.css
CHANGED
|
@@ -1,119 +1,130 @@
|
|
|
1
|
-
/* Styles for '
|
|
2
|
-
|
|
1
|
+
/* Styles for ' rk-input-range' class */
|
|
2
|
+
[data-style='rokkit'] rk-input-range rk-range-track {
|
|
3
3
|
@apply relative mt-2 h-2;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
[data-style='rokkit'] rk-input-range rk-range-track rk-range-track-bar {
|
|
6
6
|
@apply bg-neutral-muted border-neutral-muted box-border rounded-full border;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
[data-style='rokkit'] rk-input-range rk-range-track selected-bar {
|
|
9
9
|
@apply top-0px bottom-0px from-primary to-secondary border-secondary rounded-full border bg-gradient-to-r;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
[data-style='rokkit'] rk-input-range rk-range-track rk-thumb {
|
|
12
12
|
@apply rounded-sm focus:outline-none;
|
|
13
13
|
}
|
|
14
|
-
/*
|
|
14
|
+
/* [data-style="rokkit"] rk-input-range rk-tick p {
|
|
15
15
|
@apply text-neutral-800;
|
|
16
16
|
} */
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
[data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before,
|
|
18
|
+
[data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
|
|
19
19
|
content: '';
|
|
20
20
|
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
[data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before {
|
|
23
23
|
@apply -left-1px;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
[data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
|
|
26
26
|
@apply -right-2px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Styles for 'tick' class */
|
|
30
|
-
/*
|
|
30
|
+
/* [data-style="rokkit"] rk-tick {
|
|
31
31
|
@apply h-6;
|
|
32
32
|
} */
|
|
33
|
-
|
|
33
|
+
[data-style='rokkit'] rk-tick rk-tick-bar {
|
|
34
34
|
@apply border-neutral h-full;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
[data-style='rokkit'] rk-tick p {
|
|
37
37
|
@apply items-top text-neutral-600;
|
|
38
38
|
font-size: 8px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/* Styles for 'thumb' class */
|
|
42
|
-
|
|
42
|
+
[data-style='rokkit'] rk-thumb {
|
|
43
43
|
@apply from-primary to-secondary border-secondary border bg-gradient-to-r shadow-xl;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
[data-style='rokkit'] rk-thumb.sliding::before {
|
|
46
46
|
content: '';
|
|
47
47
|
@apply bg-secondary absolute bottom-0 left-0 right-0 top-0 rounded-sm opacity-30;
|
|
48
48
|
transform: scale(2, 2);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/* Styles for 'button[role='switch']' class */
|
|
52
|
-
|
|
52
|
+
[data-style='rokkit'] button[role='switch'] {
|
|
53
53
|
@apply h-8 min-h-6 w-16 rounded-full p-0;
|
|
54
54
|
@apply bg-neutral-subtle border-neutral-subtle border;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
[data-style='rokkit'] button[role='switch'] > rk-mark {
|
|
57
57
|
@apply top-0.75 h-6 w-6 rounded-full;
|
|
58
58
|
@apply from-primary to-secondary bg-gradient-to-r;
|
|
59
59
|
}
|
|
60
|
+
[data-style='rokkit'] rk-toggle > button {
|
|
61
|
+
@apply items-center justify-center rounded-md p-0;
|
|
62
|
+
}
|
|
63
|
+
[data-style='rokkit'] rk-toggle > button > rk-icon {
|
|
64
|
+
@apply aspect-square items-center justify-center;
|
|
65
|
+
}
|
|
60
66
|
|
|
61
67
|
/* Styles for 'rating' class */
|
|
62
|
-
|
|
68
|
+
[data-style='rokkit'] rating {
|
|
63
69
|
@apply focus:outline-secondary h-9 justify-center rounded text-xl text-neutral-600 focus:outline;
|
|
64
70
|
}
|
|
65
|
-
|
|
71
|
+
[data-style='rokkit'] rating > icon {
|
|
66
72
|
@apply w-8;
|
|
67
73
|
}
|
|
68
|
-
|
|
74
|
+
[data-style='rokkit'] rating:focus-within icon[aria-checked='true'] {
|
|
69
75
|
@apply text-primary;
|
|
70
76
|
}
|
|
71
|
-
|
|
77
|
+
[data-style='rokkit'] rating icon.hovering > i {
|
|
72
78
|
@apply text-secondary;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
/* Pill styles */
|
|
76
|
-
|
|
82
|
+
[data-style='rokkit'] .pill {
|
|
77
83
|
@apply bg-neutral-inset border-neutral-subtle flex-grow-0 rounded-full border px-2 py-1;
|
|
78
84
|
}
|
|
79
|
-
|
|
85
|
+
[data-style='rokkit'] .pill > icon[role='button'] {
|
|
80
86
|
@apply hover:bg-neutral-muted h-5 w-5 rounded-full hover:text-current focus:m-0 focus:rounded-full;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
|
|
89
|
+
[data-style='rokkit'] .pill > rk-item {
|
|
84
90
|
@apply gap-2 px-2 leading-6;
|
|
85
91
|
}
|
|
86
|
-
|
|
92
|
+
[data-style='rokkit'] .pill > rk-item > img {
|
|
87
93
|
@apply h-4 w-4;
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
/* Styles for 'item' class */
|
|
91
|
-
|
|
97
|
+
[data-style='rokkit'] rk-item,
|
|
98
|
+
[data-style='rokkit'] rk-list-item {
|
|
92
99
|
@apply flex flex-shrink items-center gap-1;
|
|
93
100
|
}
|
|
94
|
-
|
|
101
|
+
[data-style='rokkit'] rk-item > p,
|
|
102
|
+
[data-style='rokkit'] rk-list-item > p {
|
|
95
103
|
@apply flex-shrink text-ellipsis;
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
/* Image and link styles */
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
[data-style='rokkit'] rk-item > img,
|
|
108
|
+
[data-style='rokkit'] rk-item > a > img,
|
|
109
|
+
[data-style='rokkit'] rk-list-item > img,
|
|
110
|
+
[data-style='rokkit'] rk-list-item > a > img {
|
|
101
111
|
@apply h-6 w-6;
|
|
102
112
|
}
|
|
103
|
-
|
|
113
|
+
[data-style='rokkit'] rk-item > a,
|
|
114
|
+
[data-style='rokkit'] rk-list-item > a {
|
|
104
115
|
@apply gap-2;
|
|
105
116
|
}
|
|
106
|
-
|
|
117
|
+
[data-style='rokkit'] rk-node rk-item {
|
|
107
118
|
@apply gap-2 px-1;
|
|
108
119
|
}
|
|
109
|
-
/*
|
|
110
|
-
|
|
120
|
+
/* rk-crumbs styles */
|
|
121
|
+
[data-style='rokkit'] rk-crumbs {
|
|
111
122
|
@apply flex-grow gap-1;
|
|
112
123
|
}
|
|
113
|
-
|
|
124
|
+
[data-style='rokkit'] rk-crumbs rk-crumb.is-selected {
|
|
114
125
|
@apply text-secondary-700;
|
|
115
126
|
}
|
|
116
127
|
|
|
117
|
-
|
|
128
|
+
[data-style='rokkit'] rk-day-of-month[aria-selected='true'] {
|
|
118
129
|
@apply from-primary to-secondary bg-gradient-to-r text-neutral-200 dark:text-neutral-800;
|
|
119
130
|
}
|