Відмінності між версіями «Шаблон:Mainpage»
Перейти до навігації
Перейти до пошуку
Мітка: Скасовано |
Мітка: Ручний відкіт |
||
Рядок 1: | Рядок 1: | ||
{{#css: | {{#css: | ||
.mainpage-grid { | .mainpage-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); | ||
gap: | gap: 40px; | ||
padding: 0 32px; /* отступы по бокам */ | |||
margin: 40px auto; | margin: 40px auto; | ||
} | } | ||
.mainpage-card { | .mainpage-card { | ||
background: #f6f6f6; | background: #f6f6f6; | ||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: | padding: 28px 24px; | ||
box-shadow: 0 | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
Рядок 23: | Рядок 19: | ||
align-items: flex-start; | align-items: flex-start; | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
} | } | ||
.mainpage-card:hover { | .mainpage-card:hover { | ||
transform: translateY(- | transform: translateY(-4px); | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0. | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); | ||
} | } | ||
.mainpage-card h2 { | .mainpage-card h2 { | ||
font-size: 1. | font-size: 1.8em; | ||
color: #002855; | color: #002855; | ||
margin-bottom: 18px; | margin-bottom: 18px; | ||
border-bottom: 2px solid #0057b7; | border-bottom: 2px solid #0057b7; | ||
padding-bottom: | padding-bottom: 4px; | ||
width: 100%; | width: 100%; | ||
text-align: left; | text-align: left; | ||
} | } | ||
.mainpage-card .image { | .mainpage-card .image { | ||
height: auto; | |||
max-height: | min-height: 140px; | ||
max-height: 200px; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
margin-bottom: 1.2em; | margin-bottom: 1.2em; | ||
width: 100%; | |||
} | } | ||
.mainpage-card .image img { | .mainpage-card .image img { | ||
max-height: 100%; | max-height: 100%; | ||
max-width: | max-width: 80%; | ||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
margin: 0 auto; | |||
} | } | ||
.CategoryTreeItem { | |||
. | |||
font-size: 1.15em !important; | font-size: 1.15em !important; | ||
line-height: 1.7; | line-height: 1.7 !important; | ||
text-align: left !important; | |||
color: inherit !important; | |||
} | } | ||
}} | }} |
Версія за 11:21, 4 квітня 2025