MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Нет описания правки |
Нет описания правки |
||
| Строка 1: | Строка 1: | ||
.wikinotice { | .wikinotice { | ||
margin: 1em 0; | margin: 1em 0; | ||
Версия от 23:36, 12 апреля 2026
.wikinotice {
margin: 1em 0;
padding: 12px;
border-radius: 4px;
border-left: 4px solid #444;
background-color: #1a1b26;
color: #e1e1e1;
}
.wikinotice-title {
font-weight: bold;
margin-bottom: 5px;
font-size: 1.1em;
}
.wikinotice-content {
line-height: 1.5;
}
.wikinotice.notice-warning {
background-color: #2a2415;
border-left-color: #ffab00;
}
.wikinotice.notice-warning .wikinotice-title {
color: #ffd54f;
}
.wikinotice.notice-info {
background-color: #151d2a;
border-left-color: #2962ff;
}
.wikinotice.notice-info .wikinotice-title {
color: #90caf9;
}
.wikinotice.notice-success {
background-color: #162317;
border-left-color: #4caf50;
}
.wikinotice.notice-success .wikinotice-title {
color: #a5d6a7;
}
.yastre-carousel-container {
position: relative;
width: 100%;
max-width: 700px;
margin: 20px auto;
height: 350px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.yastre-carousel {
position: relative;
width: 100%;
height: 100%;
}
.carousel-item {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
margin: auto;
width: 300px;
height: fit-content;
transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
text-align: center;
opacity: 0;
z-index: 0;
pointer-events: none;
}
.carousel-item.active {
transform: translateX(0) scale(1);
opacity: 1;
z-index: 3;
pointer-events: auto;
}
.carousel-item.prev {
transform: translateX(-60%) scale(0.8);
opacity: 0.6;
z-index: 2;
pointer-events: auto;
cursor: pointer;
}
.carousel-item.next {
transform: translateX(60%) scale(0.8);
opacity: 0.6;
z-index: 2;
pointer-events: auto;
cursor: pointer;
}
.carousel-item .carousel-image img {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}