1
0
Fork 0

seleziono la pagina corrente nel navbar

This commit is contained in:
lesion 2017-05-23 22:20:04 +02:00
parent cf61ae536e
commit 9d52b22d39
2 changed files with 7 additions and 1 deletions

View file

@ -48,6 +48,11 @@ h1, h2, h3, h4, strong, tt {
color: black;
}
.navbar .navbar-nav > li > a {
transition: background-color .3s;
background-color: #e12b2b;
}
.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:hover,
.navbar .navbar-nav > .active > a:focus {
@ -60,6 +65,7 @@ h1, h2, h3, h4, strong, tt {
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
color: black;
background-color: #ff7456;
}
.navbar-brand {

View file

@ -121,7 +121,7 @@
{% set menu = MENUITEMS %}
{% endif %}
{% for title, link in menu %}
<li><a href="{{ link }}">{{ title }}</a></li>
<li class="{% if page.url == link %}active{% endif %}"><a href="{{ link }}" >{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_CATEGORIES_ON_MENU %}