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

Страница интерфейса MediaWiki
(Добавление стилей шаблона)
м (Плановый перенос содержимого)
Метка: ручная отмена
 
(не показано 18 промежуточных версий этого же участника)
Строка 1: Строка 1:
/*** Таблица КЗ ***/
/*** Блок оформления слота - минимализм ***/
.spacelaw table {
.minimal-slot:hover {
text-align: center;
    border-image: url("https://wiki.adventurestation.space/images/e/ed/Minimal-slot_highlight.png") 128 stretch;
}
}


.spacelaw tr {
.minimal-slot {
    height: 50px;
border: 12px solid #242230;
border-image: url("https://wiki.adventurestation.space/images/a/af/Minimal-slot-border.png") 128 stretch;
border-radius: 10px 25px;
background-image: url("https://wiki.adventurestation.space/images/b/b2/Minimal-slot-background.png");
background-size: 2.6px;
}
}


.spacelaw tr:nth-child(1) {
/*** Чередование строк в таблице ***/
     background-color: #0000008f;
.alternation tr:nth-child(even) {
     background-color: var(--color-surface-1);
}
}


.spacelaw td {
/*** Инфобоксы ***/
    text-align: center;
/* Мобильная адаптация */
@media(max-width: 700px) {
div.infobox {
float: none;
margin: 16px;
width: auto;
}
}
}


/** 1XX **/
/* Основные селекторы */
.spacelaw :is(td:nth-child(2), th:nth-child(2)) {
.infobox {
    background-color: #31ff7f2e;
  display: flex;
}
  flex-direction: column;
 
  flex-wrap: nowrap;
/** 2XX **/
 
.spacelaw :is(td:nth-child(3), th:nth-child(3)) {
  float: right;
    background-color: #e9ff002e;
  margin-left: 16px;
}
 
  width: 318px;


/** 3XX **/
  background: #000;
.spacelaw :is(td:nth-child(4), th:nth-child(4)) {
    background-color: #ff61002e;
}
}


/** 4XX **/
.inf-title {
.spacelaw :is(td:nth-child(5), th:nth-child(5)) {
  padding: 2px 4px;
    background-color: #ff00002e;
}


/** 5XX **/
  background-color: var(--color-surface-1);
.spacelaw :is(td:nth-child(6), th:nth-child(6)) {
 
    background-color: #0000002e;
  text-align: center;
  font-size: 1.8em;
}
}


/* Таблица модификаторов */
div.infobox > p {
.circumstances td {
     text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/
     text-align: center;
}
}


.circumstances tr:nth-child(1) {
.inf-row {
    background-color: #0000008f;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
 
  padding: 6px 6px;
 
  border-bottom: solid black 1px;
  background-color: var(--color-surface-2);
}
}


.circumstances :is(td:nth-child(1), th:nth-child(1)) {
.inf-row:last-child {
     background-color: #ff00002e;
     border-bottom: none;
}
}


.circumstances :is(td:nth-child(2), th:nth-child(2)) {
.inf-row:hover {
     background-color: #31ff7f2e;
     background-color: var(--color-surface-2--hover);
}
}


/*** Шаблон:JobBanWarn ***/
.inf-label {
table .jobbanwarn {
  flex: 1 2 35%;
    background: #ff000020;
 
    border-radius: 15px;
  text-align: left;
    text-align: center;
  font-weight: bold;
    margin: auto;
}
}


.jobbanwarn td .first {
.inf-data {
    font-size: 36px;
  flex: 3 1 65%;
    color: red;
  padding-left: 6px;
    padding: 7px;
 
    text-shadow: 0 0 black;
  text-align: left;
}
}


.jobbanwarn td .second p {
.inf-header {
margin-bottom:0 ;
  padding: 2px 4px;
 
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
 
  background-color: var(--color-surface-4);
}
}

Текущая версия от 14:57, 1 июля 2024

/*** Блок оформления слота - минимализм ***/
.minimal-slot:hover {
    border-image: url("https://wiki.adventurestation.space/images/e/ed/Minimal-slot_highlight.png") 128 stretch;
}

.minimal-slot {
	border: 12px solid #242230;
	border-image: url("https://wiki.adventurestation.space/images/a/af/Minimal-slot-border.png") 128 stretch;
	border-radius: 10px 25px;
	
	background-image: url("https://wiki.adventurestation.space/images/b/b2/Minimal-slot-background.png");
	background-size: 2.6px;
}

/*** Чередование строк в таблице ***/
.alternation tr:nth-child(even) {
    background-color: var(--color-surface-1);
}

/*** Инфобоксы ***/
/* Мобильная адаптация */
@media(max-width: 700px) {
	div.infobox {
		float: none;
		
		margin: 16px;
		width: auto;
	}
}

/* Основные селекторы */
.infobox {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  
  float: right;
  margin-left: 16px;
  
  width: 318px;

  background: #000;
}

.inf-title {  
  padding: 2px 4px;

  background-color: var(--color-surface-1);
  
  text-align: center;
  font-size: 1.8em;
}

div.infobox > p {
    text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/
}

.inf-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  
  padding: 6px 6px;
  
  border-bottom: solid black 1px;
  background-color: var(--color-surface-2);
}

.inf-row:last-child {
    border-bottom: none;
}

.inf-row:hover {
    background-color: var(--color-surface-2--hover);
}

.inf-label {
  flex: 1 2 35%;
  
  text-align: left;
  font-weight: bold;
}

.inf-data {
  flex: 3 1 65%;
  padding-left: 6px;
  
  text-align: left;
}

.inf-header {
  padding: 2px 4px;
  
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  
  background-color: var(--color-surface-4);
}