MediaWiki:Common.css

Материал из Wiki о Хлебе
Перейти к навигации Перейти к поиску

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

  • 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 будет применяться ко всем темам оформления */
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 9 (2016-08-10)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.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;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li: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;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}

/* КАРТОЧКА --------------------------------------- */

.infobox {
	border: 1px solid #a2a9b1;
	background: #f8f9fa;
	margin-bottom: .5em;
    margin-left: auto;
    margin-right: auto;
	padding: .5em;
	float: none;
	clear: right;
	font-size: 90%;
	width: 35em;
	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;
	padding-bottom: .4em;
	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-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;
}

/* ToDo: temporarily fix */
.infobox td p {
	margin: 0 !important;
}
infobox-title  {
	width: 50 px;
}

#indent-rubr li {
	display: inline;
}

/* ТАБЛИЦЫ ---------------------------------------- */

/* [[Википедия:Оформление таблиц]] */
.standard,
.wide {
	/* For align=center tables dont use shorthand margin */
	margin-top:1em;
	margin-bottom:1em;
	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;
}

.standard > caption,
.wide > caption {
	font-weight: bold;
}

.wide {
	width: 100%;
}

table.graytable {
	background: #f0f0f0;
	padding: 1em;
	width: 100%;
}
table.graytable caption {
	padding-top: 0.5em;
	background: #f0f0f0;
	font-weight: bold;
}
table.graytable caption span.subcaption {
	font-size: 88.5%;
	font-weight: normal;
}
table.graytable th,
table.graytable td {
	font-size: 88.5%;
}

/* Оформление ячеек */
tr.highlight th,
table tr th.highlight {
	background: #dcebff;
}
tr.highlight td,
table tr td.highlight {
	background: #ffe;
	font-weight: normal;
}
tr.bright th,
table tr th.bright {
	background: #cfe3ff;
}
tr.bright td,
table tr td.bright {
	background: #fec;
}
tr.shadow th,
tr.shadow td,
table tr th.shadow,
table tr td.shadow {
	background: #f0f0f0;
}
tr.dark th,
tr.dark td,
table tr th.dark,
table tr td.dark {
	background: #ccc;
}

/*
Новое оформление шаблона [[Шаблон:Заглавная/Шапка]]

Основано на:
https://github.com/wikimedia/wikimedia-ui-base/blob/master/wikimedia-ui-base.less
https://design.wikimedia.org/style-guide/
*/
.main-top {
	font-size: 1rem;
	margin-top: 1rem;
	padding-bottom: 1.5rem;
}

.main-top-left > p {
	font-size: 0.875em;
	margin: 0;
}

.main-top-right {
	font-size: 0.875em;
	margin-top: 0.5em;
}

.main-top-right > ul {
	display: none;
	margin-top: 0.5rem;
}

.main-top-header {
	border-bottom: 0;
	margin-bottom: 0;
	margin-top: 0;
}

.main-top-articleCount {
	margin-bottom: 0;
}

body.skin-minerva .main-top-articleCount {
	display: none;
}

.main-top-mobileSearch {
	display: none;
	margin-top: 1rem;
}

body.skin-minerva .main-top-mobileSearch {
	display: block;
}

.main-top-mobileSearchButton {
	background: #fff;
	border: none;
	box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
	color: #72777d;
	font-weight: normal;
	max-width: none;
	text-align: left;
	width: 100%;
}

/*
Планшеты
*/
@media (min-width: 720px) {
	.main-top {
		background-color: #f8f9fa;
		border: 1px solid #c8ccd1;
		border-radius: 2px;
		box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
		margin-bottom: 1rem;
		padding: 1rem;
	}
	
	.main-top-right > ul {
		display: flex;
		flex-wrap: wrap;
	}
	
	.main-top-articleCount {
		margin-bottom: 0.5rem;
	}
	
	body.skin-minerva .main-top-articleCount {
		display: block;
	}
	
	body.skin-minerva .main-top-mobileSearch {
		display: none;
	}
}

/*
Стационарные компьютеры
*/
@media (min-width: 1000px) {
	.main-top {
		align-items: center;
		background-image: url(https://wiki.ohlebe.ru/images/e/e3/Wikipedia_logo_letters_banner.svg);
		background-position: right;
		background-repeat: no-repeat;
		display: flex;
		margin-bottom: 1.5rem;
		margin-top: 0.5rem;
		padding-bottom: 0;
		padding-left: 0;
		padding-right: 1.5rem;
		padding-top: 0;
	}
	
	.main-top-left {
		background-image: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
		flex: 2.5;
		padding: 2rem 0 2rem 1.5rem;
	}
	
	.main-top-right {
		flex: 2;
		margin-top: 0;
		text-align: right;
	}
	
	.main-top-right > ul {
		align-items: center;
		flex-direction: row-reverse;
		justify-content: right;
		margin-top: 0;
		text-align: left;
	}
	
	.main-top-createArticle {
		margin-left: 12px;
	}
}

@media (max-width: 999px) {
	.main-top-createArticle {
		margin-right: 12px;
	}
}

/* [[Заглавная страница]] ------------------------- */

body.page-Заглавная_страница #ca-current,
body.page-Заглавная_страница #ca-delete,
body.page-Заглавная_страница #t-cite,
body.page-Заглавная_страница #catlinks,
body.page-Заглавная_страница #lastmod,
body.page-Заглавная_страница #footer-info-lastmod,
body.page-Заглавная_страница.action-view h1.firstHeading,
body.page-Заглавная_страница.action-view #siteSub,
body.page-Заглавная_страница.action-view #contentSub,
body.page-Заглавная_страница.action-view #mw-data-after-content {
	display: none !important;
}
/* Скрыть кнопку обсуждение */ 
#ca-talk { display:none!important; }
#pt-mytalk { display:none!important; }
/* Скрыть кнопку читать */ 
#ca-view { display:none!important; }