From 95d7b3bce56a96472c65a7730295eed07f9bb870 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 3 Jul 2014 17:41:59 -0400 Subject: [PATCH] Add icon indicating post is animated --- app/assets/stylesheets/specific/posts.css.scss | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index f679b0599..afa53db27 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -1,4 +1,4 @@ -@import "../common/000_vars.css.scss"; +@import "../common/000_vars.css.scss"; article.post-preview { height: 154px; @@ -12,6 +12,16 @@ article.post-preview { img { margin: auto; } + + &[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before { + content: "►"; + position: absolute; + width: 20px; + height: 20px; + color: white; + background-color: rgba(0,0,0,0.5); + margin: 2px; + } } #iqdb-similar {