category-list-item only used in mobile layout

This commit is contained in:
Jeff Atwood 2014-07-10 13:28:53 -07:00
parent eeeb374ec9
commit cf61ef7138
4 changed files with 29 additions and 53 deletions

View File

@ -4,12 +4,6 @@
<tr>
<th class="main-link">
{{category-link this allowUncategorized=true}}
<div class='posters'>
{{#each featured_users}}
<a href="/users/{{unbound username_lower}}">{{avatar this imageSize="small"}}</a>
{{/each}}
</div>
</th>
<th class='num posts'>{{i18n posts}}</th>
<th class='num age'>{{i18n age}}</th>

View File

@ -123,39 +123,6 @@
}
.category-list-item {
margin-bottom: 10px;
#topic-list tbody tr:nth-child(even) {
background-color: darken($secondary, 3%);
}
th .badge-category {
float: left;
margin: 1px 4px 0 0;
}
.posters {
float: left;
}
> footer {
border-top: 0;
padding: 7px 10px;
figure {
float: left;
margin: 3px 7px 0 0;
color: scale-color($primary, $lightness: 10%);
font-weight: bold;
font-size: 12px;
}
figcaption {
display: inline;
font-weight: normal;
}
.btn {
float: right;
margin-left: 7px;
}
}
}
.loading #topic-list {
border: 0;
@include box-shadow(none);

View File

@ -232,19 +232,6 @@
}
}
// Category list
// --------------------------------------------------
.category-list-item {
th .badge-category {
float: left;
}
.posters {
display: block;
width: 165px;
}
}
#topic-list-bottom {
margin: 20px 0;
}

View File

@ -134,11 +134,39 @@
}
.category-list-item {
margin-bottom: 10px;
#topic-list tbody tr:nth-child(even) {
background-color: darken($secondary, 3%);
}
th .badge-category {
float: left;
margin: 1px 4px 0 0;
}
.posters {
display: none;
float: left;
}
> footer {
border-top: 0;
padding: 7px 10px;
figure {
float: left;
margin: 3px 7px 0 0;
color: scale-color($primary, $lightness: 10%);
font-weight: bold;
font-size: 12px;
}
figcaption {
display: inline;
font-weight: normal;
}
.btn {
float: right;
margin-left: 7px;
}
}
}
#topic-list-bottom {
margin: 20px 12px 0 12px;
}