mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-25 09:21:10 +00:00
ui: Use inline SVG icons for breadcrumbs
Tests: - The home icon appears as before in breadcrumb in light/dark themes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
c12e4079c6
commit
80730bc9b3
@ -2,6 +2,8 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
|
||||
{% load plinth_extras %}
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
{% for url, breadcrumb in breadcrumbs.items reversed %}
|
||||
@ -13,7 +15,7 @@
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ url }}">
|
||||
{% if breadcrumb.url_name == 'index' %}
|
||||
<span class="fa fa-home"></span>
|
||||
{% icon 'home' %}
|
||||
{% else %}
|
||||
{{ breadcrumb.name }}
|
||||
{% endif %}
|
||||
|
||||
@ -533,8 +533,8 @@ footer {
|
||||
--bs-breadcrumb-divider: ">";
|
||||
}
|
||||
|
||||
.breadcrumb-item .fa-home {
|
||||
font-size: 1.5rem;
|
||||
.breadcrumb-item .svg-icon {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.breadcrumb-item + .breadcrumb-item::before {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user