Skip to content

Commit 4192bcb

Browse files
committed
Sidebar: Set a reset state + reverted grid breakpoint
1 parent 02b6366 commit 4192bcb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

assets/css/v2/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ blockquote p:last-child {
12541254
}
12551255

12561256
/* Maintain the split column for as long as possible */
1257-
@media (min-width: 88rem) {
1257+
@media (min-width: 67rem) {
12581258
blockquote.side-callout {
12591259
grid-column: 2 !important;
12601260
align-self: start;

assets/js/sidebar-v2.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,14 @@ document.addEventListener('DOMContentLoaded', () => {
5252
});
5353
}
5454
});
55+
56+
window.addEventListener('resize', () => {
57+
const sidebar = document.getElementById('sidebar-v2');
58+
59+
if (
60+
window.innerWidth > 88 * 16 &&
61+
sidebar.classList.contains('sidebar__mobile-open')
62+
) {
63+
sidebar.classList.remove('sidebar__mobile-open');
64+
}
65+
});

0 commit comments

Comments
 (0)