This commit is contained in:
syuilo
2018-09-28 12:20:22 +09:00
parent 7609741680
commit 29476ea3da
3 changed files with 8 additions and 21 deletions

View File

@ -27,17 +27,18 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
root(isDark)
.mk-note-card
display inline-block
width 150px
//height 120px
font-size 12px
background var(--face)
border-radius 4px
box-shadow 0 2px 8px rgba(0, 0, 0, 0.2)
> a
display block
color isDark ? #fff : #2c3940
color var(--noteText)
&:hover
text-decoration none
@ -75,17 +76,11 @@ root(isDark)
left 0
width 100%
height 20px
background isDark ? linear-gradient(to bottom, rgba(#282c37, 0) 0%, #282c37 100%) : linear-gradient(to bottom, rgba(#fff, 0) 0%, #fff 100%)
background linear-gradient(to bottom, transparent 0%, var(--face) 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>