MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 43: | Рядок 43: | ||
.category-grid { | .category-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: 25px; | gap: 25px; | ||
padding: 30px; | padding: 30px; | ||
| Рядок 70: | Рядок 70: | ||
} | } | ||
/* Карточка категории | /* Карточка категории */ | ||
.category-card { | .category-grid .category-card { | ||
background: white; | background: white; | ||
border-radius: 12px; | border-radius: 12px; | ||
| Рядок 80: | Рядок 80: | ||
cursor: pointer; | cursor: pointer; | ||
border: 1px solid transparent; | border: 1px solid transparent; | ||
margin: 0 !important; | |||
} | } | ||
.category-card:hover { | .category-grid .category-card:hover { | ||
transform: translateY(-6px); | transform: translateY(-6px); | ||
box-shadow: 0 8px 24px rgba(0,61,130,0.15); | box-shadow: 0 8px 24px rgba(0,61,130,0.15); | ||
| Рядок 88: | Рядок 89: | ||
} | } | ||
/* Иконка */ | /* Ячейки таблицы внутри карточки */ | ||
.category-card img { | .category-grid .category-card td { | ||
width: 70px; | border: none !important; | ||
height: 70px; | padding: 5px !important; | ||
text-align: center !important; | |||
} | |||
/* Иконка (первая строка таблицы) */ | |||
.category-grid .category-card tr:first-child td { | |||
padding-bottom: 10px !important; | |||
} | |||
.category-grid .category-card img { | |||
width: 70px !important; | |||
height: 70px !important; | |||
object-fit: contain; | object-fit: contain; | ||
margin: 0 | margin: 0 auto; | ||
display: block; | display: block; | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
.category-card:hover img { | .category-grid .category-card:hover img { | ||
transform: scale(1.08); | transform: scale(1.08); | ||
} | } | ||
/* Название | /* Название (вторая строка таблицы) */ | ||
.category- | .category-grid .category-card tr:last-child td { | ||
font-size: 14px; | font-size: 14px; | ||
font-weight: 500; | font-weight: 500; | ||
color: #2c3e50; | color: #2c3e50; | ||
line-height: 1.4; | line-height: 1.4; | ||
min-height: 40px; | min-height: 40px; | ||
padding-top: 5px !important; | |||
} | } | ||
.category- | .category-grid .category-card tr:last-child td a { | ||
text-decoration: none; | text-decoration: none; | ||
color: #2c3e50; | color: #2c3e50; | ||
| Рядок 121: | Рядок 130: | ||
} | } | ||
.category-card:hover | .category-grid .category-card:hover tr:last-child td a { | ||
color: #003d82; | color: #003d82; | ||
} | } | ||
/* Убираем рамку у ссылок на | /* Убираем рамку у ссылок на изображения */ | ||
.category-grid .category-card a.image { | |||
border: none !important; | |||
} | |||
/* Общие улучшения */ | |||
body { | |||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |||
} | |||
a { | |||
color: #003d82; | |||
transition: color 0.2s ease; | |||
} | |||
a:hover { | |||
color: #0052a8; | |||
} | |||
#mw-content-text { | |||
margin-top: 0; | |||
} | |||
Версія за 10:04, 11 лютого 2026
/* Приветственный блок */
.welcome-text {
text-align: center;
font-style: italic;
margin: 30px auto;
padding: 30px;
max-width: 900px;
background: #003d82;
color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,61,130,0.15);
}
.welcome-text strong {
color: #ffd700;
font-size: 22px;
font-weight: 600;
display: block;
margin-top: 10px;
font-style: normal;
}
/* Заголовок секции */
.section-projects {
background: #003d82;
color: #ffd700;
padding: 18px 25px;
font-size: 20px;
font-weight: 600;
border-radius: 10px;
margin: 30px 0 20px 0;
text-align: center;
box-shadow: 0 2px 10px rgba(0,61,130,0.1);
}
.section-projects .emoji {
font-size: 26px;
margin-right: 12px;
}
/* Сетка категорий - 4 В РЯД */
.category-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
padding: 30px;
background: #f8f9fa;
border-radius: 12px;
margin-bottom: 30px;
}
/* Адаптивность */
@media (max-width: 1200px) {
.category-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 800px) {
.category-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 500px) {
.category-grid {
grid-template-columns: 1fr;
}
}
/* Карточка категории */
.category-grid .category-card {
background: white;
border-radius: 12px;
padding: 25px 20px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
border: 1px solid transparent;
margin: 0 !important;
}
.category-grid .category-card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 24px rgba(0,61,130,0.15);
border-color: #003d82;
}
/* Ячейки таблицы внутри карточки */
.category-grid .category-card td {
border: none !important;
padding: 5px !important;
text-align: center !important;
}
/* Иконка (первая строка таблицы) */
.category-grid .category-card tr:first-child td {
padding-bottom: 10px !important;
}
.category-grid .category-card img {
width: 70px !important;
height: 70px !important;
object-fit: contain;
margin: 0 auto;
display: block;
transition: transform 0.3s ease;
}
.category-grid .category-card:hover img {
transform: scale(1.08);
}
/* Название (вторая строка таблицы) */
.category-grid .category-card tr:last-child td {
font-size: 14px;
font-weight: 500;
color: #2c3e50;
line-height: 1.4;
min-height: 40px;
padding-top: 5px !important;
}
.category-grid .category-card tr:last-child td a {
text-decoration: none;
color: #2c3e50;
transition: color 0.2s ease;
}
.category-grid .category-card:hover tr:last-child td a {
color: #003d82;
}
/* Убираем рамку у ссылок на изображения */
.category-grid .category-card a.image {
border: none !important;
}
/* Общие улучшения */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a {
color: #003d82;
transition: color 0.2s ease;
}
a:hover {
color: #0052a8;
}
#mw-content-text {
margin-top: 0;
}