MediaWiki:Common.css
Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
- Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
- Internet Explorer / Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
- Opera: Нажмите Ctrl+F5.
/** Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Чтобы при выводе на принтер оглавление не отображалось */
@media print {
#p-toc {display: none}
}
/* Чтобы оглавление не сжималось по горизонтали */
#p-toc {width: auto}
/* Чтобы текст не обтекал содержание */
#toc {
float: none
!important;
}
/* Убираем нумерацию в оглавлении */
.tocnumber { display: none; }
/* Стандартное оформление таблиц */
table.standard {border:1px solid #AAAAAA; border-collapse: collapse}
table.standard th {border:1px solid #AAAAAA; padding-left:0.2em; padding-right:0.2em; background-color:#EEEEFF}
table.standard td {border: 1px solid #AAAAAA; padding-left:0.2em; padding-right:0.2em; background-color:#FFFFFF}
table.standard caption {font-weight:bold; padding-top: 0.2em; padding-bottom:0.2em}
.articleState {
width: 60%;
background: #fff;
margin: 0 auto;
border: solid 2px lightblue;
text-align: center;
}
.routeBox {
font-size: small;
border-style: none;
border-spacing: 0 0;
border-collapse: collapse;
margin: 0 auto;
}
#geoCoord table, #geoCoordOld table {
border-collapse: collapse;
background: transparent;
}
#geoCoord td, #geoCoordOld td {
font-size: 0.9em;
line-height: 100%;
vertical-align: middle;
padding: 0 0 0 10px;
text-align: right;
border-left: 1px solid #88a;
}
#geoCoord td.icon, #geoCoordOld td.icon {
border-left: none;
height: 27px;
width: 35px;
padding: 0 10px 0 0;
}
#DoM {
background: transparent;
padding: 0;
}
/* Fix problem with banner overlay */
/*Убрать заголовки обратно в баverlay */
div.toctitle {display:none;}
/* CSS для шаблона ambox */
table.ambox {
width: auto;
margin: 0 10%;
border-collapse: collapse;
background: #FBFBFB;
border: 1px solid #AAAAAA;
border-left: 10px solid #1E90FF
}
table.ambox th, table.ambox td {
padding: 0.25em 0.5em;
}
table.ambox td.ambox-widthhack {
padding: 0;
}
table.ambox td.ambox-text {
width:100%;
}
table.ambox td.ambox-text .ambox-text-small {
font-size:smaller;
}
table.ambox td.ambox-image {
width: 52px;
padding: 2px 0px 2px 0.5em;
text-align: center;
}
table.ambox td.ambox-imageright {
width: 52px;
padding: 2px 4px 2px 0px;
text-align: center;
}
table.ambox td.ambox-image div,
table.ambox td.ambox-imageright div {
width:52px /* Фикс для изображений разной ширины */
}
table.ambox-delete,
table.ambox-serious {
border-left: 10px solid #B22222
}
table.ambox-content {
border-left: 10px solid #F28500
}
table.ambox-style {
border-left: 10px solid #F4C430
}
table.ambox-good {
border-left: 10px solid #66CC44
}
table.ambox-discussion {
border-left: 10px solid #339966
}
table.ambox-notice {
border-left: 10px solid #1E90ff
}
table.ambox-merge {
border-left: 10px solid #9932CC
}
table.ambox-protection {
border-left: 10px solid #BBBBAA
}
table.ambox.ambox-mini {
float: right;
clear: right;
margin: 0 0 0.5em 1em;
width: 20%;
}
.framedBox {
margin: 1em 0;
padding: 0.5em;
border: 1px solid #6cc8f3;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
-o-border-radius: 5px;
}
.container {
border: 1px solid #6cc8f3;
padding: 0 0 3px;
margin: 0.75em 0 0;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
}
#content .var2 {
border-color: #80f000;
}
.container .header, .infobox .header {
background: #f0f0f0;
color: #004f80;
margin-top: 0;
margin-bottom: 0.4em;
padding: 0.3em 0.35em;
border-bottom: none;
font-size: 1.3em;
}
.container .header:first-child, .container .editLink:first-child + .header, .infobox .header:first-child {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-khtml-border-radius-topleft: 5px;
-khtml-border-radius-topright: 5px;
margin-top: 0;
border-top: none;
}
.container * ~ .header {
margin-top: 0.75em;
border-top: 1px solid #c0c0c0;
}
.container .centered {
text-align: center;
}
.container .justified {
text-align: justify;
}
.var2 .header, .var2 .header a {
color: #00804f;
}
.container .editLink {
float: right;
font-size: 90%;
background: transparent;
margin: 0.5em 0.75em;
}
.container h2 {
padding: 0.5em 0.35em;
}
.container h3 {
padding: 0.3em 0.35em;
}
.container p, .container ul, .container .div {
padding: 0 0.5em;
margin-bottom: 0.3em;
}
.container .emph {
font-size: 110%;
font-weight: bold;
}
.container ul ul {
padding: 0;
}
@media print {
.container ul, .container ul ul {
padding-left: 1em;
}
}
.container ol {
padding-right: 0.5em;
}
.container ol ol {
padding-right: 0em;
}
.container h4, .container h5, .container h6, .container dl {
padding-left: 0.5em;
padding-right: 0.5em;
}
.container > .divBox, .container > .prettytable, .container > .multiline,
.container > .gallery, .container > div.center {
margin-left: 0.5em;
margin-right: 0.5em;
}
.container div.floatleft {
margin-left: 0.5em;
}
.container div.floatright {
margin-right: 0.5em;
}
.container .usr-code div.center {
margin: 0;
}
.container hr {
margin: 0 0.5em;
}
table.container {
margin: 0;
border-style: none;
border-spacing: 0 0;
border-collapse: collapse;
}
div.cFirst, table.cFirst, .containerTabs + .container, .boxTabsEnd + .container {
margin: 0;
clear: both;
}
div.cInner, table.cInner {
margin: 0.75em;
}
table.container td {
margin: 0;
padding: 0 0 0 0.75em;
vertical-align: top;
}
table.container td:first-child {
padding: 0;
}
* html table.container td { /* Stern-HTML-Hack fuer IE6 */
padding-left: expression((this.parentNode.firstChild == this)? "0" : "0.75em" );
}
@media print {
.container { border: 0.25mm solid #6cc8f3; }
.container .header, .infobox .header {
font-size: 1em;
border-top: 0.25mm solid #c0c0c0;
}
}
/* стили для шаблона pagebanner */
.topbanner {
position: relative;
overflow: hidden;
max-width: 1800px;
height: auto;
}
.topbanner img {
max-width: 100%;
height: auto;
width: auto\9;
}
.topbanner-box {
position: absolute;
z-index: 2;
margin-top: 1.5em;
color: white;
width: 50%;
min-width: 20em;
left: 2%;
text-align: left;
}
.topbanner .name {
position: absolute;
z-index: 2;
margin: 0.6em 0 0 0.4em;
padding: 8px 7px;
font-size: 2.2em;
background: rgb(16,16,16);
background: rgba(0,0,0,0.5);
border-radius: 4px;
color: white;
white-space: nowrap;
line-height: 0.9em;
}
#toc > tbody > tr > td > ul, #toc > tr > td > ul {
padding-left: 2em;
}
#toc > ul {padding-left: 2em;}
.iconbox {
position: absolute;
top: 6px;
right: 0;
padding: 3px;
z-index: 3;
background: rgb(16,16,16);
background: rgba(0,0,0,0.7);
border-bottom-left-radius: 5px;
}
.skin-monobook .hlist dl,
.skin-modern .hlist dl,
.skin-vector .hlist dl {
line-height: 1.1em;
}
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
line-height: 1.1em;
}
/* Display list items inline and make them nowrap */
.hlist dd,
.hlist dt,
.hlist li {
display: inline;
white-space: nowrap;
}
/* Allow wrapping for list items (in tight spaces) */
.hlist.hwrap dd,
.hlist.hwrap dt,
.hlist.hwrap li {
white-space: normal;
}
/* Display nested lists inline and allow them to wrap */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
white-space: normal;
}
/* Generate interpuncts */
.hlist dt:after {
content: ":";
}
.hlist dd:after,
.hlist li:after {
content: " ·";
font-weight: bold;
padding: 0 0.3em;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: "(";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
content: ")";
font-weight: normal;
}
/* allow ToC to stretch across screen when it is part of a horizontal list, change background and font colours */
.hlist #toc.tocFloat {
width: 100%;
max-width: 170em;
color: black;
}
.hlist.tocbox-s #toc.tocFloat {
width: 100%;
max-width: 170em;
margin: 0;
padding: 0;
line-height: 1.1em;
color: black;
background-color: #e0e0e0;
}
.hlist.tocbox-b #toc.tocFloat {
width: 100%;
max-width: 170em;
margin: 0;
padding: 0;
line-height: 1.1em;
color: white;
background: rgb(16,16,16);
background: rgba(0,0,0,0.5);
border: none;
}
.hlist.tocbox-w #toc.tocFloat {
width: 100%;
max-width: 170em;
margin: 0;
padding: 0;
line-height: 1.1em;
color: black;
background: rgb(225,225,225);
background: rgba(160,160,160,0.6);
border: none;
}
.hlist #toc table,
.hlist #toc tr,
.hlist #toc td {
margin: 0;
padding: 0;
line-height: 1.1em;
}
/* links in the horizontal ToC should be black... */
.hlist #toc a {
color: black;
font-size: 0.85em;
font-weight: bold;
}
/* ... except when the ToC box is black ... */
.hlist.tocbox-b #toc a {
color: white;
font-size: 0.85em;
font-weight: bold;
}
/* ... or except when being hovered over */
.hlist #toc.tocFloat a:hover {
color: #bdddfd;
}
/* don't display ToC title when in horizontal ToC */
.hlist #toctitle {
display: none;
}
.mf-mobile-only {
display: none;
}
/* Prevent display of subheadings in horizontal ToC */
.hlist #toc .toclevel-2,
.hlist #toc .toclevel-3,
.hlist #toc .toclevel-4,
.hlist #toc .toclevel-5,
.hlist #toc .toclevel-6 {
display: none;
}
.hlist .toggleNode {
display: none;
}
/* Settings for WikidataPageBanner extension */
.wpb-banner-toc{
line-height: 1.2em;
font-size: 1.15em;
}
.wpb-topbanner-toc{
margin-top:5px;
}
.wpb-iconbox {
background: rgb(255,255,255)
}
.oo-ui-icon-unesco {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/3/3b/Maailmanperint%C3%B6kohdeBlau.svg');
}
.oo-ui-icon-dotm {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/db/WV-RU-DOTM-LOGO.png');
}
.ext-wpb-pagebanner li.toclevel-1 {
padding: 0 0 0 0.4em;
font-size: 100%;
}
.ext-wpb-pagebanner li.toclevel-1 > a:after {
content: " ·";
font-weight: bold;
padding: 0 0 0 0.1em;
}
.ext-wpb-pagebanner li.toclevel-1:last-child > a:after {
content: none;
}
.ext-wpb-pagebanner h1.wpb-name {
font-family: sans-serif;
border-bottom: none;
}
.wpb-banner-toc .toctext { display: inline; }
/* CSS for black text external links / blue text on hover */
body.ns-0 a.external,
body.ns-0 a.external:visited,
body.page-Wikivoyage_Внешние_ссылки a.external,
body.page-Wikivoyage_Внешние_ссылки a.external:visited
{
color: black;
}
body.ns-0 a.external:hover,
body.ns-0 a.external:focus,
body.page-Wikivoyage_Внешние_ссылки a.external:hover,
body.page-Wikivoyage_Внешние_ссылки a.external:focus
{
color: #0645ad;
}
/* Temp fix for related sites/pages headers display */
div.portal h5 {
color: rgb(77, 77, 77);
font-size: 0.75em;
font-weight: normal;
padding-left: 1.5em;
padding-bottom: 0px;
}
/* Don't display print-only paragraphs */
.print-only {display: none}
.printonly {display: none}
/* styles and counter for mapping listings */
@media screen, print {
span.listing-map {
color: white;
font-size: 0.8em;
padding: 0pt 0.1em 0pt 0.35em;
font-family: Arial,Verdana,sans-serif;
-webkit-print-color-adjust: exact; /*force printing on safari and chrome */
}
h2 { counter-reset: mapnumber; }
span.listing-map:before {
content: counter(mapnumber);
counter-increment: mapnumber;
}
body { counter-reset: generalnumber; }
span.listing-map.listing-general:before {
content: counter(generalnumber);
counter-increment: generalnumber;
}
}
.listing-lastedit { color: rgb(150,150,150); font-size: 0.8em; }
span.listing-metadata { white-space: nowrap; }
/* Main page */
.portal-column-left {
width: 40%;
text-align: center;
}
/* Hide title on Main Page */
body.page-Заглавная_страница.action-view h1.firstHeading, body.page-Заглавная_страница.action-submit h1.firstHeading { display: none; }
/* Coding for new Main Page */
.main-page-bottom-box {
padding: 0.7em 1em 1em 1em;
vertical-align:top;
}
.main-page-bottom-box h3 {
margin: 0;
padding: 0;
}
/* Coding for new Main Page END */
/* BEGIN: Main Page CSS */
.banner-image {
position: relative;
overflow: hidden;
max-width: 1800px;
height: auto;
margin-bottom: .6em;
}
.banner-image img {
max-width: 100%;
height: auto;
width: auto\9;
}
.banner-box-wide {
width: 80%
}
.banner-box-left,
.banner-box-right {
padding: 8px 7px;
background: rgb(16,16,16);
background: rgba(0,0,0,0.3);
border-radius: 4px;
width: 40%;
}
.banner-box-left {
left: 3%;
text-align: left;
}
.banner-box-right {
right: 3%;
text-align: right;
}
#mainpage-map {
position: relative;
overflow: hidden;
height: auto;
margin-bottom: .6em;
max-width: 1800px;
}
#mainpage-maptext {
position: absolute;
top: 1.5em;
left: 1em;
z-index: 2;
text-align: center;
white-space: nowrap;
padding: 0.5em 0.5em 0 0.5em;
}
#mainpage-tagline {
margin: 0;
}
#mainpage-searchinput {
padding:0.5em 0 0.7em;
}
#mainpage-searchinput label {
font-size: 85%;
font-style: italic;
}
#mainpage-searchinput input[type="text"] {
margin-right: 0.5em;
}
#mainpage-maplinks {
position:absolute;
bottom: 0;
left: 1em;
color: white;
padding:0 0.5em;
}
.mainpage-shadowbox {
color: white;
background: rgb(16,16,16);
background: rgba(0,0,0,0.3);
border-radius: 4px;
}
.mainpage-shadowbox h2, .mainpage-shadowbox h3 {
color: white;
border:none;
font-family: sans-serif;
line-height: 1.2em;
margin:0;
}
.mainpage-shadowbox h2 {
font-size: 190%;
}
.mainpage-shadowbox h3 {
font-size: 150%;
padding: 0;
}
#mainpage-maplinks a, .mainpage-shadowbox a {
color: white;
font-weight: bold;
}
.banner-box-2 {
position: absolute;
z-index: 2;
margin-top: 2em;
min-width: 20em;
}
.banner-box-2 .quote {
font-size: 80%;
line-height: 1.2em;
}
img {
max-width: 100%;
height: auto;
width: auto\9; /* ie8 */
}
/* END: Main Page CSS */
/* Style of map markers */
.mw-kartographer-autostyled {
padding: 0.05em 0.30em 0.1em 0.30em;
}
/* Highlight dead links */
.error-deadlink { color: red; background: yellow; display: none; white-space: nowrap }
/* Turn off links to Wikipedia */
.listing-sister-wikipedia {display: none}
/* Style of indexing templates for monument lists (the "monument-title" group of templates) */
.monument-title { padding-right: 0.5em }
/* Content shown only in mobile version */
.mobileonly {
display: none;
}
/* Reduce paragraph spacing within the listings */
.vcard p {
margin-top: 0.3em;
margin-bottom: 0.3em;
}
/* Push indicators to the front */
.mw-indicators {
z-index: 2;
}
/* Map marker of OsmPoi in section header */
.osmpoi {
margin-top: -20px;
}
/* размер шрифта Listing Editor в теме Vector-2022 */
body.skin-vector-2022 .listing-editor-dialog {
font-size: calc(0.875em);
}
/* position of indicators in the Vector-2022 skin */
body.skin-vector-2022 .mw-body-subheader {
float: right;
margin-top: -4px;
}
/* T156351: Support for Parsoid's Cite implementation */
[ rel="mw:referencedBy" ] {
display: none;
}
/* suppress indent for the page banner and breadcrumb navigation */
#contentSub > div {
margin-left: 0em;
}
@media screen {
.mw-content-subtitle, #contentSub, #contentSub2 {
margin-left: 0em;
}
#mw-content-subtitle, #contentSub2 {
font-size: 100%;
}
}