mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
326 lines
4.4 KiB
CSS
326 lines
4.4 KiB
CSS
.page {
|
|
width: 100%;
|
|
height: 100vh;
|
|
background: #eef3f8;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Arial, sans-serif;
|
|
}
|
|
|
|
.banner {
|
|
height: 11vh;
|
|
min-height: 90px;
|
|
background: linear-gradient(90deg, #1565c0, #2196f3);
|
|
color: white;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 2vw;
|
|
box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.title {
|
|
font-size: clamp(30px, 2vw, 52px);
|
|
font-weight: bold;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.subtitle {
|
|
margin-top: .5vh;
|
|
opacity: .9;
|
|
font-size: clamp(14px, .9vw, 22px);
|
|
}
|
|
|
|
.clockBox {
|
|
text-align: right;
|
|
font-size: clamp(16px, 1vw, 24px);
|
|
}
|
|
|
|
.clock {
|
|
margin-top: .6vh;
|
|
font-size: clamp(28px, 2vw, 46px);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.2vh;
|
|
padding: 1.2vh 1.2vw;
|
|
min-height: 0;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1vw;
|
|
}
|
|
|
|
.card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 1.2vw;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
|
|
}
|
|
|
|
.card p {
|
|
color: #666;
|
|
font-size: clamp(18px, 1vw, 28px);
|
|
}
|
|
|
|
.card strong {
|
|
display: block;
|
|
margin-top: 1vh;
|
|
font-size: clamp(36px, 2.3vw, 64px);
|
|
font-weight: bold;
|
|
color: #111;
|
|
}
|
|
|
|
.normal {
|
|
color: #2ecc71 !important;
|
|
}
|
|
|
|
.abnormal {
|
|
color: #e74c3c !important;
|
|
}
|
|
|
|
.items {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1vw;
|
|
}
|
|
|
|
.item {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 1.2vw;
|
|
text-align: center;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
|
|
}
|
|
|
|
.item h3 {
|
|
font-size: clamp(22px, 1.3vw, 36px);
|
|
}
|
|
|
|
.value {
|
|
margin-top: 1vh;
|
|
color: #1976d2;
|
|
font-size: clamp(48px, 3vw, 84px);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.score {
|
|
margin-top: .5vh;
|
|
color: #666;
|
|
font-size: clamp(18px, 1vw, 26px);
|
|
}
|
|
|
|
.chartGrid {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1vw;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chart {
|
|
background: white;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
|
|
}
|
|
|
|
.chart h3 {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #e6e6e6;
|
|
font-size: clamp(22px, 1.3vw, 34px);
|
|
color: #333;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chartBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 12px;
|
|
}
|
|
|
|
.footer {
|
|
height: 3.5vh;
|
|
min-height: 28px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #666;
|
|
background: white;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
@media(max-width:1100px) {
|
|
.cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.items {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.chartGrid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.page {
|
|
overflow: auto;
|
|
}
|
|
}
|
|
|
|
@media(max-width:768px) {
|
|
.page {
|
|
height: auto;
|
|
min-height: 100vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.banner {
|
|
height: auto;
|
|
min-height: 70px;
|
|
padding: 12px 16px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.title {
|
|
font-size: clamp(24px, 5vw, 32px);
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.subtitle {
|
|
margin-top: 4px;
|
|
font-size: clamp(12px, 3.5vw, 16px);
|
|
}
|
|
|
|
.clockBox {
|
|
font-size: clamp(12px, 3vw, 16px);
|
|
}
|
|
|
|
.clock {
|
|
margin-top: 2px;
|
|
font-size: clamp(20px, 4vw, 28px);
|
|
}
|
|
|
|
.container {
|
|
gap: 12px;
|
|
padding: 12px 12px;
|
|
}
|
|
|
|
.cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.card {
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.card p {
|
|
font-size: clamp(14px, 3.5vw, 18px);
|
|
}
|
|
|
|
.card strong {
|
|
margin-top: 8px;
|
|
font-size: clamp(24px, 5vw, 36px);
|
|
}
|
|
|
|
.items {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.item {
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.item h3 {
|
|
font-size: clamp(16px, 4vw, 22px);
|
|
}
|
|
|
|
.value {
|
|
margin-top: 8px;
|
|
font-size: clamp(32px, 7vw, 56px);
|
|
}
|
|
|
|
.score {
|
|
margin-top: 4px;
|
|
font-size: clamp(12px, 3vw, 16px);
|
|
}
|
|
|
|
.chartGrid {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
flex: none;
|
|
height: auto;
|
|
}
|
|
|
|
.chart {
|
|
min-height: 300px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.chart h3 {
|
|
padding: 12px 16px;
|
|
font-size: clamp(14px, 4vw, 18px);
|
|
}
|
|
|
|
.chartBody {
|
|
padding: 8px;
|
|
height: 250px;
|
|
}
|
|
|
|
.footer {
|
|
height: auto;
|
|
min-height: 40px;
|
|
padding: 12px;
|
|
font-size: clamp(12px, 3vw, 14px);
|
|
}
|
|
}
|
|
|
|
@media(max-width:480px) {
|
|
.cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.banner {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.title {
|
|
font-size: clamp(20px, 5vw, 26px);
|
|
}
|
|
|
|
.container {
|
|
padding: 10px 10px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card {
|
|
padding: 10px;
|
|
}
|
|
|
|
.card p {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.card strong {
|
|
font-size: clamp(20px, 5vw, 28px);
|
|
}
|
|
|
|
.chartBody {
|
|
height: 200px;
|
|
}
|
|
} |