Відмінності між версіями «Шаблон:Mainpage»
Перейти до навігації
Перейти до пошуку
Рядок 2: | Рядок 2: | ||
.mainpage-grid { | .mainpage-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); /* ↓ було 460px */ | ||
gap: | gap: 32px; /* трохи компактніше */ | ||
max-width: 1600px | max-width: 1440px; /* ↓ було 1600px */ | ||
margin: 40px auto; | margin: 40px auto; | ||
padding: 0 | padding: 0 20px; | ||
} | } | ||
.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; /* ↓ менший padding */ | ||
box-shadow: 0 6px | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
Рядок 20: | Рядок 21: | ||
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(-4px); | transform: translateY(-4px); | ||
box-shadow: 0 | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); | ||
} | } | ||
.mainpage-card h2 { | .mainpage-card h2 { | ||
font-size: | font-size: 1.8em; | ||
color: #002855; | color: #002855; | ||
margin-bottom: | margin-bottom: 18px; | ||
border-bottom: 2px solid #0057b7; | border-bottom: 2px solid #0057b7; | ||
padding-bottom: 4px; | padding-bottom: 4px; | ||
Рядок 33: | Рядок 36: | ||
text-align: left; | text-align: left; | ||
} | } | ||
.mainpage-card .image { | .mainpage-card .image { | ||
height: auto; | height: auto; | ||
min-height: | min-height: 140px; | ||
max-height: | max-height: 200px; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
margin-bottom: 1. | margin-bottom: 1.2em; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.mainpage-card .image img { | .mainpage-card .image img { | ||
max-height: 100%; | max-height: 100%; | ||
max-width: 90% | max-width: 80%; /* ↓ було 90% */ | ||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.categorytree { | .categorytree { | ||
text-align: left; | text-align: left; | ||
width: 100%; | width: 100%; | ||
font-size: 1. | font-size: 1.1em !important; | ||
line-height: 1. | line-height: 1.7; | ||
margin-top: auto; | margin-top: auto; | ||
} | } |
Версія за 03:34, 4 квітня 2025