mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
{% for url, breadcrumb in breadcrumbs.items reversed %}
|
{% for url, breadcrumb in breadcrumbs.items reversed %}
|
||||||
@ -13,7 +15,7 @@
|
|||||||
<li class="breadcrumb-item">
|
<li class="breadcrumb-item">
|
||||||
<a href="{{ url }}">
|
<a href="{{ url }}">
|
||||||
{% if breadcrumb.url_name == 'index' %}
|
{% if breadcrumb.url_name == 'index' %}
|
||||||
<span class="fa fa-home"></span>
|
{% icon 'home' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ breadcrumb.name }}
|
{{ breadcrumb.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -533,8 +533,8 @@ footer {
|
|||||||
--bs-breadcrumb-divider: ">";
|
--bs-breadcrumb-divider: ">";
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb-item .fa-home {
|
.breadcrumb-item .svg-icon {
|
||||||
font-size: 1.5rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb-item + .breadcrumb-item::before {
|
.breadcrumb-item + .breadcrumb-item::before {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user