Difference between revisions of "MediaWiki:Mobile.css"

From Enduro.team
Jump to: navigation, search
Line 1: Line 1:
 +
/**
 +
You are editing the global CSS file for all mobile site users.
 +
With Great Power Comes Great Responsibility.
 +
 +
Some words of caution:
 +
* Avoid any changes which impact layout on a mobile device.
 +
** Please be careful not to introduce any margin/padding rules. These should be done inside the template itself via an inline style.
 +
** Be especially cautious when a template is likely to be used within the top 480px of the screen (the content that the user will see first on a mobile device)
 +
* Do not use display:none. Instead edit the template and markup the element you want to hide with the "nomobile" class.
 +
* Try to keep rules as generic and minimal as possible. Do not have 2 selectors doing the same thing. Introduce a common class and use that instead
 +
* Group common CSS rules together where possible.
 
*/
 
*/
  
/* Mobile template hacks (see phab T56176)
+
 
If you are looking for the following, please update your template to use TemplateStyles:
+
/* Mobile template hacks (see phab T56176) If you are looking for the following, please update your template to use TemplateStyles: */
 
.mobile-float-reset {
 
.mobile-float-reset {
 
float: none !important;
 
float: none !important;
Line 8: Line 19:
 
}
 
}
  
*/
+
/* Стили - заглавной страницы */
 
+
@media (max-width: 719px) {
 
+
/* Hide the images */
+
.page-Заглавная_страница #content {
.geo-nondefault, .geo-multi-punct,
+
background-color:#eaecf0;
/* Hide stuff meant for accounts with special permissions. Made visible again in
+
}
  [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]] and
+
.page-Заглавная_страница .header-container.header-chrome {
  [[MediaWiki:Group-autoconfirmed.css]]. */
+
box-shadow:none;  
.sysop-show,
 
.accountcreator-show,
 
.autoconfirmed-show,
 
/* Copied from Common.css - allow for hiding text in compact form e.g. clean up templates */
 
.hide-when-compact,
 
/* portal pages are badly formatted. Until this changes these should be hidden. (see https://phabricator.wikimedia.org/T86495) */
 
.noprint.portal {
 
display: none;
 
}
 
 
 
/* For linked citation numbers and document IDs, where
 
  the number need not be shown on a screen or a handheld,
 
  but should be included in the printed version
 
TODO: Move to Citation template when templates have stylesheets
 
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
 
*/
 
@media screen, handheld {
 
.citation *.printonly {
 
display: none;
 
 
}
 
}
}
+
/*
 
Should be moved into Template:Cite_web
 
Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */
 
.citation {
 
word-wrap: break-word;
 
 
}
 
}
  
 
/*
 
/*
.infobox
+
* Костыли-префиксы - поддержки устаревших браузеров заглавной страницей
DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile.
+
* Будут переведены - TemplateStyles, см. [[phab:T162379]]
 
*/
 
*/
 +
.main-top-right > ul {
 +
display: -webkit-box;
 +
display: -webkit-flex;
 +
-webkit-flex-wrap: wrap;
 +
}
  
/* Default styling for Navbar template
+
.main-featuredLists > .main-featuredLists-item {
TODO: Move to Navbar template ASAP
+
-webkit-box-align: stretch;
*/
+
-webkit-align-items: stretch;
.navbar {
+
-webkit-column-break-inside: avoid;
display: inline;
+
display: -webkit-box;
font-size: 88%;
+
display: -webkit-flex;
font-weight: normal;
 
 
}
 
}
.navbar ul {
+
 
display: inline;
+
.main-featuredLists-item > img {
white-space: nowrap;
+
-webkit-box-flex: 0;
 +
-webkit-flex: 0 auto;
 
}
 
}
.navbar li {
+
 
word-spacing: -0.125em;
+
.main-footer {
 +
display: -webkit-box;
 +
display: -webkit-flex;
 +
-webkit-box-pack: end;
 +
-webkit-justify-content: flex-end;
 
}
 
}
.navbar.mini li span {
+
 
font-variant: small-caps;
+
.main-footer-actions {
 +
-webkit-box-flex: 1;
 +
-webkit-flex: 1;
 
}
 
}
/* Navbar styling when nested in infobox and navbox */
+
 
