MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Нет описания правки |
Нет описания правки |
||
| (не показано 19 промежуточных версий этого же участника) | |||
| Строка 4: | Строка 4: | ||
min-width: 100px; | min-width: 100px; | ||
border: 1px solid #3A3D4A; | border: 1px solid #3A3D4A; | ||
border-radius: 0 0 8px 8px; | |||
border-spacing: 0; | |||
background-color: #12141A; | background-color: #12141A; | ||
padding: 12px; | |||
color: #e0e0e0; | color: #e0e0e0; | ||
font-size: 90%; | font-size: 90%; | ||
| Строка 20: | Строка 23: | ||
background-color: #000; | background-color: #000; | ||
border: 1px solid #222; | border: 1px solid #222; | ||
border- | border-radius: 8px 8px 0 0; | ||
} | } | ||
| Строка 33: | Строка 36: | ||
padding: 0.4em; | padding: 0.4em; | ||
background-color: #22242B; | background-color: #22242B; | ||
} | } | ||
.infobox .infobox-label { | .infobox .infobox-label { | ||
font-weight: bold; | font-weight: bold; | ||
padding | padding: 0.4em 1em 0.4em 0.4em; | ||
color: #b0b0b0; | color: #b0b0b0; | ||
vertical-align: top; | |||
text-align: left; | |||
border-top: 1px solid #3A3D4A; | |||
} | } | ||
.infobox .infobox-data { | .infobox .infobox-data { | ||
text-align: left; | text-align: left; | ||
padding: 0.4em 0.4em 0.4em 0; | |||
border-top: 1px solid #3A3D4A; | |||
} | } | ||
| Строка 73: | Строка 73: | ||
line-height: inherit; | line-height: inherit; | ||
white-space: normal; | white-space: normal; | ||
} | |||
.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); | |||
} | } | ||
Текущая версия от 16:56, 20 февраля 2026
.infobox {
width: auto;
max-width: 400px;
min-width: 100px;
border: 1px solid #3A3D4A;
border-radius: 0 0 8px 8px;
border-spacing: 0;
background-color: #12141A;
padding: 12px;
color: #e0e0e0;
font-size: 90%;
line-height: 1.5;
float: right;
margin: 0.5em 0 0.5em 1em;
clear: right;
}
.infobox .infobox-title {
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.5em;
background-color: #000;
border: 1px solid #222;
border-radius: 8px 8px 0 0;
}
.infobox .infobox-image {
text-align: center;
padding: 10px;
}
.infobox .infobox-header {
font-weight: bold;
text-align: center;
padding: 0.4em;
background-color: #22242B;
}
.infobox .infobox-label {
font-weight: bold;
padding: 0.4em 1em 0.4em 0.4em;
color: #b0b0b0;
vertical-align: top;
text-align: left;
border-top: 1px solid #3A3D4A;
}
.infobox .infobox-data {
text-align: left;
padding: 0.4em 0.4em 0.4em 0;
border-top: 1px solid #3A3D4A;
}
.infobox .infobox-image a.mw-file-description {
display: block;
margin-bottom: 0.5em;
}
.infobox .infobox-data ul {
margin: 0;
padding-left: 1.5em;
list-style-position: inside;
}
.infobox .infobox-data pre,
.infobox .infobox-data p {
background-color: transparent;
border: none;
margin: 0;
padding: 0;
font-family: inherit;
line-height: inherit;
white-space: normal;
}
.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);
}