MediaWiki:Common.css — различия между версиями
м |
м |
||
| (не показаны 24 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
/* Интерфейс */ | /* Интерфейс */ | ||
| + | |||
| + | /* Sitenotice */ | ||
| + | #siteNotice { | ||
| + | display: none; | ||
| + | } | ||
| + | |||
| + | body.ns-0 #siteNotice { | ||
| + | line-height: 1.2em; | ||
| + | display: block; | ||
| + | } | ||
body.page-Главная_страница #t-cite, | body.page-Главная_страница #t-cite, | ||
| Строка 7: | Строка 17: | ||
body.page-Главная_страница h1.firstHeading, | body.page-Главная_страница h1.firstHeading, | ||
body.page-Главная_страница #siteNotice, | body.page-Главная_страница #siteNotice, | ||
| + | body.page-Главная_страница #catlinks, | ||
body.page-Главная_страница #ca-delete { | body.page-Главная_страница #ca-delete { | ||
| − | display: none | + | display: none; |
} | } | ||
body.ns-talk #t-cite, | body.ns-talk #t-cite, | ||
body.ns-talk #siteSub, | body.ns-talk #siteSub, | ||
| − | body.ns-talk #contentSub | + | body.ns-talk #contentSub { |
| − | + | display: none; | |
| − | display: none | + | |
} | } | ||
| Строка 21: | Строка 31: | ||
body.ns-4 #footer-info-lastmod, | body.ns-4 #footer-info-lastmod, | ||
body.ns-4 #siteSub, | body.ns-4 #siteSub, | ||
| − | body.ns-4 #contentSub | + | body.ns-4 #contentSub { |
| − | + | display: none; | |
| − | display: none | + | |
} | } | ||
| Строка 30: | Строка 39: | ||
body.ns-6 #siteSub, | body.ns-6 #siteSub, | ||
body.ns-6 #contentSub { | body.ns-6 #contentSub { | ||
| − | display: none | + | display: none; |
} | } | ||
| Строка 36: | Строка 45: | ||
body.ns-8 #siteSub, | body.ns-8 #siteSub, | ||
body.ns-8 #contentSub { | body.ns-8 #contentSub { | ||
| − | display: none | + | display: none; |
} | } | ||
| Строка 42: | Строка 51: | ||
body.ns-special #contentSub, | body.ns-special #contentSub, | ||
body.ns-special #siteNotice { | body.ns-special #siteNotice { | ||
| − | display: none | + | display: none; |
} | } | ||
| Строка 48: | Строка 57: | ||
display: inline; | display: inline; | ||
font-size: 92%; | font-size: 92%; | ||
| − | font-weight: normal | + | font-weight: normal; |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
} | } | ||
| Строка 71: | Строка 71: | ||
} | } | ||
| − | /* | + | /* Список сносок мелким шрифтом */ |
ol.references, | ol.references, | ||
div.reflist, | div.reflist, | ||
| Строка 82: | Строка 82: | ||
} | } | ||
| − | /* | + | /* Подсветка активной сноски */ |
ol.references li:target, | ol.references li:target, | ||
sup.reference:target, | sup.reference:target, | ||
| Строка 89: | Строка 89: | ||
} | } | ||
| − | /* Оформление | + | /* Оформление таблиц */ |
| − | + | table.wikitable, table.wide, table.prettytable { | |
| − | + | margin: 1em 1em 1em 0; | |
| − | background: # | + | background: #FFFFFF; |
| − | + | border: 1px solid #a3bfb1; | |
| + | border-collapse: collapse | ||
} | } | ||
| − | + | table.wikitable th, table.wide th, table.prettytable th { | |
| − | + | border: 1px solid #aaa; | |
| − | + | padding-left: 0.2em; | |
| − | + | padding-right: 0.2em; | |
| − | + | background: #eef | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
} | } | ||
| − | table. | + | table.standard td, table.wide td, table.prettytable td { |
| − | + | border: 1px solid #aaa; | |
| − | border:1px solid # | + | padding-left: 0.2em; |
| + | padding-right: 0.2em | ||
} | } | ||
| − | table.wikitable caption, table.prettytable caption { | + | table.wikitable caption, table.wide caption, table.prettytable caption { |
| − | + | padding-top: 0.2em; | |
| + | padding-bottom: 0.2em | ||
| + | font-weight:bold | ||
} | } | ||
| − | table. | + | table.wide { |
| − | + | width: 100% | |
} | } | ||
/* {{mbox}} */ | /* {{mbox}} */ | ||
table.mbox { | table.mbox { | ||
| − | + | width: auto; | |
| − | + | margin: 0 10%; | |
| − | + | border-collapse: collapse; | |
| − | + | background:#FBFBFB; | |
| − | + | border: 1px solid #aaa; | |
| − | + | border-left: 10px solid #1E90FF | |
} | } | ||
table.mbox th, table.mbox td { | table.mbox th, table.mbox td { | ||
| − | + | padding: 0.25em 0.5em; | |
} | } | ||
table.mbox td.mbox-widthhack { | table.mbox td.mbox-widthhack { | ||
| − | + | padding: 0; | |
} | } | ||
table.mbox td.mbox-text { | table.mbox td.mbox-text { | ||
| − | + | width:100%; | |
} | } | ||
table.mbox td.mbox-text .mbox-text-small { | table.mbox td.mbox-text .mbox-text-small { | ||
| − | + | font-size:smaller; | |
} | } | ||
table.mbox td.mbox-image { | table.mbox td.mbox-image { | ||
| − | + | width: 52px; | |
| − | + | padding: 2px 0 2px 0.5em; | |
| − | + | text-align: center; | |
} | } | ||
| − | |||
table.mbox td.mbox-imageright { | table.mbox td.mbox-imageright { | ||
| − | + | width: 52px; | |
| − | + | padding: 2px 4px 2px 0; | |
| − | + | text-align: center; | |
} | } | ||
| − | |||
table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px} | table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px} | ||
| − | |||
/* Фикс для изображений разной ширины */ | /* Фикс для изображений разной ширины */ | ||
table.mbox-warning,table.mbox-serious { | table.mbox-warning,table.mbox-serious { | ||
| − | + | border-left: 10px solid #B22222 | |
| + | } | ||
| + | table.mbox-content { | ||
| + | border-left: 10px solid #F28500 | ||
} | } | ||
| + | table.mbox-style { | ||
| + | border-left: 10px solid #F4C430 | ||
| + | } | ||
| − | table.mbox- | + | table.mbox-good { |
| − | + | border-left: 10px solid #66CC44 | |
} | } | ||
| + | table.mbox-discussion { | ||
| + | border-left: 10px solid #339966 | ||
| + | } | ||
| − | table.mbox- | + | table.mbox-notice { |
| − | + | border-left: 10px solid #1E90ff | |
} | } | ||
| + | table.mbox-merge { | ||
| + | border-left: 10px solid #9932CC | ||
| + | } | ||
| − | table.mbox- | + | table.mbox.mbox-mini { |
| − | + | float: right; | |
| + | clear: right; | ||
| + | margin: 0 0 0.5em 1em; | ||
| + | width: 20%; | ||
} | } | ||
| + | /* HACK! */ | ||
| + | pre pre { | ||
| + | font-size: .8em; | ||
| + | padding: 0; | ||
| + | } | ||
| − | + | /* {{contentbox}} */ | |
| − | + | .contentbox { | |
| + | padding: 3px; | ||
| + | padding-top: 0; | ||
| + | margin-top: .5em; | ||
| + | margin-bottom: .5em; | ||
} | } | ||
| + | .contentbox .contentbox-title { | ||
| + | margin-top: 0; | ||
| + | margin-left: -3px; | ||
| + | display: table-row; | ||
| + | padding: 3px; | ||
| + | padding-top: 1px; /** new **/ | ||
| + | padding-left: 0; | ||
| + | float: left; | ||
| + | } | ||
| − | + | .contentbox .contentbox-title1 { | |
| − | + | padding: 3px; | |
| + | font-weight: bold; | ||
} | } | ||
| + | .contentbox .contentbox-subtitle { | ||
| + | padding: 3px; | ||
| + | font-weight: bold; | ||
| + | } | ||
| − | + | .contentbox .contentbox-description { | |
| − | + | padding: 3px; | |
| + | font-weight: bold; | ||
} | } | ||
| + | .contentbox .contentbox-rightmsg { | ||
| + | float: right; | ||
| + | margin-top: -3px; | ||
| + | margin-right: -3px; | ||
| + | padding: 3px; | ||
| + | } | ||
| − | + | .contentbox .contentbox-content { | |
| − | + | clear: both; | |
| − | + | padding-top: 3px; | |
| − | + | } | |
| − | + | ||
| + | .contentbox-content pre { | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | } | ||
| + | |||
| + | .contentbox-content pre { | ||
| + | border-color: #AAA; | ||
| + | } | ||
| + | |||
| + | /* Разное */ | ||
| + | |||
| + | #toc { | ||
| + | margin: 1em 0; | ||
| + | } | ||
| + | |||
| + | .toclimit-2 .toclevel-1 ul, | ||
| + | .toclimit-3 .toclevel-2 ul, | ||
| + | .toclimit-4 .toclevel-3 ul, | ||
| + | .toclimit-5 .toclevel-4 ul, | ||
| + | .toclimit-6 .toclevel-5 ul, | ||
| + | .toclimit-7 .toclevel-6 ul { | ||
| + | display: none; | ||
| + | } | ||
| + | |||
| + | /* Улучшение читаемости тэга code */ | ||
| + | code { | ||
| + | border: 1px solid #ddd; | ||
| + | padding: 1px 4px; | ||
| + | border-radius: 2px; | ||
} | } | ||
Текущая версия на 14:01, 20 апреля 2014
/* Интерфейс */
/* Sitenotice */
#siteNotice {
display: none;
}
body.ns-0 #siteNotice {
line-height: 1.2em;
display: block;
}
body.page-Главная_страница #t-cite,
body.page-Главная_страница #footer-info-lastmod,
body.page-Главная_страница #siteSub,
body.page-Главная_страница #contentSub,
body.page-Главная_страница h1.firstHeading,
body.page-Главная_страница #siteNotice,
body.page-Главная_страница #catlinks,
body.page-Главная_страница #ca-delete {
display: none;
}
body.ns-talk #t-cite,
body.ns-talk #siteSub,
body.ns-talk #contentSub {
display: none;
}
body.ns-4 #t-cite,
body.ns-4 #footer-info-lastmod,
body.ns-4 #siteSub,
body.ns-4 #contentSub {
display: none;
}
body.ns-6 #t-cite,
body.ns-6 #footer-info-lastmod,
body.ns-6 #siteSub,
body.ns-6 #contentSub {
display: none;
}
body.ns-8 #t-cite,
body.ns-8 #siteSub,
body.ns-8 #contentSub {
display: none;
}
body.ns-special #siteSub,
body.ns-special #contentSub,
body.ns-special #siteNotice {
display: none;
}
#siteSub {
display: inline;
font-size: 92%;
font-weight: normal;
}
/* Жирный шрифт для кнопки «Записать страницу» */
#wpSave {
font-weight: bold;
}
/* Margins for <ol> and <ul> */
div#content ol, div#content ul,
div#mw_content ol, div#mw_content ul {
margin-bottom: 0.5em;
}
/* Список сносок мелким шрифтом */
ol.references,
div.reflist,
div.refbegin {
font-size: 90%; /* Default font-size */
}
div.reflist ol.references {
font-size: 100%; /* Reset font-size when nested in div.reflist */
list-style-type: inherit; /* Enable custom list style types */
}
/* Подсветка активной сноски */
ol.references li:target,
sup.reference:target,
span.citation:target {
background-color: #DEF;
}
/* Оформление таблиц */
table.wikitable, table.wide, table.prettytable {
margin: 1em 1em 1em 0;
background: #FFFFFF;
border: 1px solid #a3bfb1;
border-collapse: collapse
}
table.wikitable th, table.wide th, table.prettytable th {
border: 1px solid #aaa;
padding-left: 0.2em;
padding-right: 0.2em;
background: #eef
}
table.standard td, table.wide td, table.prettytable td {
border: 1px solid #aaa;
padding-left: 0.2em;
padding-right: 0.2em
}
table.wikitable caption, table.wide caption, table.prettytable caption {
padding-top: 0.2em;
padding-bottom: 0.2em
font-weight:bold
}
table.wide {
width: 100%
}
/* {{mbox}} */
table.mbox {
width: auto;
margin: 0 10%;
border-collapse: collapse;
background:#FBFBFB;
border: 1px solid #aaa;
border-left: 10px solid #1E90FF
}
table.mbox th, table.mbox td {
padding: 0.25em 0.5em;
}
table.mbox td.mbox-widthhack {
padding: 0;
}
table.mbox td.mbox-text {
width:100%;
}
table.mbox td.mbox-text .mbox-text-small {
font-size:smaller;
}
table.mbox td.mbox-image {
width: 52px;
padding: 2px 0 2px 0.5em;
text-align: center;
}
table.mbox td.mbox-imageright {
width: 52px;
padding: 2px 4px 2px 0;
text-align: center;
}
table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px}
/* Фикс для изображений разной ширины */
table.mbox-warning,table.mbox-serious {
border-left: 10px solid #B22222
}
table.mbox-content {
border-left: 10px solid #F28500
}
table.mbox-style {
border-left: 10px solid #F4C430
}
table.mbox-good {
border-left: 10px solid #66CC44
}
table.mbox-discussion {
border-left: 10px solid #339966
}
table.mbox-notice {
border-left: 10px solid #1E90ff
}
table.mbox-merge {
border-left: 10px solid #9932CC
}
table.mbox.mbox-mini {
float: right;
clear: right;
margin: 0 0 0.5em 1em;
width: 20%;
}
/* HACK! */
pre pre {
font-size: .8em;
padding: 0;
}
/* {{contentbox}} */
.contentbox {
padding: 3px;
padding-top: 0;
margin-top: .5em;
margin-bottom: .5em;
}
.contentbox .contentbox-title {
margin-top: 0;
margin-left: -3px;
display: table-row;
padding: 3px;
padding-top: 1px; /** new **/
padding-left: 0;
float: left;
}
.contentbox .contentbox-title1 {
padding: 3px;
font-weight: bold;
}
.contentbox .contentbox-subtitle {
padding: 3px;
font-weight: bold;
}
.contentbox .contentbox-description {
padding: 3px;
font-weight: bold;
}
.contentbox .contentbox-rightmsg {
float: right;
margin-top: -3px;
margin-right: -3px;
padding: 3px;
}
.contentbox .contentbox-content {
clear: both;
padding-top: 3px;
}
.contentbox-content pre {
margin: 0;
padding: 0;
}
.contentbox-content pre {
border-color: #AAA;
}
/* Разное */
#toc {
margin: 1em 0;
}
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
/* Улучшение читаемости тэга code */
code {
border: 1px solid #ddd;
padding: 1px 4px;
border-radius: 2px;
}