This commit is contained in:
Mateusz Gruszczyński
2026-04-07 11:41:05 +02:00
parent ca9c78d88d
commit dda1c47764
5 changed files with 455 additions and 255 deletions

View File

@@ -31,6 +31,15 @@ body {
--tblr-card-border-radius: var(--ec-light-radius-md);
}
[data-bs-theme="dark"] {
--tblr-body-bg: #06080d;
--ec-shell-bg: #06080d;
--ec-card-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
--ec-card-border: rgba(255, 255, 255, 0.06);
--ec-navbar-bg: rgba(6, 8, 13, 0.96);
--ec-subnav-bg: rgba(10, 13, 20, 0.96);
}
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .pv-card,
[data-bs-theme="light"] .login-card,
@@ -59,15 +68,6 @@ body {
border-radius: var(--ec-light-radius-sm) !important;
}
[data-bs-theme="dark"] {
--tblr-body-bg: #06080d;
--ec-shell-bg: #06080d;
--ec-card-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
--ec-card-border: rgba(255, 255, 255, 0.06);
--ec-navbar-bg: rgba(6, 8, 13, 0.96);
--ec-subnav-bg: rgba(10, 13, 20, 0.96);
}
.page {
min-height: 100vh;
}
@@ -127,10 +127,25 @@ body {
color: #0f172a;
}
.pv-navbar-user {
.pv-navbar-user,
.min-w-0 {
min-width: 0;
}
.ec-footer {
background: var(--ec-navbar-bg);
border-color: var(--ec-card-border) !important;
}
.ec-footer-shell {
min-height: 4rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.9rem 0;
}
.card,
.pv-card,
.login-card,
@@ -179,6 +194,73 @@ body {
height: 280px;
}
.ec-accent-card {
position: relative;
}
.ec-accent-card::before {
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 4px;
}
.ec-accent-card-primary::before {
background: linear-gradient(90deg, var(--tblr-primary), rgba(var(--tblr-primary-rgb), 0.35));
}
.ec-accent-card-success::before {
background: linear-gradient(90deg, var(--tblr-success), rgba(var(--tblr-success-rgb), 0.35));
}
.ec-accent-card-info::before {
background: linear-gradient(90deg, var(--tblr-info), rgba(var(--tblr-info-rgb), 0.35));
}
.ec-stat-tile,
.ec-mini-kpi {
border: 1px solid var(--ec-card-border);
border-radius: 1rem;
padding: 1rem;
background: rgba(var(--tblr-bg-surface-rgb), 0.7);
}
.ec-stat-tile-primary {
background: rgba(var(--tblr-primary-rgb), 0.08);
}
.ec-stat-tile-success {
background: rgba(var(--tblr-success-rgb), 0.08);
}
.ec-stat-label {
color: var(--tblr-secondary);
font-size: 0.875rem;
margin-bottom: 0.35rem;
}
.ec-stat-value {
font-size: clamp(1.4rem, 2vw, 2rem);
font-weight: 700;
letter-spacing: -0.04em;
}
.ec-mini-kpi {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.ec-mini-kpi span {
color: var(--tblr-secondary);
font-size: 0.875rem;
}
.ec-mini-kpi strong {
font-size: 1.15rem;
}
.login-page-shell {
min-height: 100vh;
background:
@@ -237,9 +319,13 @@ body {
}
.toast-host {
pointer-events: none;
z-index: 1080;
width: min(420px, 100vw);
top: 1rem !important;
}
.toast-host .toast,
.toast-host .btn-close {
pointer-events: auto;
}
.toast-host .toast {
@@ -247,24 +333,6 @@ body {
background-clip: padding-box;
}
.ec-segmented-control {
gap: 0.35rem;
}
.ec-segmented-control .nav-link {
min-width: 3rem;
justify-content: center;
font-weight: 600;
}
.ec-segmented-control .nav-link.active {
box-shadow: inset 0 0 0 1px rgba(var(--tblr-primary-rgb), 0.1);
}
.login-toolbar-controls {
min-width: min(100%, 17rem);
}
.ec-toast {
width: min(420px, calc(100vw - 1.5rem));
border-top: 3px solid transparent;
@@ -299,6 +367,44 @@ body {
display: inline-block;
}
.ec-segmented-control {
gap: 0.35rem;
}
.ec-segmented-control .nav-link {
min-width: 3rem;
justify-content: center;
font-weight: 600;
}
.ec-segmented-control .nav-link.active {
box-shadow: inset 0 0 0 1px rgba(var(--tblr-primary-rgb), 0.1);
}
.login-toolbar-controls {
min-width: min(100%, 17rem);
}
.badge {
color: #fff !important;
}
.badge * {
color: inherit !important;
}
.ec-picker-badge {
color: #fff !important;
background: rgba(var(--tblr-secondary-rgb), 0.16);
border: 1px solid rgba(var(--tblr-secondary-rgb), 0.18);
}
.ec-picker-dot {
min-width: 0.75rem;
min-height: 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.28);
}
.ec-proof-preview {
width: 100%;
max-height: 75vh;
@@ -331,6 +437,61 @@ body {
z-index: 1085;
}
.ec-nav-caption {
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--tblr-secondary);
margin-bottom: 0.5rem;
}
.ec-modal-close {
min-width: 2.75rem;
min-height: 2.75rem;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
flex: 0 0 auto;
cursor: pointer;
position: relative;
z-index: 2;
}
.ec-proof-modal-body {
min-height: min(70vh, 720px);
display: flex;
align-items: center;
justify-content: center;
padding: 0.75rem;
}
.ec-proof-frame {
display: block;
width: 100%;
min-height: 78vh;
border: 0;
border-radius: 0.75rem;
background: rgba(15, 23, 42, 0.04);
}
.ec-scroll-list {
max-height: 36rem;
overflow: auto;
}
.ec-toolbar-toggle {
border: 1px solid var(--ec-card-border);
border-radius: 999px;
padding: 0.125rem;
background: rgba(var(--tblr-bg-surface-rgb), 0.75);
box-shadow: var(--ec-card-shadow);
}
.ec-toolbar-toggle .btn {
border-radius: 999px;
}
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-success,
[data-bs-theme="dark"] .btn-danger,
@@ -344,6 +505,28 @@ body {
filter: none;
}
[data-bs-theme="dark"] .badge {
color: #fff !important;
}
[data-bs-theme="dark"] .ec-picker-badge {
color: #fff !important;
background: rgba(248, 250, 252, 0.12);
border-color: rgba(248, 250, 252, 0.18);
}
[data-bs-theme="dark"] .badge.bg-dark-lt {
color: #f8fafc;
background: rgba(248, 250, 252, 0.14) !important;
}
[data-bs-theme="dark"] .badge.bg-secondary {
color: #f8fafc;
}
[data-bs-theme="dark"] .bg-body-tertiary {
background: rgba(255, 255, 255, 0.03) !important;
}
@media (max-width: 992px) {
.pv-subnav-shell,
@@ -377,6 +560,24 @@ body {
display: none;
}
.pv-subnav {
display: none;
}
.pv-subnav.is-open {
display: block;
}
.pv-subnav .nav-link {
width: 100%;
border-radius: 0.85rem;
}
.pv-subnav-tabs {
flex-direction: column;
width: 100%;
}
.ec-page-header-actions {
justify-content: stretch;
}
@@ -391,199 +592,9 @@ body {
right: 0;
width: 100%;
}
}
.badge {
color: #fff !important;
}
.badge * {
color: inherit !important;
}
.ec-picker-badge {
color: #fff !important;
background: rgba(var(--tblr-secondary-rgb), 0.16);
border: 1px solid rgba(var(--tblr-secondary-rgb), 0.18);
}
.ec-picker-dot {
min-width: 0.75rem;
min-height: 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.28);
}
[data-bs-theme="dark"] .badge {
color: #fff !important;
}
[data-bs-theme="dark"] .ec-picker-badge {
color: #fff !important;
background: rgba(248, 250, 252, 0.12);
border-color: rgba(248, 250, 252, 0.18);
}
[data-bs-theme="dark"] .badge.bg-dark-lt {
color: #f8fafc;
background: rgba(248, 250, 252, 0.14) !important;
}
[data-bs-theme="dark"] .badge.bg-secondary {
color: #f8fafc;
}
.min-w-0 { min-width: 0; }
.ec-nav-caption {
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--tblr-secondary);
margin-bottom: 0.5rem;
}
.ec-footer {
background: var(--ec-navbar-bg);
border-color: var(--ec-card-border) !important;
}
.ec-footer-shell {
min-height: 4rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.9rem 0;
}
.ec-accent-card { position: relative; }
.ec-accent-card::before {
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 4px;
}
.ec-accent-card-primary::before { background: linear-gradient(90deg, var(--tblr-primary), rgba(var(--tblr-primary-rgb), 0.35)); }
.ec-accent-card-success::before { background: linear-gradient(90deg, var(--tblr-success), rgba(var(--tblr-success-rgb), 0.35)); }
.ec-accent-card-info::before { background: linear-gradient(90deg, var(--tblr-info), rgba(var(--tblr-info-rgb), 0.35)); }
.ec-stat-tile, .ec-mini-kpi {
border: 1px solid var(--ec-card-border);
border-radius: 1rem;
padding: 1rem;
background: rgba(var(--tblr-bg-surface-rgb), 0.7);
}
.ec-stat-tile-primary { background: rgba(var(--tblr-primary-rgb), 0.08); }
.ec-stat-tile-success { background: rgba(var(--tblr-success-rgb), 0.08); }
.ec-stat-label {
color: var(--tblr-secondary);
font-size: 0.875rem;
margin-bottom: 0.35rem;
}
.ec-stat-value {
font-size: clamp(1.4rem, 2vw, 2rem);
font-weight: 700;
letter-spacing: -0.04em;
}
.ec-mini-kpi {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.ec-mini-kpi span {
color: var(--tblr-secondary);
font-size: 0.875rem;
}
.ec-mini-kpi strong {
font-size: 1.15rem;
}
[data-bs-theme="dark"] .bg-body-tertiary {
background: rgba(255,255,255,0.03) !important;
}
@media (max-width: 768px) {
.pv-subnav { display: none; }
.pv-subnav.is-open { display: block; }
.pv-subnav .nav-link { width: 100%; border-radius: 0.85rem; }
.pv-subnav-tabs { flex-direction: column; width: 100%; }
.ec-footer-shell { flex-direction: column; align-items: flex-start; }
}
.ec-modal-close {
min-width: 2.75rem;
min-height: 2.75rem;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
flex: 0 0 auto;
}
.ec-proof-modal-body {
min-height: min(70vh, 720px);
display: flex;
align-items: center;
justify-content: center;
padding: 0.75rem;
}
.ec-proof-frame {
width: 100%;
min-height: min(72vh, 760px);
border: 0;
border-radius: 0.75rem;
background: #fff;
}
.ec-scroll-list {
max-height: 36rem;
overflow: auto;
}
.ec-toolbar-toggle {
border: 1px solid var(--ec-card-border);
border-radius: 999px;
padding: 0.125rem;
background: rgba(var(--tblr-bg-surface-rgb), 0.75);
box-shadow: var(--ec-card-shadow);
}
.ec-toolbar-toggle .btn {
border-radius: 999px;
}
.pv-logout-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.375rem;
cursor: pointer;
position: relative;
z-index: 3;
}
.pv-logout-btn__content {
display: inline-flex;
align-items: center;
gap: 0.5rem;
pointer-events: none;
}
.ec-proof-modal-body {
padding: 0.75rem;
}
.ec-proof-frame {
display: block;
width: 100%;
min-height: 78vh;
border: 0;
border-radius: 0.75rem;
background: rgba(15, 23, 42, 0.04);
}
.ec-modal-close {
cursor: pointer;
position: relative;
z-index: 2;
.ec-footer-shell {
flex-direction: column;
align-items: flex-start;
}
}