From a98950ca9696f2fc7f3939f651a7244058af186b Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Fri, 12 Apr 2024 09:30:38 +0300 Subject: [PATCH] CSS tweaks for popup --- assets/css/admin.css | 20 +++++++++++++++----- classes/popups/class-badges.php | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index 355d32e64..8fecdca33 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -8,6 +8,7 @@ --prpl-column-max-width: 30rem; --prpl-max-columns: 4; --prpl-border-radius: 8px; + --prpl-border-radius-big: calc(var(--prpl-border-radius) * 2); --prpl-container-max-width: calc(var(--prpl-column-max-width) * var(--prpl-max-columns) + var(--prpl-gap) * (var(--prpl-max-columns) - 1)); @@ -201,7 +202,7 @@ button.prpl-info-icon { .prpl-wrap .counter-big-wrapper { background-color: var(--prpl-background-purple); padding: var(--prpl-padding); - border-radius: calc(var(--prpl-border-radius) * 2); + border-radius: var(--prpl-border-radius-big); display: flex; flex-direction: column; align-items: center; @@ -545,20 +546,29 @@ body.prpl-popup-open.prpl-popup-badges-details #prpl-popup-badges-details { /*------------------------------------*\ Badges popup. \*------------------------------------*/ -#popup-badges-content { +#popup-badges-content, +#popup-badges-maintenance { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: var(--prpl-padding); } -#popup-badges-content .inner { - background: var(--prpl-background-red); - border-radius: calc(var(--prpl-border-radius) * 2); +#popup-badges-content .inner, +#popup-badges-maintenance .inner { + border-radius: var(--prpl-border-radius-big); padding: var(--prpl-padding); font-size: var(--prpl-font-size-small); text-align: center; } +#popup-badges-content .inner { + background: var(--prpl-background-red); +} + +#popup-badges-maintenance .inner { + background: var(--prpl-background-blue); +} + .badges-popup-progress-total { display: block; width: 100%; diff --git a/classes/popups/class-badges.php b/classes/popups/class-badges.php index 39c26febf..0bda4ea31 100644 --- a/classes/popups/class-badges.php +++ b/classes/popups/class-badges.php @@ -86,7 +86,7 @@ protected function the_content() {

-