This commit is contained in:
2026-04-09 11:44:45 +02:00
parent 7ff7ff3a92
commit 61c66bfd55
79 changed files with 13667 additions and 144 deletions

View File

@@ -31,36 +31,266 @@ a:hover {
color: var(--primary-hover);
}
/* Sidebar - Compact */
/* App Shell */
.app-shell {
display: flex;
min-height: 100vh;
}
.app-main {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
margin-left: 260px;
transition: margin-left 0.25s ease;
}
.app-shell.is-collapsed .app-main {
margin-left: 52px;
}
/* Sidebar */
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 260px;
background-color: var(--sidebar-bg);
border-right: 1px solid rgba(255, 255, 255, 0.05);
z-index: 1000;
display: flex;
flex-direction: column;
transition: width 0.25s ease;
overflow: hidden;
}
.sidebar-header {
padding: 1rem 1.25rem; /* Zmniejszony padding */
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
.app-shell.is-collapsed .sidebar {
width: 52px;
}
.sidebar .nav-link {
color: var(--sidebar-link);
padding: 0.5rem 1rem; /* Zmniejszony padding */
margin: 0.15rem 0.75rem; /* Mniejsze marginesy */
border-radius: 0.375rem;
font-weight: 500;
font-size: 0.85rem; /* Mniejsza czcionka */
.sidebar__brand {
display: flex;
align-items: center;
transition: all 0.2s ease;
justify-content: space-between;
padding: 0.875rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar .nav-link i {
font-size: 1rem;
margin-right: 0.75rem;
.sidebar__brand-text {
color: #e2e8f0;
font-size: 1.1rem;
font-weight: 400;
letter-spacing: -0.01em;
white-space: nowrap;
}
.sidebar__brand-text strong {
font-weight: 700;
color: #fff;
}
.sidebar__collapse-btn {
background: none;
border: none;
color: #64748b;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: color 0.15s, background 0.15s;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar__collapse-btn:hover {
color: #e2e8f0;
background: rgba(255,255,255,0.06);
}
.app-shell.is-collapsed .sidebar__collapse-icon {
transform: rotate(180deg);
}
.app-shell.is-collapsed .sidebar__brand-text,
.app-shell.is-collapsed .sidebar__label,
.app-shell.is-collapsed .sidebar__toggle-arrow,
.app-shell.is-collapsed .sidebar__user-info,
.app-shell.is-collapsed .sidebar__group-links {
display: none;
}
/* Sidebar Nav */
.sidebar__nav {
flex: 1;
overflow-y: auto;
padding: 8px 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.sidebar__group {
margin: 0;
}
.sidebar__group > summary {
list-style: none;
}
.sidebar__group > summary::-webkit-details-marker {
display: none;
}
.sidebar__group-toggle {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
color: #94a3b8;
font-size: 0.835rem;
font-weight: 500;
cursor: pointer;
border-radius: 6px;
margin: 0 8px;
transition: color 0.15s, background 0.15s;
user-select: none;
}
.sidebar__group-toggle:hover {
color: #e2e8f0;
background: #1b2a3f;
}
.sidebar__group.is-active > .sidebar__group-toggle {
color: #e2e8f0;
}
.sidebar__toggle-arrow {
margin-left: auto;
transition: transform 0.2s;
opacity: 0.5;
}
.sidebar__group[open] > .sidebar__group-toggle .sidebar__toggle-arrow {
transform: rotate(180deg);
}
.sidebar__icon {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 20px;
height: 20px;
opacity: 0.7;
}
.sidebar__label {
white-space: nowrap;
}
.sidebar__group-links {
padding: 2px 0 4px 0;
}
.sidebar__sublink {
display: block;
padding: 6px 14px 6px 52px;
color: #94a3b8;
font-size: 0.8rem;
font-weight: 400;
text-decoration: none;
border-radius: 6px;
margin: 1px 8px;
transition: color 0.15s, background 0.15s;
}
.sidebar__sublink:hover {
color: #e2e8f0;
background: #1b2a3f;
}
.sidebar__sublink.is-active {
color: #fff;
background: #2e4f93;
font-weight: 500;
}
/* Sidebar Footer */
.sidebar__footer {
padding: 12px 14px;
border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar__user {
display: flex;
align-items: center;
gap: 10px;
}
.sidebar__avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: #334155;
color: #e2e8f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
font-weight: 600;
flex-shrink: 0;
}
.sidebar__user-name {
color: #e2e8f0;
font-size: 0.8rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar__user-logout {
color: #64748b;
font-size: 0.75rem;
text-decoration: none;
display: flex;
align-items: center;
gap: 4px;
transition: color 0.15s;
}
.sidebar__user-logout:hover {
color: #e2e8f0;
}
/* Sidebar Backdrop (mobile) */
.sidebar-backdrop {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 999;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.app-main {
margin-left: 0;
}
.app-shell.sidebar-open .sidebar {
transform: translateX(0);
}
.app-shell.sidebar-open .sidebar-backdrop {
display: block;
}
}
/* Header - Slim */
header {
background-color: rgba(255, 255, 255, 0.8) !important;