|
|
Рядок 1: |
Рядок 1: |
| {{#css: | | {{#css: |
| | /* Контейнер всієї сітки */ |
| .mainpage-grid { | | .mainpage-grid { |
| display: grid; | | display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); | | grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); |
| gap: 40px; | | gap: 32px; |
| padding: 0 32px; /* отступы по бокам */ | | max-width: 1400px; |
| margin: 40px auto; | | margin: 40px auto; |
| | padding: 0 16px; |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| | /* Одна картка */ |
| .mainpage-card { | | .mainpage-card { |
| background: #f6f6f6; | | background: #f6f6f6; |
| border: 1px solid #ddd; | | border: 1px solid #ddd; |
| border-radius: 12px; | | border-radius: 12px; |
| padding: 28px 24px; | | padding: 32px 24px; |
| box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); | | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); |
| display: flex; | | display: flex; |
| flex-direction: column; | | flex-direction: column; |
Рядок 19: |
Рядок 23: |
| 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; |
| | box-sizing: border-box; |
| } | | } |
|
| |
|
| .mainpage-card:hover { | | .mainpage-card:hover { |
| transform: translateY(-4px); | | transform: translateY(-3px); |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); | | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06); |
| } | | } |
|
| |
|
| | /* Заголовок категорії */ |
| .mainpage-card h2 { | | .mainpage-card h2 { |
| font-size: 1.8em; | | font-size: 1.6em; |
| color: #002855; | | color: #002855; |
| margin-bottom: 18px; | | margin-bottom: 18px; |
| border-bottom: 2px solid #0057b7; | | border-bottom: 2px solid #0057b7; |
| padding-bottom: 4px; | | padding-bottom: 6px; |
| width: 100%; | | width: 100%; |
| text-align: left; | | text-align: left; |
| } | | } |
|
| |
|
| | /* Обгортка зображення */ |
| .mainpage-card .image { | | .mainpage-card .image { |
| height: auto; | | width: 100%; |
| min-height: 140px;
| | max-height: 180px; |
| 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%; | | overflow: hidden; |
| } | | } |
|
| |
|
| | /* Сам логотип */ |
| .mainpage-card .image img { | | .mainpage-card .image img { |
| max-height: 100%; | | max-height: 100%; |
| max-width: 80%; | | max-width: 100%; |
| | height: auto; |
| | width: auto; |
| object-fit: contain; | | object-fit: contain; |
| display: block; | | display: block; |
| margin: 0 auto;
| |
| } | | } |
|
| |
|
| .CategoryTreeItem { | | /* Категорії */ |
| | .categorytree { |
| | text-align: left; |
| | width: 100%; |
| font-size: 1.15em !important; | | font-size: 1.15em !important; |
| line-height: 1.7 !important; | | line-height: 1.7; |
| text-align: left !important; | | margin-top: auto; |
| color: inherit !important; | | } |
| | |
| | /* Адаптація для мобільних */ |
| | @media screen and (max-width: 500px) { |
| | .mainpage-grid { |
| | grid-template-columns: 1fr; |
| | padding: 0 12px; |
| | } |
| | .mainpage-card { |
| | padding: 24px 18px; |
| | } |
| } | | } |
| }} | | }} |