.navbox .navbar,
+
.main-footer-actions > ul {
.infobox .navbar {
+
-webkit-box-align: center;
font-size: 100%;
+
-webkit-align-items: center;
 +
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
.navbox .navbar {
+
 
display: block;
+
.main-footer-menu {
}
+
-webkit-box-align: stretch;
.navbox-title .navbar {
+
-webkit-align-items: stretch;
/* @noflip */
+
display: -webkit-box;
float: left;
+
display: -webkit-flex;
/* @noflip */
 
text-align: left;
 
/* @noflip */
 
margin-right: 0.5em;
 
width: 6em;
 
}
 
/* Unbulleted lists e.g. Barack Obama page*/
 
.plainlist ul {
 
list-style: none;
 
padding-left: 0; /* Reset Minerva defaults */
 
 
}
 
}
  
.visualhide {
+
.main-footer-menuToggle {
position: absolute;
+
-webkit-box-align: center;
left: -10000px;
+
-webkit-align-items: center;
top: auto;
+
display: -webkit-box;
width: 1px;
+
display: -webkit-flex;
height: 1px;
 
overflow: hidden;
 
 
}
 
}
  
/* Geographical coordinates hidden in mobile. Any styles relating to them should be put inside
+
.main-wikimedia-list {
.[[Template:Coord/link]]
+
-webkit-column-count: 4;
*/
+
-webkit-column-width: 15em;
 
 
/* Prevent line breaks in silly places:
 
  1) Where desired
 
  2) Links when we don't want them to
 
  3) Bold "links" to the page itself
 
  4) Ref tags with group names <ref group="Note"> --> "[Note 1]"
 
Please document here what pages use this
 
Enabled
 
*/
 
.mw-parser-output .nowrap,
 
.nowraplinks a,
 
.nowraplinks .selflink,
 
sup.reference a {
 
white-space: nowrap;
 
}
 
.mw-parser-output .infobox .nowrap {
 
white-space: normal !important;
 
}
 
/* But allow wrapping where desired: */
 
.wrap,
 
.wraplinks a {
 
white-space: normal;
 
 
}
 
}
  
/* hidden sortkey for tablesorter */
+
.main-wikimedia-list > .main-wikimedia-listItem {
td .sortkey,
+
-webkit-box-align: stretch;
th .sortkey {
+
-webkit-align-items: stretch;
display: none;
+
-webkit-column-break-inside: avoid;
speak: none;
+
display: -webkit-box;
 +
display: -webkit-flex;
 
}
 
}
  
/* Generic class for Times-based serif, texhtml class for inline math */
+
.main-wikimedia-listItem > img {
.times-serif,
+
-webkit-box-flex: 0;
span.texhtml {
+
-webkit-flex: 0 auto;
font-family: serif;
 
}
 
span.texhtml {
 
white-space: nowrap;
 
 
}
 
}
  
/* Enable custom list style types for lists of references */
+
.main-wikimedia-listItem > a {
.reflist ol.references {
+
-webkit-box-flex: 1;
list-style-type: inherit;
+
-webkit-flex: 1;
 
}
 
}
  
/* Hanging indentation for Template:Refbegin */
+
@media (max-width: 719px) {
.refbegin-hanging-indents > ul,
+
.main-wikimedia-list {
.refbegin-hanging-indents > dl {
+
-webkit-column-width: 10em;
list-style-type: none;
+
}
margin-left: 0;
 
}
 
.refbegin-hanging-indents > ul > li,
 
.refbegin-hanging-indents > dl > dd {
 
margin-left: 0;
 
padding-left: 1.0em;
 
text-indent: -1.0em;
 
list-style: none;
 
 
}
 
}
  
/* Prevent flags in tables from collapsing
+
@media (min-width: 1000px) {
Fix for T116318
+
.main-wrapper {
*/
+
display: -webkit-box;
.flagicon img {
+
display: -webkit-flex;
min-width: 25px;
+
}
}
 
  
/* Prevent unnecessary margin at the bottom of centralnotices */
+
.main-wrapper-column {
.cnotice {
+
-webkit-box-flex: 1;
margin-bottom: 0 !important;
+
-webkit-flex: 1;
}
+
}
  
