about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>2022-08-13 15:39:05 +0200
committerGitHub <noreply@github.com>2022-08-13 15:39:05 +0200
commite6979aa6d43f24ab290c27f596fcd71fcc0ac03a (patch)
treecea440aa564b063aca6c6532d1297d1cdeb5cecf /app/javascript/styles
parent03f19b8cd38ee0096f9a4ce47247379ed6f94cd7 (diff)
Add warning for sensitive audio posts (#17885)
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/mastodon/components.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 3e202841b..a0a39812b 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -5939,6 +5939,13 @@ a.status-card.compact:hover {
     height: 100%;
   }
 
+  &.inactive {
+    audio,
+    .video-player__controls {
+      visibility: hidden;
+    }
+  }
+
   .video-player__volume::before,
   .video-player__seek::before {
     background: currentColor;