Browse Source

[Glitch] Fix messed up z-index when NoScript blocks media/previews

Port 04eb599864 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
master^2
ThibG Thibaut Girka 11 months ago
parent
commit
502a0365df
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      app/javascript/flavours/glitch/styles/basics.scss

+ 12
- 0
app/javascript/flavours/glitch/styles/basics.scss View File

@@ -150,3 +150,15 @@ button {
height: 100%;
}
}

// NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,
// to set the z-index to a high value, which messes with modals and dropdowns.
// Blocked elements can in theory only be media and frames/embeds, so they
// should only appear in statuses, under divs and articles.
body,
div,
article {
.__ns__pop2top {
z-index: unset !important;
}
}

Loading…
Cancel
Save