/**
+
.main-top {
******************DEPRECATED STYLES ************************************
+
-webkit-box-align: center;
These styles will be removed shortly. Please see inline comments.
+
-webkit-align-items: center;
**/
+
display: -webkit-box;
 +
display: -webkit-flex;
 +
}
  
 +
.main-top-left {
 +
background-image: -webkit-linear-gradient(left, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
 +
-webkit-box-flex: 3;
 +
-webkit-flex: 3;
 +
}
 +
 +
.main-top-right {
 +
-webkit-box-flex: 2;
 +
-webkit-flex: 2;
 +
}
  
/*
+
.main-top-right > ul {
Generate interpuncts
+
-webkit-box-align: center;
FIXME: Move to template.
+
-webkit-align-items: center;
*/
+
-webkit-box-orient: horizontal;
/* Can be removed when T169315 is resolved */
+
-webkit-box-direction: reverse;
#content .hlist-separated li:after {
+
-webkit-flex-direction: row-reverse;
font-size: 0.8em;
+
-webkit-box-pack: left;
color: #333;
+
-webkit-justify-content: left;
 +
}
 
}
 
}
/*
+
 
FIXME: DUPLICATES Template:Hlist/styles.css
+
/* Служебные классы - показа сообщений отдельным группам пользователей */
Note the mobile skin provides a `hlist-separated` class for this purpose. Use this class name alongside the hlist class instead as this will result in a FOUC.
+
.group-checkuser-show,
Should be removed and moved to templates.
+
.group-bureaucrat-show,
*/
+
.group-sysop-show,
/* Counter hlist indenting of Minerva*/
+
.group-engineer-show,
.mw-parser-output .hlist ul,
+
.group-closer-show,
.mw-parser-output .hlist ol {
+
.group-filemover-show,
padding-left: 0;
+
.group-editor-show,
 +
.group-autoeditor-show,
 +
.group-user-show {
 +
display: none;
 
}
 
}
/* reset hlist margins of Minerva */
+
 
.mw-parser-output .hlist li,
+
/* Style for horizontal lists (separator following item).
 +
  Adapted for the mobile version.
 +
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
 +
  @revision 6 (2014-05-09)
 +
  @author [[User:Edokter]]
 +
*/
 +
/* Display list items inline */
 
.mw-parser-output .hlist dd,
 
.mw-parser-output .hlist dd,
.mw-parser-output .hlist dt {
+
.mw-parser-output .hlist dt,
margin-right: 0;
+
.mw-parser-output .hlist li {
 +
    margin: 0;
 +
    display: inline;
 
}
 
}
.mw-parser-output .hlist li:after,
+
/* Display nested lists inline */
.mw-parser-output .hlist dd:after {
+
.mw-parser-output .hlist.inline,
content: " · ";
+
.mw-parser-output .hlist.inline dl,
font-weight: bold;
+
.mw-parser-output .hlist.inline ol,
 +
.mw-parser-output .hlist.inline ul,
 +
.mw-parser-output .hlist dl dl, .hlist dl ol, .hlist dl ul,
 +
.mw-parser-output .hlist ol dl, .hlist ol ol, .hlist ol ul,
 +
.mw-parser-output .hlist ul dl, .hlist ul ol, .hlist ul ul {
 +
    margin: 0;
 +
    display: inline;
 
}
 
}
 +
/* Generate interpuncts */
 
.mw-parser-output .hlist dt:after {
 
.mw-parser-output .hlist dt:after {
content: ": ";
+
    content: ": ";
 +
}
 +
.mw-parser-output .hlist dd:after,
 +
.mw-parser-output .hlist li:after {
 +
    content: " · ";
 +
    font-weight: bold;
 
}
 
}
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.heading-holder hlist li:after,
 
 
.mw-parser-output .hlist dd:last-child:after,
 
