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