Files
douyi_guaji_main/webui/css/strict_ui_spacing.css
T

405 lines
7.7 KiB
CSS

/* Strict UI spacing and density pass. Visual-only; no feature changes. */
:root {
--strict-top: 72px;
--strict-status: 132px;
--strict-panel-pad-x: 26px;
--strict-panel-pad-y: 22px;
--strict-row-gap-x: 22px;
--strict-row-gap-y: 10px;
}
:root .brandBlock {
padding: 0 24px !important;
}
:root .header-actions {
gap: 10px !important;
padding: 0 22px !important;
}
:root .actionGroup {
gap: 8px !important;
}
:root .header .btn {
min-height: 38px !important;
padding: 0 14px !important;
}
:root .header .btnIconOnly,
:root .header #btnTheme {
width: 38px !important;
min-width: 38px !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
gap: 14px !important;
height: var(--strict-status) !important;
padding: 14px 22px 12px !important;
}
:root .overviewCard {
grid-template-columns: 58px minmax(0, 1fr) !important;
min-height: 104px !important;
padding: 14px 18px !important;
}
:root .premiumMetricIcon {
width: 50px !important;
height: 50px !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px) !important;
padding: 8px 26px 22px !important;
}
:root .workspaceShell .configRail,
:root .configRail {
height: calc(100vh - var(--strict-top)) !important;
top: var(--strict-top) !important;
padding: 18px 12px !important;
}
:root .sideNav {
gap: 5px !important;
}
:root .sideNav .tabBtn,
:root .tabBtn {
height: 44px !important;
min-height: 44px !important;
}
:root .panel,
:root .card[data-panel],
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: var(--strict-panel-pad-y) var(--strict-panel-pad-x) !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
margin-bottom: 18px !important;
}
:root .panel > .sectionTitle:not(:first-child) {
margin-top: 22px !important;
padding-top: 18px !important;
}
:root .panel > .row {
grid-template-columns: minmax(140px, 0.2fr) minmax(0, 1fr) !important;
gap: var(--strict-row-gap-y) var(--strict-row-gap-x) !important;
padding: 8px 0 !important;
}
:root .row.grid2 {
gap: 14px 22px !important;
}
:root .row.grid3 {
gap: 14px 18px !important;
}
:root .row.grid4 {
gap: 12px 16px !important;
}
:root .row.grid2 .label,
:root .row.grid3 .label,
:root .row.grid4 .label {
margin-bottom: 6px !important;
}
:root .rowActions {
margin-top: 12px !important;
}
:root .btnGroup {
gap: 10px !important;
}
:root .input,
:root .small,
:root .logSearchBox,
:root input[type="text"],
:root input[type="number"],
:root input[type="search"],
:root select {
min-height: 38px !important;
}
:root textarea,
:root .textarea {
min-height: 104px !important;
}
:root #wifiStatus {
margin-top: 8px !important;
}
:root #wifiScanResults {
min-height: 82px !important;
margin-top: 12px !important;
padding: 24px 14px !important;
}
:root .statsGrid,
:root .chartsGrid {
gap: 14px 18px !important;
}
:root .stat {
min-height: 78px !important;
padding: 14px !important;
}
:root .statValue {
margin-top: 6px !important;
}
:root .chartBlock {
padding: 16px !important;
}
:root .chart {
min-height: 190px !important;
}
:root .cardShot .cardTitle,
:root .cardReservations > .cardTitle,
:root .cardLog > .cardTitle {
margin-bottom: 18px !important;
}
:root .preview {
min-height: 560px !important;
}
:root .previewFullscreen {
margin-top: 12px !important;
}
:root #liveShotStatus {
margin-top: 14px !important;
padding-top: 12px !important;
}
:root .reservationsContent {
min-height: 170px !important;
}
:root .reservationsContent > .hint:only-child {
min-height: 150px !important;
}
:root .divider {
height: 16px !important;
}
:root .logHeader {
min-height: 58px !important;
gap: 14px !important;
padding: 14px 16px !important;
}
:root .logHeaderActions {
gap: 10px !important;
}
:root .logHeaderActions .btn.small {
min-height: 36px !important;
padding: 0 14px !important;
}
:root .log {
min-height: clamp(390px, 50vh, 600px) !important;
max-height: clamp(390px, 50vh, 600px) !important;
padding: 16px !important;
}
@media (max-width: 1180px) {
:root {
--strict-rail: 74px;
--strict-status: 198px;
}
:root .overviewCard {
min-height: 88px !important;
}
:root .workspaceShell .configRail,
:root .configRail {
padding: 18px 9px !important;
}
}
@media (max-width: 820px) {
:root {
--strict-panel-pad-x: 12px;
--strict-panel-pad-y: 12px;
}
:root .header-actions {
gap: 6px !important;
padding: 8px !important;
}
:root .primaryActions {
gap: 6px !important;
}
:root .secondaryActions {
grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
gap: 6px !important;
}
:root .header .btn {
min-height: 36px !important;
padding: 0 7px !important;
}
:root .header .secondaryActions .btn {
width: 100% !important;
min-width: 0 !important;
min-height: 36px !important;
padding: 0 !important;
gap: 0 !important;
overflow: hidden !important;
color: transparent !important;
font-size: 0 !important;
text-indent: -9999px !important;
white-space: nowrap !important;
}
:root .header .secondaryActions .btn .btnIcon {
margin: 0 !important;
color: #172033 !important;
text-indent: 0 !important;
}
:root .header .secondaryActions .btn .btnIcon svg {
color: inherit !important;
}
:root .header .secondaryActions #btnSave .btnIcon {
color: #ffffff !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
gap: 7px !important;
padding: 8px !important;
}
:root .overviewCard {
min-height: 82px !important;
padding: 9px 10px !important;
}
:root .overviewValue,
:root .overviewMeta {
display: block !important;
width: 100% !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
overflow-wrap: normal !important;
}
:root .workspaceShell .configRail,
:root .configRail {
top: 94px !important;
height: auto !important;
max-height: none !important;
padding: 6px 8px !important;
overflow-x: auto !important;
overflow-y: hidden !important;
}
:root .sideNav {
gap: 5px !important;
}
:root .sideNav .tabBtn,
:root .tabBtn {
width: 50px !important;
min-width: 50px !important;
height: 40px !important;
min-height: 40px !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
padding: 8px !important;
}
:root .panel,
:root .card[data-panel],
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: var(--strict-panel-pad-y) var(--strict-panel-pad-x) !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
margin-bottom: 12px !important;
}
:root .panel > .sectionTitle:not(:first-child) {
margin-top: 16px !important;
padding-top: 14px !important;
}
:root .panel > .row,
:root .row,
:root .row.grid2,
:root .row.grid3,
:root .row.grid4,
:root .panel[data-panel="license"] .row {
gap: 6px !important;
padding: 7px 0 !important;
}
:root .rowActions {
margin-top: 10px !important;
}
:root #wifiScanResults {
min-height: 70px !important;
margin-top: 10px !important;
padding: 18px 10px !important;
}
:root .preview {
min-height: 500px !important;
}
:root .reservationsContent,
:root .reservationsContent > .hint:only-child {
min-height: 120px !important;
}
:root .logHeader {
gap: 10px !important;
padding: 12px !important;
}
:root .logHeaderActions {
gap: 8px !important;
}
:root .log {
min-height: 320px !important;
max-height: 480px !important;
padding: 12px !important;
}
}