MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
| Строка 127: | Строка 127: | ||
padding: 1.5rem; | padding: 1.5rem; | ||
} | } | ||
| + | } | ||
| + | |||
| + | |||
| + | /* Article message box styles */ | ||
| + | table.ambox { | ||
| + | margin: 0 10%; /* 10% = Will not overlap with other elements */ | ||
| + | border: 1px solid #a2a9b1; | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #36c; /* Default "notice" blue */ | ||
| + | background-color: #fbfbfb; | ||
| + | box-sizing: border-box; | ||
| + | } | ||
| + | table.ambox + table.ambox { /* Single border between stacked boxes. */ | ||
| + | margin-top: -1px; | ||
| + | } | ||
| + | .ambox th.mbox-text, | ||
| + | .ambox td.mbox-text { /* The message body cell(s) */ | ||
| + | padding: 0.25em 0.5em; /* 0.5em left/right */ | ||
| + | } | ||
| + | .ambox td.mbox-image { /* The left image cell */ | ||
| + | /* @noflip */ | ||
| + | padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */ | ||
| + | } | ||
| + | .ambox td.mbox-imageright { /* The right image cell */ | ||
| + | /* @noflip */ | ||
| + | padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */ | ||
| + | } | ||
| + | |||
| + | table.ambox-notice { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #36c; /* Blue */ | ||
| + | } | ||
| + | table.ambox-speedy { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #b32424; /* Red */ | ||
| + | background-color: #fee7e6; /* Pink */ | ||
| + | } | ||
| + | table.ambox-delete { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #b32424; /* Red */ | ||
| + | } | ||
| + | table.ambox-content { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #f28500; /* Orange */ | ||
| + | } | ||
| + | table.ambox-style { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #fc3; /* Yellow */ | ||
| + | } | ||
| + | table.ambox-move { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #9932cc; /* Purple */ | ||
| + | } | ||
| + | table.ambox-protection { | ||
| + | /* @noflip */ | ||
| + | border-left: 10px solid #a2a9b1; /* Gray-gold */ | ||
} | } | ||
Версия 10:30, 3 апреля 2019
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
@media (min-width: 1000px) {
.main-wrapper {
display: flex;
margin: 0 -0.75rem;
}
.main-wrapper-column {
flex: 1;
margin: 0 0.75rem;
}
}
/* Заглавная/Шапка/styles.css */
.main-top {
font-size: 1rem;
margin-top: 1rem;
padding-bottom: 1.5rem;
}
.main-top-left > p {
font-size: 0.875em;
margin: 0;
}
.main-top-left .main-top-header {
border-bottom: 0;
margin-bottom: 0;
margin-top: 0;
}
/*
Планшеты
*/
@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;
}
}
/*
Стационарные компьютеры
*/
@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;
}
}
/* other */
.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-box-subtitle {
color: #72777d;
line-height: 1.25;
margin-top: -.125em; /* Балансирование верхней границы надзаголовка из-за line-height: 1.25; */
}
.main-box .main-box-header {
border-bottom-color:transparent;
margin-bottom:0.25em;
margin-top:0;
padding-bottom:0;
padding-top:0
}
.main-box-subtitle + .main-box-header { /* При появлении надзаголовка сбрасываем margin на стандартное значение */
margin-top: 0;
}
/*
Планшеты
*/
@media (min-width: 720px) {
.main-box {
border-radius: 2px;
border-width: 1px;
margin-bottom: 1rem;
margin-left: 0;
margin-right: 0;
}
}
/*
Стационарные компьютеры
*/
@media (min-width: 1000px) {
.main-box {
margin-bottom: 1.5rem;
padding: 1.5rem;
}
}
/* Article message box styles */
table.ambox {
margin: 0 10%; /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c; /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
table.ambox + table.ambox { /* Single border between stacked boxes. */
margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
}
.ambox td.mbox-image { /* The left image cell */
/* @noflip */
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright { /* The right image cell */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
}
table.ambox-notice {
/* @noflip */
border-left: 10px solid #36c; /* Blue */
}
table.ambox-speedy {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
background-color: #fee7e6; /* Pink */
}
table.ambox-delete {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
}
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500; /* Orange */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #fc3; /* Yellow */
}
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc; /* Purple */
}
table.ambox-protection {
/* @noflip */
border-left: 10px solid #a2a9b1; /* Gray-gold */
}