@basis-ng/styles 0.0.1-alpha.110 → 0.0.1-alpha.112
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/menu.css +39 -0
- package/src/components/select.css +1 -1
package/package.json
CHANGED
package/src/components/menu.css
CHANGED
|
@@ -20,6 +20,18 @@ b-menu {
|
|
|
20
20
|
button[b-menu-item-radio],
|
|
21
21
|
button[b-menu-item-checkbox] {
|
|
22
22
|
@apply !py-1 !px-2 rounded-size-xs;
|
|
23
|
+
&.squared {
|
|
24
|
+
aspect-ratio: 1 / 1;
|
|
25
|
+
width: 2rem;
|
|
26
|
+
min-width: 2rem;
|
|
27
|
+
height: 2rem;
|
|
28
|
+
min-height: 2rem;
|
|
29
|
+
padding: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
23
35
|
}
|
|
24
36
|
}
|
|
25
37
|
|
|
@@ -42,6 +54,18 @@ b-menu {
|
|
|
42
54
|
button[b-menu-item-radio],
|
|
43
55
|
button[b-menu-item-checkbox] {
|
|
44
56
|
@apply !py-1.5 !px-3 rounded-size-sm;
|
|
57
|
+
&.squared {
|
|
58
|
+
aspect-ratio: 1 / 1;
|
|
59
|
+
width: 2.5rem;
|
|
60
|
+
min-width: 2.5rem;
|
|
61
|
+
height: 2.5rem;
|
|
62
|
+
min-height: 2.5rem;
|
|
63
|
+
padding: 0;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
45
69
|
}
|
|
46
70
|
}
|
|
47
71
|
|
|
@@ -64,6 +88,19 @@ b-menu {
|
|
|
64
88
|
button[b-menu-item-radio],
|
|
65
89
|
button[b-menu-item-checkbox] {
|
|
66
90
|
@apply !py-2 !px-4 rounded-size-md;
|
|
91
|
+
|
|
92
|
+
&.squared {
|
|
93
|
+
aspect-ratio: 1 / 1;
|
|
94
|
+
width: 3rem;
|
|
95
|
+
min-width: 3rem;
|
|
96
|
+
height: 3rem;
|
|
97
|
+
min-height: 3rem;
|
|
98
|
+
padding: 0;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
67
104
|
}
|
|
68
105
|
}
|
|
69
106
|
|
|
@@ -74,6 +111,8 @@ b-menu {
|
|
|
74
111
|
@apply hover:bg-secondary/50;
|
|
75
112
|
@apply dark:hover:bg-secondary-dark/50;
|
|
76
113
|
|
|
114
|
+
/* .squared ahora se define por size arriba */
|
|
115
|
+
|
|
77
116
|
&:focus-visible {
|
|
78
117
|
@apply outline-2 outline-offset-4 outline-primary;
|
|
79
118
|
@apply dark:outline-primary-dark;
|
|
@@ -2,7 +2,7 @@ b-select {
|
|
|
2
2
|
@apply flex gap-1;
|
|
3
3
|
|
|
4
4
|
button[b-select-trigger] {
|
|
5
|
-
@apply
|
|
5
|
+
@apply transition-colors duration-150 flex items-center justify-center gap-x-2 disabled:opacity-50 disabled:cursor-not-allowed;
|
|
6
6
|
@apply bg-transparent inset-ring-1 inset-ring-secondary hover:bg-primary/5 flex-1;
|
|
7
7
|
@apply dark:inset-ring-secondary-dark dark:hover:bg-primary-dark/5;
|
|
8
8
|
|