diff --git a/allianceauth/static/css/auth-base.css b/allianceauth/static/css/auth-base.css index 7c10b444..7a11e5ad 100644 --- a/allianceauth/static/css/auth-base.css +++ b/allianceauth/static/css/auth-base.css @@ -91,7 +91,7 @@ ul.list-group.list-group-horizontal > li.list-group-item { } /* highlight active menu items ---------------------------------------------------------------------------------------------------------------------- */ +------------------------------------------------------------------------------------- */ @media all { .template-light-mode .nav-pills > li > a.active { background-color: rgb(236, 240, 241); @@ -102,6 +102,65 @@ ul.list-group.list-group-horizontal > li.list-group-item { } } +/* user menu +------------------------------------------------------------------------------------- */ +@media all { + img { + height: auto; + max-width: 100%; + } + + .navbar-nav > li.top-user-menu.with-main-character > .dropdown-menu { + padding-top: 0.5rem; + } + + .navbar-nav > li.top-user-menu.with-main-character a { + padding: 14px; + } + + .dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: 400; + line-height: 1.42857143; + color: rgb(123, 138, 139); + white-space: nowrap; + } + + .top-user-menu .navbar-form { + margin-left: 5px; + margin-right: 5px; + } +} + +@media all and (max-width: 768px) { + .navbar-nav .open .dropdown-menu .dropdown-header, .navbar-nav .open .dropdown-menu > li > a { + padding: 5px 15px 5px 25px; + } +} + +/* eve time in navbar +------------------------------------------------------------------------------------- */ +@media all { + .nav-item-eve-time .eve-time-wrapper { + color: rgb(255, 255, 255); + display: block; + line-height: 21px; + padding: 10px 15px; + position: relative; + } +} + +/* eve time in navbar +------------------------------------------------------------------------------------- */ +@media all and (min-width: 768px) { + .nav-item-eve-time .eve-time-wrapper { + padding-bottom: 19.5px; + padding-top: 19.5px; + } +} + /* Small devices (tablets, 768px and up) */ @media (min-width: 768px) { diff --git a/allianceauth/templates/allianceauth/base.html b/allianceauth/templates/allianceauth/base.html index 129f617d..9d1798c9 100644 --- a/allianceauth/templates/allianceauth/base.html +++ b/allianceauth/templates/allianceauth/base.html @@ -50,6 +50,7 @@ }; + {% block extra_javascript %} {% endblock extra_javascript %} diff --git a/allianceauth/templates/allianceauth/night-toggle.html b/allianceauth/templates/allianceauth/night-toggle.html index b36d9826..a4fc93e8 100644 --- a/allianceauth/templates/allianceauth/night-toggle.html +++ b/allianceauth/templates/allianceauth/night-toggle.html @@ -1,5 +1,8 @@ {% load i18n %} - - {% trans "Night" %} - - + +
  • + + + {% trans "Night Mode" %} + +
  • diff --git a/allianceauth/templates/allianceauth/top-menu-admin.html b/allianceauth/templates/allianceauth/top-menu-admin.html new file mode 100644 index 00000000..5a1b0848 --- /dev/null +++ b/allianceauth/templates/allianceauth/top-menu-admin.html @@ -0,0 +1,29 @@ +{% load i18n %} + + +{% if user.is_authenticated %} + {% if user.is_staff %} + +
  • + + {% translate "Admin" %} +
  • + {% endif %} +{% endif %} + +{% if user.is_superuser %} + +
  • + + + {% translate "AA Documentation" %} + +
  • + +
  • + + + {% translate "AA Support Discord" %} + +
  • +{% endif %} diff --git a/allianceauth/templates/allianceauth/top-menu-user-dropdown.html b/allianceauth/templates/allianceauth/top-menu-user-dropdown.html new file mode 100644 index 00000000..7b995cb0 --- /dev/null +++ b/allianceauth/templates/allianceauth/top-menu-user-dropdown.html @@ -0,0 +1,70 @@ +{% load i18n %} +{% load evelinks %} + + diff --git a/allianceauth/templates/allianceauth/top-menu.html b/allianceauth/templates/allianceauth/top-menu.html index cd7e52ae..23d19be4 100644 --- a/allianceauth/templates/allianceauth/top-menu.html +++ b/allianceauth/templates/allianceauth/top-menu.html @@ -10,51 +10,24 @@ + {{ SITE_NAME }} +