/*
Песочница для страницы [[User:Saint Johann/Мастерская]]

Главный референс:
https://design.wikimedia.org/style-guide/
https://github.com/wikimedia/wikimedia-ui-base/blob/master/wikimedia-ui-base.less

Не удаляйте код до завершения работы
*/

.main-top {
	font-size: 1rem;
	margin-top: 1rem;
	padding-bottom: 1.5rem;
}

.main-top-right,
.main-footer-list,
.main-wikimedia-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-top-right > li,
.main-footer-list > li {
	margin-bottom: 0;
}

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

.main-top-right {
	display: none;
}

.main-top-right .mw-ui-button.mw-ui-quiet {
	padding-right: 0;
}

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

.main-top-articleCount {
	display: none;
}

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

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

.main-box {
	background: #fff;
	border: solid #c8ccd1;
	border-width: 1px 0;
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 );
	margin: 0 -1rem 1.5rem;
	padding: 1rem;
}

.main-box > p:last-child {
	margin-bottom: 0;
}

.main-image-content {
	margin: 0.5rem -1rem 0;
	text-align: center;
}

.main-image-content img {
	height: auto;
	max-width: 100%;
}

.main-box-header,
.main-wikimedia-header {
	border-bottom-color: transparent;
	margin-bottom: 0.25em;
	margin-top: 0;
	padding-bottom: 0;
	padding-top: 0;
}

.main-footer {
	margin-top: 1rem;
}

.main-footer-list {
	align-items: center;
	display: flex;
	margin-top: 0.5rem;
}

.main-footer-list.is-right {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.main-footer-templateLink {
	height: auto;
	min-width: 0;
	width: auto;
}

.main-footer-templateLink:hover {
	opacity: 0.83;
}

.main-wikimedia-header {
	margin-top: 0;
	text-align: center;
}

.main-wikimedia-icon {
	margin: 0 0 0.5rem;
	text-align: center;
}

.main-wikimedia-list {
	column-width: 15em; column-count: 4;
	margin-top: 0.5rem;
}

.main-wikimedia-listItem {
	align-items: stretch;
	break-inside: avoid;
	clear: both;
	display: flex;
	page-break-inside: avoid;
	margin-bottom: 0.5rem;
}

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

.main-wikimedia-listItem > a {
	flex: 1;
	margin-left: -48px;
	padding-left: 56px;
	text-decoration: none;
}

.main-wikimedia-listItem > a > em {
	font-style: normal;
}

.main-wikimedia-listItem > a:hover > em {
	text-decoration: underline;
}

.main-wikimedia-listItem > a > small {
	color: #54595d;
	display: block;
	font-size: 0.85em;
	line-height: 1.25;
}

@media (max-width: 719px) {
	.has-responsive-image > .floatleft,
	.has-responsive-image > .floatright {
		float: none;
		margin-left: -1rem;
		margin-right: -1rem;
		text-align: center;
	}
	
	.main-wikimedia-header {
		font-family: inherit;
		font-size: 1em;
	}
	
	.main-wikimedia-list {
		font-size: 0.85em;
		column-width: 10em;
	}
}

/*
Планшеты
*/
@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 {
		display: flex;
		flex-wrap: wrap;
		margin-top: 0.5rem;
	}
	
	.main-top-articleCount {
		display: block;
	}
	
	.main-top-mobileSearch {
		display: none;
	}
	
	.main-box {
		border-radius: 2px;
		border-width: 1px;
		margin-bottom: 1rem;
		margin-left: 0;
		margin-right: 0;
	}
	
	.main-wikimedia {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	.main-wikimedia-list {
		margin-top: 1rem;
	}
}

/*
Стационарные компьютеры
*/
@media (min-width: 1000px) {
	.main-top {
		align-items: center;
		background-image: url(https://upload.wikimedia.org/wikipedia/commons/e/e3/Wikipedia_logo_letters_banner.svg);
		background-position: right;
		background-repeat: no-repeat;
		display: flex;
		margin-bottom: 1.5rem;
		margin-top: 1.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: 3;
		padding: 2rem 0 2rem 1.5rem;
	}
	
	.main-top-right {
		align-items: center;
		flex: 2;
		flex-direction: row-reverse;
		justify-content: left;
		margin-top: 0;
	}
	
	.main-top-createArticle + li .mw-ui-button.mw-ui-quiet {
		padding-right: 1em;
	}
	
	.main-wrapper {
		display: flex;
		margin: 0 -0.75rem;
	}
	
	.main-wrapper-column {
		flex: 1;
		margin: 0 0.75rem;
	}
	
	.main-box {
		margin-bottom: 1.5rem;
		padding: 1.3rem 1.5rem;
	}
	
	.main-image-content {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
	
	.main-footer {
		font-size: 0.85em;
	}
	
	.main-wikimedia {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	
	.main-wikimedia-header {
		margin-left: auto;
		margin-right: auto;
		width: 80%;
	}
}

@media (max-width: 1199px) {
	.main-footer-list .mw-ui-button.mw-ui-quiet {
		padding-right: 0;
	}
	
	.main-footer-templateLink {
		margin-left: -1em;
	}
}

/*
Широкие стационарные компьютеры
*/
@media (min-width: 1200px) {
	.main-footer::after {
		content: '';
		clear: both;
		display: block;
	}
	
	.main-footer-list {
		margin-top: 0;
	}
	
	.main-footer-list.is-left {
		float: left;
	}
	
	.main-footer-list.is-right {
		flex-direction: row;
		justify-content: flex-start;
		float: right;
	}
	
	.main-footer-list.is-right .mw-ui-button.mw-ui-quiet {
		padding-left: 0;
	}
	
	.main-footer-list.is-left .mw-ui-button.mw-ui-quiet {
		padding-right: 0;
	}
	
	.main-footer-templateLink {
		margin-right: -1em;
	}
}
/* [[Категория:Шаблоны:Подстраницы CSS]] */