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

Страница интерфейса MediaWiki
(Загрузка стилей для инфобокса)
м (Обновление стилей в соответствии с основной темой оформления)
Строка 40: Строка 40:
   width: 318px;
   width: 318px;


  border: solid #000 6px;
   background: #000;
   background: #000;
}
}
Строка 47: Строка 46:
   padding: 2px 4px;
   padding: 2px 4px;


   background-color: #eee;
   background-color: var(--color-surface-1);
    
    
   text-align: center;
   text-align: center;
   font-size: 1.8em;
   font-size: 1.8em;
}
div.infobox > p {
    text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/
}
}


Строка 61: Строка 64:
   padding: 6px 6px;
   padding: 6px 6px;
    
    
   background-color: #363d49;
  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);
}
}


Строка 68: Строка 80:
    
    
   text-align: left;
   text-align: left;
  font-size: 1.05em;
   font-weight: bold;
   font-weight: bold;
}
}
Строка 86: Строка 97:
   font-weight: bold;
   font-weight: bold;
    
    
   background-color: #424a57;
   background-color: var(--color-surface-4);
}
}

Версия от 22:05, 23 марта 2024

/* Временный общий импорт стиля для шаблона */
@import "/index.php?ctype=text/css&action=raw&title=MediaWiki:Extra.css";

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

.skin-citizen-light .alternation tr:nth-child(even) {
	background-color: #0000001a;
}

/* Общий стиль таблиц статей */
.citizen-table-wrapper td {
	padding: 6px 4px;
}

/* Костыль с использованием image url для Шаблона:Заголовок */
.home-header:before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 4.75rem;
    left: 0;
    right: 0;
    opacity: 0.1;
    background-image: url("https://wiki.adventurestation.space/images/4/40/LOGO.png");
    background-repeat: no-repeat;
    background-position: right;
}

/* Общий стиль для инфобокса */
.infobox {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  
  float: right;
  
  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);
}