Участник:alivepillow/common.css

Вернуться

Строка 1: Строка 1:
/*** Шаблон: Cellimage ***/
.boxplate {
.boxplate {
     font-family: sans-serif;
     font-family: sans-serif;
Строка 8: Строка 7:
     align-items: center;
     align-items: center;
     width: 100%;
     width: 100%;
     min-height: 500px;
     min-height: 500px; /* Изменено на min-height, чтобы контейнер растягивался при переносе строк */
     align-content: space-around;
     align-content: space-around;
     gap: 20px 20px;
     gap: 20px 20px; /* Сделали отступы равномерными */
     box-sizing: border-box;
     box-sizing: border-box;
     padding: 20px;
     padding: 20px;
}
}


.boxplate .cellbox__title {
.cellbox__title {
     position: relative;
     position: relative;
     display: flex;
     display: flex;
    justify-content: center;
     width: 100%; /* Чтобы заголовок занимал всю ширину и не ломал сетку флексов */
    align-items: center;
     min-height: 32px;
     width: 100%;
     padding: 2px 8px;
     min-height: 38px;
     color: #fff;
     padding: 6px 15px;
    background-color: #0b1524;  
     color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 2px solid #b30000;
    margin-bottom: 25px;
}
 
.boxplate a,
.boxplate a:hover,
.boxplate a:visited {
    text-decoration: none;
}
}


.boxplate .cellbox {
.cellbox {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column; /* Элементы внутри (картинка и текст) идут друг за другом сверху вниз */
     align-items: center;
     align-items: center; /* Центрирование по горизонтали */
     justify-content: center;
     justify-content: center; /* Центрирование по вертикали */
     text-align: center;
     text-align: center;
     padding: 15px;
     padding: 15px;
     border-radius: 15px;
     border-radius: 15px;
     background-color: rgb(56, 56, 56);
     background-color: rgb(56, 56, 56);
     flex: 0 0 calc((100% - (4 * 20px)) / 5);
     flex: 0 0 calc((100% - (4 * 20px)) / 5); /* Корректный расчет для 5 элементов в ряд с учетом gap */
     min-width: 120px;
     min-width: 120px; /* Чтобы карточки не сжимались слишком сильно */
     color: #ffffff;
    text-decoration: none; /* Убирает синее подчеркивание ссылки */
     transition: background-color 0.2s ease;
     color: white; /* Цвет текста внутри карточки-ссылки */
    box-sizing: border-box;
     transition: background-color 0.2s ease; /* Плавный эффект при наведении */
}
}


.boxplate a:hover .cellbox {
/* Эффект при наведении на карточку */
.cellbox:hover {
     background-color: rgb(75, 75, 75);
     background-color: rgb(75, 75, 75);
     cursor: pointer;
     cursor: pointer;
    color: #ffffff;
}
}


.boxplate .cellbox__img-wrapper {
/* Контейнер для картинки */
.cellbox__img-wrapper {
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
Строка 67: Строка 52:
     width: 64px;
     width: 64px;
     height: 64px;
     height: 64px;
     margin-bottom: 10px;
     margin-bottom: 10px; /* Отступ между картинкой и текстом */
}
}


.boxplate .cellbox__img-wrapper a,
.cellbox__img-wrapper img {
.boxplate .cellbox__img-wrapper img {
    display: block;
     max-width: 100%;
     max-width: 100%;
     max-height: 100%;
     max-height: 100%;
     object-fit: contain;
     object-fit: contain;
    margin: 0 auto;
}
}


.boxplate .cellbox__text {
.cellbox__text {
    display: block;
     font-size: 14px;
     font-size: 14px;
     word-break: break-word;
     word-break: break-word;
    color: #ffffff;
}
}