Show the length of videos and animated posts in the thumbnail. The length is shown the top left corner in MM:SS format. This replaces the play button icon. Show a speaker icon instead of a music note icon for posts with sound. Doing this requires doing `.includes(:media_asset)` in a bunch of places to avoid N+1 queries when we access the post's duration.
63 lines
973 B
SCSS
63 lines
973 B
SCSS
@import "../base/000_vars.scss";
|
|
|
|
div#c-comments {
|
|
div#a-index {
|
|
div.header {
|
|
margin-bottom: 1em;
|
|
|
|
span.info {
|
|
margin-right: 1.5em;
|
|
}
|
|
|
|
strong, time {
|
|
margin-right: 0.3em;
|
|
}
|
|
}
|
|
|
|
div.post {
|
|
display: flex;
|
|
margin-bottom: 4em;
|
|
|
|
div.preview {
|
|
width: 154px;
|
|
height: 154px;
|
|
margin-right: 30px;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
}
|
|
|
|
div.comment-section {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
form.edit_comment div.input.boolean {
|
|
display: inline-block;
|
|
|
|
label {
|
|
font-weight: normal;
|
|
vertical-align: initial;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 660px) {
|
|
div#c-comments div#a-index, div#c-comments div#a-show {
|
|
div.post {
|
|
display: block;
|
|
margin: 2em 0;
|
|
|
|
&:first-of-type {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
div.preview {
|
|
margin: 1em auto;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|