Style categories page for mobile

This commit is contained in:
Neil Lalonde 2013-12-18 11:50:51 -05:00
parent 8057373584
commit eeed9abcf0
4 changed files with 40 additions and 1 deletions

View file

@ -30,7 +30,7 @@
<a href={{unbound newUrl}} class='badge new-posts badge-notification' title='{{i18n topic.new_topics count="newTopics"}}'>{{unbound newTopics}} <i class='fa fa-asterisk'></i></a>
{{/if}}
</div>
<div class='featured-users pull-right'>
<div class='featured-users'>
{{#each featured_users}}
<a href="/users/{{unbound username_lower}}">{{avatar this imageSize="small"}}</a>
{{/each}}

View file

@ -41,6 +41,18 @@
}
}
@mixin portrait {
@media only screen and (max-width : 320px) {
@content;
}
}
@mixin landscape {
@media only screen and (min-width : 321px) {
@content;
}
}
// CSS3 properties
// --------------------------------------------------

View file

@ -289,6 +289,7 @@
}
}
.featured-users {
float: right;
margin-right: 13px;
}
.category-description {

View file

@ -162,6 +162,32 @@
// Category list
// --------------------------------------------------
#topic-list.categories {
.featured-users {
@include portrait {
margin-bottom: 10px;
padding-top: 8px;
clear: left;
}
@include landscape {
float: right;
}
}
.latest {
@include portrait { width: 150px; }
@include landscape { width: 270px; }
.featured-topic {
margin: 8px 0;
a.last-posted-at, a.last-posted-at:visited {
color: #888;
}
}
}
.stats {
display: none;
}
}
.category-list-item {
margin-bottom: 10px;
#topic-list tbody tr:nth-child(even) {