Skip to content

Commit

Permalink
header finetuning
Browse files Browse the repository at this point in the history
  • Loading branch information
msbt committed Jul 15, 2024
1 parent 37b41ab commit 9f2dd0b
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions src/crate/theme/rtd/crate/static/css/ng/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@
}
}

@media all and (min-width: 67rem) {
header.sb-header {
display: block;
}

.sb-container {
top: 4em;
position: relative;
}
}

// Make sidebars sticky.
.sidebar-drawer,
.toc-drawer {
Expand Down Expand Up @@ -89,14 +78,35 @@
}
}

.mobile-header {
position: sticky;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
}

@media (min-width: 76rem) {
header.sb-header {
display: block;
}

.sb-sidebar-secondary {
position: static !important;
}

.hide-when-secondary-sidebar-shown {
display: none !important;
}

.sb-container {
top: 4em;
position: relative;
}

.mobile-header {
display: none;
}
}

// Sidebar: Adjust drawer icon positioning and size.
Expand Down

0 comments on commit 9f2dd0b

Please sign in to comment.