Skip to content

Commit facdaee

Browse files
silverwindGiteaBot
andauthored
Replace box-shadow for floating dropdown as well (#26581)
Add `box-shadow` replacement to the `floating` dropdown variant as well, which was missed in #26469. The Fomantic style has `!important`, so this has to have too. Also made a tiny adjustment to shadow color on dark theme. <img width="305" alt="Screenshot 2023-08-18 at 16 40 34" src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f"> <img width="202" alt="Screenshot 2023-08-18 at 16 40 22" src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb"> Co-authored-by: Giteabot <[email protected]>
1 parent f6e7798 commit facdaee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

web_src/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ img.ui.avatar,
12041204
box-shadow: none;
12051205
}
12061206

1207+
/* replace fomantic popover box shadows */
12071208
.ui.dropdown .menu,
12081209
.ui.upward.dropdown > .menu,
12091210
.ui.menu .dropdown.item .menu,
@@ -1213,6 +1214,9 @@ img.ui.avatar,
12131214
.ui.upward.active.selection.dropdown:hover .menu {
12141215
box-shadow: 0 6px 18px var(--color-shadow);
12151216
}
1217+
.ui.floating.dropdown .menu {
1218+
box-shadow: 0 6px 18px var(--color-shadow) !important;
1219+
}
12161220

12171221
.ui.dimmer {
12181222
background: var(--color-overlay-backdrop);

web_src/css/themes/theme-arc-green.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
--color-button: #1e252e;
212212
--color-code-bg: #222733;
213213
--color-code-sidebar-bg: #232834;
214-
--color-shadow: #00000060;
214+
--color-shadow: #00000058;
215215
--color-secondary-bg: #2a2e3a;
216216
--color-text-focus: #fff;
217217
--color-expand-button: #3c404d;

0 commit comments

Comments
 (0)