From 86aaa6ae5543571e99696cbd345b4ff9c0514edd Mon Sep 17 00:00:00 2001 From: Guerra24 Date: Sat, 5 Feb 2022 22:52:52 -0600 Subject: [PATCH] Reduce padding used for shadows in context menus #44 Also fix fullscreen warning not using the correct color in light mode. --- css/base.css | 1 + css/context.css | 8 ++------ css/styles/mdl2.css | 2 ++ css/styles/sun-valley.css | 3 +++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/css/base.css b/css/base.css index 98b9bc2..79ff397 100644 --- a/css/base.css +++ b/css/base.css @@ -743,6 +743,7 @@ notification { border-radius: var(--uwp-tags-overlay-radius) !important; background-color: var(--uwp-autocomplete-list) !important; box-shadow: var(--uwp-shadow-popup) !important; + color: var(--uwp-foreground) !important; } .pointerlockfswarning[ontop] { transform: translate(-50%, 10px) !important; diff --git a/css/context.css b/css/context.css index 4e449f7..2c14190 100644 --- a/css/context.css +++ b/css/context.css @@ -5,12 +5,8 @@ background: transparent !important; -moz-window-shadow: none !important; border: none !important; - margin-left: -22px !important; - margin-top: -12px !important; - padding-top: 10px !important; - padding-left: 20px !important; - padding-right: 20px !important; - padding-bottom: 30px !important; + padding: var(--uwp-popup-padding) !important; + margin: var(--uwp-popup-margin) !important; } menupopup.in-menulist { margin: 0px !important; diff --git a/css/styles/mdl2.css b/css/styles/mdl2.css index 1475811..6d1a10c 100644 --- a/css/styles/mdl2.css +++ b/css/styles/mdl2.css @@ -197,6 +197,8 @@ --uwp-acrylic-noise: url(../img/noise-512x512.png); --uwp-shadow-context: 0px 10px 20px 0px rgba(0, 0, 0, .32); --uwp-shadow-popup: 0px 10px 20px 0px rgba(0, 0, 0, .32); + --uwp-popup-padding: 10px 20px 30px 20px; + --uwp-popup-margin: -12px 0px 0px -22px; } :root { diff --git a/css/styles/sun-valley.css b/css/styles/sun-valley.css index 2ed7f79..5398d62 100644 --- a/css/styles/sun-valley.css +++ b/css/styles/sun-valley.css @@ -208,6 +208,9 @@ --uwp-acrylic-noise: none; --uwp-shadow-context: 0px 8px 10px 0px rgba(0, 0, 0, .14); --uwp-shadow-popup: 0px 10px 20px 0px rgba(0, 0, 0, .32); + + --uwp-popup-padding: 2px 10px 18px 10px; + --uwp-popup-margin: -4px 0px 0px -10px; } :root {