-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathsidenav.scss
More file actions
66 lines (55 loc) · 1.47 KB
/
sidenav.scss
File metadata and controls
66 lines (55 loc) · 1.47 KB
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
/** CSS for a side navigation component. */
@import 'frontend/app/styles/common';
.button-container {
padding: 20px;
}
.item-container {
padding: 20px 20px 0 20px;
}
.tooltip-icon {
color: #e8710a;
font-size: 25px;
vertical-align: bottom;
cursor: pointer;
}
.mat-form-field {
margin-bottom: 10px;
}
.mat-subheading-2 {
margin-bottom: 0;
}
.select-all-checkbox {
margin-left: -10px;
padding-left: 16px;
}
// Target the custom panel class defined in sidenav.ng.html
.multi-host-select-panel {
.full-width {
width: 100%;
}
// Styles for the sticky header containing the "Select/Deselect All" button.
// 'position: sticky' keeps the header fixed at the top of the dropdown panel during scroll.
.sticky-header {
position: sticky;
top: 0;
z-index: 1; // Ensures the header stays above the scrolling list of options.
padding: 8px;
background: #fff;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); // Visual separator.
}
// Styles for the sticky footer containing the "Apply Host Selection" button.
// 'position: sticky' keeps the footer fixed at the bottom of the dropdown panel.
.sticky-footer {
position: sticky;
bottom: 0;
z-index: 1; // Ensures the footer stays below the scrolling list of options.
padding: 8px;
background: #fff;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
// Ensure options remain clickable and are not covered by the sticky button's
// padding.
mat-option {
flex-shrink: 0;
}
}