discourse/lib/onebox/templates/discourse_category_onebox.mustache
Jordan Vidrine 0116897ac9
UI: Category Onebox styling changes (#11448)
This commit adjusts the category one box styling to be more in line with the discourse categories UI.
2020-12-09 11:36:05 -06:00

37 lines
1.2 KiB
Plaintext

<aside class="onebox category-onebox" style="box-shadow: -5px 0px #{{color}};">
<article class="onebox-body category-onebox-body">
{{#logo_url}}
<img src="{{logo_url}}" class="thumbnail" />
{{/logo_url}}
<h3>
<a class="badge-wrapper bullet" href="{{url}}">
{{#color}}
<span class="badge-category-bg" style="background-color: #{{{color}}}"></span>
{{/color}}
<span class="clear-badge"><span>{{{name}}}</span></span>
</a>
</h3>
{{#description}}
<div>
<span class="description">
<p>{{{description}}}</p>
</span>
</div>
{{/description}}
{{#has_subcategories}}
<div class="subcategories">
{{#subcategories}}
<span class="subcategory">
<a class="badge-wrapper bullet" href="{{url}}">
<span class="badge-category-bg" style="background-color: #{{{color}}}"></span>
<span class="badge-category clear-badge"><span class="category-name">{{{name}}}</span></span>
</a>
</span>
{{/subcategories}}
</div>
<div class="clearfix"></div>
{{/has_subcategories}}
</article>
<div class="clearfix"></div>
</aside>