mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
0116897ac9
This commit adjusts the category one box styling to be more in line with the discourse categories UI.
37 lines
1.2 KiB
Plaintext
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>
|