Files
douyi_guaji_main/webui/css/strict_ui_fidelity.css
T

389 lines
8.6 KiB
CSS

/* Strict UI image2 fidelity refinements. */
/* Round 2 fidelity pass: match the generated full-suite UI more closely. */
:root {
--strict-rail: 236px;
--strict-top: 78px;
--strict-status: 152px;
}
:root .brandBlock {
padding: 0 28px !important;
}
:root .title {
font-size: 25px !important;
letter-spacing: 0 !important;
}
:root .header-actions {
gap: 14px !important;
padding: 0 28px !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
gap: 18px !important;
padding: 18px 22px 16px !important;
}
:root .overviewCard {
display: grid !important;
grid-template-columns: 64px minmax(0, 1fr) !important;
grid-template-rows: auto auto auto !important;
align-items: center !important;
justify-items: start !important;
min-height: 118px !important;
padding: 18px 22px !important;
text-align: left !important;
}
:root .premiumMetricIcon {
position: static !important;
left: auto !important;
right: auto !important;
top: auto !important;
bottom: auto !important;
grid-column: 1 !important;
grid-row: 1 / span 3 !important;
width: 54px !important;
height: 54px !important;
margin: 0 !important;
align-self: center !important;
justify-self: start !important;
opacity: 1 !important;
transform: none !important;
}
:root .premiumMetricIcon::before {
width: 25px !important;
height: 25px !important;
}
:root .overviewLabel,
:root .overviewValue,
:root .overviewMeta {
grid-column: 2 !important;
min-width: 0 !important;
max-width: 100% !important;
text-align: left !important;
}
:root .overviewLabel {
align-self: end !important;
color: #111827 !important;
font-size: 20px !important;
font-weight: 850 !important;
}
:root .overviewValue {
margin: 2px 0 0 !important;
color: #64748b !important;
font-size: 15px !important;
font-weight: 650 !important;
}
:root .overviewMeta {
margin: 3px 0 0 !important;
color: var(--strict-teal) !important;
font-size: 16px !important;
font-weight: 780 !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px) !important;
padding: 12px 32px 30px !important;
}
:root .panel,
:root .card[data-panel] {
padding: 28px 32px !important;
border-color: #dce4ee !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
font-size: 23px !important;
line-height: 1.2 !important;
}
:root .panel > .sectionTitle:not(:first-child) {
margin-top: 30px !important;
}
:root .row {
grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) !important;
gap: 12px 26px !important;
}
:root .row.grid2 {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
:root .row.grid3 {
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
:root .row.grid4 {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
align-items: start !important;
gap: 14px 18px !important;
}
:root .row.grid2 > div,
:root .row.grid3 > div,
:root .row.grid4 > div {
min-width: 0 !important;
}
:root .row.grid4 .label {
display: block !important;
margin-bottom: 7px !important;
white-space: nowrap !important;
}
:root .row.grid4 .input {
width: 100% !important;
}
:root .input,
:root .small,
:root .logSearchBox,
:root input[type="text"],
:root input[type="number"],
:root input[type="search"],
:root select,
:root textarea {
min-height: 40px !important;
border-color: #cbd6e2 !important;
}
:root .btnGroup .btn:first-child,
:root .rowActions .btnPrimary,
:root #btnWifiEnable,
:root #btnRunLogSearch,
:root #btnActionsRefresh {
color: #ffffff !important;
border-color: var(--strict-primary) !important;
background: var(--strict-primary) !important;
}
:root #btnWifiDisconnect {
color: var(--strict-danger) !important;
border-color: #fecdd3 !important;
background: #ffffff !important;
}
:root #wifiScanResults {
min-height: 118px !important;
display: block !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] {
padding-top: 24px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle {
display: flex !important;
align-items: center !important;
min-height: 44px !important;
margin: 18px 0 0 !important;
padding: 0 14px !important;
border: 1px solid #dce4ee !important;
border-radius: var(--strict-radius) var(--strict-radius) 0 0 !important;
background: linear-gradient(90deg, #f7fbff, #ffffff) !important;
font-size: 18px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle:first-child {
margin-top: 0 !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row {
padding: 12px 14px !important;
border-right: 1px solid #dce4ee !important;
border-left: 1px solid #dce4ee !important;
background: #ffffff !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row + .row {
border-top: 1px solid #eef2f7 !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row:has(+ .sectionTitle),
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row:last-child {
border-bottom: 1px solid #dce4ee !important;
border-radius: 0 0 var(--strict-radius) var(--strict-radius) !important;
}
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: 28px 32px !important;
}
:root .reservationsContent {
min-height: 260px !important;
}
:root .reservationsContent > .hint:only-child {
display: grid !important;
place-items: center !important;
min-height: 220px !important;
color: #6b7280 !important;
font-size: 17px !important;
}
:root .reservationsList {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}
:root .logHeader {
grid-template-columns: minmax(110px, auto) minmax(0, 1fr) !important;
min-height: 70px !important;
}
:root .logHeaderActions {
flex-wrap: nowrap !important;
}
:root .log {
min-height: clamp(480px, 58vh, 690px) !important;
max-height: clamp(480px, 58vh, 690px) !important;
}
@media (max-width: 1180px) {
:root {
--strict-rail: 78px;
--strict-status: 220px;
}
:root .brandBlock {
padding: 0 !important;
}
:root .title {
font-size: 0 !important;
}
:root .overviewCard {
min-height: 96px !important;
}
}
@media (max-width: 820px) {
:root {
--strict-top: auto;
--strict-status: auto;
}
:root .header-actions {
padding: 10px !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 8px !important;
padding: 10px !important;
}
:root .overviewCard {
grid-template-columns: 1fr !important;
grid-template-rows: auto auto auto !important;
min-height: 78px !important;
padding: 10px 12px !important;
}
:root .premiumMetricIcon {
display: none !important;
}
:root .overviewLabel,
:root .overviewValue,
:root .overviewMeta {
grid-column: 1 !important;
}
:root .overviewLabel {
font-size: 14px !important;
}
:root .overviewValue,
:root .overviewMeta {
font-size: 12px !important;
white-space: normal !important;
overflow-wrap: anywhere !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
padding: 10px !important;
}
:root .panel,
:root .card[data-panel],
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: 14px !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
font-size: 18px !important;
}
:root .row,
:root .row.grid2,
:root .row.grid3,
:root .row.grid4,
:root .panel[data-panel="license"] .row {
grid-template-columns: 1fr !important;
gap: 8px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle {
min-height: 38px !important;
padding: 0 10px !important;
font-size: 15px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row {
padding: 10px !important;
}
:root .logHeader {
grid-template-columns: 1fr !important;
}
:root .logHeaderActions {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
flex-wrap: initial !important;
}
:root .logHeaderActions .logSearchBox {
grid-column: 1 / -1 !important;
}
:root .log {
min-height: 380px !important;
max-height: 520px !important;
}
}
@media (max-width: 430px) {
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
:root .overviewCard {
min-height: 76px !important;
}
}