From 898d28580c89553d359fba23da8d0e1c24a7f3f3 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 16 Dec 2022 11:36:52 +0100 Subject: [PATCH] Small code block changes --- themes/learn2-dark/css/custom.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/learn2-dark/css/custom.css b/themes/learn2-dark/css/custom.css index c2b9323..cc0139b 100644 --- a/themes/learn2-dark/css/custom.css +++ b/themes/learn2-dark/css/custom.css @@ -51,7 +51,7 @@ code { background: #222222; } .copy-to-clipboard { - background-color: #111111; + background-color: #111111 !important; /* overwrite prism.css background color */ background-image: url(../images/clippy-white.svg); /* makes "copy" button fit slightly better imo @@ -99,3 +99,8 @@ select[multiple="multiple"]:focus { blockquote { border-left: 10px solid #9c5ea2; } + +/* disable "copy"-button on hover */ +div.code-toolbar:hover > .toolbar { + opacity: 0; +}