Bliacia (обсуждение | вклад) Нет описания правки |
Bliacia (обсуждение | вклад) Нет описания правки |
||
| Строка 41: | Строка 41: | ||
.home-header__search { | .home-header__search { | ||
display: inline-flex; | display: inline-flex; | ||
flex-direction: row; | flex-direction: row; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; /* | align-items: center; /* Это должно центрировать, но можем скорректировать padding */ | ||
background: #1a2027; | background: #1a2027; | ||
border-radius: 0px; | border-radius: 0px; | ||
padding: | padding: 10px 18px; /* Увеличил вертикальный padding немного, чтобы дать больше места */ | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
color: #ccc; | color: #ccc; | ||
cursor: text; | cursor: text; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
max-width: none; | max-width: none; | ||
width: auto; | width: auto; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
height: auto; | height: auto; | ||
| Строка 65: | Строка 65: | ||
.home-header__searchIcon { | .home-header__searchIcon { | ||
display: none; | display: none; | ||
} | } | ||
.home-header__searchText { | .home-header__searchText { | ||
display: inline; /* | display: inline-block; /* Изменил на inline-block для лучшего контроля */ | ||
text-align: center; | text-align: center; | ||
line-height: 1 | line-height: 1; /* Устанавливаем line-height 1 для более точного центрирования */ | ||
white-space: nowrap; /* | white-space: nowrap; | ||
vertical-align: middle; /* Добавляем vertical-align: middle */ | |||
} | } | ||
| Строка 90: | Строка 91: | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
color: #eee; | color: #eee; | ||
vertical-align: middle; | vertical-align: middle; /* Важно для выравнивания kbd с текстом */ | ||
} | } | ||
| Строка 111: | Строка 112: | ||
max-width: 90%; | max-width: 90%; | ||
margin: 20px auto 0 auto; | margin: 20px auto 0 auto; | ||
padding: | padding: 10px 15px; /* Корректируем padding для мобильных */ | ||
white-space: normal; | white-space: normal; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.home-header__searchText { | .home-header__searchText { | ||
text-align: center; | text-align: center; | ||
} | } | ||
} | } | ||
Версия от 23:31, 25 октября 2025
.home-header {
margin: 3rem 0;
display: flex;
justify-content: flex-start;
align-items: center;
width: 100%;
box-sizing: border-box;
padding: 0 20px;
flex-wrap: wrap;
position: relative;
}
.home-header-text-group {
display: flex;
flex-direction: column;
text-align: left;
flex-grow: 1;
margin-right: 20px;
}
.home-header__pretitle {
color: #7faad9;
font-size: 0.9rem;
letter-spacing: 1px;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.home-header__title {
font-size: 2.5rem;
font-weight: 700;
color: #fff;
margin: 0.5rem 0;
}
.home-header__subtitle {
font-size: 1rem;
color: #bbb;
margin-bottom: 0;
}
.home-header__search {
display: inline-flex;
flex-direction: row;
justify-content: center;
align-items: center; /* Это должно центрировать, но можем скорректировать padding */
background: #1a2027;
border-radius: 0px;
padding: 10px 18px; /* Увеличил вертикальный padding немного, чтобы дать больше места */
font-size: 0.9rem;
color: #ccc;
cursor: text;
transition: all 0.2s ease;
max-width: none;
width: auto;
box-sizing: border-box;
height: auto;
min-height: auto;
overflow: hidden;
}
.home-header__search:hover {
color: #fff;
}
.home-header__searchIcon {
display: none;
}
.home-header__searchText {
display: inline-block; /* Изменил на inline-block для лучшего контроля */
text-align: center;
line-height: 1; /* Устанавливаем line-height 1 для более точного центрирования */
white-space: nowrap;
vertical-align: middle; /* Добавляем vertical-align: middle */
}
.home-header__searchText a {
color: #7faad9;
text-decoration: none;
}
.home-header__searchText a:hover {
text-decoration: underline;
}
kbd {
background: #2e3a46;
padding: 1px 4px;
border-radius: 4px;
font-size: 0.8rem;
color: #eee;
vertical-align: middle; /* Важно для выравнивания kbd с текстом */
}
/* Медиа-запрос для адаптивности на маленьких экранах */
@media (max-width: 768px) {
.home-header {
flex-direction: column;
align-items: center;
padding: 20px;
}
.home-header-text-group {
width: 100%;
text-align: center;
margin-bottom: 20px;
margin-right: 0;
}
.home-header__search {
max-width: 90%;
margin: 20px auto 0 auto;
padding: 10px 15px; /* Корректируем padding для мобильных */
white-space: normal;
justify-content: center;
}
.home-header__searchText {
text-align: center;
}
}