From facdaee47b49f163e6927cc021eace18940ad441 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 21 Aug 2023 12:49:49 +0200 Subject: [PATCH] Replace box-shadow for `floating` dropdown as well (#26581) Add `box-shadow` replacement to the `floating` dropdown variant as well, which was missed in https://github.com/go-gitea/gitea/pull/26469. The Fomantic style has `!important`, so this has to have too. Also made a tiny adjustment to shadow color on dark theme. Screenshot 2023-08-18 at 16 40 34 Screenshot 2023-08-18 at 16 40 22 Co-authored-by: Giteabot --- web_src/css/base.css | 4 ++++ web_src/css/themes/theme-arc-green.css | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index 94dd85814ec..f2b4d3d98cf 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1204,6 +1204,7 @@ img.ui.avatar, box-shadow: none; } +/* replace fomantic popover box shadows */ .ui.dropdown .menu, .ui.upward.dropdown > .menu, .ui.menu .dropdown.item .menu, @@ -1213,6 +1214,9 @@ img.ui.avatar, .ui.upward.active.selection.dropdown:hover .menu { box-shadow: 0 6px 18px var(--color-shadow); } +.ui.floating.dropdown .menu { + box-shadow: 0 6px 18px var(--color-shadow) !important; +} .ui.dimmer { background: var(--color-overlay-backdrop); diff --git a/web_src/css/themes/theme-arc-green.css b/web_src/css/themes/theme-arc-green.css index 088e92d12ca..ce0989a5f69 100644 --- a/web_src/css/themes/theme-arc-green.css +++ b/web_src/css/themes/theme-arc-green.css @@ -211,7 +211,7 @@ --color-button: #1e252e; --color-code-bg: #222733; --color-code-sidebar-bg: #232834; - --color-shadow: #00000060; + --color-shadow: #00000058; --color-secondary-bg: #2a2e3a; --color-text-focus: #fff; --color-expand-button: #3c404d;