Navbar improved

This commit is contained in:
mipel 2021-07-02 15:21:53 +02:00
parent c3e1e3e669
commit f654826003
2 changed files with 14 additions and 16 deletions

View File

@ -47,18 +47,9 @@ nav{
} }
.menu-elem{ .menu-elem{
/*
border-left: 1px solid white;
*/
margin: 0 0 0 0.75rem; margin: 0 0 0 0.75rem;
} }
.menu-elem:hover{
/*
background-color: var(--rlp-gray-light);
*/
}
.nav-btn{ .nav-btn{
color: white; color: white;
padding: 0.5rem; padding: 0.5rem;
@ -66,3 +57,10 @@ nav{
.nav-btn:hover{ .nav-btn:hover{
color: var(--rlp-gray-light); color: var(--rlp-gray-light);
} }
.navbar-dark .navbar-nav .nav-link{
/*
Overwrites bootstrap default nav-link colouring
*/
color: white;
}

View File

@ -1,5 +1,5 @@
{% load i18n fontawesome_5 %} {% load i18n fontawesome_5 %}
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg navbar-dark">
<div class="nav-icon mr-5" title="{% trans 'Kompensationsverzeichnis Service Portal' %}"> <div class="nav-icon mr-5" title="{% trans 'Kompensationsverzeichnis Service Portal' %}">
<strong class="">{% trans 'KSP' %}</strong> <strong class="">{% trans 'KSP' %}</strong>
</div> </div>
@ -8,31 +8,31 @@
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item menu-elem"> <li class=" menu-elem">
<a class="nav-btn nav-link" href="{% url 'home' %}"> <a class="nav-btn nav-link" href="{% url 'home' %}">
{% fa5_icon 'home' %} {% fa5_icon 'home' %}
{% trans 'Home' %} {% trans 'Home' %}
</a> </a>
</li> </li>
<li class="nav-item menu-elem"> <li class=" menu-elem">
<a class="nav-btn nav-link" href="{% url 'home' %}"> <a class="nav-btn nav-link" href="{% url 'home' %}">
{% fa5_icon 'pencil-ruler' %} {% fa5_icon 'pencil-ruler' %}
{% trans 'Intervention' %} {% trans 'Intervention' %}
</a> </a>
</li> </li>
<li class="nav-item menu-elem"> <li class=" menu-elem">
<a class="nav-btn nav-link" href="{% url 'home' %}"> <a class="nav-btn nav-link" href="{% url 'home' %}">
{% fa5_icon 'leaf' %} {% fa5_icon 'leaf' %}
{% trans 'Compensation' %} {% trans 'Compensation' %}
</a> </a>
</li> </li>
<li class="nav-item menu-elem"> <li class=" menu-elem">
<a class="nav-btn nav-link" href="{% url 'home' %}"> <a class="nav-btn nav-link" href="{% url 'home' %}">
{% fa5_icon 'tree' %} {% fa5_icon 'tree' %}
{% trans 'Eco-account' %} {% trans 'Eco-account' %}
</a> </a>
</li> </li>
<li class="nav-item menu-elem dropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <li class=" menu-elem dropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<a class="nav-btn nav-link"> <a class="nav-btn nav-link">
{% fa5_icon 'ellipsis-v' %} {% fa5_icon 'ellipsis-v' %}
{% trans 'More' %} {% trans 'More' %}
@ -47,7 +47,7 @@
</ul> </ul>
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item dropdown"> <li class=" dropdown">
<div class="btn nav-btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <div class="btn nav-btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
{% fa5_icon 'user-circle' %} {% fa5_icon 'user-circle' %}
{{ user.username }} {{ user.username }}