summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components/note.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/mobile/views/components/note.vue')
-rw-r--r--src/client/app/mobile/views/components/note.vue42
1 files changed, 17 insertions, 25 deletions
diff --git a/src/client/app/mobile/views/components/note.vue b/src/client/app/mobile/views/components/note.vue
index 0ce72cab11..4af19ade29 100644
--- a/src/client/app/mobile/views/components/note.vue
+++ b/src/client/app/mobile/views/components/note.vue
@@ -228,11 +228,9 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
-@import '~const.styl'
-
-root(isDark)
+.note
font-size 12px
- border-bottom solid 1px isDark ? #1c2023 : #eaeaea
+ border-bottom solid 1px var(--faceDivider)
&:last-of-type
border-bottom none
@@ -256,8 +254,8 @@ root(isDark)
padding 8px 16px
line-height 28px
white-space pre
- color #9dbb00
- background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%)
+ color var(--renoteText)
+ background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%)
@media (min-width 500px)
padding 16px
@@ -349,7 +347,7 @@ root(isDark)
margin 0
padding 0
overflow-wrap break-word
- color isDark ? #fff : #717171
+ color var(--noteText)
> .text
margin-right 8px
@@ -361,7 +359,7 @@ root(isDark)
margin 0
padding 0
overflow-wrap break-word
- color isDark ? #fff : #717171
+ color var(--noteText)
>>> .title
display block
@@ -369,7 +367,7 @@ root(isDark)
padding 4px
font-size 90%
text-align center
- background isDark ? #2f3944 : #eef1f3
+ background var(--mfmTitleBg)
border-radius 4px
>>> .code
@@ -378,25 +376,25 @@ root(isDark)
>>> .quote
margin 8px
padding 6px 12px
- color isDark ? #6f808e : #aaa
- border-left solid 3px isDark ? #637182 : #eee
+ color var(--mfmQuote)
+ border-left solid 3px var(--mfmQuoteLine)
> .reply
margin-right 8px
- color isDark ? #99abbf : #717171
+ color var(--noteText)
> .rp
margin-left 4px
font-style oblique
- color #a0bf46
+ color var(--renoteText)
[data-is-me]:after
content "you"
padding 0 4px
margin-left 4px
font-size 80%
- color $theme-color-foreground
- background $theme-color
+ color var(--primaryForeground)
+ background var(--primary)
border-radius 4px
.mk-url-preview
@@ -427,7 +425,7 @@ root(isDark)
> *
padding 16px
- border dashed 1px isDark ? #4e945e : #c0dac6
+ border dashed 1px var(--quoteBorder)
border-radius 8px
> .app
@@ -442,14 +440,14 @@ root(isDark)
border none
box-shadow none
font-size 1em
- color isDark ? #606984 : #ddd
+ color var(--noteActions)
cursor pointer
&:not(:last-child)
margin-right 28px
&:hover
- color isDark ? #9198af : #666
+ color var(--noteActionsHover)
> .count
display inline
@@ -457,13 +455,7 @@ root(isDark)
color #999
&.reacted
- color $theme-color
-
-.note[data-darkmode]
- root(true)
-
-.note:not([data-darkmode])
- root(false)
+ color var(--primary)
</style>