MediaWiki:Common.css: различия между версиями
Внешний вид
UmniyDom (обсуждение | вклад) Нет описания правки |
UmniyDom (обсуждение | вклад) Нет описания правки |
||
| Строка 6: | Строка 6: | ||
} | } | ||
/* Карточка | /* Карточка */ | ||
.shelly-grid-card { | .shelly-grid-card { | ||
position: relative; | |||
flex: 1 1 260px; | flex: 1 1 calc(33.333% - 16px); | ||
min-width: 260px; | |||
max-width: 100%; | |||
border: 1px solid #e5e5e5; | border: 1px solid #e5e5e5; | ||
border-radius: 4px; | border-radius: 4px; | ||
background-color: #fff; | background-color: #fff; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.06); | box-shadow: 0 2px 4px rgba(0,0,0,0.06); | ||
overflow: hidden; | |||
} | |||
/* Внутренняя ссылка растягивается на весь блок */ | |||
.shelly-grid-link { | |||
display: block; | |||
padding: 16px 20px; | |||
text-decoration: none; | |||
color: inherit; | |||
} | |||
/* Обнулить стандартное оформление вики-ссылки */ | |||
.shelly-grid-link a { | |||
text-decoration: none; | text-decoration: none; | ||
color: inherit; | color: inherit; | ||
} | } | ||
/* Заголовок и текст */ | |||
.shelly-grid-card h3 { | .shelly-grid-card h3 { | ||
margin: 0 0 8px 0; | margin: 0 0 8px 0; | ||
| Строка 32: | Строка 45: | ||
} | } | ||
/* | /* Ховер по карточке */ | ||
.shelly-grid-card:hover { | .shelly-grid-card:hover { | ||
border-color: #c0d4ff; | border-color: #c0d4ff; | ||
box-shadow: 0 4px 10px rgba(0,0,0,0.08); | box-shadow: 0 4px 10px rgba(0,0,0,0.08); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
transition: box-shadow 0.15s ease, transform 0.15s ease, | |||
border-color 0.15s ease; | |||
} | } | ||
Версия от 12:51, 3 марта 2026
.shelly-grid {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin: 20px 0;
}
/* Карточка */
.shelly-grid-card {
position: relative;
flex: 1 1 calc(33.333% - 16px);
min-width: 260px;
max-width: 100%;
border: 1px solid #e5e5e5;
border-radius: 4px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.06);
overflow: hidden;
}
/* Внутренняя ссылка растягивается на весь блок */
.shelly-grid-link {
display: block;
padding: 16px 20px;
text-decoration: none;
color: inherit;
}
/* Обнулить стандартное оформление вики-ссылки */
.shelly-grid-link a {
text-decoration: none;
color: inherit;
}
/* Заголовок и текст */
.shelly-grid-card h3 {
margin: 0 0 8px 0;
font-size: 1.1em;
}
.shelly-grid-card p {
margin: 0;
font-size: 0.9em;
color: #555;
}
/* Ховер по карточке */
.shelly-grid-card:hover {
border-color: #c0d4ff;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transform: translateY(-2px);
transition: box-shadow 0.15s ease, transform 0.15s ease,
border-color 0.15s ease;
}