feat(frontend): less elements height

This commit is contained in:
thek4n 2026-06-07 19:41:04 +03:00
parent 373152e7a6
commit ea758442e8

View File

@ -34,7 +34,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 20px; padding: 12px;
} }
.dashboard { .dashboard {
@ -42,9 +42,9 @@
width: 100%; width: 100%;
background: rgba(18, 22, 30, 0.75); background: rgba(18, 22, 30, 0.75);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
border-radius: 72px 72px 56px 56px; border-radius: 60px 60px 48px 48px;
box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
padding: 28px 24px 38px; padding: 18px 20px 24px;
transition: all 0.2s ease; transition: all 0.2s ease;
border: 1px solid rgba(71, 85, 105, 0.5); border: 1px solid rgba(71, 85, 105, 0.5);
} }
@ -52,14 +52,14 @@
.gauge-container { .gauge-container {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 10px 0 15px; margin: 5px 0 8px;
filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
} }
canvas { canvas {
width: 100%; width: 100%;
height: auto; height: auto;
max-width: 480px; max-width: 460px;
aspect-ratio: 1 / 1; aspect-ratio: 1 / 1;
background: #131a24; background: #131a24;
border-radius: 50%; border-radius: 50%;
@ -72,19 +72,19 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 20px; gap: 16px;
margin: -5px auto 20px; margin: 0 auto 12px;
} }
.pressure-value { .pressure-value {
text-align: center; text-align: center;
font-size: 2.1rem; font-size: 1.9rem;
font-weight: 700; font-weight: 700;
margin: 0; margin: 0;
color: #eef4ff; color: #eef4ff;
background: rgba(0, 0, 0, 0.65); background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(12px); backdrop-filter: blur(12px);
padding: 8px 32px; padding: 6px 24px;
border-radius: 80px; border-radius: 80px;
display: inline-block; display: inline-block;
width: auto; width: auto;
@ -101,15 +101,15 @@
.sliders-panel { .sliders-panel {
background: #0e121cb3; background: #0e121cb3;
backdrop-filter: blur(12px); backdrop-filter: blur(12px);
border-radius: 48px; border-radius: 44px;
padding: 28px 24px 24px; padding: 18px 20px 16px;
margin-top: 24px; margin-top: 16px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(72, 92, 118, 0.5); border: 1px solid rgba(72, 92, 118, 0.5);
} }
.slider-group { .slider-group {
margin-bottom: 32px; margin-bottom: 24px;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
@ -118,8 +118,8 @@
justify-content: space-between; justify-content: space-between;
font-weight: 600; font-weight: 600;
color: #e0eafc; color: #e0eafc;
font-size: 1.2rem; font-size: 1.1rem;
margin-bottom: 12px; margin-bottom: 8px;
letter-spacing: 0.3px; letter-spacing: 0.3px;
text-shadow: 0 1px 1px black; text-shadow: 0 1px 1px black;
} }
@ -127,9 +127,9 @@
.slider-group span { .slider-group span {
background: #1e2f3f; background: #1e2f3f;
color: #c0e0ff; color: #c0e0ff;
padding: 4px 16px; padding: 3px 14px;
border-radius: 40px; border-radius: 40px;
font-size: 0.9rem; font-size: 0.85rem;
font-weight: 500; font-weight: 500;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.1);
} }
@ -197,7 +197,7 @@
.threshold-hint { .threshold-hint {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 10px; margin-top: 8px;
font-size: 0.7rem; font-size: 0.7rem;
color: #94a9c9; color: #94a9c9;
font-weight: 500; font-weight: 500;
@ -207,14 +207,14 @@
width: 100%; width: 100%;
background: linear-gradient(95deg, #1f5a3a, #2b7a55); background: linear-gradient(95deg, #1f5a3a, #2b7a55);
border: none; border: none;
padding: 16px; padding: 12px;
font-size: 1.35rem; font-size: 1.25rem;
font-weight: bold; font-weight: bold;
color: #f0faf5; color: #f0faf5;
border-radius: 60px; border-radius: 60px;
margin-top: 28px; margin-top: 18px;
cursor: pointer; cursor: pointer;
box-shadow: 0 6px 0 #0d3522; box-shadow: 0 5px 0 #0d3522;
transition: transform 0.08s, box-shadow 0.08s, background 0.1s; transition: transform 0.08s, box-shadow 0.08s, background 0.1s;
letter-spacing: 1px; letter-spacing: 1px;
backdrop-filter: blur(2px); backdrop-filter: blur(2px);
@ -224,7 +224,7 @@
.save-btn:active { .save-btn:active {
transform: translateY(3px); transform: translateY(3px);
box-shadow: 0 3px 0 #0d3522; box-shadow: 0 2px 0 #0d3522;
background: linear-gradient(95deg, #154d33, #216a48); background: linear-gradient(95deg, #154d33, #216a48);
} }
@ -235,9 +235,9 @@
color: #c2f0d6; color: #c2f0d6;
text-align: center; text-align: center;
border-radius: 60px; border-radius: 60px;
padding: 12px 28px; padding: 10px 24px;
position: fixed; position: fixed;
bottom: 32px; bottom: 24px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
opacity: 0; opacity: 0;
@ -258,11 +258,16 @@
} }
@media (max-width: 550px) { @media (max-width: 550px) {
.dashboard { padding: 20px 16px 30px; } .dashboard { padding: 14px 14px 20px; }
.slider-group label { font-size: 1rem; } .slider-group label { font-size: 0.95rem; }
.save-btn { font-size: 1.2rem; } .save-btn { font-size: 1.1rem; padding: 10px; }
.pressure-value { font-size: 1.6rem; } .pressure-value { font-size: 1.5rem; padding: 4px 18px; }
.toast-msg { white-space: nowrap; font-size: 0.85rem; padding: 8px 20px;} .toast-msg { white-space: nowrap; font-size: 0.8rem; padding: 6px 18px;}
.sliders-panel { padding: 14px 16px 12px; margin-top: 12px; }
.slider-group { margin-bottom: 18px; }
.gauge-container { margin: 2px 0 5px; }
.pressure-row { gap: 12px; margin-bottom: 8px; }
canvas { max-width: 380px; }
} }
.pump-state { .pump-state {
@ -303,8 +308,8 @@
footer { footer {
text-align: center; text-align: center;
font-size: 0.7rem; font-size: 0.65rem;
margin-top: 22px; margin-top: 14px;
color: #6f8aae; color: #6f8aae;
opacity: 0.7; opacity: 0.7;
font-weight: 500; font-weight: 500;