File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 3
3
4
4
const addSpan = [ "flip" , "fadeout" , "slideall" ] ;
5
5
6
- const templateWithSpan = `
7
- <div class="button b2" role="switch" aria-label="CSS Toggle Button" aria-checked="true">
8
- <input type="checkbox" class="checkbox" aria-label="CSS Toggle Button">
9
- <div class="knobs">
10
- <span></span>
11
- </div>
12
- <div class="layer"></div>
13
- </div>
14
- ` ;
15
6
const template = document . createElement ( "template" ) ;
16
7
const commonStyles = `
17
8
.button
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< base href ="css-toggle-component "/>
6
- < title > Pure CSS Toggle buttons as web components </ title >
6
+ < title > Pure CSS Toggle buttons as Web Components </ title >
7
7
< link href ="styles.css " rel ="stylesheet "/>
8
8
< script src ="https://unpkg.com/@webcomponents/webcomponentsjs@2.0.0/webcomponents-loader.js "> </ script >
9
9
</ head >
10
10
< body >
11
11
< h1 > CSS Toggle buttons</ h1 >
12
12
< header >
13
13
< a href ="https://github.com/rajasegar/css-toggle-component "> Github</ a >
14
+ based on the < a href ="https://codepen.io/himalayasingh/pen/EdVzNL?editors=1000 "> CodePen</ a > by Himalaya Singh
14
15
</ header >
15
16
< h2 > Usage</ h2 >
16
17
< code >
Original file line number Diff line number Diff line change 5
5
background-color : # f1f9f9 ;
6
6
padding : 1em ;
7
7
text-align : center;
8
-
9
8
}
10
9
11
10
.app-cover
You can’t perform that action at this time.
0 commit comments