@rokkit/themes 1.0.0-next.12 → 1.0.0-next.121
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 +9 -31
- package/src/base/alert.css +30 -0
- package/src/base/animation.css +37 -0
- package/src/base/atoms.css +58 -0
- package/src/base/carousel.css +18 -0
- package/src/base/core.css +107 -0
- package/src/base/layout.css +65 -0
- package/src/base/molecules.css +109 -0
- package/src/base/organisms.css +66 -0
- package/src/base/progress.css +21 -0
- package/src/base/scrollbar.css +16 -0
- package/src/base/table.css +49 -0
- package/src/base/toggles.css +17 -0
- package/src/base/tree.css +18 -0
- package/src/base.css +13 -0
- package/src/constants.js +7 -3
- package/src/index.js +3 -2
- package/src/markdown.css +955 -0
- package/src/material/base.css +12 -0
- package/src/material/form.css +30 -0
- package/src/material/input.css +65 -0
- package/src/material/list.css +96 -0
- package/src/material.css +9 -0
- package/src/minimal/base.css +8 -0
- package/src/minimal/form.css +87 -0
- package/src/minimal/input.css +154 -0
- package/src/minimal/list.css +136 -0
- package/src/minimal/tabs.css +44 -0
- package/src/minimal.css +11 -0
- package/src/mixins/mixins.scss +66 -0
- package/src/mixins/palette.scss +48 -0
- package/src/palette.css +25 -0
- package/src/prism.css +102 -0
- package/src/rokkit/alert.css +4 -0
- package/src/rokkit/atoms.css +52 -0
- package/src/rokkit/carousel.css +19 -0
- package/src/rokkit/input.css +52 -0
- package/src/rokkit/layout.css +17 -0
- package/src/rokkit/molecules.css +124 -0
- package/src/rokkit/organisms.css +307 -0
- package/src/rokkit/table.css +57 -0
- package/src/rokkit/toggle.css +64 -0
- package/src/rokkit.css +11 -0
- package/LICENSE +0 -21
- package/src/utils.js +0 -88
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import '../base.css';
|
|
2
|
+
|
|
3
|
+
[data-style='material'] rk-icon[role='button'] {
|
|
4
|
+
@apply text-neutral-muted hover:text-primary focus:outline-primary focus:m-1px focus:rounded;
|
|
5
|
+
}
|
|
6
|
+
[data-style='material'] rk-icon.disabled[role='button'] {
|
|
7
|
+
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-style='material'] * {
|
|
11
|
+
@apply focus:outline-primary-400;
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[data-style='material'] field-layout.vertical {
|
|
2
|
+
@apply gap-5;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[data-style='material'] button,
|
|
6
|
+
[data-style='material'] .button {
|
|
7
|
+
@apply bg-neutral-subtle rounded px-4 py-2 uppercase;
|
|
8
|
+
}
|
|
9
|
+
[data-style='material'] button-group {
|
|
10
|
+
@apply flex justify-center rounded-sm shadow;
|
|
11
|
+
}
|
|
12
|
+
[data-style='material'] .is-primary {
|
|
13
|
+
@apply bg-primary text-white;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-style='material'] button-group > button {
|
|
17
|
+
@apply rounded-none border-none border-neutral-400;
|
|
18
|
+
@apply bg-neutral-subtle focus:outline-none;
|
|
19
|
+
@apply text-sm uppercase text-neutral-800;
|
|
20
|
+
}
|
|
21
|
+
[data-style='material'] button-group > button:not(:last-child) {
|
|
22
|
+
@apply border-r;
|
|
23
|
+
}
|
|
24
|
+
[data-style='material'] button-group > button.active {
|
|
25
|
+
@apply bg-primary text-white;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-style='material'] field > toggle-switch {
|
|
29
|
+
@apply mx-2 mb-2 mt-1;
|
|
30
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[data-style='material'] input {
|
|
2
|
+
@apply border-box focus:outline-none;
|
|
3
|
+
}
|
|
4
|
+
[data-style='material'] rk-input-field {
|
|
5
|
+
@apply border-neutral-muted box-border rounded border;
|
|
6
|
+
@apply relative pb-0 leading-loose text-neutral-800;
|
|
7
|
+
}
|
|
8
|
+
[data-style='material'] rk-input-field.empty label {
|
|
9
|
+
@apply absolute top-0 my-3.5 align-middle;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-style='material'] rk-input-field input,
|
|
13
|
+
[data-style='material'] rk-input-field > field > :not(icon) {
|
|
14
|
+
@apply border-none bg-transparent focus:outline-none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-style='material'] rk-input-field:focus-within {
|
|
18
|
+
@apply border-primary;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-style='material'] rk-input-field label,
|
|
22
|
+
[data-style='material'] rk-input-field:focus-within label {
|
|
23
|
+
@apply bg-neutral-base z-1 absolute block;
|
|
24
|
+
@apply -top-2 left-3 my-0 px-1 leading-tight opacity-100;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='material'] rk-input-select {
|
|
28
|
+
@apply cursor-pointer select-none rounded;
|
|
29
|
+
}
|
|
30
|
+
[data-style='material'] rk-input-select > selected-item {
|
|
31
|
+
@apply bg-neutral-base h-8 items-center pl-4 pr-0 normal-case;
|
|
32
|
+
@apply border-neutral-muted rounded border text-neutral-800;
|
|
33
|
+
@apply hover:bg-neutral-muted hover:border-secondary-600;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-style='material'] rk-input-select:hover square-icon {
|
|
37
|
+
@apply border-neutral;
|
|
38
|
+
}
|
|
39
|
+
[data-style='material'] rk-input-select scroll {
|
|
40
|
+
@apply mt-2 shadow-lg;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='material'] rk-input-range range-track selected {
|
|
44
|
+
@apply bg-primary border-0;
|
|
45
|
+
}
|
|
46
|
+
[data-style='material'] rk-input-range range-track rk-thumb {
|
|
47
|
+
@apply bg-primary-600 -top-1.5;
|
|
48
|
+
}
|
|
49
|
+
[data-style='material'] rk-input-range rk-thumb.sliding::before {
|
|
50
|
+
@apply bg-primary-400;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-style='material'] rk-rating {
|
|
54
|
+
@apply text-xl text-neutral-600 focus:outline-none;
|
|
55
|
+
}
|
|
56
|
+
[data-style='material'] rk-rating > rk-icon {
|
|
57
|
+
@apply w-8;
|
|
58
|
+
}
|
|
59
|
+
[data-style='material'] rk-rating:focus-within rk-icon[aria-checked='true'] {
|
|
60
|
+
@apply text-secondary;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-style='material'] rk-rating rk-icon.hovering > i {
|
|
64
|
+
@apply text-primary;
|
|
65
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
[data-style='material'] rk-accordion,
|
|
2
|
+
[data-style='material'] rk-list {
|
|
3
|
+
@apply gap-1px rounded;
|
|
4
|
+
}
|
|
5
|
+
[data-style='material'] rk-list > rk-item {
|
|
6
|
+
@apply bg-neutral-subtle;
|
|
7
|
+
}
|
|
8
|
+
[data-style='material'] rk-item {
|
|
9
|
+
@apply flex items-center gap-2 px-3 leading-10;
|
|
10
|
+
}
|
|
11
|
+
[data-style='material'] rk-item > img,
|
|
12
|
+
[data-style='material'] rk-item > a > img {
|
|
13
|
+
@apply h-4 w-4 rounded;
|
|
14
|
+
}
|
|
15
|
+
[data-style='material'] .tab.is-hovering {
|
|
16
|
+
@apply bg-primary;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='material'] rk-tabs .tab {
|
|
20
|
+
@apply cursor-pointer;
|
|
21
|
+
}
|
|
22
|
+
[data-style='material'] rk-tabs .tab[aria-selected='true'] {
|
|
23
|
+
@apply border-b-3 border-primary;
|
|
24
|
+
}
|
|
25
|
+
[data-style='material'] rk-tabs.is-below .tab[aria-selected='true'] {
|
|
26
|
+
@apply border-t-3 border-b-0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-style='material'] rk-node > div {
|
|
30
|
+
@apply h-7 px-2;
|
|
31
|
+
}
|
|
32
|
+
[data-style='material'] rk-node > rk-item {
|
|
33
|
+
@apply gap-1 bg-transparent px-1;
|
|
34
|
+
}
|
|
35
|
+
[data-style='material'] rk-node > span {
|
|
36
|
+
@apply w-3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-style='material'] rk-node > span > rk-icon {
|
|
40
|
+
@apply text-sm;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='material'] rk-nested-list:focus-within {
|
|
44
|
+
@apply outline-none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='material'] rk-node > span > i {
|
|
48
|
+
@apply border-transparent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='material'] rk-accordion .is-expanded rk-summary {
|
|
52
|
+
@apply border-neutral-muted z-1 sticky top-0 rounded-b-none border-b;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-style='material'] rk-accordion .is-selected rk-summary {
|
|
56
|
+
@apply border-b-primary text-primary-600 border-b;
|
|
57
|
+
@apply hover:text-primary-600;
|
|
58
|
+
}
|
|
59
|
+
/* .[data-style="material"] rk-list item[aria-selected='true'] {
|
|
60
|
+
@apply bg-primary text-primary-800;
|
|
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-neutral-base;
|
|
65
|
+
}
|
|
66
|
+
[data-style='material'] rk-crumbs {
|
|
67
|
+
@apply flex-grow gap-1 text-sm;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-style='material'] rk-switch rk-item[aria-selected='true'] {
|
|
71
|
+
@apply bg-primary text-neutral-200 dark:text-neutral-800;
|
|
72
|
+
}
|
|
73
|
+
[data-style='material'] rk-crumbs rk-crumb.is-selected {
|
|
74
|
+
@apply text-secondary;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-style='material'] rk-switch {
|
|
78
|
+
@apply mx-auto min-h-6 min-w-12 rounded-full;
|
|
79
|
+
@apply bg-neutral-subtle border-neutral-muted border;
|
|
80
|
+
@apply p-2px;
|
|
81
|
+
}
|
|
82
|
+
[data-style='material'] rk-switch rk-item {
|
|
83
|
+
@apply items-center justify-center gap-1 px-3 leading-tight;
|
|
84
|
+
@apply min-h-6 min-w-6 cursor-pointer rounded-full;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-style='material'] rk-switch.compact > rk-item {
|
|
88
|
+
@apply gap-0 px-0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.minimal rk-tabs .tab rk-icon[role='img'] {
|
|
92
|
+
@apply h-6 w-6;
|
|
93
|
+
}
|
|
94
|
+
.minimal rk-tabs .tab rk-icon[role='button'] {
|
|
95
|
+
@apply h-4 w-4;
|
|
96
|
+
}
|
package/src/material.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import './material/base.css';
|
|
2
|
+
/* @import './base/tabs.css'; */
|
|
3
|
+
/* @import './base/dropdown.css'; */
|
|
4
|
+
/* @import './base/states.css'; */
|
|
5
|
+
/* @import './base/calendar.css'; */
|
|
6
|
+
@import './material/input.css';
|
|
7
|
+
@import './material/list.css';
|
|
8
|
+
@import './material/form.css';
|
|
9
|
+
/* @import './base/outline.css'; */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* @import '../base.css'; */
|
|
2
|
+
|
|
3
|
+
[data-style='minimal'] rk-icon[role='button'] {
|
|
4
|
+
@apply text-neutral-muted hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px focus:rounded;
|
|
5
|
+
}
|
|
6
|
+
[data-style='minimal'] button:disabled > rk-icon {
|
|
7
|
+
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
8
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[data-style='minimal'] button {
|
|
2
|
+
@apply select-none rounded px-4 leading-loose;
|
|
3
|
+
@apply bg-neutral-muted border-neutral-muted border;
|
|
4
|
+
}
|
|
5
|
+
[data-style='minimal'] button rk-icon-left,
|
|
6
|
+
[data-style='minimal'] button rk-icon-right {
|
|
7
|
+
@apply flex aspect-square h-8 flex-col items-center justify-center;
|
|
8
|
+
}
|
|
9
|
+
[data-style='minimal'] button rk-icon {
|
|
10
|
+
@apply text-2xl;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-style='minimal'] .is-primary {
|
|
14
|
+
@apply bg-secondary text-white;
|
|
15
|
+
}
|
|
16
|
+
[data-style='minimal'] button p {
|
|
17
|
+
@apply flex flex-grow px-2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='minimal'] rk-button-group {
|
|
21
|
+
@apply gap-1px flex justify-center rounded-sm;
|
|
22
|
+
}
|
|
23
|
+
[data-style='minimal'] rk-button-group button {
|
|
24
|
+
@apply rounded-none border-none border-neutral-400;
|
|
25
|
+
@apply bg-neutral-subtle shadow focus:outline-none;
|
|
26
|
+
@apply px-2 text-sm uppercase leading-8 text-neutral-800;
|
|
27
|
+
}
|
|
28
|
+
[data-style='minimal'] rk-button-group button:not(:last-child) {
|
|
29
|
+
@apply border-r;
|
|
30
|
+
}
|
|
31
|
+
[data-style='minimal'] rk-button-group button.active {
|
|
32
|
+
@apply bg-secondary text-white;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-style='minimal'] rk-button-group button:first-child {
|
|
36
|
+
@apply rounded-l-sm;
|
|
37
|
+
}
|
|
38
|
+
[data-style='minimal'] rk-button-group button:last-child {
|
|
39
|
+
@apply rounded-r-sm;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-style='minimal'] rk-input-select {
|
|
43
|
+
@apply focus:outline-none;
|
|
44
|
+
}
|
|
45
|
+
[data-style='minimal'] rk-input-select > selected-item {
|
|
46
|
+
@apply min-h-8 cursor-pointer items-center gap-4 pl-2 leading-8;
|
|
47
|
+
@apply border-b-neutral-muted border-b-2;
|
|
48
|
+
@apply focus:border-b-secondary-600;
|
|
49
|
+
}
|
|
50
|
+
[data-style='minimal'] rk-input-select:focus > selected-item {
|
|
51
|
+
@apply border-b-secondary-600 text-secondary-600;
|
|
52
|
+
}
|
|
53
|
+
[data-style='minimal'] rk-input-select:focus square-icon {
|
|
54
|
+
@apply text-secondary-600;
|
|
55
|
+
}
|
|
56
|
+
[data-style='minimal'] rk-input-select > selected-item > items {
|
|
57
|
+
@apply flex-grow flex-wrap gap-2;
|
|
58
|
+
}
|
|
59
|
+
[data-style='minimal'] rk-pill {
|
|
60
|
+
@apply gap-2 rounded-full border border-neutral-400 px-2;
|
|
61
|
+
}
|
|
62
|
+
[data-style='minimal'] rk-pill > rk-item {
|
|
63
|
+
@apply gap-2 leading-6;
|
|
64
|
+
}
|
|
65
|
+
[data-style='minimal'] rk-pill > rk-item > img {
|
|
66
|
+
@apply h-4 w-4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-style='minimal'] rk-pill > rk-icon {
|
|
70
|
+
@apply text-sm;
|
|
71
|
+
}
|
|
72
|
+
[data-style='minimal'] rk-input-select rk-scroll {
|
|
73
|
+
@apply mt-1 shadow-lg;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-style='minimal'] button[role='switch'] {
|
|
77
|
+
@apply h-8 min-h-6 w-16 rounded-full p-0;
|
|
78
|
+
@apply bg-neutral-subtle border-neutral-subtle border;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-style='minimal'] button[role='switch'] > rk-mark {
|
|
82
|
+
@apply bg-secondary top-0.75 h-6 w-6 rounded-full;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-style='minimal'] rk-progress-bar rk-value-bar {
|
|
86
|
+
@apply bg-secondary;
|
|
87
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* [data-style="minimal"] input, */
|
|
2
|
+
|
|
3
|
+
[data-style='minimal'] textarea,
|
|
4
|
+
[data-style='minimal'] select,
|
|
5
|
+
[data-style='minimal'] fieldset {
|
|
6
|
+
@apply border-neutral-muted rounded border px-2 leading-loose outline-none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-style='minimal'] fieldset {
|
|
10
|
+
@apply gap-2 rounded-md p-4 pt-2;
|
|
11
|
+
}
|
|
12
|
+
[data-style='minimal'] fieldset legend {
|
|
13
|
+
@apply border-neutral-muted hover:text-primary select-none rounded-md border-l border-r px-2 leading-tight;
|
|
14
|
+
}
|
|
15
|
+
[data-style='minimal'] fieldset rk-icon {
|
|
16
|
+
@apply text-2xl;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='minimal'] input-field {
|
|
20
|
+
@apply m-0 w-full py-1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='minimal'] input-field field {
|
|
24
|
+
@apply border-b-1 border-neutral-muted box-border min-h-9 overflow-hidden;
|
|
25
|
+
@apply focus-within:border-b-secondary-600;
|
|
26
|
+
}
|
|
27
|
+
[data-style='minimal'] input-field:focus-within label {
|
|
28
|
+
@apply text-secondary-600;
|
|
29
|
+
}
|
|
30
|
+
[data-style='minimal'] input-field span {
|
|
31
|
+
@apply border-neutral-muted bg-neutral-base aspect-square h-full border-r px-1;
|
|
32
|
+
}
|
|
33
|
+
[data-style='minimal'] input-field input,
|
|
34
|
+
[data-style='minimal'] input-field textarea,
|
|
35
|
+
[data-style='minimal'] input-field select,
|
|
36
|
+
[data-style='minimal'] input-field > field > :not(icon) {
|
|
37
|
+
@apply flex-grow border-0 bg-transparent focus:outline-none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-style='minimal'] input-field label {
|
|
41
|
+
@apply text-neutral w-full text-sm uppercase leading-6;
|
|
42
|
+
}
|
|
43
|
+
[data-style='minimal'] input-field message {
|
|
44
|
+
@apply bg-neutral-base rounded px-2 py-1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='minimal'] input-field.fail {
|
|
48
|
+
@apply bg-error rounded px-2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='minimal'] input-range range-track {
|
|
52
|
+
@apply relative mt-3 h-1;
|
|
53
|
+
}
|
|
54
|
+
[data-style='minimal'] input-range range-track span {
|
|
55
|
+
@apply bg-neutral-subtle border-neutral-muted box-border rounded-full;
|
|
56
|
+
}
|
|
57
|
+
[data-style='minimal'] input-range range-track selected {
|
|
58
|
+
@apply -top-0px -bottom-0px border-secondary bg-secondary-600 rounded-full border;
|
|
59
|
+
}
|
|
60
|
+
[data-style='minimal'] input-range range-track thumb {
|
|
61
|
+
@apply rounded-full;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-style='minimal'] input-range range-ticks {
|
|
65
|
+
font-size: 6px;
|
|
66
|
+
@apply bg-primary-100;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-style='minimal'] .bookend range-track span::before,
|
|
70
|
+
[data-style='minimal'] .bookend range-track span::after {
|
|
71
|
+
content: '';
|
|
72
|
+
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
73
|
+
}
|
|
74
|
+
[data-style='minimal'] .bookend range-track span::before {
|
|
75
|
+
@apply -left-1px;
|
|
76
|
+
}
|
|
77
|
+
[data-style='minimal'] .bookend range-track span::after {
|
|
78
|
+
@apply -right-2px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* [data-style="minimal"] tick {
|
|
82
|
+
@apply h-6;
|
|
83
|
+
} */
|
|
84
|
+
[data-style='minimal'] tick span {
|
|
85
|
+
@apply border-neutral h-full;
|
|
86
|
+
}
|
|
87
|
+
[data-style='minimal'] tick p {
|
|
88
|
+
@apply items-top;
|
|
89
|
+
font-size: 8px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-style='minimal'] thumb {
|
|
93
|
+
@apply bg-secondary border-secondary -top-1.5 border shadow-xl;
|
|
94
|
+
}
|
|
95
|
+
[data-style='minimal'] thumb.sliding::before {
|
|
96
|
+
content: '';
|
|
97
|
+
@apply bg-secondary-400 absolute bottom-0 left-0 right-0 top-0 rounded-full opacity-30;
|
|
98
|
+
transform: scale(2, 2);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-style='minimal'] rating {
|
|
102
|
+
@apply text-secondary-600 text-xl focus:outline-none;
|
|
103
|
+
}
|
|
104
|
+
[data-style='minimal'] rating > rk-icon {
|
|
105
|
+
@apply w-8;
|
|
106
|
+
}
|
|
107
|
+
[data-style='minimal'] rating:focus-within rk-icon[aria-checked='true'] {
|
|
108
|
+
@apply text-primary-600;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-style='minimal'] rating rk-icon.hovering > i {
|
|
112
|
+
@apply text-secondary-600;
|
|
113
|
+
}
|
|
114
|
+
/* .error,
|
|
115
|
+
.fail {
|
|
116
|
+
input,
|
|
117
|
+
textarea,
|
|
118
|
+
select {
|
|
119
|
+
@apply text-error border-error bg-error;
|
|
120
|
+
}
|
|
121
|
+
message {
|
|
122
|
+
@apply text-error bg-error rounded-md;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.info {
|
|
126
|
+
input,
|
|
127
|
+
textarea,
|
|
128
|
+
select {
|
|
129
|
+
@apply text-info border-info;
|
|
130
|
+
}
|
|
131
|
+
message {
|
|
132
|
+
@apply text-info bg-info rounded-md;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
.warn {
|
|
136
|
+
input,
|
|
137
|
+
textarea,
|
|
138
|
+
select {
|
|
139
|
+
@apply text-warn border-warn bg-warn;
|
|
140
|
+
}
|
|
141
|
+
message {
|
|
142
|
+
@apply text-warn bg-warn rounded-md;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.pass {
|
|
146
|
+
input,
|
|
147
|
+
textarea,
|
|
148
|
+
select {
|
|
149
|
+
@apply text-pass border-pass bg-pass;
|
|
150
|
+
}
|
|
151
|
+
message {
|
|
152
|
+
@apply text-pass bg-pass rounded-md;
|
|
153
|
+
}
|
|
154
|
+
} */
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
[data-style='minimal'] rk-item {
|
|
2
|
+
@apply flex items-center gap-1;
|
|
3
|
+
}
|
|
4
|
+
[data-style='minimal'] rk-accordion {
|
|
5
|
+
@apply flex-grow overflow-y-scroll focus-within:outline-none;
|
|
6
|
+
}
|
|
7
|
+
[data-style='minimal'] rk-accordion > div,
|
|
8
|
+
[data-style='minimal'] rk-accordion > details {
|
|
9
|
+
@apply relative;
|
|
10
|
+
}
|
|
11
|
+
[data-style='minimal'] rk-list,
|
|
12
|
+
[data-style='minimal'] rk-accordion rk-summary {
|
|
13
|
+
@apply border-l-2px border-l-neutral-muted;
|
|
14
|
+
}
|
|
15
|
+
[data-style='minimal'] :not(rk-accordion > div) rk-list:focus-within {
|
|
16
|
+
@apply outline-offset-3 outline-secondary-700 outline;
|
|
17
|
+
}
|
|
18
|
+
[data-style='minimal'] rk-list > rk-item,
|
|
19
|
+
[data-style='minimal'] rk-accordion summary {
|
|
20
|
+
@apply bg-neutral-base items-center px-2 leading-8 text-neutral-700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='minimal'] rk-item > a {
|
|
24
|
+
@apply gap-2 px-0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='minimal'] rk-list rk-item:hover {
|
|
28
|
+
@apply -m-l-2px border-l-2px border-l-neutral-subtle;
|
|
29
|
+
}
|
|
30
|
+
[data-style='minimal'] rk-accordion summary:hover {
|
|
31
|
+
@apply border-l-neutral-subtle;
|
|
32
|
+
}
|
|
33
|
+
[data-style='minimal'] rk-list rk-item[aria-selected='true'] {
|
|
34
|
+
@apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-neutral-subtle;
|
|
35
|
+
}
|
|
36
|
+
[data-style='minimal'] rk-accordion .is-selected summary {
|
|
37
|
+
@apply border-l-2px border-l-secondary-600 bg-neutral-subtle;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-style='minimal'] rk-accordion .is-expanded summary {
|
|
41
|
+
@apply z-1 sticky top-0;
|
|
42
|
+
}
|
|
43
|
+
[data-style='minimal'] rk-accordion rk-item > a {
|
|
44
|
+
@apply px-0;
|
|
45
|
+
}
|
|
46
|
+
[data-style='minimal'] rk-item > img,
|
|
47
|
+
[data-style='minimal'] rk-item > a > img {
|
|
48
|
+
@apply h-6 w-6;
|
|
49
|
+
}
|
|
50
|
+
|
|
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
|
+
@apply text-secondary-600;
|
|
56
|
+
/* @apply hover:text-secondary; */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* [data-style="minimal"] nested-list {
|
|
60
|
+
@apply text-sm;
|
|
61
|
+
} */
|
|
62
|
+
[data-style='minimal'] rk-node > div {
|
|
63
|
+
@apply h-7 px-2 py-1;
|
|
64
|
+
}
|
|
65
|
+
[data-style='minimal'] rk-node > rk-item {
|
|
66
|
+
@apply gap-1 px-1;
|
|
67
|
+
}
|
|
68
|
+
[data-style='minimal'] rk-node > div > span > i {
|
|
69
|
+
@apply w-3 border-none;
|
|
70
|
+
}
|
|
71
|
+
[data-style='minimal'] rk-node > div > rk-icon {
|
|
72
|
+
@apply text-xs text-neutral-400;
|
|
73
|
+
}
|
|
74
|
+
[data-style='minimal'] rk-node[aria-selected='true'] > rk-item > p {
|
|
75
|
+
@apply text-secondary-600;
|
|
76
|
+
}
|
|
77
|
+
[data-style='minimal'] rk-node.is-selected rk-icon {
|
|
78
|
+
@apply text-secondary-600;
|
|
79
|
+
@apply hover:text-secondary-600;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-style='minimal'] .small rk-list > rk-item,
|
|
83
|
+
[data-style='minimal'] .small rk-accordion rk-summary {
|
|
84
|
+
@apply text-sm;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-style='minimal'] .small rk-node > div {
|
|
88
|
+
@apply h-5 gap-1 text-sm;
|
|
89
|
+
}
|
|
90
|
+
[data-style='minimal'] .small rk-node > div > rk-icon {
|
|
91
|
+
@apply text-sm;
|
|
92
|
+
}
|
|
93
|
+
[data-style='minimal'] .small rk-item > img,
|
|
94
|
+
[data-style='minimal'] .small rk-item > a > img {
|
|
95
|
+
@apply h-4 w-4;
|
|
96
|
+
}
|
|
97
|
+
[data-style='minimal'] .small rk-item > a > rk-icon {
|
|
98
|
+
@apply text-sm leading-6;
|
|
99
|
+
}
|
|
100
|
+
[data-style='minimal'] rk-accordion.indented rk-list > rk-item {
|
|
101
|
+
@apply px-4;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-style='minimal'] .folder-tree {
|
|
105
|
+
@apply bg-neutral-inset h-full min-w-40;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* [data-style="minimal"] rk-node > div > i {
|
|
109
|
+
@apply border-neutral-muted;
|
|
110
|
+
} */
|
|
111
|
+
|
|
112
|
+
[data-style='minimal'] rk-crumbs {
|
|
113
|
+
@apply flex-grow gap-1 text-sm;
|
|
114
|
+
}
|
|
115
|
+
[data-style='minimal'] rk-crumbs rk-crumb.is-selected {
|
|
116
|
+
@apply text-secondary;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-style='minimal'] rk-switch {
|
|
120
|
+
@apply mx-auto min-h-6 min-w-12 rounded;
|
|
121
|
+
@apply bg-neutral-subtle border-neutral-muted border;
|
|
122
|
+
@apply p-2px leading-loose;
|
|
123
|
+
}
|
|
124
|
+
[data-style='minimal'] rk-switch rk-item {
|
|
125
|
+
@apply items-center justify-center gap-1 px-3;
|
|
126
|
+
@apply min-h-6 min-w-6 cursor-pointer rounded;
|
|
127
|
+
}
|
|
128
|
+
[data-style='minimal'] rk-switch.compact {
|
|
129
|
+
@apply rounded-full;
|
|
130
|
+
}
|
|
131
|
+
[data-style='minimal'] rk-switch.compact > rk-item {
|
|
132
|
+
@apply gap-0 rounded-full px-0;
|
|
133
|
+
}
|
|
134
|
+
[data-style='minimal'] rk-switch rk-item[aria-selected='true'] {
|
|
135
|
+
@apply bg-secondary text-neutral-800;
|
|
136
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[data-style='minimal'] rk-tabs:focus {
|
|
2
|
+
@apply outline-none;
|
|
3
|
+
}
|
|
4
|
+
[data-style='minimal'] rk-tabs {
|
|
5
|
+
@apply border-neutral-subtle box-border cursor-pointer select-none gap-2 border-b-2 px-2;
|
|
6
|
+
}
|
|
7
|
+
[data-style='minimal'] rk-tabs .tab {
|
|
8
|
+
@apply px-2 text-base leading-8;
|
|
9
|
+
}
|
|
10
|
+
[data-style='minimal'] rk-tabs .tab rk-icon[role='img'] {
|
|
11
|
+
@apply h-6 w-6;
|
|
12
|
+
}
|
|
13
|
+
[data-style='minimal'] rk-tabs .tab rk-icon[role='button'] {
|
|
14
|
+
@apply h-4 w-4;
|
|
15
|
+
}
|
|
16
|
+
[data-style='minimal'] rk-tabs.is-below {
|
|
17
|
+
@apply border-b-none border-t-2;
|
|
18
|
+
}
|
|
19
|
+
[data-style='minimal'] rk-tabs > p {
|
|
20
|
+
@apply pr-4;
|
|
21
|
+
}
|
|
22
|
+
[data-style='minimal'] rk-tabs .tab {
|
|
23
|
+
@apply relative flex items-center gap-1;
|
|
24
|
+
}
|
|
25
|
+
[data-style='minimal'] rk-tabs .tab > img {
|
|
26
|
+
@apply h-5 w-5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-style='minimal'] rk-tabs .tab[aria-selected='true'] {
|
|
30
|
+
@apply -mb-2px border-secondary-600 border-b-2;
|
|
31
|
+
}
|
|
32
|
+
[data-style='minimal'] rk-tabs.is-below .tab {
|
|
33
|
+
@apply pt-2px;
|
|
34
|
+
}
|
|
35
|
+
[data-style='minimal'] rk-tabs.is-below .tab[aria-selected='true'] {
|
|
36
|
+
@apply -mt-2px border-b-none border-b-secondary-600 mb-0 border-t-2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-style='minimal'] .small rk-tabs .tab {
|
|
40
|
+
@apply px-2 text-sm leading-8;
|
|
41
|
+
}
|
|
42
|
+
[data-style='minimal'] .small rk-tabs rk-tab > img {
|
|
43
|
+
@apply h-5 w-5;
|
|
44
|
+
}
|
package/src/minimal.css
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import './base.css';
|
|
2
|
+
|
|
3
|
+
@import './minimal/base.css';
|
|
4
|
+
/* @import './base/states.css'; */
|
|
5
|
+
/* @import './base/calendar.css'; */
|
|
6
|
+
|
|
7
|
+
@import './minimal/input.css';
|
|
8
|
+
@import './minimal/list.css';
|
|
9
|
+
@import './minimal/tabs.css';
|
|
10
|
+
@import './minimal/form.css';
|
|
11
|
+
/* @import './base/outline.css'; */
|