96flo (обсуждение | вклад) Нет описания правки |
96flo (обсуждение | вклад) Нет описания правки |
||
| Строка 107: | Строка 107: | ||
/* Собачка */ | /* Собачка */ | ||
@keyframes | @keyframes flying-bounce { | ||
0% { | 0%, 100% { | ||
transform: | transform: | ||
translate(20px, calc(100vh - 190px)) | |||
rotate(0deg); | |||
} | } | ||
25% { | 25% { | ||
transform: | transform: | ||
translate(calc(100vw - 190px), 80px) | |||
rotate(90deg); | |||
} | } | ||
50% { | 50% { | ||
transform: | transform: | ||
translate(70px, 30px) | |||
rotate(180deg); | |||
} | } | ||
75% { | 75% { | ||
transform: | transform: | ||
translate(calc(100vw - 300px), calc(100vh - 250px)) | |||
rotate(270deg); | |||
} | } | ||
} | } | ||
| Строка 127: | Строка 132: | ||
.fixed-image-corner { | .fixed-image-corner { | ||
position: fixed; | position: fixed; | ||
top: 0; | |||
left: 0; | left: 0; | ||
z-index: 1000; | z-index: 1000; | ||
| Строка 133: | Строка 138: | ||
opacity: 0.8; | opacity: 0.8; | ||
transition: opacity 0.3s; | transition: opacity 0.3s; | ||
width: 150px; | |||
height: 150px; | |||
animation: | animation: flying-bounce 18s infinite alternate ease-in-out; | ||
transition: transform 0.7s ease-out; | |||
} | } | ||
| Строка 146: | Строка 152: | ||
.fixed-image-corner img { | .fixed-image-corner img { | ||
width: 100%; | width: 100%; | ||
height: | height: 100%; | ||
transition: transform 0. | transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); | ||
} | } | ||
Версия от 23:56, 21 июня 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;
}
/* 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.83);
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;
}
}
/* Собачка */
@keyframes flying-bounce {
0%, 100% {
transform:
translate(20px, calc(100vh - 190px))
rotate(0deg);
}
25% {
transform:
translate(calc(100vw - 190px), 80px)
rotate(90deg);
}
50% {
transform:
translate(70px, 30px)
rotate(180deg);
}
75% {
transform:
translate(calc(100vw - 300px), calc(100vh - 250px))
rotate(270deg);
}
}
.fixed-image-corner {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
padding: 10px;
opacity: 0.8;
transition: opacity 0.3s;
width: 150px;
height: 150px;
animation: flying-bounce 18s infinite alternate ease-in-out;
transition: transform 0.7s ease-out;
}
.fixed-image-corner:hover {
opacity: 1;
animation-play-state: paused;
}
.fixed-image-corner img {
width: 100%;
height: 100%;
transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}