.mw-parser-output .hlist dd:last-child:after,
 
.mw-parser-output .hlist dt:last-child:after,
 
.mw-parser-output .hlist dt:last-child:after,
 
.mw-parser-output .hlist li:last-child:after {
 
.mw-parser-output .hlist li:last-child:after {
content: none;
+
    content: none;
 
}
 
}
 
/* Add parentheses around nested lists */
 
/* Add parentheses around nested lists */
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
 
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
 
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
 
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
 
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
 
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
content: " (";
+
    content: " (";
font-weight: normal;
+
    font-weight: normal;
 
}
 
}
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
 
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
 
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
 
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
 
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
 
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
content: ") ";
+
    content: ") ";
font-weight: normal;
+
    font-weight: normal;
 
}
 
}
 
/* Put ordinals in front of ordered list items */
 
/* Put ordinals in front of ordered list items */
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist ol {
 
.mw-parser-output .hlist ol {
counter-reset: listitem;
+
    counter-reset: listitem;
 
}
 
}
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist ol > li {
 
.mw-parser-output .hlist ol > li {
counter-increment: listitem;
+
    counter-increment: listitem;
 
}
 
}
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist ol > li:before {
 
.mw-parser-output .hlist ol > li:before {
content: " " counter(listitem) " ";
+
    content: " " counter(listitem) " ";
white-space: nowrap;
+
    white-space: nowrap;
 
}
 
}
/* Should be removed and moved to templates once TemplateStyles is live */
 
 
.mw-parser-output .hlist dd ol > li:first-child:before,
 
.mw-parser-output .hlist dd ol > li:first-child:before,
 
.mw-parser-output .hlist dt ol > li:first-child:before,
 
.mw-parser-output .hlist dt ol > li:first-child:before,
 
.mw-parser-output .hlist li ol > li:first-child:before {
 
.mw-parser-output .hlist li ol > li:first-child:before {
content: " (" counter(listitem) " ";
+
    content: " (" counter(listitem) " ";
 +
}
 +
 
 +
/* Списки без маркеров */
 +
.plainlist ol:not(.references),
 +
.plainlist dl,
 +
.plainlist ul {
 +
line-height: inherit;
 +
list-style: none none;
 +
margin: 0;
 +
padding: 0;
 +
}
 +
.plainlist ol:not(.references) li,
 +
.plainlist dl dt,
 +
.plainlist dl dd,
 +
.plainlist ul li {
 +
margin: 0;
 +
}
 +
.plainlist dl dt:after {
 +
content: ": ";
 +
}
 +
 
 +
/* Неразрывные пробелы в горизонтальных списках */
 +
.nowrap,
 +
.nowraplinks a,
 +
.nowraplinks .selflink,
 +
.hlist-items-nowrap dd,
 +
.hlist-items-nowrap dt,
 +
.hlist-items-nowrap li {
 +
    white-space: nowrap;
 +
}
 +
 
 +
/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
 +
.wrap,
 +
.wraplinks a,
 +
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
 +
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
 +
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
 +
    white-space: normal;
 +
}
 +
 
 +
.reflist-narrow .mw-references-columns {
 +
-webkit-column-width: 20em;
 +
-moz-column-width: 20em;
 +
column-width: 20em;
 +
}
 +
.reflist-wide .mw-references-columns {
 +
-webkit-column-width: 40em;
 +
-moz-column-width: 40em;
 +
column-width: 40em;
 +
}
 +
 
 +
/* Enable custom list style types */
 +
.reflist ol.references {
 +
list-style-type: inherit;
 +
}
 +
 
 +
blockquote {
 +
quotes: '\00AB' '\00BB';
 +
}
 +
 
 +
/* Блок ссылок - альтернативные сервисы рядом с координатами («HGЯО») */
 +
.mw-body .geo-services {
 +
font-size: 82%;
 +
}
 +
 
 +
.geo-services a > span {
 +
margin: 0.25em;
 +
}
 +
 
 +
.geo-services > :first-child a > span {
 +
margin-left: 0.4em;
 +
}
 +
 
 +
