@hazae41/labase 1.0.26 → 1.0.28
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 +1 -1
- package/src/index.css +2 -9
- package/src/scrollbar/index.css +81 -45
- package/src/selection/index.css +23 -0
package/package.json
CHANGED
package/src/index.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@import "./outline/index.css";
|
|
10
10
|
@import "./divide/index.css";
|
|
11
11
|
@import "./scrollbar/index.css";
|
|
12
|
+
@import "./selection/index.css";
|
|
12
13
|
|
|
13
14
|
@custom-variant light {
|
|
14
15
|
@media (prefers-color-scheme: light) {
|
|
@@ -53,19 +54,11 @@
|
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
body {
|
|
56
|
-
@apply h-full w-full text-base text-default bg-default **:scrollbar-default-[transparent];
|
|
57
|
+
@apply h-full w-full text-base text-default bg-default selection-default **:scrollbar-default-[transparent];
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
body {
|
|
60
61
|
font-family: ui-rounded, system-ui, sans-serif;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
::selection {
|
|
64
|
-
@apply bg-default-double-contrast;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
::backdrop {
|
|
68
|
-
@apply bg-transparent;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
}
|
package/src/scrollbar/index.css
CHANGED
|
@@ -1,71 +1,107 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@import "./margin/index.css";
|
|
5
|
-
@import "./animations/index.css";
|
|
6
|
-
@import "./background/index.css";
|
|
7
|
-
@import "./text/index.css";
|
|
8
|
-
@import "./border/index.css";
|
|
9
|
-
@import "./outline/index.css";
|
|
10
|
-
@import "./divide/index.css";
|
|
11
|
-
@import "./scrollbar/index.css";
|
|
12
|
-
|
|
13
|
-
@custom-variant light {
|
|
14
|
-
@media (prefers-color-scheme: light) {
|
|
15
|
-
&:not([data-theme="dark"], [data-theme="opposite"], [data-theme="dark"] *, [data-theme="opposite"] *) {
|
|
16
|
-
@slot;
|
|
17
|
-
}
|
|
1
|
+
@utility scrollbar-light-* {
|
|
2
|
+
@supports (-moz-appearance:none) {
|
|
3
|
+
scrollbar-color: rgba(0 0 0 / 0.1) --value([color]);
|
|
18
4
|
}
|
|
19
5
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
&::-webkit-scrollbar {
|
|
7
|
+
background-color: --value([color]);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::-webkit-scrollbar-thumb {
|
|
11
|
+
@apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
24
12
|
}
|
|
25
13
|
|
|
26
|
-
|
|
27
|
-
@
|
|
14
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
15
|
+
@apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
28
16
|
}
|
|
29
17
|
}
|
|
30
18
|
|
|
31
|
-
@
|
|
32
|
-
@
|
|
33
|
-
|
|
34
|
-
@slot;
|
|
35
|
-
}
|
|
19
|
+
@utility scrollbar-dark-* {
|
|
20
|
+
@supports (-moz-appearance:none) {
|
|
21
|
+
scrollbar-color: rgba(255 255 255 / 0.1) --value([color]);
|
|
36
22
|
}
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
&::-webkit-scrollbar {
|
|
25
|
+
background-color: --value([color]);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::-webkit-scrollbar-thumb {
|
|
29
|
+
@apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
42
30
|
}
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
@
|
|
32
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
33
|
+
@apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
46
34
|
}
|
|
47
35
|
}
|
|
48
36
|
|
|
49
|
-
@
|
|
37
|
+
@utility scrollbar-default-* {
|
|
38
|
+
@supports (-moz-appearance:none) {
|
|
39
|
+
scrollbar-color: rgba(0 0 0 / 0.1) --value([color]);
|
|
40
|
+
}
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
&::-webkit-scrollbar {
|
|
43
|
+
background-color: --value([color]);
|
|
53
44
|
}
|
|
54
45
|
|
|
55
|
-
|
|
56
|
-
@apply
|
|
46
|
+
&::-webkit-scrollbar-thumb {
|
|
47
|
+
@apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
57
48
|
}
|
|
58
49
|
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
51
|
+
@apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
61
52
|
}
|
|
62
53
|
|
|
63
|
-
|
|
64
|
-
@
|
|
54
|
+
@variant dark {
|
|
55
|
+
@supports (-moz-appearance:none) {
|
|
56
|
+
scrollbar-color: rgba(255 255 255 / 0.1) --value([color]);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::-webkit-scrollbar {
|
|
60
|
+
background-color: --value([color]);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::-webkit-scrollbar-thumb {
|
|
64
|
+
@apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
68
|
+
@apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@utility scrollbar-opposite-* {
|
|
74
|
+
@supports (-moz-appearance:none) {
|
|
75
|
+
scrollbar-color: rgba(255 255 255 / 0.1) --value([color]);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::-webkit-scrollbar {
|
|
79
|
+
background-color: --value([color]);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&::-webkit-scrollbar-thumb {
|
|
83
|
+
@apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
65
84
|
}
|
|
66
85
|
|
|
67
|
-
|
|
68
|
-
@apply bg-transparent;
|
|
86
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
87
|
+
@apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
69
88
|
}
|
|
70
89
|
|
|
90
|
+
@variant dark {
|
|
91
|
+
@supports (-moz-appearance:none) {
|
|
92
|
+
scrollbar-color: rgba(0 0 0 / 0.1) --value([color]);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&::-webkit-scrollbar {
|
|
96
|
+
background-color: --value([color]);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&::-webkit-scrollbar-thumb {
|
|
100
|
+
@apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
104
|
+
@apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
71
107
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@utility selection-default {
|
|
2
|
+
&::selection {
|
|
3
|
+
@apply bg-black/10;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@variant dark {
|
|
7
|
+
&::selection {
|
|
8
|
+
@apply bg-white/40;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility selection-opposite {
|
|
14
|
+
&::selection {
|
|
15
|
+
@apply bg-white/40;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@variant dark {
|
|
19
|
+
&::selection {
|
|
20
|
+
@apply bg-black/10;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|