Skip to content

Commit bd60e86

Browse files
authored
Merge pull request #809 from sinsong/master
Fix .bd-sizebar-secondary and .secondary-toggle breakpoint
2 parents 3b6fd68 + 9939b7a commit bd60e86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sphinx_book_theme/assets/styles/sections/_header-article.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ button.sidebar-toggle.primary-toggle {
2626

2727
// Secondary toggle mimics behavior of "persistent header" div of PST
2828
button.sidebar-toggle.secondary-toggle {
29-
@media (min-width: $breakpoint-lg) {
29+
@media (min-width: $breakpoint-xl) {
3030
display: none;
3131
}
3232
@media (max-width: $breakpoint-md) {

src/sphinx_book_theme/assets/styles/sections/_sidebar-secondary.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// So that it sticks to the top of the page instead of the header height
77
top: 0;
88

9-
@media (max-width: $breakpoint-lg) {
9+
@media (max-width: $breakpoint-xl) {
1010
// So that tooltips don't overlap
1111
z-index: $zindex-tooltip + 1;
1212
}
@@ -36,7 +36,7 @@
3636
}
3737

3838
// Wide screen behavior
39-
@media (min-width: $breakpoint-lg) {
39+
@media (min-width: $breakpoint-xl) {
4040
background: var(--pst-color-background);
4141
height: fit-content;
4242
transition: max-height 0.4s ease;

0 commit comments

Comments
 (0)