fix switches
This commit is contained in:
parent
a9ad4fb70a
commit
125f230ea1
|
@ -37,7 +37,7 @@
|
||||||
// @import "app/tabs";
|
// @import "app/tabs";
|
||||||
@import "app/tipsy";
|
@import "app/tipsy";
|
||||||
|
|
||||||
// @import "app/components/travis-switch";
|
@import "app/components/travis-switch";
|
||||||
@import "app/components/sync-button";
|
@import "app/components/sync-button";
|
||||||
|
|
||||||
@import "app/modules/section";
|
@import "app/modules/section";
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
|
||||||
|
.profile-main
|
||||||
|
|
||||||
$switch-height: 28px
|
$switch-height: 28px
|
||||||
$switch-inner-height: 22px
|
$switch-inner-height: 22px
|
||||||
$switch-width: 62px
|
$switch-width: 62px
|
||||||
$switch-inner-width: 27px
|
$switch-inner-width: 27px
|
||||||
|
|
||||||
|
span
|
||||||
|
display: none
|
||||||
|
|
||||||
.switch
|
.switch
|
||||||
|
box-sizing: border-box
|
||||||
position: relative
|
position: relative
|
||||||
width: $switch-width
|
width: $switch-width
|
||||||
height: $switch-height
|
height: $switch-height
|
||||||
|
@ -12,6 +18,8 @@ $switch-inner-width: 27px
|
||||||
border: none
|
border: none
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
@extend %border-radius-4px
|
@extend %border-radius-4px
|
||||||
|
&:before
|
||||||
|
content: none
|
||||||
&:after
|
&:after
|
||||||
content: ""
|
content: ""
|
||||||
display: block
|
display: block
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
<span class="on">
|
||||||
|
ON
|
||||||
|
</span>
|
||||||
|
<span class="off">
|
||||||
|
OFF
|
||||||
|
</span>
|
Loading…
Reference in New Issue
Block a user