-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathSegmentedButton.css
73 lines (62 loc) · 2.36 KB
/
SegmentedButton.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@import "./FormComponents.css";
@import "./InvisibleTextStyles.css";
:host(:not([hidden])) {
display: inline-block;
min-width: calc(var(--_ui5_segmented_btn_items_count) * 2.5rem);
}
.ui5-segmented-button-root {
width: inherit;
display: grid;
grid-template-columns: repeat(var(--_ui5_segmented_btn_items_count), minmax(2.5rem, 1fr));
margin: 0;
padding: 0;
background-color: var(--sapButton_Background);
border-radius: var(--sapButton_BorderCornerRadius);
box-shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_BorderColor);
}
::slotted([ui5-segmented-button-item]) {
border-radius: var(--_ui5_segmented_btn_inner_border_radius);
border-color: var(--_ui5_segmented_btn_border_color);
background-color: var(--_ui5_segmented_btn_background_color);
height: var(--_ui5_button_base_height);
min-width: 2.5rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: initial;
}
::slotted([ui5-segmented-button-item]:hover) {
z-index: 2;
box-shadow: var(--_ui5_segmented_btn_hover_box_shadow);
border-color: var(--sapButton_Hover_BorderColor);
background-color: var(--sapButton_Hover_Background);
}
::slotted([ui5-segmented-button-item][selected]),
::slotted([ui5-segmented-button-item][active]) {
border-color: var(--sapButton_Selected_BorderColor);
background-color: var(--sapButton_Selected_Background);
color: var(--sapButton_Selected_TextColor);
}
::slotted([ui5-segmented-button-item][selected]:hover) {
border-color: var(--sapButton_Selected_Hover_BorderColor);
background-color: var(--sapButton_Selected_Hover_Background);
color: var(--sapButton_Selected_TextColor);
}
::slotted([ui5-segmented-button-item]:last-child) {
border-start-end-radius: var(--sapButton_BorderCornerRadius);
border-end-end-radius: var(--sapButton_BorderCornerRadius);
}
::slotted([ui5-segmented-button-item]:first-child) {
border-start-start-radius: var(--sapButton_BorderCornerRadius);
border-end-start-radius: var(--sapButton_BorderCornerRadius);
}
::slotted([ui5-segmented-button-item]:not(:first-child)) {
border-left-width: var(--_ui5_segmented_btn_item_border_left);
border-right-width: var(--_ui5_segmented_btn_item_border_right);
}
::slotted([ui5-segmented-button-item][active]:not([active]):hover) {
border-color: var(--sapButton_BorderColor);
}
::slotted([ui5-segmented-button-item][active]:hover) {
border-color: var(--sapButton_Selected_BorderColor);
}