mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-29 02:48:19 +00:00
- Fomantic's dimmer module is responsible for dimming the page and make some element the primary focus on the page (e.g. modal). This module is only used by Fomantic's modal module. - Remove it and replace the javascript with our own `Dimmer` class that is able to provide Fomantic's modal module with everything it needs. - Replace the CSS with our own bare minimum CSS. - No functionality or visual is affected by this replacement. - E2E test added. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7416 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
20 lines
365 B
CSS
20 lines
365 B
CSS
.ui.active.dimmer {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.ui.dimmer {
|
|
align-items: center;
|
|
animation-fill-mode: both;
|
|
background: var(--color-overlay-backdrop);
|
|
display: none;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
position: absolute;
|
|
opacity: 0;
|
|
justify-content: center;
|
|
user-select: none;
|
|
width: 100%;
|
|
will-change: opacity;
|
|
z-index: 1000;
|
|
}
|