MediaWiki:Common.css: различия между версиями
Внешний вид
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
(не показаны 22 промежуточные версии этого же участника) | |||
Строка 6: | Строка 6: | ||
width: 320px; | width: 320px; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
background: #f8f9fa; | background: var(--background-color-neutral-subtle, #f8f9fa) !important; | ||
border-radius: 4px; | border-radius: 4px; | ||
overflow: hidden; | overflow: hidden; | ||
display: block; | display: block; | ||
} | |||
.infobox-label { | |||
background: var(--background-color-neutral-subtle, #f8f9fa) !important; | |||
} | } | ||
Строка 79: | Строка 83: | ||
.invslot-stacksize { | .invslot-stacksize { | ||
position: absolute; | position: absolute; | ||
right: 2px; | right: 2px; | ||
bottom: 0; | bottom: 0; | ||
font-weight: 700; | font-weight: 700; | ||
Строка 132: | Строка 136: | ||
gap: 40px; | gap: 40px; | ||
padding-right: 10px; | padding-right: 10px; | ||
margin-bottom: 50px; | |||
} | } | ||
.monitoring__wrapper { | .monitoring__wrapper { | ||
Строка 141: | Строка 146: | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
text-decoration: none !important; | |||
transition: transform linear 0.3s; | |||
will-change: transform; | |||
} | |||
.server__wrapper:hover { | |||
transform: scale(1.05); | |||
text-decoration: none; | |||
} | } | ||
.server__img { | .server__img { | ||
Строка 153: | Строка 165: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | |||
text-decoration: none; | |||
gap: 10px; | gap: 10px; | ||
} | } | ||
.server__info-title { | .server__info-title { | ||
font-size: 14px; | font-size: 14px; | ||
color: var(--color-base, #202122); | |||
text-decoration: none; | |||
} | } | ||
.server__info-version { | .server__info-version { | ||
font-size: 12px; | font-size: 12px; | ||
font-weight: 600; | font-weight: 600; | ||
color: rgb( | color: rgb(96, 103, 117); | ||
text-decoration: none; | |||
text-wrap: nowrap; | |||
} | } | ||
.server__online { | .server__online { | ||
Строка 171: | Строка 189: | ||
justify-content: center; | justify-content: center; | ||
font-size: 20px; | font-size: 20px; | ||
color: var(--color-base, #202122); | |||
text-decoration: none; | |||
} | |||
.vector-sticky-pinned-container { | |||
min-width: 248px; | |||
} | |||
.vector-sticky-pinned-container::-webkit-scrollbar { | |||
width: 4px; | |||
} | |||
.vector-sticky-pinned-container::-webkit-scrollbar-thumb { | |||
background: rgb(96, 103, 117); | |||
border-radius: 2px; | |||
} | |||
.vector-sticky-pinned-container::-webkit-scrollbar-track { | |||
background: rgba(96, 103, 117, .5); | |||
} | |||
.vector-column-end:has(.sidebar__wrapper) { | |||
width: fit-content !important; | |||
} | } |
Текущая версия от 06:57, 20 октября 2025
/* ====== Инфобокс ====== */
.infobox {
float: right;
clear: right;
margin: 0 0 1em 1em;
width: 320px;
border: 1px solid #a2a9b1;
background: var(--background-color-neutral-subtle, #f8f9fa) !important;
border-radius: 4px;
overflow: hidden;
display: block;
}
.infobox-label {
background: var(--background-color-neutral-subtle, #f8f9fa) !important;
}
.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 !important;
transition: transform linear 0.3s;
will-change: transform;
}
.server__wrapper:hover {
transform: scale(1.05);
text-decoration: none;
}
.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;
text-decoration: none;
gap: 10px;
}
.server__info-title {
font-size: 14px;
color: var(--color-base, #202122);
text-decoration: none;
}
.server__info-version {
font-size: 12px;
font-weight: 600;
color: rgb(96, 103, 117);
text-decoration: none;
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: var(--color-base, #202122);
text-decoration: none;
}
.vector-sticky-pinned-container {
min-width: 248px;
}
.vector-sticky-pinned-container::-webkit-scrollbar {
width: 4px;
}
.vector-sticky-pinned-container::-webkit-scrollbar-thumb {
background: rgb(96, 103, 117);
border-radius: 2px;
}
.vector-sticky-pinned-container::-webkit-scrollbar-track {
background: rgba(96, 103, 117, .5);
}
.vector-column-end:has(.sidebar__wrapper) {
width: fit-content !important;
}