Files
douyi_guaji_main/webui/css/strict_ui_typography.css
T

339 lines
8.5 KiB
CSS

/* Strict UI typography and refinement pass. Visual-only; no feature changes. */
:root {
--strict-type-brand: 24px;
--strict-type-action: 14px;
--strict-type-nav: 14px;
--strict-type-metric-title: 18px;
--strict-type-metric-body: 13px;
--strict-type-metric-value: 15px;
--strict-type-panel-title: 20px;
--strict-type-section: 16px;
--strict-type-label: 13px;
--strict-type-control: 13px;
--strict-type-hint: 12px;
--strict-type-stat: 22px;
--strict-type-log: 13px;
--strict-weight-title: 760;
--strict-weight-strong: 720;
--strict-weight-body: 520;
--strict-shadow-card: 0 8px 24px rgba(15, 23, 42, 0.055);
--strict-shadow-panel: 0 14px 38px rgba(15, 23, 42, 0.06);
}
html,
body {
-webkit-font-smoothing: antialiased;
text-rendering: geometricPrecision;
}
body {
background:
linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96)),
linear-gradient(90deg, rgba(15, 159, 142, 0.025), transparent 42%),
#f6f8fb !important;
}
.title,
:root .title {
color: #0b1220 !important;
font-size: var(--strict-type-brand) !important;
font-weight: 780 !important;
line-height: 1 !important;
letter-spacing: 0 !important;
}
.header {
background: rgba(255, 255, 255, 0.96) !important;
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}
.header .btn,
:root .header .btn {
min-height: 40px !important;
padding: 0 15px !important;
border-color: #d7e0ea !important;
border-radius: 8px !important;
color: #172033 !important;
background: linear-gradient(180deg, #ffffff, #f9fbfd) !important;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
font-size: var(--strict-type-action) !important;
font-weight: var(--strict-weight-strong) !important;
line-height: 1 !important;
}
.header .btn:hover {
border-color: #b9c7d8 !important;
background: #ffffff !important;
box-shadow: var(--strict-shadow-card) !important;
}
.header #btnStart,
.header .btnPrimary,
:root .header #btnStart,
:root .header .btnPrimary {
color: #ffffff !important;
border-color: #2563eb !important;
background: linear-gradient(180deg, #2f6df3, #245fe4) !important;
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2) !important;
}
.header #btnStop,
.header #btnForceStop {
color: #dc2626 !important;
border-color: #fecdd3 !important;
background: linear-gradient(180deg, #ffffff, #fff8f9) !important;
}
.configRail,
.workspaceShell .configRail {
background: rgba(255, 255, 255, 0.9) !important;
}
.sideNav .tabBtn,
.tabBtn {
min-height: 46px !important;
height: 46px !important;
color: #334155 !important;
font-size: var(--strict-type-nav) !important;
font-weight: var(--strict-weight-strong) !important;
}
.sideNav .tabText,
.tabText {
font-size: var(--strict-type-nav) !important;
font-weight: var(--strict-weight-strong) !important;
line-height: 1 !important;
}
.sideNav .tabBtn.active,
.tabBtn.active,
.tabBtn[aria-selected="true"] {
color: #1d4ed8 !important;
border-color: #dbe7ff !important;
background: linear-gradient(90deg, #edf4ff, #f7faff) !important;
}
.overviewCard,
:root .overviewCard {
min-height: 112px !important;
border-color: #dce4ee !important;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.96)),
#ffffff !important;
box-shadow: var(--strict-shadow-card) !important;
}
.overviewLabel,
:root .overviewLabel {
color: #101828 !important;
font-size: var(--strict-type-metric-title) !important;
font-weight: var(--strict-weight-title) !important;
line-height: 1.18 !important;
}
.overviewValue,
:root .overviewValue {
color: #64748b !important;
font-size: var(--strict-type-metric-body) !important;
font-weight: var(--strict-weight-body) !important;
line-height: 1.28 !important;
}
.overviewMeta,
:root .overviewMeta {
color: #0f9f8e !important;
font-size: var(--strict-type-metric-value) !important;
font-weight: var(--strict-weight-strong) !important;
line-height: 1.22 !important;
}
.premiumMetricIcon,
:root .premiumMetricIcon {
width: 52px !important;
height: 52px !important;
background: linear-gradient(145deg, #12b6a6, #0c9387) !important;
box-shadow: 0 10px 24px rgba(15, 159, 142, 0.16) !important;
}
.panel,
.card[data-panel],
:root .panel,
:root .card[data-panel] {
border-color: #dce4ee !important;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 254, 0.98)),
#ffffff !important;
box-shadow: var(--strict-shadow-panel) !important;
}
.panel > .sectionTitle,
.cardTitle,
.logTitle,
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
color: #101828 !important;
font-size: var(--strict-type-panel-title) !important;
font-weight: var(--strict-weight-title) !important;
line-height: 1.22 !important;
}
:root .panel > .sectionTitle:not(:first-child),
.sectionTitle:not(:first-child) {
border-top-color: #e7edf4 !important;
}
.label,
:root .label,
:root[data-premium-panel="debug"] .panel[data-panel="debug"] .label {
color: #263241 !important;
font-size: var(--strict-type-label) !important;
font-weight: var(--strict-weight-strong) !important;
line-height: 1.35 !important;
}
.hint,
:root .hint,
:root[data-premium-panel="debug"] .panel[data-panel="debug"] .hint {
color: #718096 !important;
font-size: var(--strict-type-hint) !important;
font-weight: 450 !important;
line-height: 1.55 !important;
}
.input,
.small,
.logSearchBox,
input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea,
:root .input,
:root .small,
:root .logSearchBox,
:root input[type="text"],
:root input[type="number"],
:root input[type="search"],
:root select,
:root textarea,
:root[data-premium-panel="debug"] .panel[data-panel="debug"] .input {
min-height: 38px !important;
color: #1f2937 !important;
border-color: #cfd9e6 !important;
background: #ffffff !important;
font-size: var(--strict-type-control) !important;
font-weight: var(--strict-weight-body) !important;
line-height: 1.35 !important;
}
.check,
:root .check,
:root[data-premium-panel="debug"] .panel[data-panel="debug"] .check {
color: #334155 !important;
font-size: var(--strict-type-control) !important;
font-weight: var(--strict-weight-body) !important;
line-height: 1.35 !important;
}
.statLabel,
:root[data-premium-panel="stats"] .statLabel {
color: #667085 !important;
font-size: 12px !important;
font-weight: var(--strict-weight-strong) !important;
line-height: 1.35 !important;
}
.statValue,
:root[data-premium-panel="stats"] .statValue,
:root[data-premium-panel="stats"] .statHero .statValue {
color: #111827 !important;
font-size: var(--strict-type-stat) !important;
font-weight: 780 !important;
line-height: 1.12 !important;
}
.chartTitle,
:root[data-premium-panel="stats"] .chartTitle {
color: #1f2937 !important;
font-size: 14px !important;
font-weight: var(--strict-weight-strong) !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle {
min-height: 40px !important;
color: #111827 !important;
font-size: var(--strict-type-section) !important;
font-weight: var(--strict-weight-title) !important;
background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}
.logHeader {
background:
linear-gradient(180deg, rgba(248, 252, 250, 0.98), rgba(241, 248, 246, 0.98)),
#f8fbfa !important;
}
.logTitle,
:root .logTitle {
font-size: var(--strict-type-panel-title) !important;
}
.log,
:root .log {
font-size: var(--strict-type-log) !important;
font-weight: 450 !important;
line-height: 1.62 !important;
}
.appFooter {
color: #64748b !important;
font-size: 12px !important;
font-weight: 500 !important;
}
@media (max-width: 820px) {
:root {
--strict-type-action: 13px;
--strict-type-metric-title: 13px;
--strict-type-metric-body: 12px;
--strict-type-metric-value: 12px;
--strict-type-panel-title: 17px;
--strict-type-section: 15px;
--strict-type-label: 12px;
--strict-type-control: 12px;
--strict-type-hint: 11px;
--strict-type-stat: 20px;
}
.header .btn,
:root .header .btn {
min-height: 38px !important;
}
.overviewCard,
:root .overviewCard {
min-height: 74px !important;
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055) !important;
}
.sideNav .tabBtn,
.tabBtn {
height: 42px !important;
min-height: 42px !important;
}
.secondaryActions .btn,
:root .header .secondaryActions .btn,
.secondaryActions #btnLoad,
.secondaryActions #btnSave,
.secondaryActions #btnTheme {
font-size: 0 !important;
gap: 0 !important;
}
.secondaryActions .btn .btnIcon {
margin: 0 !important;
}
}