MediaWiki:Mobile.css

Материал из Wikipedia PC-SUPP
Перейти к: навигация, поиск

Замечание. Возможно, после сохранения вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl-F5 или Ctrl-R (⌘-R на Mac)
  • Google Chrome: Нажмите Ctrl-Shift-R (⌘-Shift-R на Mac)
  • Internet Explorer: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl-F5
  • Opera: Перейдите в Menu → Настройки (Opera → Настройки на Mac), а затем Безопасность → Очистить историю посещений → Кэшированные изображения и файлы
/**
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.
*/

/* Стили для заглавной страницы */
@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 */
#content .hlist dd,
#content .hlist dt,
#content .hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
#content .hlist.inline,
#content .hlist.inline dl,
#content .hlist.inline ol,
#content .hlist.inline ul,
#content .hlist dl dl, .hlist dl ol, .hlist dl ul,
#content .hlist ol dl, .hlist ol ol, .hlist ol ul,
#content .hlist ul dl, .hlist ul ol, .hlist ul ul {
    margin: 0;
    display: inline;
}
/* Generate interpuncts */
#content .hlist dt:after {
    content: ": ";
}
#content .hlist dd:after,
#content .hlist li:after {
    content: " · ";
    font-weight: bold;
}
#content .hlist dd:last-child:after,
#content .hlist dt:last-child:after,
#content .hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
#content .hlist dd dd:first-child:before, #content .hlist dd dt:first-child:before, #content .hlist dd li:first-child:before,
#content .hlist dt dd:first-child:before, #content .hlist dt dt:first-child:before, #content .hlist dt li:first-child:before,
#content .hlist li dd:first-child:before, #content .hlist li dt:first-child:before, #content .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
#content .hlist dd dd:last-child:after, #content .hlist dd dt:last-child:after, #content .hlist dd li:last-child:after,
#content .hlist dt dd:last-child:after, #content .hlist dt dt:last-child:after, #content .hlist dt li:last-child:after,
#content .hlist li dd:last-child:after, #content .hlist li dt:last-child:after, #content .hlist li li:last-child:after {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
#content .hlist ol {
    counter-reset: listitem;
}
#content .hlist ol > li {
    counter-increment: listitem;
}
#content .hlist ol > li:before {
    content: " " counter(listitem) " ";
    white-space: nowrap;
}
#content .hlist dd ol > li:first-child:before,
#content .hlist dt ol > li:first-child:before,
#content .hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}

/* Списки без маркеров */
.plainlist ul {
	list-style: none;
}

/* Неразрывные пробелы в горизонтальных списках */
.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;
}

/* Disabling column-count for {{div col}}, {{reflist}} and {{refbegin}} */
.references-small {
    -moz-column-count: 1 !important;
    -webkit-column-count: 1 !important;
    column-count: 1 !important;
}

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;
}

/* temporarily for [[Template:Карточка]] */
table.infobox td p {
	margin: 0 !important;
}

/* Списки в карточках */ 
.infobox th>ul,
.infobox td>ul,
.infobox [data-wikidata-property-id]>ul{
	list-style-type: none;
	list-style-image: none;
	margin: 0;
}
.infobox th>ol,
.infobox td>ol {
	line-height: 1.1em;
	margin: 0 0 0 2em;
}
.infobox li {
	margin-bottom: 0;
}

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

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

/* small review notice */
#mw-fr-reviewnotice {
    color: #72777d;
    font-size: 0.8em;
    font-style: italic;
}

.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;
}