Support animated icon for comment pages

This commit is contained in:
Toks
2014-07-14 12:31:27 -04:00
parent ad76da8ede
commit cda9ce8c2a

View File

@@ -8,11 +8,14 @@ article.post-preview {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
@include inline-block; @include inline-block;
position: relative;
img { img {
margin: auto; margin: auto;
} }
}
.post-preview {
position: relative;
&[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before { &[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before {
content: ""; content: "";
@@ -22,6 +25,10 @@ article.post-preview {
color: white; color: white;
background-color: rgba(0,0,0,0.5); background-color: rgba(0,0,0,0.5);
margin: 2px; margin: 2px;
top: 0;
left: 0;
z-index: 1;
text-align: center;
} }
} }