|
|
(Не показані 43 проміжні версії цього користувача) |
Рядок 1: |
Рядок 1: |
| {{#css: | | {{#css: |
| .flex-columns { | | .flex-container { |
| display: flex; | | display: flex; |
| flex-wrap: wrap; | | flex-wrap: wrap; |
| gap: 48px;
| | justify-content: space-between; |
| justify-content: center; | | gap: 20px; |
| max-width: 1900px; | | margin: 40px auto; |
| margin: 3em auto; | | padding: 0 32px; |
| padding: 0 1.5em; | |
| } | | } |
|
| |
|
| .flex-columns > div { | | /* По умолчанию (mobile-first) — одна колонка */ |
| flex: 1 1 540px; | | .mainpage-card { |
| max-width: 740px;
| | flex: 0 0 100%; |
| background: #f6f6f6; | | background: #f6f6f6; |
| border: 1px solid #ddd; | | border: 1px solid #ddd; |
| border-radius: 12px; | | border-radius: 12px; |
| padding: 42px 36px; | | padding: 28px 24px; |
| box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); | | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); |
| transition: transform 0.2s ease, box-shadow 0.2s ease;
| | |
| display: flex; | | display: flex; |
| flex-direction: column; | | flex-direction: column; |
| align-items: stretch; | | 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); |
| | } |
| } | | } |
|
| |
|
| .flex-columns > div:hover {
| | /* >>> ВАЖНО: уменьшаем отступы на мобильных (до 767px) <<< */ |
| transform: translateY(-4px);
| | @media (max-width: 767px) { |
| box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); | | .flex-container { |
| | margin: 20px auto; /* вместо 40px, чтобы уменьшить верх/низ */ |
| | padding: 0 10px; /* вместо 32px, чтобы карточка стала шире */ |
| | } |
| } | | } |
|
| |
|
| .flex-columns .image { | | .mainpage-card:hover { |
| display: flex; | | transform: translateY(-4px); |
| justify-content: center;
| | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); |
| align-items: center;
| |
| height: 150px; /* більше простору під логотип */
| |
| margin-bottom: 1.5em; | |
| } | | } |
|
| |
|
| .flex-columns .image img { | | .mainpage-card h2 { |
| max-height: 100%; | | font-size: 1.8em; |
| max-width: 90%; | | color: #002855; |
| object-fit: contain; | | margin-bottom: 18px; |
| | border-bottom: 2px solid #0057b7; |
| | padding-bottom: 4px; |
| | width: 100%; |
| | text-align: left; |
| } | | } |
|
| |
|
| .image img { | | .mainpage-card .image { |
| max-height: 120px !important;
| |
| height: auto; | | height: auto; |
| margin: 0 auto; | | min-height: 140px; |
| }
| |
| .image {
| |
| height: 130px;
| |
| display: flex; | | display: flex; |
| justify-content: center; | | justify-content: center; |
| align-items: center; | | align-items: center; |
| margin-bottom: 1em; | | margin-bottom: 0.5em; |
| | width: 100%; |
| } | | } |
|
| |
|
| .flex-columns h2 { | | .mainpage-card .image img { |
| font-size: 1.75em; | | width: 100%; |
| color: #002855; | | height: auto; |
| margin-bottom: 1.5em; | | max-width: 100%; |
| border-bottom: 2px solid #0057b7; | | object-fit: contain; |
| padding-bottom: 0.4em; | | display: block; |
| text-align: center; | | margin: 0 auto; |
| } | | } |
|
| |
|
| /* 🎯 Критично: текст усередині дерева */
| |
| .CategoryTreeItem { | | .CategoryTreeItem { |
| font-size: 1.10em !important; | | font-size: 1.1em !important; |
| line-height: 1.7 !important; | | line-height: 1.7 !important; |
| text-align: left !important; | | text-align: left !important; |
| color: inherit !important; | | color: inherit !important; |
| }
| |
|
| |
| /* (Не обов'язково, але можна для контейнера дерева) */
| |
| .categorytree {
| |
| text-align: left !important;
| |
| } | | } |
| }} | | }} |
| | | <div class="flex-container"> |
| <div class="flex-columns"> | | {{#if: {{{1|}}} | <div class="mainpage-card">{{{1}}}</div> }} |
| {{#if: {{{1|}}} | <div>{{{1}}}</div> }} | | {{#if: {{{2|}}} | <div class="mainpage-card">{{{2}}}</div> }} |
| {{#if: {{{2|}}} | <div>{{{2}}}</div> }} | | {{#if: {{{3|}}} | <div class="mainpage-card">{{{3}}}</div> }} |
| {{#if: {{{3|}}} | <div>{{{3}}}</div> }} | | {{#if: {{{4|}}} | <div class="mainpage-card">{{{4}}}</div> }} |
| {{#if: {{{4|}}} | <div>{{{4}}}</div> }} | | {{#if: {{{5|}}} | <div class="mainpage-card">{{{5}}}</div> }} |
| {{#if: {{{5|}}} | <div>{{{5}}}</div> }} | | {{#if: {{{6|}}} | <div class="mainpage-card">{{{6}}}</div> }} |
| {{#if: {{{6|}}} | <div>{{{6}}}</div> }} | | {{#if: {{{7|}}} | <div class="mainpage-card">{{{7}}}</div> }} |
| {{#if: {{{7|}}} | <div>{{{7}}}</div> }} | | {{#if: {{{8|}}} | <div class="mainpage-card">{{{8}}}</div> }} |
| {{#if: {{{8|}}} | <div>{{{8}}}</div> }} | | {{#if: {{{9|}}} | <div class="mainpage-card">{{{9}}}</div> }} |
| {{#if: {{{9|}}} | <div>{{{9}}}</div> }} | | {{#if: {{{10|}}} | <div class="mainpage-card">{{{10}}}</div> }} |
| {{#if: {{{10|}}} | <div>{{{10}}}</div> }} | |
| </div> | | </div> |