96flo (обсуждение | вклад) м (Защитила страницу MediaWiki:Common.css ([Редактирование=Разрешено только редакторам wiki] (бессрочно) [Переименование=Разрешено только редакторам wiki] (бессрочно))) |
96flo (обсуждение | вклад) Нет описания правки |
||
| Строка 22: | Строка 22: | ||
color: var(--theme-text-color); | color: var(--theme-text-color); | ||
text-align: center; | text-align: center; | ||
border: 1px solid #402e75; | border: 1px solid #402e75; | ||
box-shadow: 0 0 1px #14181780; | box-shadow: 0 0 1px #14181780; | ||
padding: 12px; | padding: 12px; | ||
border-radius: 1.4rem; | border-radius: 1.4rem; | ||
| Строка 31: | Строка 31: | ||
max-width: 100%; | max-width: 100%; | ||
left: 50%; | left: 50%; | ||
/* Изменено позиционирование на снизу */ | |||
transform: translateX(-50%) translateY(10px); | top: 100%; /* Располагаем под элементом */ | ||
margin-top: 10px; /* Отступ от элемента */ | |||
transform: translateX(-50%) translateY(-10px); /* Сдвигаем вверх для анимации */ | |||
transition: opacity 0.3s ease, transform 0.3s ease; | transition: opacity 0.3s ease, transform 0.3s ease; | ||
font-size: initial; | font-size: initial; | ||
| Строка 40: | Строка 42: | ||
visibility: visible; | visibility: visible; | ||
opacity: 1; | opacity: 1; | ||
transform: translateX(-50%) translateY(0); | transform: translateX(-50%) translateY(0); /* Возвращаем на исходную позицию */ | ||
} | } | ||
/* | /* Остальные стили остаются без изменений */ | ||
@media screen and (min-width: 851px) { | @media screen and (min-width: 851px) { | ||
.mobile { | .mobile { | ||
Версия от 14:37, 31 мая 2025
/* Hide title and edit tools on main page */
.page-Заглавная_страница .mw-body-header,
.page-Заглавная_страница .mw-body-footer {
display: none!important;
}
.page-Заглавная_страница .citizen-body-container {
margin: 0!important;
}
.tooltip {
position: relative;
display: inline-block;
cursor: help;
border-bottom: 1px dotted var(--theme-text-color-dark);
}
.tooltip .tooltiptext {
visibility: hidden;
opacity: 0;
background: rgba(20, 24, 31, 0.5);
color: var(--theme-text-color);
text-align: center;
border: 1px solid #402e75;
box-shadow: 0 0 1px #14181780;
padding: 12px;
border-radius: 1.4rem;
position: absolute;
z-index: 1500 !important;
min-width: 240px;
max-width: 100%;
left: 50%;
/* Изменено позиционирование на снизу */
top: 100%; /* Располагаем под элементом */
margin-top: 10px; /* Отступ от элемента */
transform: translateX(-50%) translateY(-10px); /* Сдвигаем вверх для анимации */
transition: opacity 0.3s ease, transform 0.3s ease;
font-size: initial;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
transform: translateX(-50%) translateY(0); /* Возвращаем на исходную позицию */
}
/* Остальные стили остаются без изменений */
@media screen and (min-width: 851px) {
.mobile {
display: none;
}
.headder {
width: 25%;
float: right;
margin-left: 1em;
}
.stiky {
position: sticky;
top: 0.1em;
}
}
@media screen and (max-width: 850px) {
.nomobile {
display: none !important;
}
.headder {
width: 100%;
margin-left: 0;
}
.tooltip {
position: static;
border-bottom: none;
}
.tooltip .tooltiptext {
position: fixed !important;
width: 80vw !important;
top: 40vh !important;
left: 0 !important;
right: 0 !important;
bottom: auto !important;
margin: 0 auto !important;
transform: none !important;
padding: 22px;
}
.mobile-image img {
width: 32px;
height: 32px;
}
}