]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix messed up z-index when NoScript blocks media/previews
authorThibG <thib@sitedethib.com>
Tue, 28 Apr 2020 07:44:17 +0000 (09:44 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sun, 3 May 2020 19:41:15 +0000 (21:41 +0200)
Port 04eb59986461bc802d4432fe4131e09eadd070c0 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/basics.scss

index 77631097a7167d784ebdd9b1fa1b43bd19e8e484..eb78b189d7d1c51b5d3b98d882266964ccac7605 100644 (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;
+  }
+}