From 07acb27cc94db66fb081d14a54ebf93faaef438f Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 9 May 2024 12:23:22 +0800 Subject: [PATCH] Fix .menu-item-active::after --- source/css/_schemes/Pisces/_menu.styl | 29 ++++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/source/css/_schemes/Pisces/_menu.styl b/source/css/_schemes/Pisces/_menu.styl index 7c7bb1095..499400354 100644 --- a/source/css/_schemes/Pisces/_menu.styl +++ b/source/css/_schemes/Pisces/_menu.styl @@ -10,8 +10,23 @@ a { padding: 5px 20px; + position: relative; transition-property: background-color; menu-item-row(); + + if (not hexo-config('menu_settings.badges')) { + &.menu-item-active::after { + background: $grey; + border-radius: 50%; + content: ' '; + height: 6px; + margin-top: -3px; + position: absolute; + right: 15px; + top: 50%; + width: 6px; + } + } } +tablet-mobile() { @@ -20,17 +35,3 @@ } } } - -if (not hexo-config('menu_settings.badges')) { - .main-menu .menu-item-active::after { - background: $grey; - border-radius: 50%; - content: ' '; - height: 6px; - margin-top: -3px; - position: absolute; - right: 15px; - top: 50%; - width: 6px; - } -}