summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/widgets
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-28 14:26:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-28 14:26:20 +0900
commitc627288bdeb23167edc04101cd985f02f4bc8ede (patch)
tree2809a024aa939d9cecf0231685472526ff246bf1 /src/client/app/desktop/views/widgets
parentwip (diff)
downloadmisskey-c627288bdeb23167edc04101cd985f02f4bc8ede.tar.gz
misskey-c627288bdeb23167edc04101cd985f02f4bc8ede.tar.bz2
misskey-c627288bdeb23167edc04101cd985f02f4bc8ede.zip
wip
Diffstat (limited to 'src/client/app/desktop/views/widgets')
-rw-r--r--src/client/app/desktop/views/widgets/polls.vue12
-rw-r--r--src/client/app/desktop/views/widgets/profile.vue16
-rw-r--r--src/client/app/desktop/views/widgets/users.vue15
3 files changed, 13 insertions, 30 deletions
diff --git a/src/client/app/desktop/views/widgets/polls.vue b/src/client/app/desktop/views/widgets/polls.vue
index 8ff0bb5d0d..c10ac1ca17 100644
--- a/src/client/app/desktop/views/widgets/polls.vue
+++ b/src/client/app/desktop/views/widgets/polls.vue
@@ -4,7 +4,7 @@
<template slot="header">%fa:chart-pie%%i18n:@title%</template>
<button slot="func" title="%i18n:@refresh%" @click="fetch">%fa:sync%</button>
- <div class="mkw-polls--body" :data-darkmode="$store.state.device.darkmode">
+ <div class="mkw-polls--body">
<div class="poll" v-if="!fetching && poll != null">
<p v-if="poll.text"><router-link :to="poll | notePage">{{ poll.text }}</router-link></p>
<p v-if="!poll.text"><router-link :to="poll | notePage">%fa:link%</router-link></p>
@@ -64,11 +64,11 @@ export default define({
</script>
<style lang="stylus" scoped>
-root(isDark)
+.mkw-polls--body
> .poll
padding 16px
font-size 12px
- color isDark ? #9ea4ad : #555
+ color var(--text)
> p
margin 0 0 8px 0
@@ -91,10 +91,4 @@ root(isDark)
> [data-fa]
margin-right 4px
-.mkw-polls--body[data-darkmode]
- root(true)
-
-.mkw-polls--body:not([data-darkmode])
- root(false)
-
</style>
diff --git a/src/client/app/desktop/views/widgets/profile.vue b/src/client/app/desktop/views/widgets/profile.vue
index aea0c90e34..fa35138c31 100644
--- a/src/client/app/desktop/views/widgets/profile.vue
+++ b/src/client/app/desktop/views/widgets/profile.vue
@@ -46,8 +46,7 @@ export default define({
</script>
<style lang="stylus" scoped>
-root(isDark)
-
+.egwyvoaaryotefqhqtmiyawwefemjfsd-body
&[data-compact]
> .banner:before
content ""
@@ -88,7 +87,7 @@ root(isDark)
> .banner
height 100px
- background-color isDark ? #303e4a : #f5f5f5
+ background-color var(--primaryDarken10)
background-size cover
background-position center
cursor pointer
@@ -109,19 +108,14 @@ root(isDark)
margin 10px 0 0 84px
line-height 16px
font-weight bold
- color isDark ? #fff : #555
+ color var(--text)
> .username
display block
margin 4px 0 8px 84px
line-height 16px
font-size 0.9em
- color isDark ? #606984 : #999
-
-.egwyvoaaryotefqhqtmiyawwefemjfsd-body[data-darkmode]
- root(true)
-
-.egwyvoaaryotefqhqtmiyawwefemjfsd-body:not([data-darkmode])
- root(false)
+ color var(--text)
+ opacity 0.7
</style>
diff --git a/src/client/app/desktop/views/widgets/users.vue b/src/client/app/desktop/views/widgets/users.vue
index 328fa56697..28c6372b6f 100644
--- a/src/client/app/desktop/views/widgets/users.vue
+++ b/src/client/app/desktop/views/widgets/users.vue
@@ -73,11 +73,11 @@ export default define({
</script>
<style lang="stylus" scoped>
-root(isDark)
+.mkw-users
.mkw-users--body
> .user
padding 16px
- border-bottom solid 1px isDark ? #1c2023 : #eee
+ border-bottom solid 1px var(--faceDivider)
&:last-child
border-bottom none
@@ -103,14 +103,15 @@ root(isDark)
margin 0
font-size 16px
line-height 24px
- color isDark ? #fff : #555
+ color var(--text)
> .username
display block
margin 0
font-size 15px
line-height 16px
- color isDark ? #606984 : #ccc
+ color var(--text)
+ opacity 0.7
> .mk-follow-button
position absolute
@@ -132,10 +133,4 @@ root(isDark)
> [data-fa]
margin-right 4px
-.mkw-users[data-darkmode]
- root(true)
-
-.mkw-users:not([data-darkmode])
- root(false)
-
</style>