From d8ca6b74d52f2187dc55b4fe5b4152fa306df466 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Wed, 25 May 2022 17:19:25 +0200 Subject: [PATCH] Add CSS variable --close-button-visibility --- src/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/style.css b/src/style.css index 3875da7..bd4f81f 100644 --- a/src/style.css +++ b/src/style.css @@ -23,6 +23,7 @@ --button-cursor: pointer; --badge-background: #383a3e; --badge-color: #fff; + --close-button-visibility: visible; } /* STYLES */ @@ -161,6 +162,11 @@ webview.visible { height: 20px; text-align: center; padding: 1px 0 0 0; + visibility: var(--close-button-visibility); +} + +.tab.active .tab-close button { + visibility: visible; } .tab-close button:hover {