@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,66 @@
|
|
|
1
|
+
@mixin set-theme-colors($theme-colors, $mode, $values: null) {
|
|
2
|
+
@each $name, $color in $theme-colors {
|
|
3
|
+
$hue: hue($color);
|
|
4
|
+
$saturation: saturation($color);
|
|
5
|
+
@if $values !== null {
|
|
6
|
+
$start: if($mode === 'dark', length($values), 1);
|
|
7
|
+
$offset: if($mode === 'dark', -1, 1);
|
|
8
|
+
@for $i from 0 to length($values) - 1 {
|
|
9
|
+
$index: $start + $offset * $i;
|
|
10
|
+
$lightness: nth($values, $index);
|
|
11
|
+
$variable: '--#{$name}-#{50 + ($i) * 100}';
|
|
12
|
+
#{$variable}: hsl($hue, $saturation, $lightness);
|
|
13
|
+
}
|
|
14
|
+
} @else {
|
|
15
|
+
@for $i from 0 to 9 {
|
|
16
|
+
$lightness: if($mode === 'dark', $i * 10%, 100 - $i * 10%);
|
|
17
|
+
$variable: '--#{$name}-#{50 + ($i) * 100}';
|
|
18
|
+
#{$variable}: hsl($hue, $saturation, $lightness);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* light theme syntax colors */
|
|
25
|
+
@mixin light-mode-syntax-colors {
|
|
26
|
+
--code-bg: #f3f4f6;
|
|
27
|
+
--code-fill: #f3f4f6;
|
|
28
|
+
--code-normal: #333333; /*hsl(45, 7%, 45%)*/
|
|
29
|
+
--code-string: hsl(41, 37%, 45%); /*#183691 */
|
|
30
|
+
--code-number: hsl(102, 27%, 50%); /* #0086b3;*/
|
|
31
|
+
--code-atrule: var(--code-string);
|
|
32
|
+
--code-keyword: hsl(204, 58%, 45%); /* #795da3;*/
|
|
33
|
+
--code-comment: #969896; /*hsl(210, 25%, 60%)*/
|
|
34
|
+
--code-property: #63a35c;
|
|
35
|
+
--code-selector: var(--code-keyword);
|
|
36
|
+
--code-operator: hsl(19, 67%, 45%);
|
|
37
|
+
--code-function: hsl(19, 67%, 45%); /* #a71d5d; */
|
|
38
|
+
|
|
39
|
+
--code-gutter-marker: black;
|
|
40
|
+
--code-gutter-subtle: #999;
|
|
41
|
+
--code-cursor: #24292e;
|
|
42
|
+
--code-cursor-block: rgba(20, 255, 20, 0.5);
|
|
43
|
+
--code-linenumbers: rgba(27, 31, 35, 0.3);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* one dark theme syntax colors */
|
|
47
|
+
@mixin dark-mode-syntax-colors {
|
|
48
|
+
--code-bg: #282c34;
|
|
49
|
+
--code-fill: #282c34;
|
|
50
|
+
--code-normal: #e06c75; /*#ABB2BF;*/
|
|
51
|
+
--code-string: #98c379;
|
|
52
|
+
--code-number: #d19a66;
|
|
53
|
+
--code-atrule: #61afef;
|
|
54
|
+
--code-keyword: #c678dd;
|
|
55
|
+
--code-comment: #5c6370;
|
|
56
|
+
--code-property: #d19a66;
|
|
57
|
+
--code-selector: #e06c75;
|
|
58
|
+
--code-operator: #56b6c2;
|
|
59
|
+
--code-function: #61afef;
|
|
60
|
+
|
|
61
|
+
--code-gutter-marker: black;
|
|
62
|
+
--code-gutter-subtle: #999;
|
|
63
|
+
--code-cursor: #24292e;
|
|
64
|
+
--code-cursor-block: rgba(20, 255, 20, 0.5);
|
|
65
|
+
--code-linenumbers: rgba(27, 31, 35, 0.3);
|
|
66
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import './mixins.scss';
|
|
2
|
+
|
|
3
|
+
$theme-colors: (
|
|
4
|
+
primary: #fb923c,
|
|
5
|
+
secondary: #ef5da8,
|
|
6
|
+
accent: #eb479c,
|
|
7
|
+
neutral: #262730
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$lightness: (95%, 90%, 85%, 80%, 70%, 60%, 50%, 40%, 30%, 20%);
|
|
11
|
+
|
|
12
|
+
@layer base {
|
|
13
|
+
:root {
|
|
14
|
+
--primary-hue: 25;
|
|
15
|
+
--primary-saturation: 95%;
|
|
16
|
+
--secondary-hue: 329;
|
|
17
|
+
--secondary-saturation: 80%;
|
|
18
|
+
--accent-hue: 329;
|
|
19
|
+
--accent-saturation: 80%;
|
|
20
|
+
--neutral-hue: 233;
|
|
21
|
+
--neutral-saturation: 11.9%;
|
|
22
|
+
|
|
23
|
+
--tab-size: 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.light {
|
|
27
|
+
@include set-theme-colors($theme-colors, 'light', $lightness);
|
|
28
|
+
@include light-mode-syntax-colors();
|
|
29
|
+
}
|
|
30
|
+
.dark {
|
|
31
|
+
@include set-theme-colors($theme-colors, 'dark', $lightness);
|
|
32
|
+
@include dark-mode-syntax-colors();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (prefers-color-scheme: light) {
|
|
36
|
+
body:not(.dark) {
|
|
37
|
+
@include set-theme-colors($theme-colors, 'light', $lightness);
|
|
38
|
+
@include light-mode-syntax-colors();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-color-scheme: dark) {
|
|
43
|
+
body:not(.light) {
|
|
44
|
+
@include set-theme-colors($theme-colors, 'dark', $lightness);
|
|
45
|
+
@include dark-mode-syntax-colors();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
package/src/palette.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
--scroll-width: 0.5rem;
|
|
4
|
+
}
|
|
5
|
+
/* light theme colors */
|
|
6
|
+
.light {
|
|
7
|
+
@apply rokkit-mode-light;
|
|
8
|
+
}
|
|
9
|
+
@media (prefers-color-scheme: dark) {
|
|
10
|
+
body:not(.light) {
|
|
11
|
+
@apply rokkit-mode-dark;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* dark theme colors */
|
|
16
|
+
.dark {
|
|
17
|
+
@apply rokkit-mode-dark;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (prefers-color-scheme: light) {
|
|
21
|
+
body:not(.dark) {
|
|
22
|
+
@apply rokkit-mode-light;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/prism.css
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
code,
|
|
2
|
+
code[class*='language-'],
|
|
3
|
+
pre[class*='language-'] {
|
|
4
|
+
background-color: var(--code-fill);
|
|
5
|
+
color: var(--code-normal);
|
|
6
|
+
text-align: left;
|
|
7
|
+
white-space: pre;
|
|
8
|
+
word-spacing: normal;
|
|
9
|
+
tab-size: 2;
|
|
10
|
+
hyphens: none;
|
|
11
|
+
font-variant-ligatures: common-lig-values; /* common-ligatures; */
|
|
12
|
+
line-height: 1.4;
|
|
13
|
+
direction: ltr;
|
|
14
|
+
cursor: text;
|
|
15
|
+
@apply font-mono text-xs;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
pre[class*='language-'] {
|
|
19
|
+
overflow: auto;
|
|
20
|
+
padding: 1.2em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* p code,
|
|
24
|
+
li code,
|
|
25
|
+
table code {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0.2em 0;
|
|
28
|
+
} */
|
|
29
|
+
p code:before,
|
|
30
|
+
p code:after,
|
|
31
|
+
li code:before,
|
|
32
|
+
li code:after,
|
|
33
|
+
table code:before,
|
|
34
|
+
table code:after {
|
|
35
|
+
letter-spacing: -0.2em;
|
|
36
|
+
content: '\00a0';
|
|
37
|
+
@apply rounded-sm;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:not(pre) > code {
|
|
41
|
+
@apply rounded-md p-1;
|
|
42
|
+
}
|
|
43
|
+
:not(pre) > code[class*='language-'] {
|
|
44
|
+
@apply rounded-sm;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.token.comment,
|
|
48
|
+
.token.prolog,
|
|
49
|
+
.token.doctype,
|
|
50
|
+
.token.cdata {
|
|
51
|
+
color: var(--code-comment);
|
|
52
|
+
font-style: oblique;
|
|
53
|
+
}
|
|
54
|
+
.token.punctuation,
|
|
55
|
+
.token.string,
|
|
56
|
+
.token.attr-value {
|
|
57
|
+
color: var(--code-string);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.token.property,
|
|
61
|
+
.token.tag {
|
|
62
|
+
color: var(--code-property);
|
|
63
|
+
}
|
|
64
|
+
.token.boolean,
|
|
65
|
+
.token.number {
|
|
66
|
+
color: var(--code-number);
|
|
67
|
+
}
|
|
68
|
+
.token.selector,
|
|
69
|
+
.token.attr-name,
|
|
70
|
+
.token.attr-value .punctuation:first-child,
|
|
71
|
+
.token.regex,
|
|
72
|
+
.token.important {
|
|
73
|
+
color: var(--code-selector);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.token.operator,
|
|
77
|
+
.token.entity,
|
|
78
|
+
.token.url,
|
|
79
|
+
.language-css .token.string {
|
|
80
|
+
color: var(--code-operator);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.token.atrule {
|
|
84
|
+
color: var(--code-atrule);
|
|
85
|
+
}
|
|
86
|
+
.token.keyword {
|
|
87
|
+
color: var(--code-keyword);
|
|
88
|
+
font-style: italic;
|
|
89
|
+
}
|
|
90
|
+
.token.function {
|
|
91
|
+
color: var(--code-function);
|
|
92
|
+
}
|
|
93
|
+
.token.entity {
|
|
94
|
+
cursor: help;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.token.italic {
|
|
98
|
+
font-style: italic;
|
|
99
|
+
}
|
|
100
|
+
.namespace {
|
|
101
|
+
opacity: 0.7;
|
|
102
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* General styles */
|
|
2
|
+
.rokkit {
|
|
3
|
+
@apply select-none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Zebra styles */
|
|
7
|
+
.rokkit .zebra item {
|
|
8
|
+
@apply even:bg-neutral-zebra hover:bg-neutral-50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Styles for 'icon' class */
|
|
12
|
+
.rokkit icon:not([role='button']) {
|
|
13
|
+
@apply focus:outline-none text-neutral-700;
|
|
14
|
+
}
|
|
15
|
+
.rokkit icon[role='button'] {
|
|
16
|
+
@apply text-neutral-700 focus:rounded hover:text-secondary rounded-md;
|
|
17
|
+
}
|
|
18
|
+
.rokkit icon[role='button']:focus {
|
|
19
|
+
@apply outline-none bg-gradient-to-r from-primary to-secondary text-neutral-200 dark:text-neutral-800;
|
|
20
|
+
}
|
|
21
|
+
.rokkit icon.disabled[role='button'] {
|
|
22
|
+
@apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Styles for input[type='number'] */
|
|
26
|
+
.rokkit input[type='number'] {
|
|
27
|
+
@apply text-right;
|
|
28
|
+
}
|
|
29
|
+
.rokkit input[type='number']::-webkit-inner-spin-button,
|
|
30
|
+
.rokkit input[type='number']::-webkit-outer-spin-button {
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rokkit progress-bar value-bar {
|
|
35
|
+
@apply bg-gradient-to-r from-primary to-secondary text-neutral-subtle dark:text-neutral-800;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Styles for 'searchable' class */
|
|
39
|
+
.searchable input {
|
|
40
|
+
@apply border border-neutral-subtle;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.rokkit a {
|
|
44
|
+
@apply text-primary-800 cursor-pointer underline underline-offset-4;
|
|
45
|
+
/* text-underline-offset: 0.25rem; */
|
|
46
|
+
}
|
|
47
|
+
.rokkit a:hover {
|
|
48
|
+
@apply text-secondary-700 cursor-pointer;
|
|
49
|
+
}
|
|
50
|
+
.rokkit a:visited {
|
|
51
|
+
@apply text-primary-700;
|
|
52
|
+
}
|
|
53
|
+
.rokkit a:focus {
|
|
54
|
+
@apply outline-none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.rokkit [aria-current='true'] a {
|
|
58
|
+
@apply text-primary-100;
|
|
59
|
+
}
|
|
60
|
+
.rokkit [aria-current='true'] a:visited {
|
|
61
|
+
@apply text-primary-100;
|
|
62
|
+
}
|
|
63
|
+
.rokkit [aria-current='true'] a:hover {
|
|
64
|
+
@apply text-primary-100;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rokkit.dark ::-webkit-calendar-picker-indicator {
|
|
68
|
+
filter: invert(1);
|
|
69
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
carousel slide {
|
|
2
|
+
@apply items-center min-h-100 gap-3 px-12;
|
|
3
|
+
}
|
|
4
|
+
carousel slide > img {
|
|
5
|
+
@apply w-80 h-80 object-cover;
|
|
6
|
+
}
|
|
7
|
+
carousel slide > p {
|
|
8
|
+
@apply text-2xl text-center;
|
|
9
|
+
}
|
|
10
|
+
carousel dot-nav {
|
|
11
|
+
@apply flex h-4 w-full gap-2 justify-center;
|
|
12
|
+
}
|
|
13
|
+
carousel dot {
|
|
14
|
+
/* @apply block h-4 w-4 p-0 m-0 text-xs rounded-full bg-neutral-subtle cursor-pointer focus:outline-none; */
|
|
15
|
+
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
16
|
+
}
|
|
17
|
+
carousel dot[aria-checked='true'] {
|
|
18
|
+
@apply bg-gradient-to-r from-primary to-secondary;
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Styles for 'input-field' class */
|
|
2
|
+
.rokkit input-field field {
|
|
3
|
+
@apply p-2px box-border border border-neutral-muted rounded;
|
|
4
|
+
}
|
|
5
|
+
.rokkit input-field input,
|
|
6
|
+
.rokkit input-field textarea,
|
|
7
|
+
.rokkit input-field select {
|
|
8
|
+
@apply border-0 rounded-sm;
|
|
9
|
+
}
|
|
10
|
+
.rokkit checkbox {
|
|
11
|
+
@apply outline-none;
|
|
12
|
+
}
|
|
13
|
+
.rokkit input-field > label {
|
|
14
|
+
@apply text-secondary-600;
|
|
15
|
+
}
|
|
16
|
+
.rokkit input-field field > label {
|
|
17
|
+
@apply w-full h-full flex items-center text-secondary-600 uppercase text-xs;
|
|
18
|
+
}
|
|
19
|
+
.rokkit input-field:not(.disabled) field:focus-within {
|
|
20
|
+
@apply border-neutral-base bg-gradient-to-r from-primary to-secondary;
|
|
21
|
+
}
|
|
22
|
+
.rokkit input-field.disabled label {
|
|
23
|
+
@apply text-neutral-500;
|
|
24
|
+
}
|
|
25
|
+
/* .rokkit input-field.disabled field:focus-within {
|
|
26
|
+
@apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
|
|
27
|
+
} */
|
|
28
|
+
.rokkit input-field > span {
|
|
29
|
+
@apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
|
|
30
|
+
}
|
|
31
|
+
.rokkit input-field message {
|
|
32
|
+
@apply px-2 py-1 bg-neutral-base rounded;
|
|
33
|
+
}
|
|
34
|
+
.rokkit input-field.fail {
|
|
35
|
+
@apply bg-error rounded px-2;
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Styles for 'toggle-switch' */
|
|
2
|
+
.rokkit field toggle-switch:focus-within {
|
|
3
|
+
@apply outline-none;
|
|
4
|
+
}
|
|
5
|
+
.rokkit field toggle-switch {
|
|
6
|
+
@apply min-h-10 items-center justify-center px-1 border-none rounded-sm;
|
|
7
|
+
}
|
|
8
|
+
.rokkit field toggle-switch item {
|
|
9
|
+
@apply leading-loose rounded-sm;
|
|
10
|
+
}
|
|
11
|
+
.rokkit field toggle-switch item p {
|
|
12
|
+
@apply justify-center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rokkit .horizontal > field radio-group {
|
|
16
|
+
@apply md:flex-row md:gap-4;
|
|
17
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* Styles for 'input-range' class */
|
|
2
|
+
.rokkit input-range range-track {
|
|
3
|
+
@apply h-2 mt-2 relative;
|
|
4
|
+
}
|
|
5
|
+
.rokkit input-range range-track range-track-bar {
|
|
6
|
+
@apply bg-neutral-muted border box-border border-neutral-muted rounded-full;
|
|
7
|
+
}
|
|
8
|
+
.rokkit input-range range-track selected-bar {
|
|
9
|
+
@apply border top-0px bottom-0px bg-gradient-to-r from-primary to-secondary border-secondary rounded-full;
|
|
10
|
+
}
|
|
11
|
+
.rokkit input-range range-track thumb {
|
|
12
|
+
@apply rounded-sm focus:outline-none;
|
|
13
|
+
}
|
|
14
|
+
/* .rokkit input-range tick p {
|
|
15
|
+
@apply text-neutral-800;
|
|
16
|
+
} */
|
|
17
|
+
.rokkit .bookend range-track range-track-bar::before,
|
|
18
|
+
.rokkit .bookend range-track range-track-bar::after {
|
|
19
|
+
content: '';
|
|
20
|
+
@apply absolute w-1px rounded-full -top-2 -bottom-2 bg-gray-300;
|
|
21
|
+
}
|
|
22
|
+
.rokkit .bookend range-track range-track-bar::before {
|
|
23
|
+
@apply -left-1px;
|
|
24
|
+
}
|
|
25
|
+
.rokkit .bookend range-track range-track-bar::after {
|
|
26
|
+
@apply -right-2px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Styles for 'tick' class */
|
|
30
|
+
/* .rokkit tick {
|
|
31
|
+
@apply h-6;
|
|
32
|
+
} */
|
|
33
|
+
.rokkit tick tick-bar {
|
|
34
|
+
@apply border-neutral h-full;
|
|
35
|
+
}
|
|
36
|
+
.rokkit tick p {
|
|
37
|
+
@apply items-top text-neutral-600;
|
|
38
|
+
font-size: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Styles for 'thumb' class */
|
|
42
|
+
.rokkit thumb {
|
|
43
|
+
@apply bg-gradient-to-r from-primary to-secondary border-secondary shadow-xl border;
|
|
44
|
+
}
|
|
45
|
+
.rokkit thumb.sliding::before {
|
|
46
|
+
content: '';
|
|
47
|
+
@apply absolute left-0 top-0 right-0 bottom-0 bg-secondary opacity-30 rounded-sm;
|
|
48
|
+
transform: scale(2, 2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Styles for 'button[role='switch']' class */
|
|
52
|
+
.rokkit button[role='switch'] {
|
|
53
|
+
@apply rounded-full p-0 min-h-6 h-8 w-16;
|
|
54
|
+
@apply bg-neutral-subtle border border-neutral-subtle;
|
|
55
|
+
}
|
|
56
|
+
.rokkit button[role='switch'] > mark {
|
|
57
|
+
@apply rounded-full w-6 h-6 top-0.75;
|
|
58
|
+
@apply bg-gradient-to-r from-primary to-secondary;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Styles for 'rating' class */
|
|
62
|
+
.rokkit rating {
|
|
63
|
+
@apply text-neutral-600 text-xl h-9 justify-center rounded focus:outline focus:outline-secondary;
|
|
64
|
+
}
|
|
65
|
+
.rokkit rating > icon {
|
|
66
|
+
@apply w-8;
|
|
67
|
+
}
|
|
68
|
+
.rokkit rating:focus-within icon[aria-checked='true'] {
|
|
69
|
+
@apply text-primary;
|
|
70
|
+
}
|
|
71
|
+
.rokkit rating icon.hovering > i {
|
|
72
|
+
@apply text-secondary;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Pill styles */
|
|
76
|
+
.rokkit .pill {
|
|
77
|
+
@apply rounded-full bg-neutral-inset border-neutral-subtle border px-2 py-1 flex-grow-0;
|
|
78
|
+
}
|
|
79
|
+
.rokkit .pill > icon[role='button'] {
|
|
80
|
+
@apply rounded-full w-5 h-5 hover:bg-neutral-muted hover:text-current focus:rounded-full focus:m-0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.rokkit .pill > item {
|
|
84
|
+
@apply gap-2 leading-6 px-2;
|
|
85
|
+
}
|
|
86
|
+
.rokkit .pill > item > img {
|
|
87
|
+
@apply w-4 h-4;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Styles for 'item' class */
|
|
91
|
+
.rokkit item {
|
|
92
|
+
@apply flex flex-shrink items-center gap-1;
|
|
93
|
+
}
|
|
94
|
+
.rokkit item > p {
|
|
95
|
+
@apply flex-shrink text-ellipsis;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Image and link styles */
|
|
99
|
+
.rokkit item > img,
|
|
100
|
+
.rokkit item > a > img {
|
|
101
|
+
@apply w-6 h-6;
|
|
102
|
+
}
|
|
103
|
+
.rokkit item > a {
|
|
104
|
+
@apply gap-2;
|
|
105
|
+
}
|
|
106
|
+
.rokkit node item {
|
|
107
|
+
@apply px-1 gap-2;
|
|
108
|
+
}
|
|
109
|
+
/* Crumbs styles */
|
|
110
|
+
.rokkit crumbs {
|
|
111
|
+
@apply flex-grow gap-1;
|
|
112
|
+
}
|
|
113
|
+
.rokkit crumbs crumb.is-selected {
|
|
114
|
+
@apply text-secondary-700;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.rokkit day-of-month[aria-selected='true'] {
|
|
118
|
+
@apply bg-gradient-to-r from-primary to-secondary text-neutral-200 dark:text-neutral-800;
|
|
119
|
+
}
|