MediaWiki:Common.css: различия между версиями
Внешний вид
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
Строка 142: | Строка 142: | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
text-decoration: none; | |||
transition: transform linear 0.3s; | |||
will-change: transform; | |||
} | |||
.server__wrapper { | |||
transform: scale(1.05); | |||
} | } | ||
.server__img { | .server__img { | ||
Строка 159: | Строка 165: | ||
.server__info-title { | .server__info-title { | ||
font-size: 14px; | font-size: 14px; | ||
color: rgb(234, 236, 240); | |||
} | } | ||
.server__info-version { | .server__info-version { | ||
Строка 174: | Строка 181: | ||
justify-content: center; | justify-content: center; | ||
font-size: 20px; | font-size: 20px; | ||
color: rgb(234, 236, 240); | |||
} | } |
Версия от 22:47, 15 октября 2025
/* ====== Инфобокс ====== */
.infobox {
float: right;
clear: right;
margin: 0 0 1em 1em;
width: 320px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
border-radius: 4px;
overflow: hidden;
display: block;
}
.infobox .infobox-title {
font-weight: 700;
text-align: center;
padding: .5em;
background: #c6ffb3; /* или #7fff7f, подбери под стиль рамки */
}
.infobox .infobox-image {
text-align: center;
padding: .5em;
}
/* Галерея картинок в шапке карточки */
.infobox-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
gap: 6px;
align-items: end;
margin: .4em .5em;
}
.infobox-gallery .image {
display: block;
}
.infobox-gallery img {
max-width: 100%;
height: auto;
display: block;
}
/* Строки карточки */
.infobox-row {
display: flex;
border-top: 1px solid #a2a9b1;
}
.infobox-label {
flex: 0 0 40%;
background: #f3f4f5;
padding: .35em .5em;
font-weight: 600;
}
.infobox-data {
flex: 1;
padding: .35em .5em;
}
/* Утилиты */
.list-style-none {
list-style: none;
margin: 0;
padding: 0;
}
.invslot {
display: inline-block;
position: relative;
}
.invslot-item-image img {
vertical-align: bottom;
}
.invslot-stacksize {
position: absolute;
right: 2px;
bottom: 0;
font-weight: 700;
}
/* «Значение данных» */
.dv {
font-family: monospace;
padding: 0 .25em;
border: 1px solid #c8ccd1;
background: #fff;
border-radius: 3px;
}
/* Чуть ужимаем на узких экранах */
@media (max-width: 768px) {
.infobox {
float: none;
margin: 0 0 1em 0;
width: auto;
}
}
/* ====== Фиксы обтекания ====== */
/* Первому абзацу после инфобокса не сбрасывать float */
.mw-parser-output > .infobox + p {
clear: none !important;
}
/* Любому первому элементу после инфобокса не сбрасывать float */
.mw-parser-output > .infobox + * {
clear: none !important;
}
/* Снимаем глобальный clear у первых элементов, чтобы текст шёл слева */
.mw-parser-output > *:not(.infobox) {
clear: none !important;
}
/* Гарантируем, что инфобокс всегда справа */
.mw-parser-output > .infobox {
float: right;
margin: 0 0 1em 1em;
}
.sidebar__wrapper {
display: flex;
flex-direction: column;
gap: 40px;
padding-right: 10px;
margin-bottom: 50px;
}
.monitoring__wrapper {
display: flex;
flex-direction: column;
gap: 25px;
}
.server__wrapper {
display: flex;
flex-direction: row;
text-decoration: none;
transition: transform linear 0.3s;
will-change: transform;
}
.server__wrapper {
transform: scale(1.05);
}
.server__img {
width: 50px;
height: 50px;
margin-top: auto;
margin-bottom: auto;
margin-left: 10px;
margin-right: 10px;
}
.server__info {
display: flex;
flex-direction: column;
justify-content: center;
gap: 10px;
}
.server__info-title {
font-size: 14px;
color: rgb(234, 236, 240);
}
.server__info-version {
font-size: 12px;
font-weight: 600;
color: rgb(96, 103, 117);
text-wrap: nowrap;
}
.server__online {
width: 100%;
text-align: right;
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 20px;
color: rgb(234, 236, 240);
}