MediaWiki:Common.css: различия между версиями
Внешний вид
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
(не показано 36 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
/* | /* ====== Инфобокс ====== */ | ||
.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; | |||
.infobox .infobox-title{font-weight:700;text-align:center; | padding: .5em; | ||
background: #c6ffb3; /* или #7fff7f, подбери под стиль рамки */ | |||
} | |||
/* Галерея картинок | .infobox .infobox-image { | ||
.infobox-gallery{display:grid;grid-template-columns:repeat(auto- | text-align: center; | ||
gap:6px;align-items:end;margin:.4em .5em} | padding: .5em; | ||
.infobox-gallery img{width:100%;height:auto} | } | ||
/* Галерея картинок в шапке карточки */ | |||
.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} | .list-style-none { | ||
.invslot{display:inline-block;position:relative} | list-style: none; | ||
.invslot-item-image img{vertical-align:bottom} | margin: 0; | ||
.invslot-stacksize{position:absolute;right:2px;bottom:0;font-weight:700} | 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; | ||
} |
Текущая версия от 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;
}