Merge pull request #210 from z3rog/develop

chore(vuepress-theme-reco): optimize NoteAbstractItem clickable area …
This commit is contained in:
reco_luan 2020-07-05 21:20:21 +08:00 committed by GitHub
commit f56c3c8b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<div
class="abstract-item"
@click.self="$router.push(item.path)">
@click="$router.push(item.path)">
<i v-if="item.frontmatter.sticky" class="iconfont reco-sticky"></i>
<div class="title">
<i v-if="item.frontmatter.keys" class="iconfont reco-lock"></i>
@ -37,7 +37,10 @@ export default {
box-sizing: border-box;
transition all .3s
background-color var(--background-color)
cursor: pointer
cursor: pointer;
> * {
pointer-events: auto;
}
.reco-sticky
position absolute
top 0
@ -75,7 +78,6 @@ export default {
transform: scaleX(1);
.tags
.tag-item
cursor: pointer;
&.active
color $accentColor
&:hover

View File

@ -101,7 +101,6 @@ export default {
margin-left 0.5rem
.tags
.tag-item
cursor pointer
font-family Ubuntu, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif
&.active
color $accentColor