From 6d90e62d1ef6aeabb53a6abeaeb8ca7b446f1f50 Mon Sep 17 00:00:00 2001 From: asmyshlyaev177 Date: Sat, 26 Oct 2024 21:28:56 +0400 Subject: [PATCH] style: update code hover styles --- packages/shared/styles.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/shared/styles.css b/packages/shared/styles.css index 462b6834..4c6876c8 100644 --- a/packages/shared/styles.css +++ b/packages/shared/styles.css @@ -128,6 +128,10 @@ } .codeblock { + & * { + transition: all 0.2s ease-in-out; + } + .shiki { white-space: pre-wrap; word-wrap: break-word; @@ -137,21 +141,17 @@ background-color: transparent !important; } - .line.highlighted { - background-color: rgba(148, 148, 148, 0.15); - transition: all 0.15s ease-in-out; - } &:hover .line.highlighted { - background-color: rgba(148, 148, 148, 0.3); + background-color: rgba(148, 148, 148, 0.15); } - .highlighted-word { + & .highlighted-word { border-radius: 8%; - border: 1px solid rgba(255, 255, 255, 0.2); - transition: all 0.15s ease-in-out; + border: 1px solid transparent; } + &:hover .highlighted-word { - border: 1px solid rgba(255, 255, 255, 0.3); + border: 1px solid rgba(255, 255, 255, 0.2); } } }