/* Временные правки стилей элементов внутри карточек */
 +
table.infobox td p {
 +
margin: 0 !important;
 +
}
 +
table.infobox td .NavContent {
 +
margin-left: 0 !important;
 +
}
 +
 
 +
/* Списки в карточках */
 +
.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;
 +
padding: 0;
 +
}
 +
.infobox .noplainlist > ul:first-child {
 +
margin-top: 0;
 +
}
 +
.infobox th > ol,
 +
.infobox td > ol,
 +
.infobox [data-wikidata-property-id] > ol {
 +
margin: 0;
 +
}
 +
.infobox th > dl,
 +
.infobox td > dl,
 +
.infobox [data-wikidata-property-id] > dl {
 +
margin: 0;
 +
}
 +
.infobox.infobox li,
 +
.infobox.infobox dt,
 +
.infobox.infobox dd {
 +
margin-bottom: 0;
 +
}
 +
.infobox th > ol.references,
 +
.infobox td > ol.references {
 +
line-height: 1.25em;
 +
}
 +
 
 +
/* Таблицы наград в карточках */
 +
.content table.infobox table {
 +
margin: 0;
 +
}
 +
.content table.infobox table td {
 +
    width: initial;
 +
    padding: initial;
 +
}
 +
 
 +
/* Сбрасываем неразрывность где нужно (инфобоксы, карточки, blockright) */
 +
.infobox .nowrap,
 +
.infobox .nowraplinks a,
 +
.infobox .nowraplinks .selflink,
 +
.blockright .nowrap {
 +
white-space: normal;
 +
}
 +
 
 +
/* Скрытие «показать/скрыть карту» - мобильных */
 +
.mw-customtoggle-maps1 {
 +
display: none;
 +
}
 +
 
 +
/* {{ref-info}} */
 +
.ref-info {
 +
font-size: 85%;
 +
cursor: help;
 +
color: #72777d;
 +
}
 +
 
 +
/* {{tl}} и аналоги */
 +
.wp-templatelink {
 +
color: #9098a0;
 +
}
 +
 
 +
/* [[Википедия:Оформление таблиц]] */
 +
.standard,
 +
.wide {
 +
border: 1px solid #a2a9b1;
 +
border-collapse: collapse;
 +
}
 +
 
 +
.standard > tr > th,
 +
.standard > tr > td,
 +
.standard > * > tr > th,
 +
.standard > * > tr > td,
 +
.wide > tr > th,
 +
.wide > tr > td,
 +
.wide > * > tr > th,
 +
.wide > * > tr > td {
 +
border: 1px solid #a2a9b1;
 +
padding: 0.2em 0.4em;
 +
}
 +
 
 +
.standard > tr > th,
 +
.standard > * > tr > th,
 +
.wide > tr > th,
 +
.wide > * > tr > th {
 +
background-color: #eaf3ff;
 +
}
 +
 
 +
/* Класс - [[Ш:Работа - администратов]] и подобных
 +
  - нормального отображения в мобильной версии */
 +
.blockright {
 +
width: 100%;
 +
margin: 0.25em 0;
 +
}
 +
 
 +
/* Стили - расширения [[mw:Extension:Babel]] (13-07-17) */
 +
/* Скрытие буквы N у родных языков, по аналогии со старыми языковыми шаблонами */
 +
.mw-babel-box-level-N {
 +
display: none;
 
}
 
}

Revision as of 16:09, 4 February 2019

/**
You are editing the global CSS file for all mobile site users.
With Great Power Comes Great Responsibility.

Some words of caution:
* Avoid any changes which impact layout on a mobile device.
** Please be careful not to introduce any margin/padding rules. These should be done inside the template itself via an inline style.
** Be especially cautious when a template is likely to be used within the top 480px of the screen (the content that the user will see first on a mobile device)
* Do not use display:none. Instead edit the template and markup the element you want to hide with the "nomobile" class.
* Try to keep rules as generic and minimal as possible. Do not have 2 selectors doing the same thing. Introduce a common class and use that instead
* Group common CSS rules together where possible.
*/


