как мне переместить группу из трех контейнеров в левом верхнем углу карты немного вниз по высоте? и как мне установить 3 нижних контейнера одинаковой высоты?
Я отметил красным эллипсом 3 контейнера в левом верхнем углу, которые я хочу немного переместить под заголовок. первый немного выше заголовка.
и отмечен зеленым два контейнера, которые я хочу, чтобы их высота была точно такой же, как высота левого контейнера Rainfall.
Я пытался добавить эту часть в конец кода файла CSS, но это ничего не изменило.
Код: Выделить всё
/* ================================
FORCE SAME VISUAL HEIGHT
================================ */
/* גובה אחיד לשורת בקרה */
.legend,
.player,
#opacityCard {
padding-top: 8px;
padding-bottom: 8px;
}
/* יישור אנכי של כל התוכן */
.legend,
.player,
#opacityCard {
display: flex;
align-items: center;
}
/* legend נשאר כמות שהוא */
.legend {
flex-direction: column;
align-items: flex-start;
}
/* player – שורה אחת */
.player {
height: 54px; /* 🎯 זה הגובה הוויזואלי הקובע */
}
/* opacity card – התאמה ל-player */
#opacityCard {
height: 54px; /* 🎯 אותו גובה בדיוק */
}
/* הסליידרים עצמם – בלי שינוי */
#frameSlider,
#opacitySlider {
height: 22px;
}
Код: Выделить всё
/* Reset default margins and padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body takes full viewport height */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Header styling */
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 15px 20px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1000;
}
.header h1 {
font-size: 28px;
margin-bottom: 5px;
font-weight: 600;
}
.header p {
font-size: 14px;
opacity: 0.9;
}
/* Map container */
#map {
flex: 1;
width: 100%;
background: #e0e0e0;
position: relative;
}
/* Footer */
.footer {
background: #2c3e50;
color: white;
padding: 12px 20px;
text-align: center;
font-size: 13px;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
z-index: 1000;
}
.footer p { margin: 0; }
.footer a { color: #3498db; }
/* Leaflet attribution */
.leaflet-control-attribution {
font-size: 10px;
background: rgba(255,255,255,0.8);
}
/* ================================
HUD
================================ */
.hud {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 1100;
}
.hud-card, .legend, .player {
pointer-events: auto;
}
.hud-card {
position: absolute;
left: 15px;
background: rgba(15, 15, 20, 0.82);
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(6px);
color: white;
padding: 10px 12px;
border-radius: 12px;
min-width: 190px;
box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
#clockCard { top: 85px; }
#updateCard { top: 185px; }
#layerCard { top: 330px; }
#opacityCard {
right: 15px;
left: auto;
bottom: 105px;
min-width: 220px;
}
/* ================================
LEGEND (mm/h) – הגובה הקובע
================================ */
.legend {
position: absolute;
left: 15px;
bottom: 95px;
background: rgba(15, 15, 20, 0.82);
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(6px);
color: white;
padding: 10px 12px;
border-radius: 12px;
}
.legend-title {
font-size: 12px;
opacity: 0.85;
margin-bottom: 8px;
}
.legend-row {
display: flex;
gap: 6px;
}
.sw {
height: 22px; /* 🎯 זה הגובה שאליו כולם מיושרים */
min-width: 40px;
padding: 0 8px;
border-radius: 8px;
color: #111;
font-size: 12px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
}
/* ================================
PLAYER (Frames Slider)
================================ */
.player {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 18px;
background: rgba(15, 15, 20, 0.82);
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(6px);
color: white;
padding: 10px 12px;
border-radius: 14px;
box-shadow: 0 10px 25px rgba(0,0,0,0.25);
display: flex;
align-items: center;
gap: 10px;
min-width: min(820px, calc(100% - 24px));
}
/* buttons */
.pbtn {
width: 42px;
height: 38px;
border-radius: 12px;
background: rgba(255,255,255,0.07);
border: 1px solid rgba(255,255,255,0.15);
}
/* ================================
SLIDERS – מיושרים לגובה mm/h
================================ */
#frameSlider,
#opacitySlider {
height: 22px; /* 🎯 זהה ל־.sw */
-webkit-appearance: none;
appearance: none;
background: transparent;
}
/* track */
#frameSlider::-webkit-slider-runnable-track,
#opacitySlider::-webkit-slider-runnable-track {
height: 6px;
background: rgba(255,255,255,0.25);
border-radius: 4px;
}
#frameSlider::-moz-range-track,
#opacitySlider::-moz-range-track {
height: 6px;
background: rgba(255,255,255,0.25);
border-radius: 4px;
}
/* thumb */
#frameSlider::-webkit-slider-thumb,
#opacitySlider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 22px; /* 🎯 בדיוק כמו mm/h */
height: 22px;
background: #00e5ff;
border-radius: 50%;
margin-top: -8px;
cursor: pointer;
}
#frameSlider::-moz-range-thumb,
#opacitySlider::-moz-range-thumb {
width: 22px;
height: 22px;
background: #00e5ff;
border-radius: 50%;
cursor: pointer;
}
/* frame info */
.frameInfo {
display: flex;
flex-direction: column;
align-items: flex-end;
min-width: 120px;
gap: 2px;
font-size: 12px;
opacity: 0.95;
}
/* ================================
FORCE SAME VISUAL HEIGHT
================================ */
/* גובה אחיד לשורת בקרה */
.legend,
.player,
#opacityCard {
padding-top: 8px;
padding-bottom: 8px;
}
/* יישור אנכי של כל התוכן */
.legend,
.player,
#opacityCard {
display: flex;
align-items: center;
}
/* legend נשאר כמות שהוא */
.legend {
flex-direction: column;
align-items: flex-start;
}
/* player – שורה אחת */
.player {
height: 54px; /* 🎯 זה הגובה הוויזואלי הקובע */
}
/* opacity card – התאמה ל-player */
#opacityCard {
height: 54px; /* 🎯 אותו גובה בדיוק */
}
/* הסליידרים עצמם – בלי שינוי */
#frameSlider,
#opacitySlider {
height: 22px;
}

Подробнее здесь: https://stackoverflow.com/questions/798 ... -file-code
Мобильная версия