Skip to content

Commit 37c64ef

Browse files
committed
fix: update sidenav to use resize and toggle
1 parent 2cc628d commit 37c64ef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<body>
6666
<!-- Navbar -->
6767
<div class="display:flex flex-wrap:wrap justify-content:space-between flex-direction:row padding-top:10px padding-bottom:10px width:100% nav"
68-
main-content_id="content"
68+
content_id="content"
6969
scroll="hidden, sticky-nav"
7070
scrolling="scrolling"
7171
scroll-top="scroll_top"
@@ -225,7 +225,7 @@ <h1 class="text-align:center padding-bottom:20px">SPREAD THE WORD!</h1>
225225
<div class=" margin-left:25px">
226226
<a href="">Spread the word</a>
227227
</div>
228-
<div class="resizeHandler"></div>
228+
<div resize="right"></div>
229229
</ul>
230230
</div>
231231

docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
<body>
2121

22-
<nav class="nav display:flex align-items:center background:whitesmoke padding-top:10px padding-bottom:10px" main-content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
22+
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
2323
</nav>
24-
<sidenav id="menuL" class="cocreate-sidenav background:whitesmoke" data-main_content="content" sidenav-default_desktop="expanded" sidenav-default_tablet="offcanvas" sidenav-ontoggle_desktop="offcanvas" sidenav-ontoggle_tablet="expanded">
24+
<sidenav id="menuL" class="position:fixed top:0px left:0px background:whitesmoke height:100vh width:300px width:300px:hover width:0px@xs" resizable resize-target="[content_id='content']" resize-property="margin-left" resize-value="width">
2525
<menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
26-
<div class="resizeHandler"></div>
26+
<div resize="right"></div>
2727
</sidenav>
28-
<main class="padding-top:15px padding:15px@lg@xl" main-content_id="content" id="overflow:overlay">
28+
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="overflow:overlay">
2929
<div class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
3030
<div class="display:flex align-items:center">
3131
<h2>overflow:overlay</h2>

0 commit comments

Comments
 (0)