Skip to content

Commit

Permalink
hot-fix-modern-style: Fixed the magrins of answer's comments in the m…
Browse files Browse the repository at this point in the history
…obile version
  • Loading branch information
Antarus66 committed Oct 19, 2015
1 parent 8ab61fc commit a365e4f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 12 deletions.
47 changes: 36 additions & 11 deletions public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,10 @@ blockquote .author {
outline-offset: 0;
}

#answers .single-comment .user-info {
min-width: 100px;
}

.form-open {
background-color: #5b5b5b;
border-color: #adadad;
Expand Down Expand Up @@ -1337,6 +1341,11 @@ blockquote .author {
padding-bottom: 30px;
}

.answer-body .content-block,
.single-answer .actions {
padding-left: 10px;
}

.single-answer .actions {
position: absolute;
bottom: 0;
Expand Down Expand Up @@ -1427,7 +1436,7 @@ div .fa-05 {
}

.paginator .active a:hover {
background-color: #5b5b5b;
background-color: #222;
color: #ffffff;
}

Expand Down Expand Up @@ -2009,6 +2018,7 @@ div .fa-05 {
}

#question-list .img-thumbnail.big,
#answers .img-thumbnail,
.my-questions .img-thumbnail,
.my-answers .img-thumbnail {
max-width: 75px;
Expand Down Expand Up @@ -2042,6 +2052,11 @@ div .fa-05 {
#top-link {
display: none !important;
}

.answer-body .avatar-block,
.answer-body .content-block {
display: block;
}
}

@media (min-width: 768px) {
Expand All @@ -2059,9 +2074,10 @@ div .fa-05 {
}

.comments-region,
.comment-form {
width: 80%;
margin-left: 20%;
.comment-form,
.comment-list .folding-controls .control {
width: 84%;
margin-left: 16%;
}

.questions-answers {
Expand Down Expand Up @@ -2096,6 +2112,14 @@ div .fa-05 {
.tag-element:nth-child(5n) {
margin-left: 6.2%;
}

#answers .col-md-2 {
width: 25%;
}

#answers .col-md-10 {
width: 75%;
}
}

@media (min-width: 850px) {
Expand All @@ -2115,20 +2139,21 @@ div .fa-05 {
.container {
width: 1100px;
}

#answers .col-md-2 {
width: 17%;
}

#answers .col-md-10 {
width: 83%;
}
}

@media (min-width: 1251px) {
.container {
width: 1170px;
}

.comments-region,
.comment-form,
.comment-list .folding-controls .control {
width: 88%;
margin-left: 12%;
}

.tag-element {
width: 17%;
}
Expand Down
2 changes: 1 addition & 1 deletion public/js/views/templates/comment/single-comment.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row">
<!-- User info -->
<div class="col-md-2 col-lg-2 col-sm-2">
<div class="col-md-2 col-lg-2 col-sm-2 user-info-container">
<figure class="user-info text-center">
<img src="<%- user.thumb_avatar %>" alt="100x100" class="img-thumbnail medium">
<h5><%= user.first_name + ' ' + user.last_name %></h5>
Expand Down

0 comments on commit a365e4f

Please sign in to comment.