make it easier to customize category boxes with featured topics
This commit is contained in:
parent
e600dca268
commit
0991acf103
|
@ -1,6 +1,7 @@
|
|||
{{#each categories as |c|}}
|
||||
<div class='category-box' style={{border-color c.color}}>
|
||||
<div class='category-box category-box-{{unbound c.slug}}' style={{border-color c.color}}>
|
||||
<div class='category-box-inner'>
|
||||
<div class='category-box-heading'>
|
||||
<a href={{c.url}}>
|
||||
{{#if c.uploaded_logo.url}}
|
||||
{{cdn-img src=c.uploaded_logo.url class="logo"}}
|
||||
|
@ -8,6 +9,7 @@
|
|||
|
||||
<h3>{{c.name}}</h3>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class='featured-topics'>
|
||||
{{#if c.topics}}
|
||||
|
|
|
@ -259,12 +259,6 @@
|
|||
border-width: 2px 2px 2px 0;
|
||||
border-style: solid;
|
||||
border-color: blend-primary-secondary(20%);
|
||||
|
||||
> a[href] {
|
||||
width: 100%;
|
||||
padding: 1em 1em 0 1em;
|
||||
color: $primary;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
@ -272,8 +266,16 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.category-box-heading {
|
||||
padding: 1em 1em 0.5em 1em;
|
||||
a[href] {
|
||||
width: 100%;
|
||||
color: $primary;
|
||||
}
|
||||
}
|
||||
|
||||
.featured-topics {
|
||||
padding: 0 1em 1em 1em;
|
||||
padding: 0.5em 1em 1em 1em;
|
||||
ul {
|
||||
color: blend-primary-secondary(70%);
|
||||
list-style: none;
|
||||
|
|
Loading…
Reference in New Issue