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