Шаблон:UpdateCard/styles.css
Материал из Едрён Батон
Дополнительные действия
.update-cards-container {
display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px;
}
.update-card {
width: 300px; display: flex; flex-direction: column; background: #fff; border: 1px solid #eaecf0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.update-card:hover {
transform: translateY(-4px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.update-card-image {
width: 100%; height: 160px; background: #f8f9fa; display: flex; align-items: center; justify-content: center;
}
.update-card-image img {
width: 100%; height: 100%; object-fit: cover;
}
.update-card-content {
display: flex; flex-direction: column; flex-grow: 1; padding: 16px;
}
.update-card-date {
margin-bottom: 8px; color: #72777d; font-size: 0.85em; font-weight: 500;
}
.update-card-title {
margin-bottom: 10px; font-size: 1.2em; font-weight: bold; line-height: 1.3;
}
.update-card-title a {
color: #202122; text-decoration: none;
}
.update-card-title a:hover {
color: #3366cc; text-decoration: underline;
}
.update-card-desc {
color: #404244; font-size: 0.95em; line-height: 1.5;
}