fix: border radius on content when sidebar is open

This commit is contained in:
Ash Monty 2022-08-15 15:33:40 +02:00
parent 94060b8f53
commit ef1af44f8b
No known key found for this signature in database
GPG Key ID: 740B7C88251D49B6
2 changed files with 5 additions and 0 deletions

View File

@ -313,6 +313,9 @@ button#openSidebar {
grid-column: 2 / span 1;
grid-row: 2 / span 1;
}
.docs-wrapper .content.open-sidebar {
border-top-left-radius: 8px;
}
.docs-wrapper .content-inner {
max-width: none;
}

View File

@ -1,5 +1,7 @@
const openSidebarBtn = document.querySelector('#openSidebar');
const content = document.querySelector('div.content');
openSidebarBtn.addEventListener('click', function() {
const sidebar = document.querySelector('.sidebar');
sidebar.classList.toggle('open');
content.classList.toggle('open-sidebar');
});