/**
Стылі прызначаны для старонкі [[Галоўная старонка]].
*/
/* Header */
#main-page #main-page-header {
align-items: center;
background-image: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 30%, rgba(0, 0, 0, 0) 85%), url(https://upload.wikimedia.org/wikipedia/commons/b/b6/Wikipedia_logo_letters_banner_2.svg);
background-position: right;
background-repeat: no-repeat;
background-size: cover;
border: 1px solid #c5c5c5;
border-radius: 0.3em;
font-size: 1.1em;
padding: 0 5px 0;
}
/* цёмная тэма */
@media screen {
html.skin-theme-clientpref-night #main-page #main-page-header {
background-image: linear-gradient(to right, #101418 0%, #101418 30%, rgba(16,20,24,0.8) 100%), url(https://upload.wikimedia.org/wikipedia/commons/b/b6/Wikipedia_logo_letters_banner_2.svg);
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os #main-page #main-page-header {
background-image: linear-gradient(to right, #101418 0%, #101418 30%, rgba(16,20,24,0.8) 100%), url(https://upload.wikimedia.org/wikipedia/commons/b/b6/Wikipedia_logo_letters_banner_2.svg);
}
}
#main-page #main-page-welcome { display: block; }
#main-page #main-page-header strong { font-size: 1.2em; }
#main-page #main-page-header #main-page-welcome strong { font-size: 1.8em; }
#main-page #main-page-intro {
float: left;
width: 50%;
padding: 0 1.0em 15px;
flex: 2.5;
}
#main-page #main-page-portals {
float: right;
width: 40%;
text-align: center;
padding: 15px 0 0;
}
#main-page #main-page-wiki-help {
clear: both;
text-align: center;
border-top: 1px solid #c5c5c5;
}
#main-page #main-page-wiki-help:empty {
border-top: 0;
}
/*#main-page #main-page-wiki-help p {
margin: 0.5em 0;
}*/
#main-page #main-page-portals span {
display: block;
margin-bottom: .5em;
}
/* Content styles */
#main-page #main-page-content {
padding-top: 1em;
}
#main-page #main-page-content h2,
#main-page #main-page-content .mw-heading2,
#main-page #main-page-footer h2,
#main-page #main-page-footer .mw-heading2 {
clear: both;
padding: .15em 0;
margin-top: 1em;
border-width: 0;
font-family: inherit;
font-size: 1.3em;
text-indent: .5em;
font-weight: bold;
position: relative;
z-index: 0;
}
#main-page #main-page-related {
padding: 0.2em 0.6em;
text-align: right;
}
#main-page #main-page-footer h2::after,
#main-page #main-page-content h2::after,
#main-page #main-page-footer .mw-heading2::after,
#main-page #main-page-content .mw-heading2::after {
display: block;
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
border-radius: 0.3em;
height: 1.5em;
width: 90%;
z-index: -1;
}
#main-page #main-page-column1 h2::after,
#main-page #main-page-column1 .mw-heading2::after {
background-image: linear-gradient(90deg, #d6e9ff 0%, transparent 88%);
}
#main-page #main-page-column2 h2::after,
#main-page #main-page-column2 .mw-heading2::after {
background-image: linear-gradient(90deg, #ffebd6 0%, transparent 88%);
}
#main-page #main-page-footer h2::after,
#main-page #main-page-footer .mw-heading2::after {
background-image: linear-gradient(90deg, #d6d6ff 0%, transparent 88%);
}
/* цёмная тэма */
@media screen {
html.skin-theme-clientpref-night #main-page #main-page-column1 h2::after,
html.skin-theme-clientpref-night #main-page #main-page-column1 .mw-heading2::after {
background-image: linear-gradient(90deg, #004aa0 0%, transparent 88%);
}
html.skin-theme-clientpref-night #main-page #main-page-column2 h2::after,
html.skin-theme-clientpref-night #main-page #main-page-column2 .mw-heading2::after {
background-image: linear-gradient(90deg, #a05200 0%, transparent 88%);
}
html.skin-theme-clientpref-night #main-page #main-page-footer h2::after,
html.skin-theme-clientpref-night #main-page #main-page-footer .mw-heading2::after {
background-image: linear-gradient(90deg, #5000a0 0%, transparent 88%);
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os #main-page #main-page-column1 h2::after,
html.skin-theme-clientpref-os #main-page #main-page-column1 .mw-heading2::after {
background-image: linear-gradient(90deg, #004aa0 0%, transparent 88%);
}
html.skin-theme-clientpref-os #main-page #main-page-column2 h2::after,
html.skin-theme-clientpref-os #main-page #main-page-column2 .mw-heading2::after {
background-image: linear-gradient(90deg, #a05200 0%, transparent 88%);
}
html.skin-theme-clientpref-os #main-page #main-page-footer h2::after,
html.skin-theme-clientpref-os #main-page #main-page-footer .mw-heading2::after {
background-image: linear-gradient(90deg, #5000a0 0%, transparent 88%);
}
}
/* Для альтэрнатыўнага афармлення Вікіпраектаў
#main-page #main-page-sister-projects h2 {
padding: 1em;
text-align: center;
}*/
#main-page #main-wikimedia-icon {
background: white;
width: 45px;
height: 45px;
margin: 0 auto;
margin-top: -40px;
}
#main-page .section .footer {
clear: both;
text-align: right;
font-style: italic;
margin-top: .5em;
}
/* Minor adjustments */
#main-page #main-page-content h2,
#main-page #main-page-content .mw-heading2 {
margin-left: -.2em;
}
#main-page #main-page-footer h2,
#main-page #main-page-footer .mw-heading2 {
margin-left: -.2em;
margin-right: -.2em;
}
#main-page #main-page-news h2,
#main-page #main-page-news .mw-heading2,
#main-page #main-page-aoy h2,
#main-page #main-page-aoy .mw-heading2,
#main-page #main-page-featured-article h2,
#main-page #main-page-featured-article .mw-heading2,
#main-page #main-page-footer h2,
#main-page #main-page-footer .mw-heading2 {
margin-top: -.5em; /* negate the padding */
}
/* shadows */
#main-page #main-page-column1,
#main-page #main-page-column2,
#main-page #main-page-footer .section,
#main-page #main-page-header {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
/* Columns */
#main-page #main-page-column1,
#main-page #main-page-column2,
#main-page #main-page-footer .section {
margin-bottom: 1em;
border-width: 1px;
border-style: solid;
border-color: #c5c5c5;
border-radius: 0.3em;
padding: 1em;
}
/* Для альтэрнатыўнага афармлення Вікіпраектаў
#main-page #main-page-sister-projects {
margin-top: 2.5em;
border-color: grey;
}*/
#main-page #main-page-column1,
#main-page #main-page-column2 {
box-sizing: border-box;
width: 49.5%;
}
#main-page #main-page-column1 { float: left; }
#main-page #main-page-column2 { float: right; }
/* Footer */
#main-page #main-page-footer {
clear: both;
margin-top: 1em;
}
#main-page #main-page-wikimedia .main-page-threecol p {
width: 33%;
float: left;
box-sizing: border-box;
padding: 1em
}
#main-page #main-page-wikimedia .main-page-threecol p img {
float: left;
margin-right: 1em
}
#main-page #main-page-wikimedia div {
clear: both;
}
/* feat in featured-image et al */
#main-page img {
max-width: 100%;
height: auto;
object-fit: contain;
}
/* hide for mobile */
@media screen and (max-width: 768px) {
#main-page-header {
display: none;
}
}
/* flexi columns */
#main-page-content {
display: flex;
gap: 1em;
flex-wrap: wrap;
}
#main-page #main-page-column1, #main-page #main-page-column2 {
width: auto;
margin: 0;
flex: 1;
min-width: 20em;
}
/* не працуе ў вектары, але гэта было пакінута польскімі калегамі на будучыню */
@media screen and (max-width: 22em) {
#main-page #main-page-column1, #main-page #main-page-column2 {
min-width: 60%;
}
}
/**
Налады для мабільных прылад.
*/
/* header lines and images */
body.skin-minerva #main-page #main-page-footer h2::after,
body.skin-minerva #main-page #main-page-content h2::after,
body.skin-minerva #main-page #main-page-footer .mw-heading2::after,
body.skin-minerva #main-page #main-page-content .mw-heading2::after {
left: 0;
height: 100%;
}
body.skin-minerva #main-page #main-page-content h2 .mw-headline,
body.skin-minerva #main-page #main-page-footer h2 .mw-headline,
body.skin-minerva #main-page #main-page-content .mw-heading2 .mw-headline,
body.skin-minerva #main-page #main-page-footer .mw-heading2 .mw-headline {
display: flex;
gap: .3em;
padding-left: .2em;
align-items: center;
}
/* spacing */
body.skin-minerva #main-page #main-page-content .floatright {
margin-top: .6em;
}
body.skin-minerva #main-page-featured-image .image {
margin-top: .6em;
display: block;
}
/*
* Пераходнае, на час пераходу з h2 на .mw-heading2 > h2 (паступова ў розных скінах).
* Калі міграцыя будзе завершана, можна выдаліць, гэтак жа як некаторыя правілы вышэй, якія адносяцца
* да h2, замест .mw-heading2
*/
#main-page .mw-heading2 > h2 {
margin-top: 0 !important;
font-size: inherit !important;
padding: 0 !important;
font-weight: inherit !important;
}