@basis-ng/styles 0.0.1-alpha.149 → 0.0.1-alpha.150
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/tabs.css +49 -13
package/package.json
CHANGED
package/src/components/tabs.css
CHANGED
|
@@ -1,52 +1,88 @@
|
|
|
1
1
|
b-tabs {
|
|
2
|
+
/* Base container */
|
|
2
3
|
@apply flex items-center;
|
|
3
4
|
@apply bg-primary/5 text-secondary-foreground inset-ring-1 inset-ring-primary/10 shadow-xs;
|
|
4
5
|
@apply dark:bg-primary-dark/5 dark:text-secondary-foreground-dark dark:inset-ring-primary-dark/10;
|
|
5
6
|
|
|
6
7
|
/* Base md by default */
|
|
7
|
-
@apply px-1 py-
|
|
8
|
+
@apply px-1 py-1 text-sm h-auto rounded-size-md gap-1;
|
|
8
9
|
|
|
10
|
+
/* Individual tab styling */
|
|
9
11
|
b-tab {
|
|
10
|
-
@apply flex items-center justify-center cursor-pointer;
|
|
11
|
-
@apply px-2 py-0 text-
|
|
12
|
+
@apply flex items-center justify-center cursor-pointer transition-colors duration-150;
|
|
13
|
+
@apply px-2.5 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
12
14
|
|
|
15
|
+
/* Selected state */
|
|
13
16
|
&[aria-selected='true'] {
|
|
14
|
-
@apply bg-primary text-primary-foreground
|
|
15
|
-
@apply dark:bg-primary-dark dark:text-primary-foreground-dark
|
|
17
|
+
@apply bg-primary text-primary-foreground;
|
|
18
|
+
@apply dark:bg-primary-dark dark:text-primary-foreground-dark;
|
|
16
19
|
}
|
|
17
20
|
|
|
21
|
+
/* Hover state (not selected) */
|
|
18
22
|
&:hover:not([aria-selected='true']) {
|
|
19
|
-
@apply bg-
|
|
20
|
-
@apply dark:
|
|
23
|
+
@apply bg-primary/10;
|
|
24
|
+
@apply dark:bg-primary-dark/20;
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
/* Focus state */
|
|
23
28
|
&:focus-visible {
|
|
24
29
|
@apply outline-2 outline-offset-2 outline-primary;
|
|
25
30
|
@apply dark:outline-primary-dark;
|
|
26
31
|
}
|
|
32
|
+
|
|
33
|
+
/* Disabled state */
|
|
34
|
+
&[aria-disabled='true'] {
|
|
35
|
+
@apply opacity-50 cursor-not-allowed pointer-events-none;
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
38
|
|
|
39
|
+
/* Size variants */
|
|
29
40
|
&.b-size-sm {
|
|
30
|
-
@apply px-0.5 py-0 text-xs
|
|
41
|
+
@apply px-0.5 py-0.5 text-xs rounded-size-sm gap-0.5;
|
|
31
42
|
|
|
32
43
|
b-tab {
|
|
33
|
-
@apply px-2 py-0 text-xs h-
|
|
44
|
+
@apply px-2 py-0 text-xs h-6 rounded-size-sm gap-1;
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
&.b-size-md {
|
|
38
|
-
@apply px-1 py-
|
|
49
|
+
@apply px-1 py-1 text-sm rounded-size-md gap-1;
|
|
39
50
|
|
|
40
51
|
b-tab {
|
|
41
|
-
@apply px-2 py-0 text-
|
|
52
|
+
@apply px-2.5 py-0 text-sm h-8 rounded-size-sm gap-1.5;
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
&.b-size-lg {
|
|
46
|
-
@apply px-1 py-
|
|
57
|
+
@apply px-1 py-1 text-base rounded-size-lg gap-1;
|
|
58
|
+
|
|
59
|
+
b-tab {
|
|
60
|
+
@apply px-3 py-0 text-base h-10 rounded-size-md gap-2;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Rounded full - extra horizontal padding */
|
|
65
|
+
&.b-rounded-full {
|
|
66
|
+
@apply px-2;
|
|
67
|
+
|
|
68
|
+
b-tab {
|
|
69
|
+
@apply px-4 rounded-size-md;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.b-size-sm.b-rounded-full {
|
|
74
|
+
@apply px-1.5;
|
|
75
|
+
|
|
76
|
+
b-tab {
|
|
77
|
+
@apply px-3 rounded-size-sm;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.b-size-lg.b-rounded-full {
|
|
82
|
+
@apply px-2.5;
|
|
47
83
|
|
|
48
84
|
b-tab {
|
|
49
|
-
@apply px-
|
|
85
|
+
@apply px-5 rounded-size-lg;
|
|
50
86
|
}
|
|
51
87
|
}
|
|
52
88
|
}
|