site profile display fixes for mobile

This commit is contained in:
Kyle Drake 2017-05-30 23:47:21 -07:00
parent b121261cc1
commit d39beaa2f8
2 changed files with 20 additions and 2 deletions

View file

@ -915,6 +915,10 @@ a.tag:hover {
float: left;
clear: both;
margin-left: 61px;
@media (max-device-width:480px), screen and (max-width:800px) {
margin-left: 0px;
}
}
.news-item .icon {
width: 49px;
@ -1045,9 +1049,17 @@ a.tag:hover {
.news-item .content {
padding: 0;
margin-left: 61px;
@media (max-device-width:480px), screen and (max-width:800px) {
margin-left: 0px;
}
}
.news-item .actions, .news-item.comment .content {
margin-left: 61px;
@media (max-device-width:480px), screen and (max-width:800px) {
margin-left: 0px;
}
}
.news-item.comment .content {
word-wrap: break-word;
@ -1101,6 +1113,7 @@ a.tag:hover {
}
.interior .header-Outro .profile-info {
@media (max-device-width:480px), screen and (max-width:800px) {
margin-top: 70px;
text-align: center;
padding: 10px 0 15px 0;
}
@ -1113,7 +1126,6 @@ a.tag:hover {
a:first-of-type {
margin-left: 0;
}
}
.interior .header-Outro .stats {
margin-bottom: 1.3em;
@ -1128,6 +1140,12 @@ a.tag:hover {
text-align: center;
}
}
.interior .header-Outro .stats .tips {
@media (max-device-width:480px), screen and (max-width:800px) {
display: none;
}
}
.interior .header-Outro .stats strong {
font-size: 1.5em;
font-weight: normal;

View file

@ -30,7 +30,7 @@
<div class="stat"><strong><%= site.views.format_large_number %></strong> <span>view<%= site.views == 1 ? '' : 's' %></span></div>
<div class="stat"><strong><%= site.follow_count.format_large_number %></strong> <span>follower<%= site.follow_count == 1 ? '' : 's' %></span></div>
<div class="stat"><strong><%= site.changed_count.format_large_number %></strong> <span>update<%= site.changed_count == 1 ? '' : 's' %></span></div>
<div class="stat"><strong><%= site.tips_dataset.count %></strong> <span>tips</span></div>
<div class="stat tips"><strong><%= site.tips_dataset.count %></strong> <span>tips</span></div>
</div>
<div class="actions">
<% if current_site == site %>