Шаблон

Заглавная/Поиск/styles.css: различия между версиями

Материал из Энциклопедия Ярославского авиатора

Расширен текст о проекте с зазором до правой колонки приветствия
Правая колонка приветствия сохраняет место для счётчика при разной ширине экрана
 
Строка 53: Строка 53:
     .main-top.main-top-with-search {
     .main-top.main-top-with-search {
         display: grid;
         display: grid;
         grid-template-columns: minmax(0, 3fr) minmax(max-content, 1fr);
         grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr);
         column-gap: 1.5rem;
         column-gap: 1.5rem;
         padding: 1.5rem 1rem;
         padding: 1.5rem 1rem;

Текущая версия от 17:04, 26 ноября 2026

.main-top-with-search .main-top-left > p {
    font-size: inherit;
}
.main-top-with-search > .avia-home-search {
    grid-column: 1 / -1;
    width: 100%;
    margin: 1rem auto 0;
}
.avia-home-search {
    max-width: 42rem;
}
.avia-home-search form {
    display: flex;
    gap: .5rem;
    align-items: stretch;
    margin: 0;
}
.avia-home-search .cdx-text-input {
    flex: 1;
    min-width: 0;
    max-width: none;
}
.avia-home-search input[name="search"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 2.8rem;
    max-height: none;
    margin: 0;
    padding: 0 .85rem;
    border: 1px solid #b9ccd4;
    border-radius: 2px;
    background: #fff;
    color: #1f3744;
    font-size: 1rem;
}
.avia-home-search input[type="submit"] {
    height: 2.8rem;
    margin: 0;
    padding: 0 1.3rem;
    border: 1px solid #d3e8ed;
    border-radius: 2px;
    background: #d3e8ed;
    color: #173e55;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
.avia-home-search input[type="submit"]:hover {
    background: #ecf5f7;
}
@media (min-width: 1000px) {
    .main-top.main-top-with-search {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr);
        column-gap: 1.5rem;
        padding: 1.5rem 1rem;
        position: relative;
        isolation: isolate;
    }
    .main-top-with-search::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(to right, #f8f9fa 39%, rgba(248, 249, 250, 0) 56%);
    }
    .main-top-with-search .main-top-left {
        padding: 0;
        background-image: none;
    }
}
@media (max-width: 360px) {
    .avia-home-search form {
        flex-direction: column;
    }
}