/*
Новое оформление шаблона [[Шаблон:Заглавная/Шапка]]
Основано на:
https://github.com/wikimedia/wikimedia-ui-base/blob/master/wikimedia-ui-base.less
https://design.wikimedia.org/style-guide/
*/
.main-top {
clear: both;
margin-top: 1rem;
padding-bottom: 1.5rem;
}
.main-top-left {
font-size: 1rem;
}
.main-top-left > p {
font-size: 0.875em;
margin: 0.5em 0 0;
padding: 0;
}
body.skin-vector .main-top-left > p,
body.skin-minerva .main-top-left > p,
body.skin-timeless .main-top-left > p {
margin: 0;
}
.main-top-right {
margin-top: 0.5em;
}
.main-top-right > ul {
display: none;
margin-top: 0.5rem;
}
.main-top-header {
border-bottom: 0;
margin: 0;
padding: 0;
}
body.skin-monobook .main-top-header {
line-height: 1;
}
.main-top-articleCount {
margin: 0;
padding: 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;
}
body.skin-minerva .main-top-mobileSearch .main-top-mobileSearchButton a {
background: var(--background-color-base, #fff);
border: none;
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
color: var(--color-base--subtle, #72777d);
display: block;
font-weight: normal;
padding: 0.25em 0.85em;
text-decoration: none;
text-align: left;
}
/*
Планшеты
*/
@media (min-width: 720px) {
.main-top {
background-color: var(--background-color-neutral-subtle, #f8f9fa);
border: 1px solid var(--border-color-subtle, #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://up.wiki.x.io/wikipedia/commons/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-top: 0;
}
@media screen {
html.skin-theme-clientpref-night .main-top {
background-blend-mode: overlay;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .main-top {
background-blend-mode: overlay;
}
}
.main-top-left {
background-image: linear-gradient(
to right,
var(--background-color-neutral-subtle, #f8f9fa) 0%,
var(--background-color-neutral-subtle, #f8f9fa) 70%,
rgba(248, 249, 250, 0) 100%
);
flex: 2.5;
padding: 2rem 0 2rem 1rem;
}
.main-top-right {
flex: 2;
margin-top: 0;
text-align: right;
}
.main-top-right > ul {
align-items: center;
flex-direction: row-reverse;
gap: 0.5em;
justify-content: right;
margin-top: 0;
text-align: left;
}
}
/*
Широкие стационарные компьютеры
*/
@media (min-width: 1280px) {
.main-top {
padding-right: 1.5rem;
}
body.skin-minerva .main-top {
padding-right: 1rem;
}
.main-top-left {
padding-left: 1.5rem;
}
body.skin-minerva .main-top-left {
padding-left: 1rem;
}
}
/* [[Категория:Шаблоны:Подстраницы CSS]] */