MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Peandre2 (обсуждение | вклад) |
Peandre2 (обсуждение | вклад) |
||
Строка 18: | Строка 18: | ||
.infobox td, .infobox th {vertical-align:top} | .infobox td, .infobox th {vertical-align:top} | ||
table.infobox td p {margin:0} /* temporarily for [[Template:Карточка]]*/ | table.infobox td p {margin:0} /* temporarily for [[Template:Карточка]]*/ | ||
+ | |||
+ | /* Списки в карточках */ | ||
+ | .infobox th:not(.noplainlist) > ul, | ||
+ | .infobox td:not(.noplainlist) > ul, | ||
+ | .infobox [data-wikidata-property-id] > ul { | ||
+ | list-style-type: none; | ||
+ | list-style-image: none; | ||
+ | margin: 0; | ||
+ | } | ||
+ | .infobox .noplainlist > ul:first-child { | ||
+ | margin-top: 0; | ||
+ | } | ||
+ | .infobox th > ol, | ||
+ | .infobox td > ol, | ||
+ | .infobox [data-wikidata-property-id] > ol { | ||
+ | margin: 0 0 0 2em; | ||
+ | } | ||
+ | .infobox th > dl, | ||
+ | .infobox td > dl, | ||
+ | .infobox [data-wikidata-property-id] > dl { | ||
+ | margin: 0; | ||
+ | } | ||
+ | .infobox li, | ||
+ | .infobox dt, | ||
+ | .infobox dd { | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | .infobox th > ol.references, | ||
+ | .infobox td > ol.references { | ||
+ | line-height: 1.25em; | ||
+ | } | ||
+ | .infobox th > ol.references li, | ||
+ | .infobox td > ol.references li { | ||
+ | margin-bottom: 0.1em; | ||
+ | } | ||
+ | .infobox th > ol.references li:last-child, | ||
+ | .infobox td > ol.references li:last-child { | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | |||
+ | /* ToDo: temporarily fix */ | ||
+ | .infobox td p { | ||
+ | margin: 0 !important; | ||
+ | } |
Версия 10:05, 23 февраля 2020
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
body.page-Заглавная_страница h1.firstHeading { display: none; }
/* temporarily for [[Template:Карточка]]*/
.infobox {
border: 1px solid #aaa;
background: #f9f9f9;
margin-bottom: 0.5em;
margin-left: 1em;
padding:.4em;
float: right;
clear: right;
font-size: 90%;
width: 23em;
vertical-align: middle;
}
.infobox td, .infobox th {vertical-align:top}
table.infobox td p {margin:0} /* temporarily for [[Template:Карточка]]*/
/* Списки в карточках */
.infobox th:not(.noplainlist) > ul,
.infobox td:not(.noplainlist) > ul,
.infobox [data-wikidata-property-id] > ul {
list-style-type: none;
list-style-image: none;
margin: 0;
}
.infobox .noplainlist > ul:first-child {
margin-top: 0;
}
.infobox th > ol,
.infobox td > ol,
.infobox [data-wikidata-property-id] > ol {
margin: 0 0 0 2em;
}
.infobox th > dl,
.infobox td > dl,
.infobox [data-wikidata-property-id] > dl {
margin: 0;
}
.infobox li,
.infobox dt,
.infobox dd {
margin-bottom: 0;
}
.infobox th > ol.references,
.infobox td > ol.references {
line-height: 1.25em;
}
.infobox th > ol.references li,
.infobox td > ol.references li {
margin-bottom: 0.1em;
}
.infobox th > ol.references li:last-child,
.infobox td > ol.references li:last-child {
margin-bottom: 0;
}
/* ToDo: temporarily fix */
.infobox td p {
margin: 0 !important;
}