|
|
Строка 1: |
Строка 1: |
| /* Весь CSS будет отсюда будет загружен пользователям темы оформления «Векторная» */
| |
| /* Увеличение ширины сайдбара */
| |
| /* Увеличение ширины сайдбара */
| |
| #mw-panel {
| |
| width: 20em !important;
| |
| }
| |
|
| |
|
| /* Сдвиг основного контента, чтобы учесть расширение сайдбара */
| |
| #content {
| |
| margin-left: 22em !important; /* Немного больше, чтобы учесть отступы */
| |
| }
| |
| #footer {
| |
| margin-left: 22em !important;
| |
| }
| |
|
| |
| #mw-panel .portal:first-child {
| |
| order: -1;
| |
| }
| |
| .catlinks { display: none !important; }
| |
| .mw-subcategories {
| |
| display: none !important;
| |
| }
| |
|
| |
| /* Выравнивание текста при переносе */
| |
| .CategoryTreeChildren .CategoryTreeItem .CategoryTreePageBullet {
| |
| margin-left: -1em;
| |
| }
| |
|
| |
|
| |
|
| |
|
| |
| #p-categorytree-portlet {
| |
| background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
| |
| border: 2px solid #cfd8dc !important;
| |
| border-radius: 12px !important;
| |
| padding: 15px !important;
| |
| margin-bottom: 20px !important;
| |
| box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .vector-menu-heading {
| |
| font-size: 1.4em !important;
| |
| font-weight: 700 !important;
| |
| color: #495057 !important;
| |
| border-bottom: 2px dashed #adb5bd !important;
| |
| padding-bottom: 8px !important;
| |
| margin-bottom: 12px !important;
| |
| text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .vector-menu-content-list > li {
| |
| margin: 10px 0 !important;
| |
| padding: 12px !important;
| |
| border: 1px solid #dee2e6 !important;
| |
| border-radius: 10px !important;
| |
| background: linear-gradient(145deg, #ffffff, #f1f3f5) !important;
| |
| transition: background 0.3s ease, transform 0.3s ease !important;
| |
| box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .vector-menu-content-list > li:hover {
| |
| background: linear-gradient(145deg, #e9ecef, #dee2e6) !important;
| |
| transform: translateY(-2px) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .CategoryTreeItem {
| |
| margin: 6px 0 !important;
| |
| padding: 10px !important;
| |
| border: 1px solid #d1d9de !important;
| |
| border-radius: 8px !important;
| |
| background: linear-gradient(145deg, #fdfdfd, #f3f6f9) !important;
| |
| transition: transform 0.2s ease, background-color 0.3s ease !important;
| |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .CategoryTreeItem:hover {
| |
| background: linear-gradient(145deg, #ebf0f5, #e2e8ee) !important;
| |
| transform: scale(1.03) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .CategoryTreeBullet a {
| |
| font-size: 1em !important;
| |
| color: #007bff !important;
| |
| font-weight: 600 !important;
| |
| text-decoration: none !important;
| |
| transition: color 0.3s ease, text-shadow 0.3s ease !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .CategoryTreeBullet a:hover {
| |
| color: #0056b3 !important;
| |
| text-shadow: 1px 1px 3px rgba(0, 123, 255, 0.5) !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet .CategoryTreeChildren {
| |
| margin-left: 20px !important;
| |
| border-left: 2px solid #d0d9de !important;
| |
| padding-left: 12px !important;
| |
| background: linear-gradient(145deg, #fcfcfc, #f1f3f5) !important;
| |
| border-radius: 6px !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet a {
| |
| color: #007bff !important;
| |
| font-weight: 500 !important;
| |
| text-decoration: none !important;
| |
| transition: color 0.3s ease !important;
| |
| }
| |
|
| |
| #p-categorytree-portlet a:hover {
| |
| text-decoration: underline !important;
| |
| color: #0056b3 !important;
| |
| }
| |
|
| |
|
| |
| /* Скрываем все элементы внутри основного текстового блока страницы категории */
| |
| .ns-14 .mw-category-generated {
| |
| display: none !important;
| |
| }
| |
|
| |
|
| |
| /* Ограничение ширины изображений */
| |
| .mw-content-ltr img {
| |
| max-width: 100% !important;
| |
| height: auto !important;
| |
| display: block;
| |
| margin: 0 auto;
| |
| }
| |
|
| |
| /* Ограничение ширины встроенных изображений */
| |
| .thumb img,
| |
| .mw-file-element {
| |
| max-width: 90% !important;
| |
| height: auto !important;
| |
| }
| |
|
| |
| .CategoryTreeItem {
| |
| /* Ваши предыдущие стили */
| |
| cursor: pointer; /* Изменяем курсор при наведении */
| |
| }
| |
|
| |
| .CategoryTreeItem:hover {
| |
| /* Ваши предыдущие стили для hover */
| |
| background: linear-gradient(145deg, #ebf0f5, #e2e8ee) !important;
| |
| transform: scale(1.03) !important;
| |
| }
| |
| /* Промотка индексменю */ | | /* Промотка индексменю */ |
| /* Общие стили для левой панели (фиксированная ширина) */ | | /* Общие стили для левой панели (фиксированная ширина) */ |
/* Промотка индексменю */
/* Общие стили для левой панели (фиксированная ширина) */
#mw-panel {
position: fixed !important;
top: 0 !important;
left: 0 !important;
height: 100vh !important;
width: 220px !important; /* Фиксированная ширина панели */
overflow: hidden !important; /* Скрываем общую прокрутку панели */
}
/* Логотип */
#p-logo {
position: sticky !important;
top: 0 !important;
z-index: 3 !important; /* Важно: выше дерева категорий и навигации */
background-color: #f8f9fa !important; /* Фон панели */
}
/* Навигация */
#p-navigation {
position: sticky !important;
top: 50px !important; /* Отступ от логотипа, регулируйте */
z-index: 3 !important; /* Важно: выше дерева категорий */
background-color: #f8f9fa !important; /* Фон панели */
}
/* Контейнер для дерева категорий */
#catlinks {
position: absolute !important; /* Абсолютное позиционирование внутри #mw-panel */
top: 100px !important; /* Отступ от верха панели, регулируйте */
left: 0 !important;
width: 100% !important; /* Занимает всю ширину панели */
height: calc(100vh - 150px) !important; /* Высота области с категориями, регулируйте */
overflow-y: auto !important; /* Вертикальная прокрутка только для этого блока */
scrollbar-width: thin !important; /* Для Firefox */
scrollbar-color: #adb5bd #f8f9fa !important; /* Для Firefox */
}
/* Стили для полосы прокрутки (Chrome, Edge, Safari) */
#catlinks::-webkit-scrollbar {
width: 8px !important;
}
#catlinks::-webkit-scrollbar-track {
background: #f8f9fa !important;
}
#catlinks::-webkit-scrollbar-thumb {
background-color: #adb5bd !important;
border-radius: 4px !important;
border: 2px solid #f8f9fa !important;
}
#catlinks::-webkit-scrollbar-thumb:hover {
background-color: #868e96 !important;
}
/* Стили для основного контента, чтобы не перекрывался сайдбаром */
#content {
margin-left: 220px !important; /* Ширина сайдбара */
}
#mw-head {
margin-left: 220px !important; /* Ширина сайдбара */
}
#mw-navigation {
margin-left: 220px !important; /* Ширина сайдбара */
}