/* Mobile template hacks (see phab T56176) If you are looking for the following, please update your template to use TemplateStyles: */
.mobile-float-reset {
	float: none !important;
	width: 100% !important;
}

/* Стили - заглавной страницы */
@media (max-width: 719px) {
	
	.page-Заглавная_страница #content {
		background-color:#eaecf0;
	}
	.page-Заглавная_страница .header-container.header-chrome {
		box-shadow:none; 
	}
	
}

/*
 * Костыли-префиксы - поддержки устаревших браузеров заглавной страницей
 * Будут переведены - TemplateStyles, см. [[phab:T162379]]
*/
.main-top-right > ul {
	display: -webkit-box;
	display: -webkit-flex;
	-webkit-flex-wrap: wrap;
}

.main-featuredLists > .main-featuredLists-item {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	-webkit-column-break-inside: avoid;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-featuredLists-item > img {
	-webkit-box-flex: 0;
	-webkit-flex: 0 auto;
}

.main-footer {
	display: -webkit-box;
	display: -webkit-flex;
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
}

.main-footer-actions {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
}

.main-footer-actions > ul {
	-webkit-box-align: center;
	-webkit-align-items: center;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-footer-menu {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-footer-menuToggle {
	-webkit-box-align: center;
	-webkit-align-items: center;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-wikimedia-list {
	-webkit-column-count: 4;
	-webkit-column-width: 15em;
}

.main-wikimedia-list > .main-wikimedia-listItem {
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	-webkit-column-break-inside: avoid;
	display: -webkit-box;
	display: -webkit-flex;
}

.main-wikimedia-listItem > img {
	-webkit-box-flex: 0;
	-webkit-flex: 0 auto;
}

.main-wikimedia-listItem > a {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
}

@media (max-width: 719px) {
	.main-wikimedia-list {
		-webkit-column-width: 10em;
	}
}

@media (min-width: 1000px) {
	.main-wrapper {
		display: -webkit-box;
		display: -webkit-flex;
	}

	.main-wrapper-column {
		-webkit-box-flex: 1;
		-webkit-flex: 1;
	}

	.main-top {
		-webkit-box-align: center;
		-webkit-align-items: center;
		display: -webkit-box;
		display: -webkit-flex;
	}

	.main-top-left {
		background-image: -webkit-linear-gradient(left, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
		-webkit-box-flex: 3;
		-webkit-flex: 3;
	}
	
	.main-top-right {
		-webkit-box-flex: 2;
		-webkit-flex: 2;
	}

	.main-top-right > ul {
		-webkit-box-align: center;
		-webkit-align-items: center;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: reverse;
		-webkit-flex-direction: row-reverse;
		-webkit-box-pack: left;
		-webkit-justify-content: left;
	}
}

/* Служебные классы - показа сообщений отдельным группам пользователей */
.group-checkuser-show,
.group-bureaucrat-show,
.group-sysop-show,
.group-engineer-show,
.group-closer-show,
.group-filemover-show,
.group-editor-show,
.group-autoeditor-show,
.group-user-show {
	display: none;
}

/* Style for horizontal lists (separator following item).
   Adapted for the mobile version.
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 6 (2014-05-09)
   @author [[User:Edokter]]
 */
/* Display list items inline */
.mw-parser-output .hlist dd,
.mw-parser-output .hlist dt,
.mw-parser-output .hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.mw-parser-output .hlist.inline,
.mw-parser-output .hlist.inline dl,
.mw-parser-output .hlist.inline ol,
.mw-parser-output .hlist.inline ul,
.mw-parser-output .hlist dl dl, .hlist dl ol, .hlist dl ul,
.mw-parser-output .hlist ol dl, .hlist ol ol, .hlist ol ul,
.mw-parser-output .hlist ul dl, .hlist ul ol, .hlist ul ul {
    margin: 0;
    display: inline;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
    content: ": ";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
    content: " · ";
    font-weight: bold;
}
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
    counter-reset: listitem;
}
.mw-parser-output .hlist ol > li {
    counter-increment: listitem;
}
.mw-parser-output .hlist ol > li:before {
    content: " " counter(listitem) " ";
    white-space: nowrap;
}
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}

/* Списки без маркеров */
.plainlist ol:not(.references),
.plainlist dl,
.plainlist ul {
	line-height: inherit;
	list-style: none none;
	margin: 0;
	padding: 0;
}
.plainlist ol:not(.references) li,
.plainlist dl dt,
.plainlist dl dd,
.plainlist ul li {
	margin: 0;
}
.plainlist dl dt:after {
	content: ": ";
}

/* Неразрывные пробелы в горизонтальных списках */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
.hlist-items-nowrap dd,
.hlist-items-nowrap dt,
.hlist-items-nowrap li {
    white-space: nowrap;
}

/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
.wrap,
.wraplinks a,
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
    white-space: normal;
}

.reflist-narrow .mw-references-columns {
	-webkit-column-width: 20em;
	-moz-column-width: 20em;
	column-width: 20em;
}
.reflist-wide .mw-references-columns {
	-webkit-column-width: 40em;
	-moz-column-width: 40em;
	column-width: 40em;
}

/* Enable custom list style types */
.reflist ol.references {
	list-style-type: inherit;
}

blockquote {
	quotes: '\00AB' '\00BB';
}

/* Блок ссылок - альтернативные сервисы рядом с координатами («HGЯО») */
.mw-body .geo-services {
	font-size: 82%;
}

.geo-services a > span {
	margin: 0.25em;
}

.geo-services > :first-child a > span {
	margin-left: 0.4em;
}

/* Временные правки стилей элементов внутри карточек */
table.infobox td p {
	margin: 0 !important;
}
table.infobox td .NavContent {
	margin-left: 0 !important;
}

/* Списки в карточках */ 
.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;
	padding: 0;
}
.infobox .noplainlist > ul:first-child {
	margin-top: 0;
}
.infobox th > ol,
.infobox td > ol,
.infobox [data-wikidata-property-id] > ol {
	margin: 0;
}
.infobox th > dl,
.infobox td > dl,
.infobox [data-wikidata-property-id] > dl {
	margin: 0;
}
.infobox.infobox li,
.infobox.infobox dt,
.infobox.infobox dd {
	margin-bottom: 0;
}
.infobox th > ol.references,
.infobox td > ol.references {
	line-height: 1.25em;
}

/* Таблицы наград в карточках */
.content table.infobox table {
	margin: 0;
}
.content table.infobox table td {
    width: initial;
    padding: initial;
}

/* Сбрасываем неразрывность где нужно (инфобоксы, карточки, blockright) */
.infobox .nowrap,
.infobox .nowraplinks a,
.infobox .nowraplinks .selflink,
.blockright .nowrap {
	white-space: normal;
}

/* Скрытие «показать/скрыть карту» - мобильных */
.mw-customtoggle-maps1 {
	display: none;
}

/* {{ref-info}} */
.ref-info {
	font-size: 85%;
	cursor: help;
	color: #72777d;
}

/* {{tl}} и аналоги */
.wp-templatelink {
	color: #9098a0;
}

/* [[Википедия:Оформление таблиц]] */
.standard,
.wide {
	border: 1px solid #a2a9b1;
	border-collapse: collapse;
}

.standard > tr > th,
.standard > tr > td,
.standard > * > tr > th,
.standard > * > tr > td,
.wide > tr > th,
.wide > tr > td,
.wide > * > tr > th,
.wide > * > tr > td {
	border: 1px solid #a2a9b1;
	padding: 0.2em 0.4em;
}

.standard > tr > th,
.standard > * > tr > th,
.wide > tr > th,
.wide > * > tr > th {
	background-color: #eaf3ff;
}

/* Класс - [[Ш:Работа - администратов]] и подобных 
   - нормального отображения в мобильной версии */
.blockright {
	width: 100%;
	margin: 0.25em 0;
}

/* Стили - расширения [[mw:Extension:Babel]] (13-07-17) */
/* Скрытие буквы N у родных языков, по аналогии со старыми языковыми шаблонами */
.mw-babel-box-level-N {
	display: none;
}