This commit is contained in:
syuilo
2018-09-27 12:55:10 +09:00
parent 0ef64a6d0b
commit df6c9b1a1c
11 changed files with 42 additions and 251 deletions

View File

@ -56,9 +56,7 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
root(isDark)
.ui-switch
display flex
margin 32px 0
cursor pointer
@ -99,7 +97,7 @@ root(isDark)
margin 3px 0 0 0
width 34px
height 14px
background isDark ? rgba(#fff, 0.15) : rgba(#000, 0.25)
background var(--switchTrack)
outline none
border-radius 14px
transition inherit
@ -125,18 +123,11 @@ root(isDark)
> span
display block
line-height 20px
color isDark ? #c4ccd2 : rgba(#000, 0.75)
color currentColor
transition inherit
> p
margin 0
//font-size 90%
color isDark ? #78858e : #9daab3
.ui-switch[data-darkmode]
root(true)
.ui-switch:not([data-darkmode])
root(false)
opacity 0.7
</style>