File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 7
7
padding : 1em ;
8
8
border : .2em inset # a6a659 ;
9
9
}
10
- .s-css-s-button : focus {
10
+ .s-css-s-- button : focus {
11
11
outline : 0 none;
12
12
}
13
- .s-css-s-button {
13
+ .s-css-s-- button {
14
14
display : block;
15
15
width : 100% ;
16
16
margin : .2em ;
27
27
position : relative;
28
28
left : -.5em ;
29
29
}
30
- .s-css-s-main-css {
30
+ .s-css-s-- main-css {
31
31
color : # eee ;
32
32
background-color : # 2c2c2c ;
33
33
}
34
- .s-css-s-red-css {
34
+ .s-css-s-- red-css {
35
35
color : # dcd ;
36
36
background-color : # 2e0505 ;
37
37
}
38
- .s-css-s-green-css {
38
+ .s-css-s-- green-css {
39
39
color : # ddd ;
40
40
background-color : # 122112 ;
41
41
}
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ function simpleCssSwitch() {
5
5
document . querySelectorAll ( '.s-css-s--style' )
6
6
) ;
7
7
stylesAvailable . forEach ( function ( style , idx ) {
8
- var cssFileAsClass = 's-css-s-' + style . href . split ( '/' ) . pop ( ) . replace ( '.' , '-' ) ;
8
+ var cssFileAsClass = 's-css-s-- ' + style . href . split ( '/' ) . pop ( ) . replace ( '.' , '-' ) ;
9
9
var styleOptionButton = document . createElement ( 'button' ) ;
10
10
styleOptionButton . setAttribute ( 'title' , style . title ) ;
11
- styleOptionButton . classList . add ( 's-css-s-button' , cssFileAsClass ) ;
11
+ styleOptionButton . classList . add ( 's-css-s-- button' , cssFileAsClass ) ;
12
12
styleOptionButton . innerText = idx ;
13
13
styleOptionButton . addEventListener (
14
14
'click' , function ( e ) {
You can’t perform that action at this time.
0 commit comments