|
|
| (Не показані 67 проміжних версій 2 користувачів) |
| Рядок 1: |
Рядок 1: |
| {| style="width:100%;" | | {{#css: |
| |- style="vertical-align:center;"
| | .flex-container { |
| | style="width:30%; text-align:center;padding-left:0%" |[[Файл:Logo.png|ліворуч|альт=|безрамки|190x103px|link= Категорія:EasyCon]]
| | display: flex; |
| | style="width:30%; text-align:center;padding-left:0%" |[[Файл:ES logo.jpg|ліворуч|альт=|безрамки|190x103px|link= Категорія:Електронний суд]]
| | flex-wrap: wrap; |
| | style="width:30%; text-align:center;padding-left:0%" |[[Файл:Mail gov ua logo.png|ліворуч|альт=|безрамки|190x103px|link= Категорія:Пошта mail.gov.ua]]
| | justify-content: space-between; |
| |- style="vertical-align:top;"
| | gap: 20px; |
| | style="width:33%; margin-left=1px;" |<categorytree mode="all" namespaces="Main" depth="0">EasyCon</categorytree><categorytree mode="all" depth="0">Оновлення</categorytree><categorytree mode="all" depth="0">Прийом громадян</categorytree><categorytree mode="all" depth="0">Судове засідання</categorytree>'''<categorytree mode="all" depth="0">Найчастіші питання EasyCon</categorytree>'''
| | margin: 40px auto; |
| | style="width:33%; margin-left=1px;" |<categorytree mode="all" namespaces="Main" depth="0">Електронний суд</categorytree><categorytree mode="all" depth="0">Кабінет користувача</categorytree> '''<categorytree mode="all" depth="0">Найчастіші питання ЕС</categorytree>''' | | padding: 0 32px; |
| | style="width:33%; margin-left=1px;" |<categorytree mode="all" namespaces="Main" depth="0">Пошта mail.gov.ua</categorytree><categorytree mode="all" depth="0">Відновлення облікових даних</categorytree><categorytree mode="all" depth="0">Видалення облікового запису</categorytree>'''<categorytree mode="all" depth="0">Найчастіші питання mail.gov.ua</categorytree>''' | | } |
| |}
| | |
| | /* По умолчанию (mobile-first) — одна колонка */ |
| | .mainpage-card { |
| | flex: 0 0 100%; |
| | background: #f6f6f6; |
| | border: 1px solid #ddd; |
| | border-radius: 12px; |
| | padding: 28px 24px; |
| | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); |
| | |
| | display: flex; |
| | flex-direction: column; |
| | justify-content: flex-start; |
| | align-items: flex-start; |
| | |
| | transition: transform 0.2s ease, box-shadow 0.2s ease; |
| | box-sizing: border-box; |
| | } |
| | |
| | /* Две колонки (пример) */ |
| | @media (min-width: 768px) and (max-width: 1199px) { |
| | .mainpage-card { |
| | flex: 0 0 calc((100% - 20px) / 2); |
| | } |
| | } |
| | |
| | /* Три колонки (пример) */ |
| | @media (min-width: 1200px) { |
| | .mainpage-card { |
| | flex: 0 0 calc((100% - 40px) / 3); |
| | } |
| | } |
| | |
| | /* >>> ВАЖНО: уменьшаем отступы на мобильных (до 767px) <<< */ |
| | @media (max-width: 767px) { |
| | .flex-container { |
| | margin: 20px auto; /* вместо 40px, чтобы уменьшить верх/низ */ |
| | padding: 0 10px; /* вместо 32px, чтобы карточка стала шире */ |
| | } |
| | } |
| | |
| | .mainpage-card:hover { |
| | transform: translateY(-4px); |
| | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); |
| | } |
| | |
| | .mainpage-card h2 { |
| | font-size: 1.8em; |
| | color: #002855; |
| | margin-bottom: 18px; |
| | border-bottom: 2px solid #0057b7; |
| | padding-bottom: 4px; |
| | width: 100%; |
| | text-align: left; |
| | } |
| | |
| | .mainpage-card .image { |
| | height: auto; |
| | min-height: 140px; |
| | display: flex; |
| | justify-content: center; |
| | align-items: center; |
| | margin-bottom: 0.5em; |
| | width: 100%; |
| | } |
| | |
| | .mainpage-card .image img { |
| | width: 100%; |
| | height: auto; |
| | max-width: 100%; |
| | object-fit: contain; |
| | display: block; |
| | margin: 0 auto; |
| | } |
| | |
| | .CategoryTreeItem { |
| | font-size: 1.1em !important; |
| | line-height: 1.7 !important; |
| | text-align: left !important; |
| | color: inherit !important; |
| | } |
| | }} |
| | <div class="flex-container"> |
| | {{#if: {{{1|}}} | <div class="mainpage-card">{{{1}}}</div> }} |
| | {{#if: {{{2|}}} | <div class="mainpage-card">{{{2}}}</div> }} |
| | {{#if: {{{3|}}} | <div class="mainpage-card">{{{3}}}</div> }} |
| | {{#if: {{{4|}}} | <div class="mainpage-card">{{{4}}}</div> }} |
| | {{#if: {{{5|}}} | <div class="mainpage-card">{{{5}}}</div> }} |
| | {{#if: {{{6|}}} | <div class="mainpage-card">{{{6}}}</div> }} |
| | {{#if: {{{7|}}} | <div class="mainpage-card">{{{7}}}</div> }} |
| | {{#if: {{{8|}}} | <div class="mainpage-card">{{{8}}}</div> }} |
| | {{#if: {{{9|}}} | <div class="mainpage-card">{{{9}}}</div> }} |
| | {{#if: {{{10|}}} | <div class="mainpage-card">{{{10}}}</div> }} |
| | </div> |