MediaWiki:Vector.css: различия между версиями
Shihov (обсуждение | вклад) Нет описания правки |
Shihov (обсуждение | вклад) Нет описания правки |
||
Строка 146: | Строка 146: | ||
/* Промотка индексменю */ | /* Промотка индексменю */ | ||
/* Общие стили для левой панели | /* Общие стили для левой панели */ | ||
#mw-panel { | #mw-panel { | ||
position: fixed !important; | position: fixed !important; | ||
height: 100vh !important; | top: 0 !important; | ||
width: 220px !important; /* Фиксированная ширина панели | left: 0 !important; | ||
overflow: hidden !important; /* | height: 100vh !important; | ||
width: 220px !important; /* Фиксированная ширина панели */ | |||
overflow: hidden !important; /* Скрываем общую прокрутку панели */ | |||
} | } | ||
/* Контейнер для логотипа | /* Контейнер для логотипа */ | ||
#p-logo | #p-logo { | ||
position: sticky !important; | position: sticky !important; | ||
top: 0 !important; | top: 0 !important; | ||
z-index: | z-index: 2 !important; /* Важно: выше дерева категорий */ | ||
background-color: #f8f9fa !important; /* Фон панели | background-color: #f8f9fa !important; /* Фон панели */ | ||
} | } | ||
/* Контейнер для | /* Контейнер для навигации */ | ||
#p-navigation { | #p-navigation { | ||
position: sticky !important; | |||
top: 50px !important; /* Отступ от логотипа (пример) */ | |||
z-index: 2 !important; /* Важно: выше дерева категорий */ | |||
background-color: #f8f9fa !important; /* Фон панели */ | |||
} | } | ||
# | /* Контейнер для дерева категорий (должен быть внутри #mw-panel) */ | ||
#catlinks { | |||
height: calc(100vh - 150px) !important; /* Высота области с категориями */ | |||
overflow-y: auto !important; /* Вертикальная прокрутка только для этого блока */ | |||
# | |||
height: calc(100vh - | |||
overflow-y: auto !important; /* | |||
scrollbar-width: thin !important; /* Для Firefox */ | scrollbar-width: thin !important; /* Для Firefox */ | ||
scrollbar-color: #adb5bd #f8f9fa !important; /* Для Firefox */ | scrollbar-color: #adb5bd #f8f9fa !important; /* Для Firefox */ | ||
Строка 181: | Строка 181: | ||
/* Для Chrome, Edge и Safari */ | /* Для Chrome, Edge и Safari */ | ||
# | #catlinks::-webkit-scrollbar { | ||
width: 8px !important; | width: 8px !important; | ||
} | } | ||
# | #catlinks::-webkit-scrollbar-track { | ||
background: #f8f9fa !important; | background: #f8f9fa !important; | ||
} | } | ||
# | #catlinks::-webkit-scrollbar-thumb { | ||
background-color: #adb5bd !important; | background-color: #adb5bd !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
Строка 195: | Строка 195: | ||
} | } | ||
# | #catlinks::-webkit-scrollbar-thumb:hover { | ||
background-color: #868e96 !important; | background-color: #868e96 !important; | ||
} | |||
/* Основной контент (чтобы не перекрывался сайдбаром) */ | |||
#content { | |||
margin-left: 220px !important; /* Ширина сайдбара */ | |||
} | |||
#mw-head { | |||
margin-left: 220px !important; /* Ширина сайдбара */ | |||
} | } |