Skip to content

Commit 616ef9a

Browse files
committed
fix: update sidenav to use resize and toggle
1 parent 68ba008 commit 616ef9a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

demo/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
<!-- CoCreate SideNav Right -->
19-
<div id="menuR" class="cocreate-sidenav sidenav-right background:gainsboro" data-main_content="canvas" sidenav-default_desktop="expanded" sidenav-default_tablet="expanded" sidenav-default_phone="expanded">
19+
<sidenav id="menuR" class="position:fixed top:0px right:0px direction:rtl overflow:hidden background:gainsboro height:100vh width:300px" resizable resize-target="[content_id='content']" resize-property="margin-right" resize-value="width">
2020
<h1 id="new" class="background:green">testing</h1>
2121
<div class="padding:5px height:100vh overflow:auto">
2222
<form>
@@ -109,8 +109,8 @@ <h1 id="new" class="background:green">testing</h1>
109109

110110
</form>
111111
</div>
112-
<div class="resizeHandler"></div>
113-
</div>
112+
<div resize="left"></div>
113+
</sidenav>
114114
<!-- End CoCreate SideNav Right -->
115115

116116
<!-- end floating btn -->

docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
</head>
1818

1919
<body>
20-
<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">
20+
<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">
2121
</nav>
22-
<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">
22+
<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">
2323
<menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
24-
<div class="resizeHandler"></div>
24+
<div resize="right"></div>
2525
</sidenav>
26-
<main class="padding-top:15px padding:15px@lg@xl" main-content_id="content" id="cocreate-domEditorPanel">
26+
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="cocreate-domEditorPanel">
2727
<div class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
2828
<div class="display:flex align-items:center">
2929
<h2>CoCreate-domEditorPanel</h2>

0 commit comments

Comments
 (0)