
* move the existing example to with-script-in-browser * Add example with next js app router * disable ssr for excalidraw client comp * typo * update output dir * don't include nextjs example in tsconfig * remove meta.json * lint * remove example.ts * port * move the examples outside packages and use the deps as workspaces in examples * update gitignore * fix example * update path of build dir * fix * fix scripts * try local path * fix * update commands * fix * fix * fix script * skip ts * disable ts * add vercel.json * install * update tsconfig * fix lint * remove console.log * lets see if this works * revert * remove ts nocheck * add types and some utils in nextjs example * fix types * updatw example and remove nextjs dynamic syntax so we don't import excal twice * move both examples to workspaces and create generic example to be used by browser and next js both * copy the static assets to nextjs * fix ts config * render custom menu items * fix custom footer * fix types in browser example * use regular imports for importing excal and import it using dynamic next js in app router instead * Add example for pages router * fix css discrepancies * fix css * configure output dir * fix * fix css * rename to with-nextjs * move components to examples/excalidraw/components
67 lines
957 B
SCSS
67 lines
957 B
SCSS
.sidebar {
|
|
height: 100%;
|
|
width: 0;
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: #111;
|
|
overflow-x: hidden;
|
|
transition: 0.5s;
|
|
padding-top: 60px;
|
|
|
|
&.open {
|
|
width: 300px;
|
|
}
|
|
|
|
&-links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
|
|
button {
|
|
padding: 10px;
|
|
margin: 10px;
|
|
background: #faa2c1;
|
|
color: #fff;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar a {
|
|
padding: 8px 8px 8px 32px;
|
|
text-decoration: none;
|
|
font-size: 25px;
|
|
color: #818181;
|
|
display: block;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
color: #f1f1f1;
|
|
}
|
|
|
|
.sidebar .closebtn {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
font-size: 36px;
|
|
margin-left: 50px;
|
|
}
|
|
|
|
.openbtn {
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
background-color: #111;
|
|
color: white;
|
|
padding: 10px 15px;
|
|
border: none;
|
|
display: flex;
|
|
margin-left: 50px;
|
|
}
|
|
.sidebar-open {
|
|
margin-left: 300px;
|
|
}
|