From 56d6a1800b3500dca399c18edf9776b1f89474fb Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 24 Mar 2022 03:12:46 -0400 Subject: [PATCH] css: Refactor popup visibility rulesets to simplify the rules and improve readability. --- src/static/css/pad/popup.css | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/static/css/pad/popup.css b/src/static/css/pad/popup.css index 6de108e40..65bb25839 100644 --- a/src/static/css/pad/popup.css +++ b/src/static/css/pad/popup.css @@ -1,25 +1,17 @@ -.popup.popup-show, .popup#users.chatAndUsers { - visibility: visible; -} - -.popup > .popup-content { - transform: scale(0.7); - opacity: 0; - transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75) -} - -.popup.popup-show > .popup-content, .popup#users.chatAndUsers > .popup-content { - transform: scale(1); - opacity: 1; -} - .popup { position: absolute; top: 10px; right: 30px; - visibility: hidden; + transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75); z-index: 500; } + +.popup:not(.popup-show):not(#users.chatAndUsers) { + opacity: 0; + transform: scale(0.7); + visibility: hidden; +} + #mycolorpicker { top: 0; }