Bliacia (обсуждение | вклад) Нет описания правки |
Bliacia (обсуждение | вклад) Нет описания правки |
||
| Строка 46: | Строка 46: | ||
background: rgba(26, 32, 39, 0.9); | background: rgba(26, 32, 39, 0.9); | ||
border-radius: 10px; | border-radius: 10px; | ||
padding: | padding: 8px 14px; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
color: #ccc; | color: #ccc; | ||
| Строка 53: | Строка 53: | ||
box-shadow: 0 0 10px rgba(127, 170, 217, 0.3); | box-shadow: 0 0 10px rgba(127, 170, 217, 0.3); | ||
text-align: center; | text-align: center; | ||
overflow: hidden; /* | overflow: hidden; /* убираем скролл */ | ||
white-space: | white-space: normal; /* разрешаем перенос строк */ | ||
word-break: break-word; /* переносим длинные слова */ | |||
max-width: 320px; /* ограничиваем ширину */ | max-width: 320px; /* ограничиваем ширину */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Строка 70: | Строка 69: | ||
display: block; | display: block; | ||
text-align: center; | text-align: center; | ||
line-height: 1. | line-height: 1.3; | ||
margin: 0; | margin: 0; | ||
padding: 0 | padding: 0; | ||
color: #ccc; | |||
} | } | ||
| Строка 79: | Строка 79: | ||
text-decoration: none; | text-decoration: none; | ||
transition: color 0.2s ease; | transition: color 0.2s ease; | ||
word-break: break-word; /* перенос длинных ссылок */ | |||
} | } | ||
Версия от 23:52, 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;
justify-content: center;
align-items: center;
background: rgba(26, 32, 39, 0.9);
border-radius: 10px;
padding: 8px 14px;
font-size: 0.95rem;
color: #ccc;
cursor: text;
transition: all 0.25s ease;
box-shadow: 0 0 10px rgba(127, 170, 217, 0.3);
text-align: center;
overflow: hidden; /* убираем скролл */
white-space: normal; /* разрешаем перенос строк */
word-break: break-word; /* переносим длинные слова */
max-width: 320px; /* ограничиваем ширину */
box-sizing: border-box;
}
.home-header__search:hover {
color: #fff;
box-shadow: 0 0 15px rgba(127, 170, 217, 0.5);
background: rgba(26, 32, 39, 0.95);
}
.home-header__searchText {
display: block;
text-align: center;
line-height: 1.3;
margin: 0;
padding: 0;
color: #ccc;
}
.home-header__searchText a {
color: #7faad9;
text-decoration: none;
transition: color 0.2s ease;
word-break: break-word; /* перенос длинных ссылок */
}
.home-header__searchText a:hover {
text-decoration: underline;
color: #a4c8f4;
}
kbd {
background: #2e3a46;
padding: 1px 4px;
border-radius: 4px;
font-size: 0.8rem;
color: #eee;
vertical-align: middle;
}
/* Медиа-запрос для адаптивности на маленьких экранах */
@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;
padding: 10px 15px;
}
.home-header__searchText {
text-align: center;
margin-top: 0;
}
}