about summary refs log tree commit diff
path: root/app/assets/stylesheets
diff options
context:
space:
mode:
authorhakoai <hk--76@qa2.so-net.ne.jp>2017-05-03 03:03:00 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 20:03:00 +0200
commit22b1a70274b4cd9f8703e008bc758c15263863ae (patch)
treec4a9650cf670733bc34ab6b8ea74577e13e99bca /app/assets/stylesheets
parent6f75c8451d5668cc1505b192f29cf2f0dda48f7e (diff)
Fix to completely hide NSFW-tagged images (#2724)
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/components.scss15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/stylesheets/components.scss b/app/assets/stylesheets/components.scss
index 1439981af..fdff6eb9f 100644
--- a/app/assets/stylesheets/components.scss
+++ b/app/assets/stylesheets/components.scss
@@ -1889,7 +1889,6 @@ button.icon-button.active i.fa-retweet {
   }
 }
 
-.media-spoiler,
 .video-error-cover {
   align-items: center;
   background: $color8;
@@ -1905,6 +1904,20 @@ button.icon-button.active i.fa-retweet {
   z-index: 100;
 }
 
+.media-spoiler {
+  align-items: center;
+  background: $color8;
+  color: $color5;
+  cursor: pointer;
+  display: flex;
+  flex-direction: column;
+  height: 100%;
+  justify-content: center;
+  position: relative;
+  text-align: center;
+  z-index: 100;
+}
+
 .media-spoiler__warning {
   display: block;
   font-size: 14px;