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

Материал из IFВики
Перейти к навигации Перейти к поиску
(контейнер инфобоксов)
(стиль русских списков)
Строка 52: Строка 52:
 
   text-align: right;
 
   text-align: right;
 
   font-style: italic;
 
   font-style: italic;
 +
}
 +
 +
/* Стиль списков с автонумерацией русскими буквами.*/
 +
.lower-russian {
 +
  list-style-type: none;
 +
}
 +
.lower-russian li:before {
 +
  display: inline-block;
 +
  margin-left: -1.5em;
 +
  margin-right: .55em;
 +
  text-align: right;
 +
  width: .95em;
 +
}
 +
.lower-russian li:first-child:before {
 +
  content: "а.";
 +
}
 +
.lower-russian li:nth-child(2):before {
 +
  content: "б.";
 +
}
 +
.lower-russian li:nth-child(3):before {
 +
  content: "в.";
 +
}
 +
.lower-russian li:nth-child(4):before {
 +
  content: "г.";
 +
}
 +
.lower-russian li:nth-child(5):before {
 +
  content: "д.";
 +
}
 +
.lower-russian li:nth-child(6):before {
 +
  content: "е.";
 +
}
 +
.lower-russian li:nth-child(7):before {
 +
  content: "ё.";
 +
}
 +
.lower-russian li:nth-child(8):before {
 +
  content: "ж.";
 +
}
 +
.lower-russian li:nth-child(9):before {
 +
  content: "з.";
 +
}
 +
.lower-russian li:nth-child(10):before {
 +
  content: "и.";
 +
}
 +
.lower-russian li:nth-child(2):before {
 +
  content: "к.";
 
}
 
}

Версия 06:30, 8 июня 2016

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

.noautonum .tocnumber { display: none; }
.infobox {
  width: 300px;
  font-size:90%;
  text-align:left;
  float:right;
  clear: right;
  border:1px #CCC solid;
  margin-left:1em;
  margin-bottom:1em;
  border-collapse: collapse;
}
.infobox .header {
  font-size:110%;
  text-align: center;
  background-color: #FDF3C4;
}
.infobox tr,
.infobox td {
  border:1px #999 solid;
}
.infobox td {
  background-color: #FDF3C4;
}
.infobox-container {
  float: right;
  clear: right;
}
.leftbox {
  float:left;
  padding-right:3px;
  margin-right:3px;
}
.leftbox img {
  float: left;
  margin-right: 0.8em;
}
.mbox {
  text-align: left;
  border-color:#AAB #AAB #AAB #999;
  border-style: solid;
  border-width: 1px 1px 1px 10px;
  padding: 4px;
  vertical-align: center;
  background-color: #fefefe;
  text-align: left;
  float: none;
}
.epigraph {
  text-align: right;
  font-style: italic;
}

/* Стиль списков с автонумерацией русскими буквами.*/
.lower-russian {
  list-style-type: none;
}
.lower-russian li:before {
  display: inline-block;
  margin-left: -1.5em;
  margin-right: .55em;
  text-align: right;
  width: .95em;
}
.lower-russian li:first-child:before {
  content: "а.";
}
.lower-russian li:nth-child(2):before {
  content: "б.";
}
.lower-russian li:nth-child(3):before {
  content: "в.";
}
.lower-russian li:nth-child(4):before {
  content: "г.";
}
.lower-russian li:nth-child(5):before {
  content: "д.";
}
.lower-russian li:nth-child(6):before {
  content: "е.";
}
.lower-russian li:nth-child(7):before {
  content: "ё.";
}
.lower-russian li:nth-child(8):before {
  content: "ж.";
}
.lower-russian li:nth-child(9):before {
  content: "з.";
}
.lower-russian li:nth-child(10):before {
  content: "и.";
}
.lower-russian li:nth-child(2):before {
  content: "к.";
}