MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 171: | Строка 171: | ||
.dropdown-container { | .dropdown-container { | ||
display: flex; | display: flex; | ||
flex-direction: column; | justify-content: space-between; | ||
} | |||
.menu-column { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 8px; /* расстояние между пунктами в колонке */ | |||
flex: 1; /* колонки равной ширины */ | |||
min-width: 220px; /* при желании минимальная ширина */ | |||
} | } | ||
Строка 190: | Строка 196: | ||
cursor: pointer; | cursor: pointer; | ||
border-radius: 5px; | border-radius: 5px; | ||
width: 100%; /* чтобы кнопка занимала ширину колонки */ | |||
box-sizing: border-box; | |||
text-align: center; | |||
} | } | ||
Строка 206: | Строка 213: | ||
/* Стиль для ссылок внутри списка */ | /* Стиль для ссылок внутри списка */ | ||
.dropdown-content a { | .dropdown-content a , | ||
.dropdown-content h4 { | |||
color: black; | color: black; | ||
text-aling: center; | text-aling: center; | ||
text-decoration: none; | text-decoration: none; | ||
display: block; | display: block; | ||
Строка 224: | Строка 231: | ||
max-hight: 500px; | max-hight: 500px; | ||
opacity: 1; | opacity: 1; | ||
} | |||
/* Анимация сдвига только в рамках своей колонки */ | |||
.menu-column .dropdown.active ~ .dropdown { | |||
transform: translateY(100%); | |||
transition: transform 0.3s ease-in-out; | |||
} | |||
/* Responsive: на узких экранах колонки идут друг под другом */ | |||
max-width: 800px { | |||
.dropdown-container { | |||
flex-direction: column; | |||
gap: 10px; | |||
max-width: 95%; | |||
} | |||
.menu-column { | |||
min-width: 0; | |||
} | |||
.dropbtn { font-size: 18px; } | |||
} | } | ||
Строка 655: | Строка 681: | ||
.nav-link { | .nav-link { | ||
color: #000000; | color: #000000; |