Simplifying category page markup

This commit is contained in:
Kris 2018-08-17 23:07:07 -04:00
parent e7e8f4ef4c
commit a15a43605e
3 changed files with 5 additions and 6 deletions

View File

@ -13,14 +13,12 @@
{{#each categories as |c|}}
<tr data-category-id={{c.id}} class="{{if c.description_excerpt 'has-description' 'no-description'}} {{if c.uploaded_logo.url 'has-logo' 'no-logo'}}">
<td class="category" style={{border-color c.color}}>
<div>
{{category-title-link category=c}}
<div class="category-description">
{{{dir-span c.description_excerpt}}}
</div>
<div class="clearfix"></div>
</div>
{{#if c.subcategories}}
{{#if c.subcategories}}
<div class='subcategories'>
{{#each c.subcategories as |s|}}
<span class='subcategory'>
@ -31,6 +29,7 @@
{{/each}}
</div>
{{/if}}
</td>
<td class="topics">
<div title={{c.statTitle}}>{{{c.stat}}}</div>

View File

@ -50,6 +50,7 @@
}
.subcategories {
margin-top: 0.25em;
.badge-notification.new-posts {
padding: 0;
margin: 0 10px 0 0;

View File

@ -223,8 +223,7 @@ button.dismiss-read {
.category-logo {
max-height: 150px;
float: left;
margin-bottom: 15px;
margin-right: 15px;
margin: 0.25em 1em 0.5em 0;
}
/* Tablet (portrait) ----------- */