モバイル版のダークモード

など
This commit is contained in:
syuilo
2018-04-28 02:29:17 +09:00
parent 93fa28991e
commit 8984e3131d
17 changed files with 227 additions and 183 deletions

View File

@ -27,7 +27,7 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
.sub
root(isDark)
font-size 0.9em
padding 16px
@ -76,7 +76,7 @@ export default Vue.extend({
margin 0 0.5em 0 0
padding 0
overflow hidden
color #607073
color isDark ? #fff : #607073
font-size 1em
font-weight 700
text-align left
@ -89,11 +89,11 @@ export default Vue.extend({
> .username
text-align left
margin 0
color #d1d8da
color isDark ? #606984 : #d1d8da
> .created-at
margin-left auto
color #b2b8bb
color isDark ? #606984 : #b2b8bb
> .body
max-height 128px
@ -104,11 +104,16 @@ export default Vue.extend({
margin 0
padding 0
font-size 1.1em
color #717171
color isDark ? #959ba7 : #717171
pre
max-height 120px
font-size 80%
</style>
.sub[data-darkmode]
root(true)
.sub:not([data-darkmode])
root(false)
</style>