修复单项目公示屏布局重叠
问题:/display/YYHHC 在 1280x720 下主卡片、右侧预计和最近叫号区域错位重叠。 实现:重置主内容网格行,统一底栏高度与预留空间,优化侧栏字号和窄屏页头;完成三种视口及前端全量验证。
This commit is contained in:
@@ -3850,17 +3850,24 @@ tbody tr:hover {
|
||||
.display-clock { flex-direction: row; gap: 24px; align-items: center; }
|
||||
.display-clock strong { color: #063b20; font-size: clamp(1.7rem, 2.8vw, 3rem); }
|
||||
.display-status { border: 0; background: transparent; color: #086333; font-size: 1.2rem; }
|
||||
.display-page:not(.display-page--state) { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(280px, .95fr); grid-template-rows: auto 1fr auto; gap: 16px 20px; }
|
||||
.display-page:not(.display-page--state) {
|
||||
--display-history-height: clamp(136px, 20vh, 170px);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 2.35fr) minmax(280px, .95fr);
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: 16px 20px;
|
||||
padding-bottom: calc(var(--display-history-height) + 34px);
|
||||
}
|
||||
.display-page .display-header { grid-column: 1 / -1; }
|
||||
.display-current { grid-column: 1; min-height: 520px; border: 2px solid #075d31; border-radius: 16px; padding: 0 54px 28px; background: rgba(255,255,255,.9); box-shadow: none; }
|
||||
.display-current > p { margin: 0 -54px 32px; border-radius: 13px 13px 0 0; padding: 24px 50px; background: linear-gradient(105deg,#064c26,#076735); color: #fff; font-size: clamp(1.8rem,3vw,3.5rem); font-weight: 900; }
|
||||
.display-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 24px 54px; min-height: 300px; }
|
||||
.display-current { grid-column: 1; grid-row: 2; min-height: 0; border: 2px solid #075d31; border-radius: 16px; padding: 0 54px clamp(16px, 2.6vh, 28px); background: rgba(255,255,255,.9); box-shadow: none; }
|
||||
.display-current > p { margin: 0 -54px clamp(12px, 2vh, 32px); border-radius: 13px 13px 0 0; padding: clamp(14px, 2.2vh, 24px) 50px; background: linear-gradient(105deg,#064c26,#076735); color: #fff; font-size: clamp(1.8rem,3vw,3.5rem); font-weight: 900; }
|
||||
.display-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 24px 54px; min-height: clamp(180px, 30vh, 300px); }
|
||||
.display-numbers strong { color: #064624; font-size: clamp(4.4rem,7.3vw,8.5rem); line-height: .9; letter-spacing: .02em; text-shadow: none; }
|
||||
.display-current__meta { justify-content: center; gap: 28px; border-top: 1px solid #b9cec0; padding-top: 24px; color: #173423; font-size: 1.35rem; }
|
||||
.display-secondary { grid-column: 2; display: block; }
|
||||
.display-current__meta { justify-content: center; gap: 28px; margin-top: clamp(12px, 2vh, 24px); border-top: 1px solid #b9cec0; padding-top: clamp(12px, 2vh, 24px); color: #173423; font-size: clamp(1rem, 1.5vw, 1.35rem); }
|
||||
.display-secondary { grid-column: 2; grid-row: 2; min-height: 0; display: block; }
|
||||
.display-queue-summary { min-height: 100%; border: 1px solid #c6d2ca; border-radius: 16px; padding: 28px 34px; background: rgba(255,255,255,.86); }
|
||||
.display-forecast__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d3ddd6; padding-bottom: 24px; }
|
||||
.display-forecast__heading h2 { margin: 0; font-size: 1.7rem; }
|
||||
.display-forecast__heading h2 { margin: 0; color: #0c2b1a; font-size: 1.7rem; }
|
||||
.display-forecast__heading span { color: #607068; font-size: 1.1rem; font-weight: 800; }
|
||||
.display-forecast { display: grid; margin: 0; padding: 0; list-style: none; }
|
||||
.display-forecast li { display: grid; grid-template-columns: minmax(0,1.35fr) auto; align-items: baseline; gap: 18px; border-bottom: 1px solid #d3ddd6; padding: clamp(20px,3vh,34px) 0; animation: display-forecast-in .45s ease both; }
|
||||
@@ -3874,8 +3881,7 @@ tbody tr:hover {
|
||||
.display-queue-summary footer { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; border-top: 0; margin-top: 20px; padding-top: 0; color: #53635a; }
|
||||
.display-queue-summary footer strong { color: #07512b; font-size: clamp(1.1rem,1.5vw,1.45rem); }
|
||||
.display-history { grid-column: 1 / -1; }
|
||||
.display-secondary .display-history { position: fixed; right: 24px; bottom: 18px; left: 24px; height: 170px; border: 1px solid #c9d4cd; border-radius: 14px; padding: 18px 24px; background: rgba(255,255,255,.94); }
|
||||
.display-page:not(.display-page--state) { padding-bottom: 204px; }
|
||||
.display-secondary .display-history { position: fixed; right: 24px; bottom: 18px; left: 24px; height: var(--display-history-height); border: 1px solid #c9d4cd; border-radius: 14px; padding: 18px 24px; background: rgba(255,255,255,.94); }
|
||||
.display-history h2 { margin-bottom: 12px; color: #0c2b1a; font-size: 1.35rem; }
|
||||
.display-history ol { display: grid; grid-template-columns: repeat(5,1fr); }
|
||||
.display-history li { display: grid; justify-items: center; gap: 6px; border-right: 1px solid #d6dfd9; }
|
||||
@@ -3886,6 +3892,13 @@ tbody tr:hover {
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.display-page:not(.display-page--state) { display: block; padding: 14px; }
|
||||
.display-header { display: grid; min-height: 0; gap: 12px; padding: 0 0 12px; }
|
||||
.display-brand { justify-content: center; gap: 14px; }
|
||||
.display-brand img { width: 112px; height: 48px; }
|
||||
.display-brand h1 { padding-left: 14px; font-size: 1.35rem; }
|
||||
.display-clock { width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
|
||||
.display-clock strong { font-size: 1.8rem; }
|
||||
.display-clock time { padding-left: 14px; font-size: .9rem; }
|
||||
.display-current { min-height: auto; padding: 0 18px 22px; }
|
||||
.display-current > p { margin: 0 -18px 22px; padding: 18px; }
|
||||
.display-secondary { display: grid; gap: 14px; margin-top: 14px; }
|
||||
@@ -3984,9 +3997,10 @@ body { min-width: 0; }
|
||||
/* Public display forecast overrides the legacy queue-summary metrics. */
|
||||
.display-queue-summary .display-forecast { display: grid; margin: 0; padding: 0; list-style: none; }
|
||||
.display-queue-summary .display-forecast li { display: grid; grid-template-columns: minmax(0, 1.35fr) auto; align-items: baseline; gap: 18px; border-bottom: 1px solid #d3ddd6; padding: clamp(20px, 3vh, 34px) 0; }
|
||||
.display-queue-summary .display-forecast li strong { color: #063f22; font-size: clamp(1.7rem, 3vw, 3.4rem); letter-spacing: .02em; }
|
||||
.display-queue-summary .display-forecast li span { color: #075d31; font-size: clamp(1.35rem, 2vw, 2.2rem); font-weight: 900; white-space: nowrap; }
|
||||
.display-queue-summary footer { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; border-top: 0; margin-top: 20px; padding-top: 0; }
|
||||
.display-queue-summary .display-forecast li strong { color: #063f22; font-size: clamp(1.55rem, 2.2vw, 2.65rem); letter-spacing: .02em; }
|
||||
.display-queue-summary .display-forecast li span { color: #075d31; font-size: clamp(1.2rem, 1.5vw, 1.65rem); font-weight: 900; white-space: nowrap; }
|
||||
.display-queue-summary footer { display: grid; gap: 6px; align-items: start; border-top: 0; margin-top: 20px; padding-top: 0; }
|
||||
.display-queue-summary footer span { white-space: nowrap; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.display-queue-summary .display-forecast li { grid-template-columns: 1fr auto; }
|
||||
|
||||
Reference in New Issue
Block a user