Mac release fix, version 1.0.11, auto-close sidebar
This commit is contained in:
BIN
Client/.DS_Store
vendored
Normal file
BIN
Client/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
Client/Resources/.DS_Store
vendored
Normal file
BIN
Client/Resources/.DS_Store
vendored
Normal file
Binary file not shown.
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.0.11</Version>
|
||||
<Authors>SZUAbsolventenverein</Authors>
|
||||
<Company>SZUAbsolventenverein</Company>
|
||||
<Description>[Description]</Description>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
@namespace SZUAbsolventenverein.Theme.Website
|
||||
@inherits ThemeBase
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject ISettingService SettingService
|
||||
@implements IDisposable
|
||||
|
||||
<main role="main">
|
||||
<nav class="navbar navbar-dark bg-primary fixed-top app-navbar">
|
||||
@ -10,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Versteckte Checkbox zum Steuern des Menüs (nur HTML, kein Blazor) -->
|
||||
<input type="checkbox" id="nav-toggle" class="nav-toggle" />
|
||||
<input type="checkbox" id="nav-toggle" class="nav-toggle" @bind="_navOpen" />
|
||||
|
||||
<!-- Burger-Icon, das die Checkbox toggelt -->
|
||||
<label for="nav-toggle" class="nav-toggle-label">
|
||||
@ -175,6 +177,12 @@
|
||||
private bool _showDropdown = false;
|
||||
private bool _login = true;
|
||||
private bool _register = true;
|
||||
private bool _navOpen = false;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
NavigationManager.LocationChanged += LocationChanged;
|
||||
}
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
@ -190,5 +198,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void LocationChanged(object sender, LocationChangedEventArgs args)
|
||||
{
|
||||
_navOpen = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
NavigationManager.LocationChanged -= LocationChanged;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,9 +2,7 @@
|
||||
Standard Layout
|
||||
=========================== */
|
||||
|
||||
body {
|
||||
|
||||
}
|
||||
body {}
|
||||
|
||||
/* Login-Button (Mobile + Desktop) */
|
||||
.app-menu-footer .btn-login,
|
||||
@ -19,17 +17,19 @@ body {
|
||||
font-weight: 500 !important;
|
||||
}
|
||||
|
||||
/* Hover-Effekt */
|
||||
.app-menu-footer .btn-login:hover,
|
||||
.app-menu-footer .login-btn:hover,
|
||||
.app-menu-footer button:hover,
|
||||
.app-menu-footer a:hover {
|
||||
background-color: #f2f2f2 !important;
|
||||
border-color: #bbb !important;
|
||||
color: #333 !important;
|
||||
}
|
||||
/* Hover-Effekt */
|
||||
.app-menu-footer .btn-login:hover,
|
||||
.app-menu-footer .login-btn:hover,
|
||||
.app-menu-footer button:hover,
|
||||
.app-menu-footer a:hover {
|
||||
background-color: #f2f2f2 !important;
|
||||
border-color: #bbb !important;
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 60px; /* ungefähr Höhe der Navbar */
|
||||
margin-top: 60px;
|
||||
/* ungefähr Höhe der Navbar */
|
||||
}
|
||||
|
||||
/* App Logo */
|
||||
@ -38,7 +38,7 @@ body {
|
||||
padding: 0 5px 0 5px;
|
||||
}
|
||||
|
||||
.table > :not(caption) > * > * {
|
||||
.table> :not(caption)>*>* {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@ -99,7 +99,8 @@ body {
|
||||
/* Navbar als durchgehende Flex-Zeile */
|
||||
.app-navbar {
|
||||
display: flex;
|
||||
flex-wrap: nowrap; /* NICHT umbrechen auf Desktop */
|
||||
flex-wrap: nowrap;
|
||||
/* NICHT umbrechen auf Desktop */
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
z-index: 1000;
|
||||
@ -123,19 +124,20 @@ body {
|
||||
|
||||
/* Burger-Icon (wird nur auf Mobil eingeblendet) */
|
||||
.nav-toggle-label {
|
||||
display: none; /* nur auf Mobil sichtbar */
|
||||
display: none;
|
||||
/* nur auf Mobil sichtbar */
|
||||
cursor: pointer;
|
||||
padding: 0.25rem 0.5rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.nav-toggle-label span {
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 2px;
|
||||
margin: 4px 0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.nav-toggle-label span {
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 2px;
|
||||
margin: 4px 0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
/* Menü-Container */
|
||||
.app-menu {
|
||||
@ -174,15 +176,15 @@ body {
|
||||
transition: background-color 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.app-menu .nav-link:hover {
|
||||
background-color: #4a4a4a;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.app-menu .nav-link:hover {
|
||||
background-color: #4a4a4a;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.app-menu .nav-link.active {
|
||||
background-color: #3b3b3b;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.app-menu .nav-link.active {
|
||||
background-color: #3b3b3b;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
|
||||
/* ===========================
|
||||
@ -197,7 +199,8 @@ body {
|
||||
align-items: center !important;
|
||||
justify-content: flex-start !important;
|
||||
position: relative !important;
|
||||
min-height: 60px; /* optional: fixe Höhe */
|
||||
min-height: 60px;
|
||||
/* optional: fixe Höhe */
|
||||
}
|
||||
|
||||
/* Menü nur als Container für den Footer */
|
||||
@ -229,7 +232,8 @@ body {
|
||||
.app-menu-footer {
|
||||
display: flex !important;
|
||||
gap: 0.75rem !important;
|
||||
margin-left: auto !important; /* schiebt Footer nach rechts */
|
||||
margin-left: auto !important;
|
||||
/* schiebt Footer nach rechts */
|
||||
padding: 0 !important;
|
||||
border: none !important;
|
||||
background: none !important;
|
||||
@ -270,11 +274,14 @@ body {
|
||||
/* Sidebar-Wrapper rechts */
|
||||
.app-menu {
|
||||
position: fixed;
|
||||
top: 80px; /* Abstand von oben (über der Navbar + Burger) */
|
||||
top: 80px;
|
||||
/* Abstand von oben (über der Navbar + Burger) */
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 70%;
|
||||
max-width: 280px;
|
||||
height: calc(100vh - 80px); /* Höhe an das neue top anpassen */
|
||||
height: calc(100vh - 80px);
|
||||
/* Höhe an das neue top anpassen */
|
||||
background-color: #b1b0b0;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
@ -303,14 +310,16 @@ body {
|
||||
padding-top: 0.5rem;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
||||
display: flex;
|
||||
flex-direction: column; /* untereinander statt nebeneinander */
|
||||
gap: 0.5rem; /* Abstand zwischen Host und Logout */
|
||||
flex-direction: column;
|
||||
/* untereinander statt nebeneinander */
|
||||
gap: 0.5rem;
|
||||
/* Abstand zwischen Host und Logout */
|
||||
justify-content: right;
|
||||
}
|
||||
|
||||
|
||||
/* Sidebar öffnen/schließen über Checkbox */
|
||||
.nav-toggle:checked ~ .app-menu {
|
||||
.nav-toggle:checked~.app-menu {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
@ -320,5 +329,4 @@ body {
|
||||
font-size: clamp(12px, 3.5vw, 15px);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user