about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-28 09:44:17 +0200
committerGitHub <noreply@github.com>2020-04-28 09:44:17 +0200
commit04eb59986461bc802d4432fe4131e09eadd070c0 (patch)
tree4f3394317aef6eafe1a54480dbfe4de8b02d0263 /app
parentb3d0de8b40fa6a3c86dcf7a432ea031bffd7b5a7 (diff)
Fix messed up z-index when NoScript blocks media/previews (#13449)
Fixes #13444
Diffstat (limited to 'app')
-rw-r--r--app/javascript/styles/mastodon/basics.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss
index 2b10b5ad3..4eff8a465 100644
--- a/app/javascript/styles/mastodon/basics.scss
+++ b/app/javascript/styles/mastodon/basics.scss
@@ -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;
+  }
+}