feat: add hamburger menu navigation drawer and tabbed views for admin sections
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 12s
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 12s
This commit is contained in:
217
style.css
217
style.css
@@ -1050,4 +1050,221 @@ main {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Hamburger Navigation & Drawer Menu
|
||||
========================================================================== */
|
||||
|
||||
/* Hamburger Button */
|
||||
.hamburger-menu-btn {
|
||||
display: none; /* Controlled by admin.js */
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
padding: 0;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.hamburger-menu-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: var(--border-strong);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.hamburger-menu-btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.hamburger-bar {
|
||||
width: 18px;
|
||||
height: 2px;
|
||||
background-color: var(--text);
|
||||
border-radius: 99px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Drawer Backdrop */
|
||||
.admin-nav-backdrop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(4, 5, 11, 0.65);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
z-index: 9999;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.admin-nav-backdrop.is-open {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* Nav Drawer Container */
|
||||
.admin-nav-drawer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 100vh;
|
||||
width: min(340px, 85vw);
|
||||
background: linear-gradient(180deg, rgba(17, 22, 36, 0.96) 0%, rgba(10, 14, 26, 0.98) 100%);
|
||||
border-left: 1px solid var(--border-strong);
|
||||
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.55);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
z-index: 10000;
|
||||
padding: 30px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transform: translateX(100%);
|
||||
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.admin-nav-drawer.is-open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
/* Drawer Header */
|
||||
.drawer-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 28px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.drawer-header h3 {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.drawer-close-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--dim);
|
||||
font-size: 1.8rem;
|
||||
cursor: pointer;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.drawer-close-btn:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Drawer Navigation list */
|
||||
.drawer-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.drawer-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.drawer-nav-item:hover {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-color: var(--border);
|
||||
color: #fff;
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.drawer-nav-item.is-active {
|
||||
background: rgba(103, 232, 249, 0.08);
|
||||
border-color: rgba(103, 232, 249, 0.25);
|
||||
color: #67e8f9;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.drawer-nav-icon {
|
||||
font-size: 1.15rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.drawer-nav-item:hover .drawer-nav-icon {
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
.drawer-nav-text {
|
||||
font-size: 0.94rem;
|
||||
}
|
||||
|
||||
.drawer-divider {
|
||||
height: 1px;
|
||||
background: var(--border);
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.drawer-logout-btn:hover {
|
||||
background: rgba(251, 113, 133, 0.08);
|
||||
border-color: rgba(251, 113, 133, 0.25);
|
||||
color: #fb7185;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Tab View Rules for Admin Panels
|
||||
========================================================================== */
|
||||
.admin-tab-content {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.admin-tab-content.is-active {
|
||||
display: block !important;
|
||||
grid-column: 1 / -1;
|
||||
max-width: 900px;
|
||||
margin-inline: auto;
|
||||
width: 100%;
|
||||
animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
@keyframes cardFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user