about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-06-10 17:34:59 +0200
committerGitHub <noreply@github.com>2022-06-10 17:34:59 +0200
commit37cd984acfdd206e85c50a851c4daedc2c87deb3 (patch)
tree5ee839894f68f5d77c29616a912a88191cc7020f /app/javascript
parent45aa5781ce611ea411e34e3b18358a9fe15f67ce (diff)
Fix logo gradient not working on some Safari and Blink-based browsers (#18634)
Works around https://bugs.chromium.org/p/chromium/issues/detail?id=258029
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/styles/mastodon/basics.scss12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss
index 391f1fad9..413a1cdd6 100644
--- a/app/javascript/styles/mastodon/basics.scss
+++ b/app/javascript/styles/mastodon/basics.scss
@@ -256,7 +256,17 @@ button {
 }
 
 .logo-resources {
-  display: none;
+  // Not using display: none because of https://bugs.chromium.org/p/chromium/issues/detail?id=258029
+  visibility: hidden;
+  user-select: none;
+  pointer-events: none;
+  width: 0;
+  height: 0;
+  overflow: hidden;
+  position: absolute;
+  top: 0;
+  left: 0;
+  z-index: -1000;
 }
 
 // NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,