[wip] darkmode

This commit is contained in:
syuilo
2018-04-20 04:51:04 +09:00
parent 2145730409
commit 5ace37e3db
8 changed files with 106 additions and 77 deletions

View File

@ -99,7 +99,7 @@ export default Vue.extend({
<style lang="stylus" scoped>
@import '~const.styl'
.nav
root(isDark)
display inline-block
margin 0
padding 0
@ -131,7 +131,7 @@ export default Vue.extend({
padding 0 24px
font-size 13px
font-variant small-caps
color #9eaba8
color isDark ? #b8c5ca : #9eaba8
text-decoration none
transition none
cursor pointer
@ -140,7 +140,7 @@ export default Vue.extend({
pointer-events none
&:hover
color darken(#9eaba8, 20%)
color isDark ? #fff : darken(#9eaba8, 20%)
text-decoration none
> [data-fa]:first-child
@ -164,4 +164,10 @@ export default Vue.extend({
@media (max-width 700px)
padding 0 12px
.nav[data-darkmode]
root(true)
.nav:not([data-darkmode])
root(false)
</style>