From a86eec4d089bbb04941e8227da3f83ac0483faa7 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 28 Jul 2021 23:25:39 +0800 Subject: [PATCH] fix: use first-child instead --- src/_blocks.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_blocks.scss b/src/_blocks.scss index 67a2b65..01a1dda 100644 --- a/src/_blocks.scss +++ b/src/_blocks.scss @@ -90,7 +90,7 @@ a:hover > .bullet-container .bullet { } .block-content-wrapper > div > .block-content { - & > span > span > :first-of-type { + & > span > span > :first-child { position: relative; &::before { @@ -104,7 +104,7 @@ a:hover > .bullet-container .bullet { } } - &:hover > span > span > :first-of-type::before { + &:hover > span > span > :first-child::before { background: var(--ct-primary-color); } }