]> cat aescling's git repositories - mastodon.git/commitdiff
Fix messed up z-index when NoScript blocks media/previews (#13449)
authorThibG <thib@sitedethib.com>
Tue, 28 Apr 2020 07:44:17 +0000 (09:44 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2020 07:44:17 +0000 (09:44 +0200)
Fixes #13444

app/javascript/styles/mastodon/basics.scss

index 2b10b5ad3c3ab9e526903875ef01e5b14b38863f..4eff8a465ea8065ba3ffd9ed09e4dcd5f7e3a825 100644 (file)
@@ -229,3 +229,15 @@ button {
     }
   }
 }
+
+// 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;
+  }
+}