Skip to content

Commit

Permalink
fix: hover effect of post list cover images
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Feb 22, 2021
1 parent b5bbf17 commit 4e79d99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/theme-gungnir/components/PostListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
class="post-item-img__img"
@click="$router.push(item.path)"
>
<img
:src="$withBase(item.frontmatter.header_img)"
class="cover"
>
<img :src="$withBase(item.frontmatter.header_img)">
</div>
<div class="else">
<p
Expand Down Expand Up @@ -70,6 +67,8 @@ export default {
</script>

<style lang="stylus" scoped>
@require '../styles/mixins.styl'
.post-item-img
margin 80px auto 100px
position relative
Expand Down

1 comment on commit 4e79d99

@vercel
Copy link

@vercel vercel bot commented on 4e79d99 Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.