Skip to content

Commit

Permalink
feat: Add basic resizing of sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniela Valero committed Mar 18, 2023
1 parent 41e82c5 commit 083f0ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions notes/assets/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ body {
.resizable {
position: relative;
color: black;
/* top: 0px !important; */
top: 0px !important;
}

.resizer-elem {
width: 5px;
height: 100vh;
height: 80vh;
background: var(--color-highlight--transparent);
position: absolute;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion notes/assets/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const sidebar = document.querySelector('.md-sidebar--primary');
sidebar.classList.add('js-resizable');

const resizableElem = document.querySelector('.js-resizable');
resizableElem.classList.toggle('.resizable')
resizableElem.classList.toggle('resizable')


const resizer = document.createElement('div');
Expand Down

0 comments on commit 083f0ac

Please sign in to comment.