Skip to content

Commit 539d78d

Browse files
committed
fix styling of sidebar
1 parent a8eb799 commit 539d78d

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/css/custom.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,6 @@ prism-code {
688688
max-width: 100%;
689689
}
690690

691-
#__docusaurus {
692-
height: 100%;
693-
}
694-
695691
.navbar {
696692
flex: 0 0 var(--ifm-navbar-height);
697693
background: var(--click-color-background);

src/theme/DocSidebar/Desktop/styles.module.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@use '../../../css/breakpoints.scss' as breakpoints;
22

3-
.sidebarSearchContainer {
4-
margin-top: 6rem !important;
5-
}
6-
73
@media (min-width: breakpoints.$mobile-breakpoint) {
84

95
.sidebar {
6+
position: fixed;
7+
top: 4rem;
8+
overflow: auto;
9+
left: 0;
1010
display: flex;
1111
flex-direction: column;
12-
height: 100%;
1312
width: var(--doc-sidebar-width);
1413
max-width: 100%;
14+
height: calc(100% - 3.5rem);
1515
}
1616

1717
.sidebarWithHideableNavbar {
@@ -44,12 +44,12 @@
4444
}
4545

4646
.sidebarSearchContainer {
47-
margin-top: 2rem;
4847
padding: 0 1rem;
48+
margin-top: 1.5rem;
4949
}
5050

5151
@media (min-width: breakpoints.$laptop-breakpoint) {
5252
.sidebarSearchContainer {
53-
margin-top: calc(var(--ifm-navbar-height) + 2rem) !important;
53+
margin-top: 5rem !important;
5454
}
5555
}

0 commit comments

Comments
 (0)