mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-01-26 00:59:08 +01:00
Rewrite custom card colors to use custom CSS classes instead of styles
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<a :href="item.url" :target="item.target" rel="noreferrer">
|
||||
<div
|
||||
class="card-content"
|
||||
:style="(item.colors && item.colors.background) ? {backgroundColor: item.colors.background} : null"
|
||||
:class="item.class"
|
||||
>
|
||||
<div class="media">
|
||||
<div v-if="item.logo" class="media-left">
|
||||
@@ -20,11 +20,11 @@
|
||||
<div class="media-content">
|
||||
<p
|
||||
class="title is-4"
|
||||
:style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
|
||||
:class="item.class"
|
||||
>{{ item.name }}</p>
|
||||
<p
|
||||
class="subtitle is-6"
|
||||
:style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
|
||||
:class="item.class"
|
||||
>{{ item.subtitle }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user