MediaWiki:Common.css: различия между версиями

Материал из Открытая Властя
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 171: Строка 171:
         font-size:smaller;
         font-size:smaller;
}
}
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }


.main-top {
body.page-Заглавная страница.action-view h1.firstHeading, body.page-Заглавная страница.action-submit h1.firstHeading { display: none; }
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-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 {
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://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: 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: 3;
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: left;
margin-top: 0;
text-align: left;
}
.main-top-createArticle + li .mw-ui-button.mw-ui-quiet {
padding-right: 1em;
}
}

Версия от 20:55, 13 октября 2018

/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* [[wikipedia:ru:Википедия:Правила оформления таблиц]] */
table.simple {border-color: rgb(170,170,170); border-collapse: collapse}
table.simple th, table.simple td {border-color: rgb(170,170,170); padding-left: 0.2em; padding-right: 0.2em}
table.standard, table.wide, table.wikitable, table.standart {border: 1px solid rgb(170,170,170);border-collapse: collapse}
table.standard th, table.wide th, table.wikitable th, table.standart th {border: 1px solid rgb(170,170,170);padding-left: 0.2em;padding-right: 0.2em;background-color: #EEEEFF}
table.standard td, table.wide td, table.wikitable td, table.standart td {border: 1px solid rgb(170,170,170);padding-left: 0.2em;padding-right: 0.2em}
table.standard caption, table.wide caption, table.wikitable caption, table.standart caption, table.tiles caption {font-weight: bold;padding-top: 0.2em;padding-bottom: 0.2em}
table.wide {width: 100%}
table.tiles {border-collapse: separate;border-spacing: 2px}
table.tiles th {padding-left: 0.2em;padding-right: 0.2em;background-color: #EEEEFF}
table.tiles td {padding-left: 0.2em;padding-right: 0.2em;background-color: #F0F0F0}
tr.highlight th {background-color: #EEEEFF}
tr.highlight td {background-color: #FFFFEE}
tr.bright th {background-color: #CCCCFF}
tr.bright td {background-color: #FFEECC}
tr.shadow th {background-color: #F0F0F0}
tr.shadow td {background-color: #F0F0F0}
tr.dark th {background-color: #CCCCCC}
tr.dark td {background-color: #CCCCCC}
table th.highlight {background-color: #EEEEFF}
table td.highlight {background-color: #FFFFEE}
table th.bright {background-color: #CCCCFF}
table td.bright {background-color: #FFEECC}
table th.shadow {background-color: #F0F0F0}
table td.shadow {background-color: #F0F0F0}
table th.dark {background-color: #CCCCCC}
table td.dark {background-color: #CCCCCC}
table th.transparent {background-color: transparent}
table td.transparent {background-color: transparent}
 
/* Оформление {{ambox}} */
table.ambox {
 width: auto;
 margin: 0 10%;
 border-collapse: collapse;
 background: #FBFBFB;
 border: 1px solid #AAAAAA;
 border-left: 10px solid #1E90FF
}
table.ambox th, table.ambox td {
 padding: 0.25em 0.5em;
}
table.ambox td.ambox-widthhack {
 padding: 0;
}
table.ambox td.ambox-text {
 width:100%;
}
table.ambox td.ambox-image {
 width: 52px;
 padding: 2px 0px 2px 0.5em;
 text-align: center;
}
table.ambox td.ambox-imageright {
 width: 52px;
 padding: 2px 4px 2px 0px;
 text-align: center;
}
table.ambox td.ambox-image div,
table.ambox td.ambox-imageright div {
 width:52px /* Фикс для изображений разной ширины */
}
table.ambox-delete,
table.ambox-serious {
 border-left: 10px solid #B22222
}
table.ambox-content {
 border-left: 10px solid #F28500
}
table.ambox-style {
 border-left: 10px solid #F4C430
}
table.ambox-good {
 border-left: 10px solid #66CC44
}
table.ambox-discussion {
 border-left: 10px solid #339966
}
table.ambox-notice {
 border-left: 10px solid #1E90ff
}
table.ambox-merge {
 border-left: 10px solid #9932CC
}
table.ambox-protection {
 border-left: 10px solid #BBBBAA
}
table.ambox.ambox-mini {
 float: right;
 clear: right;
 margin: 0 0 0.5em 1em;
 width: 20%;
}
 
/* default skin for navigation boxes */
table.navbox {
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}
table.navbox th {
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}
table.navbox tr:not(:first-child) th {
    background-color: #ddf;
}
@media print {
    .navbox {
        display: none;
    }
}
 
/* navbox hiding, see [[wikipedia:en:Wikipedia:NavFrame]]. */
div.Boxmerge,
div.NavFrame {
        margin: 0px;
        padding: 4px;
        border: 1px solid #aaa;
        text-align: center;
        border-collapse: collapse;
        font-size: 95%;
}
div.Boxmerge div.NavFrame {
        border-style: none;
        border-style: hidden;
}
div.NavFrame + div.NavFrame {
        border-top-style: none;
        border-top-style: hidden;
}
div.NavPic {
        background-color: #fff;
        margin: 0px;
        padding: 2px;
        float: left;
}
div.NavFrame div.NavHead {
        height: 1.6em;
        font-weight: bold;
        background-color: #ccccff;
        position:relative;
}
div.NavFrame p {
        font-size: 100%;
}
div.NavFrame div.NavContent {
        font-size: 100%;
}
div.NavFrame div.NavContent p {
        font-size: 100%;
}
div.NavEnd {
        margin: 0px;
        padding: 0px;
        line-height: 1px;
        clear: both;
}
a.NavToggle {
        position:absolute;
        top:0px;
        right:3px;
        font-weight:normal;
        font-size:smaller;
}

body.page-Заглавная страница.action-view h1.firstHeading, body.page-Заглавная страница.action-submit h1.firstHeading { display: none; }