This repository was archived by the owner on Nov 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ import { html } from 'lit-html' ;
2+ import { component } from 'haunted' ;
3+ import getComponentStyleSheetURL from '../helpers/stylesheet' ;
4+
5+ function toggleBurger ( ) {
6+ this . classList . toggle ( 'cross' ) ;
7+ this . parentElement . querySelector ( '.burger-nav' ) . classList . toggle ( 'active' ) ;
8+ document . body . classList . toggle ( 'overflow-hidden' ) ;
9+ }
10+
11+ customElements . define ( 'antidote-burger-menu' , component ( function AdvisorContext ( ) {
12+ return html `
13+ < link rel ="stylesheet " href =${ getComponentStyleSheetURL ( this ) } / >
14+ < ul class ="burger-nav ">
15+ < slot > </ slot >
16+ </ ul >
17+
18+ < div class ="burger " @click =${ toggleBurger } >
19+ < div class ="line "> </ div >
20+ < div class ="line "> </ div >
21+ < div class ="line "> </ div >
22+ </ div >
23+ `
24+ } ) ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export * from "./components/select.js";
33export * from "./components/progress-bar.js" ;
44export * from "./components/advisor.js" ;
55export * from "./components/advisor-context.js" ;
6+ export * from "./components/burger-menu.js" ;
67export * from "./components/terminal.js" ;
78export * from './components/lab-context.js' ;
89export * from "./components/lab-stage-selector.js" ;
You can’t perform that action at this time.
0 commit comments