2026-10-08 GLOBAL
This commit is contained in:
parent
a2ec373251
commit
2ca4b36e86
@ -597,7 +597,7 @@ main {
|
||||
}
|
||||
|
||||
.header-nav {
|
||||
max-width: 1184px;
|
||||
max-width: 1296px;
|
||||
margin: 0 auto;
|
||||
padding: 26px 0 10px;
|
||||
display: flex;
|
||||
@ -645,12 +645,7 @@ main {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Разделители пунктов меню (десктоп) */
|
||||
@media (min-width: 861px) {
|
||||
.header-menu > li { padding-left: clamp(10px, 1.1vw, 18px); }
|
||||
.header-menu > li:first-child { padding-left: 0; }
|
||||
.header-menu > li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
|
||||
}
|
||||
/* Меню шапки (десктоп) — правила в конце файла, чтобы перекрыть media 861–1279 */
|
||||
|
||||
.header-menu_link a {
|
||||
white-space: nowrap;
|
||||
@ -12430,3 +12425,20 @@ main > .pksh-section:first-child {
|
||||
.header-lk { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; line-height: 1; text-decoration: none; opacity: .85; transition: .3s; }
|
||||
.header-lk:hover { opacity: 1; }
|
||||
.header-lk svg { flex: 0 0 auto; }
|
||||
|
||||
/* ── Главное меню шапки (десктоп): пункты распределены по рабочей области, разделитель по центру ── */
|
||||
@media (min-width: 861px) {
|
||||
.bottom-header-row .menu-wrapper { width: 100%; }
|
||||
.header-menu { width: 100%; justify-content: space-between; gap: 0; }
|
||||
/* разделитель — отдельный flex-элемент: при space-between встаёт ровно по центру промежутка */
|
||||
.header-menu > .menu-sep {
|
||||
flex: 0 0 auto;
|
||||
align-self: center;
|
||||
width: 1px;
|
||||
height: 16px;
|
||||
background: rgba(255, 255, 255, .18);
|
||||
}
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.header-menu > .menu-sep { display: none; }
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -302,4 +302,24 @@ document.querySelectorAll('.mystyle-accordion-trigger').forEach(trigger => {
|
||||
item.classList.add('active');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
// Разделители между пунктами главного меню (как flex-элементы → по центру промежутка)
|
||||
(function () {
|
||||
function injectMenuSeparators() {
|
||||
var menu = document.querySelector('.header-menu');
|
||||
if (!menu || menu.dataset.sep === '1') return;
|
||||
var items = Array.prototype.filter.call(menu.children, function (el) {
|
||||
return el.tagName === 'LI' && el.className.indexOf('menu-sep') === -1;
|
||||
});
|
||||
items.forEach(function (li, i) {
|
||||
if (i === 0) return;
|
||||
var s = document.createElement('li');
|
||||
s.className = 'menu-sep';
|
||||
s.setAttribute('aria-hidden', 'true');
|
||||
menu.insertBefore(s, li);
|
||||
});
|
||||
menu.dataset.sep = '1';
|
||||
}
|
||||
if (document.readyState !== 'loading') { injectMenuSeparators(); }
|
||||
else { document.addEventListener('DOMContentLoaded', injectMenuSeparators); }
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user