-
Notifications
You must be signed in to change notification settings - Fork 171
/
_patterns_segmented-control.scss
51 lines (44 loc) · 1.1 KB
/
_patterns_segmented-control.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@mixin vf-p-segmented-control {
.p-segmented-control,
// p-tab-buttons is deprecated,
// please use p-segmented-control instead
.p-tab-buttons {
.p-segmented-control__list,
.p-tab-buttons__list {
display: flex;
}
.p-segmented-control__button,
.p-tab-buttons__button {
@extend %vf-button-has-icon;
border-radius: 0;
margin-right: 0;
overflow: hidden;
position: relative;
text-overflow: ellipsis;
white-space: nowrap;
&:not(:first-child) {
border-left: 0;
}
&:not(:last-child) {
border-right: 0;
&::after {
background-color: $colors--theme--border-low-contrast;
bottom: 0;
content: '';
position: absolute;
right: 0;
top: 0;
width: $input-border-thickness;
}
}
}
&.is-dense .p-segmented-control__button,
&.is-dense .p-tab-buttons__button {
@extend %vf-button-dense-vertical-padding;
}
}
}
// Deprecated mixin kept for compatibility
@mixin vf-p-tab-buttons {
@include vf-p-segmented-control;
}