Improved comment list on small screens
This commit is contained in:
parent
b15cdfb02d
commit
dd02938a96
4 changed files with 18 additions and 17 deletions
|
@ -19,15 +19,12 @@
|
||||||
.comment {
|
.comment {
|
||||||
margin: 0 0 1em 0;
|
margin: 0 0 1em 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
display: flex;
|
||||||
|
|
||||||
.comment .body,
|
|
||||||
.comment .avatar {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment .avatar {
|
.comment .avatar {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
flex-shrink: 0;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,24 +79,27 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
#global-comment-list ul.posts>li>*:last-child:after {
|
|
||||||
display: block;
|
|
||||||
content: '';
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
#global-comment-list ul.posts>li {
|
#global-comment-list ul.posts>li {
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
#global-comment-list .post-comment {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
@media all and (max-width: 40em) {
|
||||||
|
#global-comment-list .post-comment {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
#global-comment-list .post {
|
#global-comment-list .post {
|
||||||
float: left;
|
flex-shrink: 0;
|
||||||
|
flex-grow: 0;
|
||||||
|
margin-right: 1em;
|
||||||
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
#global-comment-list .comment-add,
|
#global-comment-list .comment-add,
|
||||||
#global-comment-list .comments>h1 {
|
#global-comment-list .comments>h1 {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#global-comment-list .comments {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
#global-comment-list .post-small a {
|
#global-comment-list .post-small a {
|
||||||
margin: 0 1em 0 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.post-small a {
|
.post-small a {
|
||||||
display: block;
|
display: inline-block;
|
||||||
margin: 0.2em;
|
margin: 0.2em;
|
||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
@ -129,6 +129,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
|
max-width: 30em;
|
||||||
}
|
}
|
||||||
#sidebar .essential li {
|
#sidebar .essential li {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<% if (canListComments && comments.length) { %>
|
<% if (canListComments && comments.length) { %>
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<h1>Comments</h1>
|
<h1>Comments</h1>
|
||||||
<ul>
|
<ul class="comments">
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
Loading…
Reference in a new issue