-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathButtonGroup.css
54 lines (43 loc) · 909 Bytes
/
ButtonGroup.css
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
52
53
54
.buttonGroup {
display: inline-flex;
justify-content: space-between;
&.fullWidth {
width: 100%;
& > * {
width: 100%;
}
}
& > :first-child,
& > :first-child::before {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
& > :last-child,
& > :last-child::before {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
& > :not(:first-child) {
margin-left: -1px;
}
& > :not(:first-child, :last-child),
& > :not(:first-child, :last-child)::before {
border-radius: 0;
}
}
[dir="rtl"] {
& .buttonGroup {
& > :first-child,
& > :first-child::before {
border-radius: 0 var(--radius) var(--radius) 0;
}
& > :last-child,
& > :last-child::before {
border-radius: var(--radius) 0 0 var(--radius);
}
& > :not(:first-child) {
margin-left: 0;
margin-right: -1px;
}
}
}