MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Koshkin (обсуждение | вклад) (Новая страница: «→Размещённый здесь CSS будет применяться ко всем темам оформления: .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox-table th { text-align: right; vertical-align: top; width: 120px; } .i...») |
Koshkin (обсуждение | вклад) Нет описания правки |
||
Строка 1: | Строка 1: | ||
.infobox { | .infobox { | ||
border: 1px solid #a2a9b1; | |||
background: #f8f9fa; | |||
margin-bottom: .5em; | |||
margin-left: 1em; | |||
padding: .4em; | |||
float: right; | |||
clear: right; | |||
font-size: 90%; | |||
width: 23em; | |||
vertical-align: middle; | |||
text-align: left; | |||
line-height: 1.5em; | |||
border-collapse: separate; | |||
border-spacing: 2px; | |||
} | } | ||
.infobox- | .infobox > caption { | ||
font-size: 125%; | |||
font-weight: bold; | |||
padding: .2em; | |||
} | |||
.infobox td, | |||
.infobox th { | |||
vertical-align: top; | |||
} | |||
/* Компоненты карточки */ | |||
.infobox-above { | |||
background: #cfe3ff; | |||
font-size: 120%; | |||
text-align: center; | |||
} | } | ||
.infobox-image { | .infobox-image { | ||
padding-left: 0; | |||
padding-right: 0; | |||
text-align: center; | |||
} | |||
.infobox-header { | |||
background: #dcebff; | |||
text-align: center; | |||
} | |||
.infobox-below { | |||
background: #dcebff; | |||
text-align: center; | |||
} | |||
.infobox-table, | |||
.infobox-tablebox, | |||
.infobox-medals { | |||
padding: 0; | |||
} | |||
.infobox-inner-table, | |||
.infobox-table > table, | |||
.infobox-tablebox > table, | |||
.infobox-medals > table { | |||
width: 100%; | |||
display: table; | |||
margin: 0; | |||
background: transparent; | |||
} | |||
.infobox-tablebox > table { | |||
background: #ffffff; | |||
border: 1px solid #a2a9b1; | |||
} | |||
.infobox-medals > table { | |||
border-collapse: separate; | |||
} | |||
.infobox-medals .NavFrame { | |||
padding: 0; | |||
border: none; | |||
font-size: 100%; | |||
} | |||
.infobox-medals .NavFrame .NavHead { | |||
padding: 1px 5em; | |||
} | |||
.infobox-medals .NavFrame .NavToggle { | |||
position: absolute; | |||
top: 1px; | |||
right: 1px; | |||
} | |||
.infobox-medals .NavFrame .NavContent { | |||
font-size: 95%; | |||
} | |||
/* Встраиваемая карточка */ | |||
.infobox-child { | |||
width: 100%; | |||
margin: 0; | |||
padding: 0; | |||
border: none; | |||
font-size: 100%; | |||
} | |||
/* Списки в карточках */ | |||
.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 | .infobox th > ol.references li, | ||
.infobox td > ol.references li { | |||
margin-bottom: 0.1em; | |||
} | } | ||
.infobox- | .infobox th > ol.references li:last-child, | ||
.infobox td > ol.references li:last-child { | |||
margin-bottom: 0; | |||
} | } |
Текущая версия от 16:58, 11 сентября 2023
.infobox {
border: 1px solid #a2a9b1;
background: #f8f9fa;
margin-bottom: .5em;
margin-left: 1em;
padding: .4em;
float: right;
clear: right;
font-size: 90%;
width: 23em;
vertical-align: middle;
text-align: left;
line-height: 1.5em;
border-collapse: separate;
border-spacing: 2px;
}
.infobox > caption {
font-size: 125%;
font-weight: bold;
padding: .2em;
}
.infobox td,
.infobox th {
vertical-align: top;
}
/* Компоненты карточки */
.infobox-above {
background: #cfe3ff;
font-size: 120%;
text-align: center;
}
.infobox-image {
padding-left: 0;
padding-right: 0;
text-align: center;
}
.infobox-header {
background: #dcebff;
text-align: center;
}
.infobox-below {
background: #dcebff;
text-align: center;
}
.infobox-table,
.infobox-tablebox,
.infobox-medals {
padding: 0;
}
.infobox-inner-table,
.infobox-table > table,
.infobox-tablebox > table,
.infobox-medals > table {
width: 100%;
display: table;
margin: 0;
background: transparent;
}
.infobox-tablebox > table {
background: #ffffff;
border: 1px solid #a2a9b1;
}
.infobox-medals > table {
border-collapse: separate;
}
.infobox-medals .NavFrame {
padding: 0;
border: none;
font-size: 100%;
}
.infobox-medals .NavFrame .NavHead {
padding: 1px 5em;
}
.infobox-medals .NavFrame .NavToggle {
position: absolute;
top: 1px;
right: 1px;
}
.infobox-medals .NavFrame .NavContent {
font-size: 95%;
}
/* Встраиваемая карточка */
.infobox-child {
width: 100%;
margin: 0;
padding: 0;
border: none;
font-size: 100%;
}
/* Списки в карточках */
.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;
}