Перейти к содержанию

MediaWiki:Common.css: различия между версиями

Материал из GravityWiki
Нет описания правки
Нет описания правки
 
(не показана 31 промежуточная версия этого же участника)
Строка 1: Строка 1:
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* ====== Инфобокс ====== */
/* ====== Инфобокс ====== */
.infobox{
  float:right; clear:right; margin:0 0 1em 1em; width:320px;
  border:1px solid #a2a9b1; background:#f8f9fa; border-radius:4px; overflow:hidden
}
.infobox .infobox-title{
  font-weight:700; text-align:center; padding:.5em; background:#eaecf0
}
.infobox .infobox-image{ text-align:center; padding:.5em }
/* Строки карточки */
.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 }
/* Галерея картинок в шапке карточки */
.infobox-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:6px; align-items:end; margin:.4em .5em
}
/* Картинки могут приходить как <a class="image"><img…> */
.infobox-gallery .image{ display:block }
.infobox-gallery img{ max-width:100%; height:auto; display:block }
/* Утилиты */
.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 }
}
.infobox {
.infobox {
   float: right;
   float: right;
Строка 50: Строка 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;
}
.infobox-label {
  background: var(--background-color-neutral-subtle, #f8f9fa) !important;
}
}


Строка 59: Строка 20:
   text-align: center;
   text-align: center;
   padding: .5em;
   padding: .5em;
   background: #eaecf0;
   background: #c6ffb3; /* или #7fff7f, подбери под стиль рамки */
}
}


Строка 67: Строка 28:
}
}


/* Галерея картинок в шапке карточки */
.infobox-gallery {
.infobox-gallery {
   display: grid;
   display: grid;
Строка 73: Строка 35:
   align-items: end;
   align-items: end;
   margin: .4em .5em;
   margin: .4em .5em;
}
.infobox-gallery .image {
  display: block;
}
}


Строка 81: Строка 47:
}
}


/* Строки карточки */
.infobox-row {
.infobox-row {
   display: flex;
   display: flex;
Строка 98: Строка 65:
}
}


/* Утилиты */
.list-style-none {
.list-style-none {
   list-style: none;
   list-style: none;
Строка 104: Строка 72:
}
}


.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) {
@media (max-width: 768px) {
   .infobox {
   .infobox {
Строка 112: Строка 106:
}
}


/* Разрешаем первому абзацу обтекать инфобокс */
/* ====== Фиксы обтекания ====== */
.mw-parser-output > .infobox + p { clear: none; }
 
/* Первому абзацу после инфобокса не сбрасывать 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) {
.infobox { float: right; display: block; }
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;
}