From 4e1824ee43581ffa29d7687d8e2cd2d92f36dddc Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 27 Jul 2021 11:16:56 +0800 Subject: [PATCH] feat: add hovering block underline --- src/_blocks.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/_blocks.scss b/src/_blocks.scss index 37a5923..6da7250 100644 --- a/src/_blocks.scss +++ b/src/_blocks.scss @@ -89,6 +89,24 @@ a:hover > .bullet-container .bullet { transform: scale(1); } +.block-content { + cursor: text; +} + +.block-content::after { + content: ''; + display: block; + position: absolute; + height: 2px; + bottom: 0; + left: 0; + right: 0; +} + +.block-content:hover::after { + background: var(--ct-block-reference-background); +} + /************************* * Editing block threading *************************/