mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
Внесённые изменения
This commit is contained in:
1 parent
ee37db0e2c
commit
ee979697de
8 files changed
+88
-77
No files matched your search
@@ -33,11 +33,14 @@ $news-card-gap: 1em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40%; /* Градиент покрывает 40% карточки */
|
||||
height: 40%;
|
||||
/* Градиент покрывает 40% карточки */
|
||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
|
||||
border-radius: 8px;
|
||||
pointer-events: none; /* Не мешает взаимодействию */
|
||||
z-index: 0; /* Градиент уходит в фон */
|
||||
pointer-events: none;
|
||||
/* Не мешает взаимодействию */
|
||||
z-index: 0;
|
||||
/* Градиент уходит в фон */
|
||||
}
|
||||
|
||||
.image {
|
||||
@@ -46,23 +49,30 @@ $news-card-gap: 1em;
|
||||
object-fit: cover;
|
||||
object-position: top; // Устанавливаем позицию обрезки сверху
|
||||
border-radius: 8px; // Округление углов изображения
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
min-height:15%;
|
||||
padding: 22px 16px;
|
||||
min-height: 15%;
|
||||
padding: clamp(12px, 3vw, 22px) clamp(6px, 1.5vw, 16px);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-radius: 0 0 8px 8px;
|
||||
font-size: 20px;
|
||||
font-size: clamp(10px, 1.5vw, 20px);
|
||||
font-weight: 600;
|
||||
line-height: 24px;
|
||||
line-height: clamp(12px, 2vw, 24px);
|
||||
color: white;
|
||||
|
||||
//background: rgba(0, 0, 0, 0.6);
|
||||
//background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
|
||||
@media (max-width: 768px) {
|
||||
padding: 22px 16px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user