From 2a982e71edf0108d32b1729ec1998b84986a2ea2 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Mon, 12 Aug 2024 19:51:22 +0200 Subject: [PATCH] Merge the duplicate `.editorParamsToolbar` CSS blocks Now that we have dedicated CSS scopes for the findbar and the secondary toolbar we have ended up with two CSS blocks with identical selectors, so now we can combine them for simplicity and to remove some rules in the first block that were always overridden by the second block. Co-authored-by: Calixte Denizet --- web/viewer.css | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index c12cd4430..f4c9feba6 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -446,11 +446,13 @@ body { } .editorParamsToolbar { + background-color: var(--doorhanger-bg-color); top: var(--toolbar-height); position: absolute; z-index: 30000; height: auto; - padding: 0 4px; + inset-inline-end: 4px; + padding: 6px 0 10px; margin: 4px 2px; font: message-box; font-size: 12px; @@ -459,13 +461,6 @@ body { cursor: default; } -.editorParamsToolbar { - padding: 6px 0 10px; - inset-inline-end: 4px; - height: auto; - background-color: var(--doorhanger-bg-color); -} - .editorParamsToolbarContainer { width: 220px; margin-bottom: -4px;