MediaWiki:Vector.css: различия между версиями
Shihov (обсуждение | вклад) Нет описания правки |
Shihov (обсуждение | вклад) Нет описания правки |
||
(не показано 47 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
.vector-legacy-sidebar { | |||
font-size: 0.8em !important; | |||
} | |||
/* Весь CSS будет отсюда будет загружен пользователям темы оформления «Векторная» */ | /* Весь CSS будет отсюда будет загружен пользователям темы оформления «Векторная» */ | ||
.mw-content-ltr img { | |||
display: inline !important; | |||
} | |||
#p-logo a{ | |||
position: absolute !important; | |||
top: 10px !important; | |||
left: -70px !important; | |||
height: 60px !important; /* Ограниченная высота */ | |||
width: 500px !important; | |||
background-size: contain !important; | |||
} | |||
/* Увеличение ширины сайдбара */ | /* Увеличение ширины сайдбара */ | ||
/* Увеличение ширины сайдбара */ | /* Увеличение ширины сайдбара */ | ||
#mw-panel { | #mw-panel { | ||
width: | width: 32em !important; | ||
} | } | ||
/* Сдвиг основного контента, чтобы учесть расширение сайдбара */ | /* Сдвиг основного контента, чтобы учесть расширение сайдбара */ | ||
#content { | #content { | ||
margin-left: | margin-left: 27em !important; /* Немного больше, чтобы учесть отступы */ | ||
} | } | ||
#footer { | #footer { | ||
margin-left: | margin-left: 30em !important; | ||
} | } | ||
Строка 17: | Строка 36: | ||
order: -1; | order: -1; | ||
} | } | ||
.catlinks { display: none !important; } | /*.catlinks { display: none !important; } | ||
.mw-subcategories { | .mw-subcategories { | ||
display: none !important; | display: none !important; | ||
} | }*/ | ||
/* Выравнивание текста при переносе */ | /* Выравнивание текста при переносе */ | ||
Строка 31: | Строка 50: | ||
#p-categorytree-portlet { | #p-categorytree-portlet { | ||
background: linear-gradient(145deg, #f8f9fa, #e9ecef) | top: -95px; | ||
background: linear-gradient(145deg, #f8f9fa, #e9ecef); | |||
border: 2px solid #cfd8dc !important; | border: 2px solid #cfd8dc !important; | ||
border-radius: 12px !important; | border-radius: 12px !important; | ||
Строка 54: | Строка 74: | ||
border: 1px solid #dee2e6 !important; | border: 1px solid #dee2e6 !important; | ||
border-radius: 10px !important; | border-radius: 10px !important; | ||
background: linear-gradient(145deg, #ffffff, #f1f3f5) | background: linear-gradient(145deg, #ffffff, #f1f3f5); | ||
transition: background 0.3s ease, transform 0.3s ease !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; | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(255, 255, 255, 0.6) !important; | ||
Строка 69: | Строка 89: | ||
border: 1px solid #d1d9de !important; | border: 1px solid #d1d9de !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
background: linear-gradient(145deg, #fdfdfd, #f3f6f9) | background: linear-gradient(145deg, #fdfdfd, #f3f6f9); | ||
transition: transform 0.2s ease, background-color 0.3s ease !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; | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important; | ||
Строка 148: | Строка 168: | ||
position: absolute !important; /* Абсолютное позиционирование */ | position: absolute !important; /* Абсолютное позиционирование */ | ||
z-index: 10 !important; /* Устанавливаем высокий z-index, чтобы был поверх */ | z-index: 10 !important; /* Устанавливаем высокий z-index, чтобы был поверх */ | ||
left: | left: 280px !important; /* Устанавливаем отступ слева */ | ||
} | } | ||
/* Промотка индексменю */ | /* Промотка индексменю */ | ||
Строка 185: | Строка 205: | ||
#p-categorytree-portlet:hover { | #p-categorytree-portlet:hover { | ||
opacity: 1 !important; | opacity: 1 !important; | ||
} | |||
/* Стиль для подсветки последнего открытого элемента */ | |||
/* Подсветка выбранного элемента, стилизуем так же, как hover */ | |||
.CategoryTreeItem.highlighted { | |||
background: linear-gradient(145deg, #ebf0f5, #e2e8ee) !important; | |||
transform: scale(1.03) !important; | |||
border: 2px solid #007bff !important; /* Синий контур для выделения */ | |||
} | |||
/* По умолчанию скрываем дерево категорий */ | |||
@media (max-width: 768px) { | |||
/* По умолчанию скрываем дерево категорий только на мобильных */ | |||
#p-categorytree-portlet { | |||
display: none; | |||
} | |||
/* Кнопка для раскрытия дерева */ | |||
#category-toggle { | |||
display: block; | |||
text-align: center; | |||
background: #007bff; | |||
color: white; | |||
padding: 8px 12px; | |||
border-radius: 6px; | |||
cursor: pointer; | |||
font-size: 14px; | |||
margin: 10px 0; | |||
transition: background 0.3s ease; | |||
} | |||
#category-toggle:hover { | |||
background: #0056b3; | |||
} | |||
} | } |