@basis-ng/styles 0.0.1-alpha.162 → 0.0.1-alpha.164
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/components/badge.css +12 -6
- package/src/components/button.css +6 -6
- package/src/components/menu.css +10 -10
- package/src/index.css +0 -1
package/package.json
CHANGED
package/src/components/badge.css
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
span[b-badge] {
|
|
2
2
|
/* Base */
|
|
3
3
|
@apply inline-flex items-center gap-2 px-2 py-1 font-medium text-sm rounded-size-md;
|
|
4
|
-
@apply bg-primary text-primary-foreground
|
|
4
|
+
@apply bg-primary text-primary-foreground;
|
|
5
|
+
@apply dark:bg-primary-dark dark:text-primary-foreground-dark;
|
|
5
6
|
|
|
6
7
|
/* Variants */
|
|
7
8
|
&.b-variant-primary {
|
|
8
|
-
@apply bg-primary text-primary-foreground
|
|
9
|
+
@apply bg-primary text-primary-foreground;
|
|
10
|
+
@apply dark:bg-primary-dark dark:text-primary-foreground-dark;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
&.b-variant-secondary {
|
|
12
|
-
@apply bg-secondary text-secondary-foreground
|
|
14
|
+
@apply bg-secondary text-secondary-foreground;
|
|
15
|
+
@apply dark:bg-secondary-dark dark:text-secondary-foreground-dark;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
&.b-variant-ghost {
|
|
16
|
-
@apply bg-transparent text-secondary-
|
|
19
|
+
@apply bg-transparent text-secondary-dark;
|
|
20
|
+
@apply dark:text-secondary;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
&.b-variant-outlined {
|
|
20
|
-
@apply bg-
|
|
24
|
+
@apply bg-secondary/10 text-secondary-foreground inset-ring-1 inset-ring-ring shadow-xs;
|
|
25
|
+
@apply dark:bg-secondary-dark/40 dark:text-secondary-foreground-dark dark:inset-ring-ring-dark shadow-xs;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
&.b-variant-destructive {
|
|
24
|
-
@apply bg-destructive text-destructive-foreground
|
|
29
|
+
@apply bg-destructive text-destructive-foreground inset-ring-1 inset-ring-destructive;
|
|
30
|
+
@apply dark:bg-destructive-dark dark:text-destructive-foreground-dark dark:inset-ring-destructive-dark;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
/* Sizes */
|
|
@@ -16,16 +16,16 @@ button[b-button] {
|
|
|
16
16
|
@apply dark:bg-primary-dark dark:text-primary-foreground-dark dark:hover:bg-primary-dark/80;
|
|
17
17
|
}
|
|
18
18
|
&.b-variant-secondary {
|
|
19
|
-
@apply bg-secondary
|
|
20
|
-
@apply dark:bg-secondary-dark
|
|
19
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/50;
|
|
20
|
+
@apply dark:bg-secondary-dark dark:text-secondary-foreground-dark dark:hover:bg-secondary-dark/50;
|
|
21
21
|
}
|
|
22
22
|
&.b-variant-ghost {
|
|
23
|
-
@apply bg-transparent text-secondary-
|
|
24
|
-
@apply dark:text-secondary
|
|
23
|
+
@apply bg-transparent text-secondary-dark hover:bg-secondary;
|
|
24
|
+
@apply dark:text-secondary dark:hover:bg-secondary-dark;
|
|
25
25
|
}
|
|
26
26
|
&.b-variant-outlined {
|
|
27
|
-
@apply bg-
|
|
28
|
-
@apply dark:bg-
|
|
27
|
+
@apply bg-secondary/10 text-secondary-foreground inset-ring-1 inset-ring-ring shadow-xs;
|
|
28
|
+
@apply dark:bg-secondary-dark/40 dark:text-secondary-foreground-dark dark:inset-ring-ring-dark shadow-xs;
|
|
29
29
|
}
|
|
30
30
|
&.b-variant-destructive {
|
|
31
31
|
@apply bg-destructive text-destructive-foreground inset-ring-1 inset-ring-destructive hover:bg-destructive/90 hover:inset-ring-destructive/80;
|
package/src/components/menu.css
CHANGED
|
@@ -19,11 +19,11 @@ b-menu {
|
|
|
19
19
|
button[b-menu-item],
|
|
20
20
|
button[b-menu-item-radio],
|
|
21
21
|
button[b-menu-item-checkbox] {
|
|
22
|
-
@apply px-3 py-0 text-sm h-8 rounded-size-
|
|
22
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
23
23
|
|
|
24
24
|
&.b-squared {
|
|
25
25
|
aspect-ratio: 1 / 1;
|
|
26
|
-
@apply w-
|
|
26
|
+
@apply w-10 min-w-10 h-10 min-h-10 !p-0 flex items-center justify-center text-center;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -45,11 +45,11 @@ b-menu {
|
|
|
45
45
|
button[b-menu-item],
|
|
46
46
|
button[b-menu-item-radio],
|
|
47
47
|
button[b-menu-item-checkbox] {
|
|
48
|
-
@apply px-2 py-0 text-xs h-6 rounded-size-
|
|
48
|
+
@apply px-2 py-0 text-xs h-6 rounded-size-xs gap-1;
|
|
49
49
|
|
|
50
50
|
&.b-squared {
|
|
51
51
|
aspect-ratio: 1 / 1;
|
|
52
|
-
@apply w-
|
|
52
|
+
@apply w-8 min-w-8 h-8 min-h-8 !p-0 flex items-center justify-center text-center;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -72,11 +72,11 @@ b-menu {
|
|
|
72
72
|
button[b-menu-item],
|
|
73
73
|
button[b-menu-item-radio],
|
|
74
74
|
button[b-menu-item-checkbox] {
|
|
75
|
-
@apply px-3 py-0 text-sm h-8 rounded-size-
|
|
75
|
+
@apply px-3 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
76
76
|
|
|
77
77
|
&.b-squared {
|
|
78
78
|
aspect-ratio: 1 / 1;
|
|
79
|
-
@apply w-
|
|
79
|
+
@apply w-10 min-w-10 h-10 min-h-10 !p-0 flex items-center justify-center text-center;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -99,11 +99,11 @@ b-menu {
|
|
|
99
99
|
button[b-menu-item],
|
|
100
100
|
button[b-menu-item-radio],
|
|
101
101
|
button[b-menu-item-checkbox] {
|
|
102
|
-
@apply px-4 py-0 text-base h-10 rounded-size-
|
|
102
|
+
@apply px-4 py-0 text-base h-10 rounded-size-md gap-2;
|
|
103
103
|
|
|
104
104
|
&.b-squared {
|
|
105
105
|
aspect-ratio: 1 / 1;
|
|
106
|
-
@apply w-
|
|
106
|
+
@apply w-12 min-w-12 h-12 min-h-12 !p-0 flex items-center justify-center text-center;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -142,12 +142,12 @@ b-menu {
|
|
|
142
142
|
@apply flex flex-col;
|
|
143
143
|
|
|
144
144
|
&:not(:first-child) {
|
|
145
|
-
@apply border-t border-secondary;
|
|
145
|
+
@apply border-t-1 border-secondary;
|
|
146
146
|
@apply dark:border-secondary-dark;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
&:not(:last-child) {
|
|
150
|
-
@apply border-b border-secondary;
|
|
150
|
+
@apply border-b-1 border-secondary;
|
|
151
151
|
@apply dark:border-secondary-dark;
|
|
152
152
|
}
|
|
153
153
|
}
|
package/src/index.css
CHANGED