From 9313735a95d2bcb5b2eabd430b38767f54c44889 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 28 Jul 2021 21:56:29 +0800 Subject: [PATCH] fix: block hovering selector fix --- src/_blocks.scss | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/_blocks.scss b/src/_blocks.scss index 9a55fc6..562d391 100644 --- a/src/_blocks.scss +++ b/src/_blocks.scss @@ -89,22 +89,22 @@ a:hover > .bullet-container .bullet { transform: scale(1); } -.block-content { - & > span > span > [id] { +.block-content-wrapper > div > .block-content { + & > span > span > :first-of-type { position: relative; - } - & > span > span > [id]::before { - content: ''; - display: block; - position: absolute; - width: 4px; - height: 40%; - top: 30%; - left: -8px; + &::before { + content: ''; + display: block; + position: absolute; + width: 4px; + height: 12px; + top: calc(50% - 6px); + left: -8px; + } } - &:hover > span > span > [id]::before { + &:hover > span > span > :first-of-type::before { background: var(--ct-primary-color); } }