about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components
diff options
context:
space:
mode:
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>2022-08-13 15:39:05 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-08-15 14:57:57 +0200
commit41fa50ac8655e0c15cf5e93fa14f9ce847aec88f (patch)
tree4ce630b36a8b36c51b1224d87b97e198e63c2edf /app/javascript/flavours/glitch/styles/components
parente2a7a458d6c62a312b868375b05d663fbca6f20d (diff)
[Glitch] Add warning for sensitive audio posts
Port e6979aa6d43f24ab290c27f596fcd71fcc0ac03a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components')
-rw-r--r--app/javascript/flavours/glitch/styles/components/media.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/media.scss b/app/javascript/flavours/glitch/styles/components/media.scss
index 8a551be73..9776e2265 100644
--- a/app/javascript/flavours/glitch/styles/components/media.scss
+++ b/app/javascript/flavours/glitch/styles/components/media.scss
@@ -389,6 +389,13 @@
     height: 100%;
   }
 
+  &.inactive {
+    audio,
+    .video-player__controls {
+      visibility: hidden;
+    }
+  }
+
   .video-player__volume::before,
   .video-player__seek::before {
     background: currentColor;