mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 06:50:15 +02:00
highlight active menu item
This commit is contained in:
parent
d0c68b82f4
commit
edda2c248e
@ -66,6 +66,18 @@ ul.list-group.list-group-horizontal > li.list-group-item {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* highlight active menu items
|
||||||
|
--------------------------------------------------------------------------------------------------------------------- */
|
||||||
|
@media all {
|
||||||
|
.template-light-mode .nav-pills > li > a.active {
|
||||||
|
background-color: rgb(236, 240, 241);
|
||||||
|
}
|
||||||
|
|
||||||
|
.template-dark-mode .nav-pills > li > a.active {
|
||||||
|
background-color: rgb(48, 48, 48);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Small devices (tablets, 768px and up) */
|
/* Small devices (tablets, 768px and up) */
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
{% load navactive %}
|
{% load navactive %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
|
|
||||||
{% include 'allianceauth/icons.html' %}
|
{% include 'allianceauth/icons.html' %}
|
||||||
|
|
||||||
<title>{% block title %}{% block page_title %}{% endblock page_title %} - Alliance Auth{% endblock title %}</title>
|
<title>{% block title %}{% block page_title %}{% endblock page_title %} - Alliance Auth{% endblock title %}</title>
|
||||||
@ -17,13 +18,16 @@
|
|||||||
{% include 'bundles/fontawesome.html' %}
|
{% include 'bundles/fontawesome.html' %}
|
||||||
|
|
||||||
<link href="{% static 'css/auth-base.css' %}" type="text/css" rel="stylesheet">
|
<link href="{% static 'css/auth-base.css' %}" type="text/css" rel="stylesheet">
|
||||||
|
|
||||||
{% block extra_css %}{% endblock extra_css %}
|
{% block extra_css %}{% endblock extra_css %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
{% if user.is_authenticated %}
|
<body class="{% if NIGHT_MODE %}template-dark-mode{% else %}template-light-mode{% endif %}">
|
||||||
|
{% if user.is_authenticated %}
|
||||||
<div id="wrapper" class="container">
|
<div id="wrapper" class="container">
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
{% include 'allianceauth/top-menu.html' %}
|
{% include 'allianceauth/top-menu.html' %}
|
||||||
|
|
||||||
<div class="row" id="site-body-wrapper">
|
<div class="row" id="site-body-wrapper">
|
||||||
{% include 'allianceauth/side-menu.html' %}
|
{% include 'allianceauth/side-menu.html' %}
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
@ -36,19 +40,23 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'bundles/bootstrap-js.html' %}
|
|
||||||
{% block extra_javascript %}
|
{% include 'bundles/bootstrap-js.html' %}
|
||||||
{% endblock extra_javascript %}
|
|
||||||
<script>
|
{% block extra_javascript %}
|
||||||
|
{% endblock extra_javascript %}
|
||||||
|
|
||||||
|
<script>
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
{% endblock extra_script %}
|
{% endblock extra_script %}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user