DarkMode user friends
This commit is contained in:
parent
8e5ce7f8e3
commit
6ad31dca76
1 changed files with 14 additions and 6 deletions
|
@ -40,9 +40,10 @@ export default Vue.extend({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
root(isDark)
|
||||||
.friends
|
.friends
|
||||||
background #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
border solid 1px isDark ? #21242f : rgba(#000, 0.075)
|
||||||
border-radius 6px
|
border-radius 6px
|
||||||
|
|
||||||
> .title
|
> .title
|
||||||
|
@ -52,7 +53,8 @@ export default Vue.extend({
|
||||||
line-height 42px
|
line-height 42px
|
||||||
font-size 0.9em
|
font-size 0.9em
|
||||||
font-weight bold
|
font-weight bold
|
||||||
color #888
|
background isDark ? #313543 : inherit
|
||||||
|
color isDark ? #e3e5e8 : #888
|
||||||
box-shadow 0 1px rgba(#000, 0.07)
|
box-shadow 0 1px rgba(#000, 0.07)
|
||||||
|
|
||||||
> i
|
> i
|
||||||
|
@ -70,7 +72,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
> .user
|
> .user
|
||||||
padding 16px
|
padding 16px
|
||||||
border-bottom solid 1px #eee
|
border-bottom solid 1px isDark ? #21242f : #eee
|
||||||
|
|
||||||
&:last-child
|
&:last-child
|
||||||
border-bottom none
|
border-bottom none
|
||||||
|
@ -96,18 +98,24 @@ export default Vue.extend({
|
||||||
margin 0
|
margin 0
|
||||||
font-size 16px
|
font-size 16px
|
||||||
line-height 24px
|
line-height 24px
|
||||||
color #555
|
color isDark ? #ccc : #555
|
||||||
|
|
||||||
> .username
|
> .username
|
||||||
display block
|
display block
|
||||||
margin 0
|
margin 0
|
||||||
font-size 15px
|
font-size 15px
|
||||||
line-height 16px
|
line-height 16px
|
||||||
color #ccc
|
color isDark ? #555 : #ccc
|
||||||
|
|
||||||
> .mk-follow-button
|
> .mk-follow-button
|
||||||
position absolute
|
position absolute
|
||||||
top 16px
|
top 16px
|
||||||
right 16px
|
right 16px
|
||||||
|
|
||||||
|
.friends[data-darkmode]
|
||||||
|
root(true)
|
||||||
|
|
||||||
|
.friends:not([data-darkmode])
|
||||||
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue