enable audio for videos #2499

This commit is contained in:
r888888888
2015-08-26 13:54:14 -07:00
parent 36da788503
commit ef59ae8886
4 changed files with 19 additions and 4 deletions

View File

@@ -77,3 +77,13 @@ $preview_flagged_color: #F00;
text-align: center;
}
@mixin audio-icon {
content: "";
position: absolute;
width: 20px;
height: 20px;
color: white;
background-color: rgba(0,0,0,0.5);
margin: 2px;
text-align: center;
}

View File

@@ -26,9 +26,13 @@ article.post-preview {
margin: auto;
}
&[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before, &[data-file-ext=zip]:before {
&[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before, &[data-file-ext=mp4]:before, &[data-file-ext=zip]:before {
@include animated-icon;
}
&[data-has-audio=true]:before {
@include audio-icon;
}
}
#iqdb-similar {