This repository was archived by the owner on Jan 4, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 387
Expand file tree
/
Copy pathcomponent-sidenav.scss
More file actions
113 lines (93 loc) · 2.04 KB
/
component-sidenav.scss
File metadata and controls
113 lines (93 loc) · 2.04 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@use '../../../styles/constants';
app-component-sidenav {
display: flex;
flex-direction: column;
overflow: auto;
}
.docs-component-viewer-sidenav-container {
flex: 1;
box-sizing: border-box;
}
.docs-component-viewer-sidenav {
overflow: auto;
}
.docs-component-sidenav-inner-content {
display: flex;
flex-direction: row;
}
.mat-drawer {
&::-webkit-scrollbar {
height: 4px;
width: 4px;
}
}
.docs-component-viewer-nav {
position: sticky;
top: 0;
.docs-component-viewer-nav-content {
width: constants.$sidenav-width;
height: calc(100vh - 56px);
overflow: auto;
&::-webkit-scrollbar {
height: 4px;
width: 4px;
}
ul {
list-style-type: none;
margin: 0 0 5px 0;
padding: 0;
overflow: hidden;
}
li {
font-size: 13px;
line-height: 16px;
margin: 0;
padding: 5px 15px 5px 20px;
}
}
}
.docs-component-sidenav-content {
display: flex;
flex-direction: column;
min-height: 100%;
}
.docs-component-sidenav-inner-content {
display: flex;
flex-direction: column;
flex: 1;
}
.docs-component-sidenav-body-content {
display: flex;
flex: 1 1 auto;
}
div .mat-mdc-list-base {
padding-top: 0;
}
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version.*/
div.docs-component-viewer-nav-content .mat-nav-list .mat-mdc-list-item .mat-list-item-content {
padding-left: 25px;
}
@media (max-width: constants.$small-breakpoint-width) {
// Add specific rule to prevent default rule conflict
.docs-component-viewer-sidenav-container .docs-component-viewer-sidenav {
// position right above the content
z-index: 4;
}
.docs-component-viewer-nav {
position: relative;
top: 0;
.docs-component-viewer-nav-content {
box-sizing: border-box;
margin: 0;
max-height: initial;
}
}
}
@media (max-width: 720px) {
.docs-component-viewer-sidenav-container {
flex: 1 0;
}
.docs-component-sidenav-body-content {
flex-direction: column;
}
}