From 2257862ff247bb637ad667471fe0f3db0b772707 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 22 Dec 2023 18:22:49 +0800 Subject: [PATCH] [opt] banner --- scripts/tags/lib/banner.js | 4 ++-- source/css/_layout/tag-plugins/banner.styl | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/tags/lib/banner.js b/scripts/tags/lib/banner.js index 927feac..67868c0 100644 --- a/scripts/tags/lib/banner.js +++ b/scripts/tags/lib/banner.js @@ -25,9 +25,9 @@ module.exports = ctx => function(args, content) { el += `
` } else { el += ` - + ` } diff --git a/source/css/_layout/tag-plugins/banner.styl b/source/css/_layout/tag-plugins/banner.styl index 8d0fcc9..a227bac 100644 --- a/source/css/_layout/tag-plugins/banner.styl +++ b/source/css/_layout/tag-plugins/banner.styl @@ -44,6 +44,8 @@ color: white background: rgba(white, 0.25) .back + background: none + padding: 0 line-height: 0 visibility: hidden @media screen and (max-width: $device-mobile-max) @@ -96,4 +98,9 @@ .avatar+.text-area .title font-size: 1.2rem .subtitle - font-size: $fs-14 \ No newline at end of file + font-size: $fs-14 + +.tag-plugin.banner:hover + img.bg + transform: scale(1.01) + trans1(transform, 2s) \ No newline at end of file