Simplifying category page markup
This commit is contained in:
parent
e7e8f4ef4c
commit
a15a43605e
|
@ -13,14 +13,12 @@
|
||||||
{{#each categories as |c|}}
|
{{#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'}}">
|
<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}}>
|
<td class="category" style={{border-color c.color}}>
|
||||||
<div>
|
|
||||||
{{category-title-link category=c}}
|
{{category-title-link category=c}}
|
||||||
<div class="category-description">
|
<div class="category-description">
|
||||||
{{{dir-span c.description_excerpt}}}
|
{{{dir-span c.description_excerpt}}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
{{#if c.subcategories}}
|
||||||
</div>
|
|
||||||
{{#if c.subcategories}}
|
|
||||||
<div class='subcategories'>
|
<div class='subcategories'>
|
||||||
{{#each c.subcategories as |s|}}
|
{{#each c.subcategories as |s|}}
|
||||||
<span class='subcategory'>
|
<span class='subcategory'>
|
||||||
|
@ -31,6 +29,7 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="topics">
|
<td class="topics">
|
||||||
<div title={{c.statTitle}}>{{{c.stat}}}</div>
|
<div title={{c.statTitle}}>{{{c.stat}}}</div>
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.subcategories {
|
.subcategories {
|
||||||
|
margin-top: 0.25em;
|
||||||
.badge-notification.new-posts {
|
.badge-notification.new-posts {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 10px 0 0;
|
margin: 0 10px 0 0;
|
||||||
|
|
|
@ -223,8 +223,7 @@ button.dismiss-read {
|
||||||
.category-logo {
|
.category-logo {
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-bottom: 15px;
|
margin: 0.25em 1em 0.5em 0;
|
||||||
margin-right: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tablet (portrait) ----------- */
|
/* Tablet (portrait) ----------- */
|
||||||
|
|
Loading…
Reference in New Issue