Merge pull request #2781 from syuilo/theme

Theme
This commit is contained in:
syuilo
2018-09-29 00:48:56 +09:00
committed by GitHub
191 changed files with 2147 additions and 3369 deletions

View File

@ -336,9 +336,7 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
@import '~const.styl'
root(isDark)
.mk-post-form
max-width 500px
width calc(100% - 16px)
margin 8px auto
@ -354,27 +352,27 @@ root(isDark)
margin 32px auto
> .form
background isDark ? #282C37 : #fff
background var(--face)
border-radius 8px
box-shadow 0 0 2px rgba(#000, 0.1)
> header
z-index 1000
height 50px
box-shadow 0 1px 0 0 isDark ? rgba(#000, 0.2) : rgba(#000, 0.1)
box-shadow 0 1px 0 0 var(--mobilePostFormDivider)
> .cancel
padding 0
width 50px
line-height 50px
font-size 24px
color isDark ? #9baec8 : #555
color var(--text)
> div
position absolute
top 0
right 0
color #657786
color var(--text)
> .text-count
line-height 50px
@ -388,8 +386,8 @@ root(isDark)
padding 0 16px
line-height 34px
vertical-align bottom
color $theme-color-foreground
background $theme-color
color var(--primaryForeground)
background var(--primary)
border-radius 4px
&:disabled
@ -408,7 +406,7 @@ root(isDark)
> span
margin-right 16px
color isDark ? #fff : #666
color var(--text)
> input
z-index 1
@ -420,11 +418,11 @@ root(isDark)
margin 0
width 100%
font-size 16px
color isDark ? #fff : #333
background isDark ? #191d23 : #fff
color var(--inputText)
background var(--mobilePostFormTextareaBg)
border none
border-radius 0
box-shadow 0 1px 0 0 isDark ? rgba(#000, 0.2) : rgba(#000, 0.1)
box-shadow 0 1px 0 0 var(--mobilePostFormDivider)
&:disabled
opacity 0.5
@ -493,10 +491,4 @@ root(isDark)
> *
margin-right 8px
.mk-post-form[data-darkmode]
root(true)
.mk-post-form:not([data-darkmode])
root(false)
</style>