Files
foodlinkk-command-center/cockpit/static/css/vertical-tabs.css
T
Aissa ff22498dcd Improve cockpit typography for readability across all pages.
Raise base font to 16px, enlarge sidebar, buttons, tables and headings, add Inter font and global typography layer.
2026-07-19 18:49:52 +00:00

279 lines
5.8 KiB
CSS

/* Vertical tabs — clean module nav + page tabs */
.vtabs-layout {
display: flex !important;
flex-direction: row !important;
align-items: flex-start !important;
gap: 1rem;
width: 100%;
min-height: 40vh;
--vt-color: #0ea5e9;
--vt-panel-bg: rgba(10, 14, 20, 0.85);
}
.vtabs-layout > .vtabs-nav {
flex: 0 0 220px;
width: 220px;
max-width: 220px;
}
.vtabs-layout > .vtabs-content {
flex: 1 1 0;
min-width: 0;
}
@media (max-width: 639px) {
.vtabs-layout { flex-direction: column !important; }
.vtabs-layout > .vtabs-nav { flex: 1 1 auto; width: 100%; max-width: none; }
}
.vtabs-nav {
position: sticky;
top: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.1rem;
padding: 0.65rem;
border-radius: 12px;
background: rgba(10, 14, 20, 0.9);
border: 1px solid rgba(148, 163, 184, 0.12);
overflow: hidden;
}
.vtabs-nav::before {
content: '';
position: absolute;
left: 0;
top: var(--vt-indicator-top, 0);
width: 3px;
height: var(--vt-indicator-h, 36px);
background: var(--vt-color);
border-radius: 0 3px 3px 0;
transition: top 0.25s ease, height 0.2s ease;
}
.vtabs-nav-header {
padding: 0 0.35rem 0.5rem;
margin-bottom: 0.25rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.vtabs-nav-header strong {
font-size: 0.65rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #94a3b8;
}
.vtab-btn {
position: relative;
display: flex;
align-items: center;
gap: 0.55rem;
width: 100%;
padding: 0.55rem 0.6rem;
border: 1px solid transparent;
border-radius: 8px;
background: transparent;
color: #94a3b8;
font-size: 0.9375rem;
font-weight: 500;
text-align: left;
cursor: pointer;
text-decoration: none;
--tab-accent: var(--vt-color, #0ea5e9);
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vtab-btn::before { display: none; }
.vtab-icon,
.ei-vtab-icon-wrap {
width: 30px;
height: 30px;
flex-shrink: 0;
border-radius: 7px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.95rem;
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(148, 163, 184, 0.1);
}
.vtab-btn:hover {
background: rgba(30, 41, 59, 0.5);
color: #e2e8f0;
transform: none;
}
.vtab-btn.active {
background: rgba(14, 165, 233, 0.08);
border-color: rgba(14, 165, 233, 0.2);
color: #f1f5f9;
text-shadow: none;
box-shadow: none;
}
.vtab-btn.active .vtab-icon,
.vtab-btn.active .ei-vtab-icon-wrap {
border-color: var(--tab-accent);
background: rgba(14, 165, 233, 0.12);
box-shadow: none;
transform: none;
}
.vtab-badge,
.ei-vtab-badge {
margin-left: auto;
font-size: 0.65rem;
font-weight: 600;
padding: 0.1rem 0.4rem;
border-radius: 999px;
background: rgba(148, 163, 184, 0.15);
color: #cbd5e1;
border: none;
min-width: 1.25rem;
text-align: center;
}
.vtab-btn.active .ei-vtab-badge,
.vtab-btn.active .vtab-badge {
background: rgba(14, 165, 233, 0.2);
color: #7dd3fc;
animation: none;
}
/* Rich tabs (Wereldexport) */
.vtab-btn.vtab-btn-rich {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.5rem;
padding: 0.55rem 0.6rem;
}
.ei-vtab-text { min-width: 0; }
.ei-vtab-label {
display: block;
font-size: 0.8rem;
font-weight: 500;
color: inherit;
line-height: 1.2;
}
.ei-vtab-sub {
display: block;
font-size: 0.75rem;
color: #64748b;
margin-top: 0.1rem;
}
.ei-vtab-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.15rem;
}
.ei-vtab-key {
font-size: 0.6875rem;
color: #475569;
font-family: ui-monospace, monospace;
}
.vtabs-content { min-width: 0; }
.vt-tab-panel,
.ei-tab-panel {
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.12);
background: var(--vt-panel-bg);
overflow: hidden;
}
.vt-tab-panel-head,
.ei-tab-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
background: rgba(15, 23, 42, 0.4);
}
.vt-tab-panel-head h2,
.ei-tab-panel-head h2 {
margin: 0;
font-size: 0.92rem;
font-weight: 600;
color: #e2e8f0;
}
.vt-tab-panel-head p,
.ei-tab-panel-head p {
margin: 0.1rem 0 0;
font-size: 0.8125rem;
color: #64748b;
}
.vt-tab-panel-body,
.ei-tab-panel-body { padding: 1rem; }
/* Retail side-nav */
.side-nav {
position: sticky;
top: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.1rem;
padding: 0.65rem;
border-radius: 12px;
background: rgba(10, 14, 20, 0.9);
border: 1px solid rgba(148, 163, 184, 0.12);
}
.side-nav-btn {
display: flex;
align-items: center;
gap: 0.55rem;
width: 100%;
padding: 0.55rem 0.6rem;
border: 1px solid transparent;
border-radius: 8px;
background: transparent;
color: #94a3b8;
font-size: 0.8rem;
font-weight: 500;
text-align: left;
cursor: pointer;
text-decoration: none;
}
.side-nav-btn:hover { background: rgba(30, 41, 59, 0.5); color: #e2e8f0; }
.side-nav-btn.active {
background: rgba(0, 102, 204, 0.1);
border-color: rgba(0, 102, 204, 0.3);
color: #fff;
}
.app-main { min-width: 0; }
.app-topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.65rem 1.25rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
background: rgba(8, 12, 18, 0.6);
}
.app-clock {
font-family: ui-monospace, monospace;
font-size: 0.85rem;
color: #94a3b8;
}
.app-clock strong { color: #e2e8f0; }
.main-topnav { padding: 1rem 1.25rem; }
@media (max-width: 639px) {
.vtabs-nav {
position: relative;
top: 0;
flex-direction: row;
overflow-x: auto;
flex-wrap: nowrap;
padding: 0.45rem;
}
.vtabs-nav::before { display: none; }
.vtabs-nav-header { display: none; }
.vtab-btn { flex: 0 0 auto; min-width: 64px; }
.vtab-btn.vtab-btn-rich .ei-vtab-text,
.vtab-btn.vtab-btn-rich .ei-vtab-key { display: none; }
}