Feature: Active menu highlight, dropdown subpages, Control Panel z-index fix

This commit is contained in:
2026-04-10 14:10:57 +02:00
parent a1fd9ab2d7
commit 89d212ebb2
3 changed files with 147 additions and 24 deletions

View File

@@ -1,9 +1,21 @@
/* ===========================
/* ===========================
Standard Layout
=========================== */
body {}
/* Oqtane Control Panel / Bootstrap Overlays über dem Menü anzeigen */
.offcanvas,
.offcanvas-backdrop,
.modal,
.modal-backdrop {
z-index: 2000 !important;
}
.offcanvas.show {
z-index: 2001 !important;
}
/* Login-Button (Mobile + Desktop) */
.app-menu-footer .btn-login,
.app-menu-footer .login-btn,
@@ -159,9 +171,60 @@ body {}
gap: 0.5rem;
}
/* Untermenü (Kinder-Seiten) etwas eingerückt */
/* Dropdown-Wrapper: relative positioniert für absolutes Dropdown */
.nav-item-dropdown {
position: relative;
}
/* Link + Toggle-Button nebeneinander */
.nav-link-row {
display: flex;
align-items: center;
gap: 0;
}
/* Toggle-Button für Mobile */
.dropdown-toggle-btn {
background: none;
border: none;
color: white;
cursor: pointer;
padding: 6px 8px;
font-size: 1rem;
line-height: 1;
}
/* Dropdown-Pfeil */
.dropdown-arrow {
font-size: 0.8em;
opacity: 0.7;
display: inline-block;
transition: transform 0.2s ease;
}
/* Pfeil dreht sich wenn offen */
.dropdown-arrow.open {
transform: rotate(180deg);
}
/* Untermenü: standardmäßig versteckt */
.app-submenu {
margin-left: 1rem;
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 180px;
background-color: #9a9999;
border-radius: 6px;
padding: 0.5rem 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
z-index: 2000;
flex-direction: column;
}
/* Dropdown bei Hover öffnen */
.nav-item-dropdown:hover > .app-submenu {
display: flex;
}
/* Nav-Items */
@@ -169,21 +232,42 @@ body {}
padding-bottom: 0.25rem;
}
/* Sub-Items im Dropdown: volle Breite */
.app-submenu .nav-item {
padding: 0;
width: 100%;
}
.app-submenu .nav-link {
padding: 6px 16px;
border-radius: 0;
white-space: nowrap;
display: block;
width: 100%;
}
.app-submenu .nav-link:hover {
background-color: rgba(0, 0, 0, 0.25);
}
/* Hover-/Active-Style für Links */
.app-menu .nav-link {
padding: 6px 12px;
border-radius: 6px;
transition: background-color 0.2s ease, color 0.2s ease;
transition: background-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}
/* Hover: dunkler Hintergrund */
.app-menu .nav-link:hover {
background-color: #4a4a4a;
background-color: rgba(0, 0, 0, 0.35);
color: #ffffff !important;
}
/* Aktive Seite: dunkel + fett */
.app-menu .nav-link.active {
background-color: #3b3b3b;
background-color: rgba(0, 0, 0, 0.45);
color: #ffffff !important;
font-weight: 700;
}
@@ -328,4 +412,22 @@ body {}
font-size: clamp(12px, 3.5vw, 15px);
}
/* Mobile: Dropdown standardmäßig versteckt */
.app-submenu {
position: static !important;
min-width: unset !important;
box-shadow: none !important;
background-color: transparent !important;
padding: 0 !important;
padding-left: 1rem !important;
border-radius: 0 !important;
display: none !important;
}
/* Mobile: Dropdown nur öffnen wenn angeklickt */
.app-submenu.mobile-open {
display: flex !important;
flex-direction: column;
}
}