summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components/note-card.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/mobile/views/components/note-card.vue')
-rw-r--r--src/client/app/mobile/views/components/note-card.vue14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/client/app/mobile/views/components/note-card.vue b/src/client/app/mobile/views/components/note-card.vue
index 393fa9b831..89700b5e82 100644
--- a/src/client/app/mobile/views/components/note-card.vue
+++ b/src/client/app/mobile/views/components/note-card.vue
@@ -27,17 +27,17 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
-.mk-note-card
+root(isDark)
display inline-block
width 150px
//height 120px
font-size 12px
- background #fff
+ background isDark ? #282c37 : #fff
border-radius 4px
> a
display block
- color #2c3940
+ color isDark ? #fff : #2c3940
&:hover
text-decoration none
@@ -75,11 +75,17 @@ export default Vue.extend({
left 0
width 100%
height 20px
- background linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%)
+ background isDark ? linear-gradient(to bottom, rgba(#282c37, 0) 0%, #282c37 100%) : linear-gradient(to bottom, rgba(#fff, 0) 0%, #fff 100%)
> .mk-time
display inline-block
padding 8px
color #aaa
+.mk-note-card[data-darkmode]
+ root(true)
+
+.mk-note-card:not([data-darkmode])
+ root(false)
+
</style>