improved dark mode, automatic theme switch (#5720)
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
{% if options.route is defined %}
|
||||
{% set url = path(options.route, options.routeOptions|default([])) %}
|
||||
{% endif %}
|
||||
{% set color = options.color|default('green') %}
|
||||
|
||||
<div class="card card-sm">
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-auto">
|
||||
{% if not url is empty %}<a href="{{ url }}">{% endif %}
|
||||
<span class="bg-{{ options.color|default('green') }} text-white avatar">
|
||||
<span class="bg-{{ color }} text-{{ color }}-fg avatar">
|
||||
{{ icon(options.icon, true) }}
|
||||
</span>
|
||||
{% if not url is empty %}</a>{% endif %}
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
{% if options.route is defined %}
|
||||
{% set url = path(options.route, options.routeOptions|default([])) %}
|
||||
{% endif %}
|
||||
{% set color = options.color|default('green') %}
|
||||
|
||||
<div class="card card-sm">
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-auto">
|
||||
<span class="bg-{{ options.color|default('green') }} text-white avatar">
|
||||
<span class="bg-{{ color }} text-{{ color }}-fg avatar">
|
||||
{{ icon(options.icon, true) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user