Merge pull request #2507 from Hiramiya/darkmode
Fix various darkmode elements on user pages
This commit is contained in:
commit
6b2089e043
3 changed files with 26 additions and 8 deletions
|
@ -40,10 +40,12 @@ export default Vue.extend({
|
|||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
root(isDark)
|
||||
.friends
|
||||
background #fff
|
||||
background isDark ? #282C37 : #fff
|
||||
border solid 1px rgba(#000, 0.075)
|
||||
border-radius 6px
|
||||
overflow hidden
|
||||
|
||||
> .title
|
||||
z-index 1
|
||||
|
@ -52,7 +54,8 @@ export default Vue.extend({
|
|||
line-height 42px
|
||||
font-size 0.9em
|
||||
font-weight bold
|
||||
color #888
|
||||
background isDark ? #313543 : inherit
|
||||
color isDark ? #e3e5e8 : #888
|
||||
box-shadow 0 1px rgba(#000, 0.07)
|
||||
|
||||
> i
|
||||
|
@ -70,7 +73,7 @@ export default Vue.extend({
|
|||
|
||||
> .user
|
||||
padding 16px
|
||||
border-bottom solid 1px #eee
|
||||
border-bottom solid 1px isDark ? #21242f : #eee
|
||||
|
||||
&:last-child
|
||||
border-bottom none
|
||||
|
@ -96,18 +99,24 @@ export default Vue.extend({
|
|||
margin 0
|
||||
font-size 16px
|
||||
line-height 24px
|
||||
color #555
|
||||
color isDark ? #ccc : #555
|
||||
|
||||
> .username
|
||||
display block
|
||||
margin 0
|
||||
font-size 15px
|
||||
line-height 16px
|
||||
color #ccc
|
||||
color isDark ? #555 : #ccc
|
||||
|
||||
> .mk-follow-button
|
||||
position absolute
|
||||
top 16px
|
||||
right 16px
|
||||
|
||||
.friends[data-darkmode]
|
||||
root(true)
|
||||
|
||||
.friends:not([data-darkmode])
|
||||
root(false)
|
||||
|
||||
</style>
|
||||
|
|
|
@ -39,10 +39,12 @@ export default Vue.extend({
|
|||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
root(isDark)
|
||||
.photos
|
||||
background #fff
|
||||
background isDark ? #282C37 : #fff
|
||||
border solid 1px rgba(#000, 0.075)
|
||||
border-radius 6px
|
||||
overflow hidden
|
||||
|
||||
> .title
|
||||
z-index 1
|
||||
|
@ -51,7 +53,8 @@ export default Vue.extend({
|
|||
line-height 42px
|
||||
font-size 0.9em
|
||||
font-weight bold
|
||||
color #888
|
||||
background: isDark ? #313543 : inherit
|
||||
color isDark ? #e3e5e8 : #888
|
||||
box-shadow 0 1px rgba(#000, 0.07)
|
||||
|
||||
> i
|
||||
|
@ -85,4 +88,10 @@ export default Vue.extend({
|
|||
> i
|
||||
margin-right 4px
|
||||
|
||||
.photos[data-darkmode]
|
||||
root(true)
|
||||
|
||||
.photos:not([data-darkmode])
|
||||
root(false)
|
||||
|
||||
</style>
|
||||
|
|
|
@ -138,7 +138,7 @@ root(isDark)
|
|||
padding 16px
|
||||
font-size 12px
|
||||
color #aaa
|
||||
background #fff
|
||||
background isDark ? #21242f : #fff
|
||||
border solid 1px rgba(#000, 0.075)
|
||||
border-radius 6px
|
||||
|
||||
|
|
Loading…
Reference in a new issue