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

Материал из ВикиМИРЭА
Перейти к: навигация, поиск
(Новая страница: «/** You are editing the global CSS file for all mobile site users. With Great Power Comes Great Responsibility. Some words of caution: * Avoid any changes which…»)
(Метки: mobile edit, mobile web edit)
 
 
(не показано 13 промежуточных версий этого же участника)
Строка 1: Строка 1:
/**
+
/* CSS placed here will affect users of the mobile site */
You are editing the global CSS file for all mobile site users.
+
/* CSS placed here will affect users of the mobile site */
With Great Power Comes Great Responsibility.
 
  
Some words of caution:
+
/*
* Avoid any changes which impact layout on a mobile device.
+
Стили для заглавной страницы.
** Please be careful not to introduce any margin/padding rules. These should be done inside the template itself via an inline style.
+
*/
** Be especially cautious when a template is likely to be used within the top 480px of the screen (the content that the user will see first on a mobile device)
+
 
* Do not use display:none. Instead edit the template and markup the element you want to hide with the "nomobile" class.
+
 
* Try to keep rules as generic and minimal as possible. Do not have 2 selectors doing the same thing. Introduce a common class and use that instead
+
/*
* Group common CSS rules together where possible.
+
Взято из Википедии со страницы
 +
[https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F/styles.css Шаблон:Заглавная/styles.css]
 
*/
 
*/
  
/**
+
.main-header {
*  [Содержание]
+
border-bottom-color: transparent;
*
+
margin-bottom: 0.25em;
*  1. Интерфейс
+
margin-top: 0;
*  1.1 Теги
+
padding-bottom: 0;
*  1.2 Классы
+
padding-top: 0;
*  1.3 Расширения
+
}
*  2. Служебные классы
 
*  3. Общие классы
 
*  3.1 Списки
 
*  3.2 Примечания
 
*  3.4 Таблицы
 
*  4. Шаблоны
 
*  5. Страницы
 
*/
 
  
/* ================================================
 
  ИНТЕРФЕЙС
 
  ================================================ */
 
  
/* ТЕГИ ------------------------------------------- */
+
/* Списки без оформления */
  
blockquote {
+
.main-plainlist>ul {
quotes: '\00AB' '\00BB';
+
list-style: none;
 +
margin: 0;
 +
padding: 0;
 
}
 
}
  
/* КЛАССЫ ----------------------------------------- */
+
.main-plainlist li {
 
+
margin-bottom: 0;
/* Скрытие «показать/скрыть карту» на мобильных */
 
.mw-customtoggle-maps1 {
 
display: none;
 
 
}
 
}
  
/* РАСШИРЕНИЯ ------------------------------------- */
 
  
/* Стили для расширения [[mw:Extension:Babel]] (13-07-17) */
+
/* Ссылки-кнопки */
/* Скрытие буквы N у родных языков, по аналогии со старыми языковыми шаблонами */
 
.mw-babel-box-level-N {
 
display: none;
 
}
 
  
/* ================================================
+
.main-top-right .mw-ui-quiet:hover,
  СЛУЖЕБНЫЕ КЛАССЫ
+
.main-top-right .mw-ui-quiet:focus,
  ================================================ */
+
.main-footer .mw-ui-quiet:hover,
 
+
.main-footer .mw-ui-quiet:focus {
/* Служебные классы для показа сообщений отдельным группам пользователей */
+
color: #0645ad;
.group-checkuser-show,
 
.group-bureaucrat-show,
 
.group-sysop-show,
 
.group-engineer-show,
 
.group-closer-show,
 
.group-filemover-show,
 
.group-editor-show,
 
.group-autoreview-show,
 
.group-user-show {
 
display: none;
 
 
}
 
}
  
/* ================================================
 
  ОБЩИЕ КЛАССЫ
 
  ================================================ */
 
  
/* СПИСКИ ----------------------------------------- */
+
/*
 +
Скрытие нумерации заголовков, создаваемой опцией «Автоматически нумеровать заголовки»
 +
на [[Служебная:Настройки#mw-prefsection-rendering]]
 +
*/
  
/* Style for horizontal lists (separator following item).
+
.mw-headline-number {
  Adapted for the mobile version.
+
display: none;
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
 
  @revision 6 (2014-05-09)
 
  @author [[User:Edokter]]
 
*/
 
/* Display list items inline */
 
.mw-parser-output .hlist dd,
 
.mw-parser-output .hlist dt,
 
.mw-parser-output .hlist li {
 
    margin: 0;
 
    display: inline;
 
}
 
/* Display nested lists inline */
 
.mw-parser-output .hlist.inline,
 
.mw-parser-output .hlist.inline dl,
 
.mw-parser-output .hlist.inline ol,
 
.mw-parser-output .hlist.inline ul,
 
.mw-parser-output .hlist dl dl, .hlist dl ol, .hlist dl ul,
 
.mw-parser-output .hlist ol dl, .hlist ol ol, .hlist ol ul,
 
.mw-parser-output .hlist ul dl, .hlist ul ol, .hlist ul ul {
 
    margin: 0;
 
    display: inline;
 
}
 
/* Generate interpuncts */
 
.mw-parser-output .hlist dt:after {
 
    content: ": ";
 
}
 
.mw-parser-output .hlist dd:after,
 
.mw-parser-output .hlist li:after {
 
    content: " · ";
 
    font-weight: bold;
 
}
 
.mw-parser-output .hlist dd:last-child:after,
 
.mw-parser-output .hlist dt:last-child:after,
 
.mw-parser-output .hlist li:last-child:after {
 
    content: none;
 
}
 
/* Add parentheses around nested lists */
 
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
 
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
 
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
 
    content: " (";
 
    font-weight: normal;
 
}
 
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
 
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
 
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
 
    content: ") ";
 
    font-weight: normal;
 
}
 
/* Put ordinals in front of ordered list items */
 
.mw-parser-output .hlist ol {
 
    counter-reset: listitem;
 
}
 
.mw-parser-output .hlist ol > li {
 
    counter-increment: listitem;
 
}
 
.mw-parser-output .hlist ol > li:before {
 
    content: " " counter(listitem) " ";
 
    white-space: nowrap;
 
}
 
.mw-parser-output .hlist dd ol > li:first-child:before,
 
.mw-parser-output .hlist dt ol > li:first-child:before,
 
.mw-parser-output .hlist li ol > li:first-child:before {
 
    content: " (" counter(listitem) " ";
 
 
}
 
}
  
/* Списки без маркеров */
 
.plainlist ol:not(.references),
 
.plainlist dl,
 
.plainlist ul {
 
line-height: inherit;
 
list-style: none none;
 
margin: 0;
 
padding: 0;
 
}
 
.plainlist ol:not(.references) li,
 
.plainlist dl dt,
 
.plainlist dl dd,
 
.plainlist ul li {
 
margin: 0;
 
}
 
.plainlist dl dt:after {
 
content: ": ";
 
}
 
  
/* Неразрывные пробелы в горизонтальных списках */
+
/*
.nowrap,
+
Планшеты
.nowraplinks a,
+
*/
.nowraplinks .selflink,
+
 
.hlist-items-nowrap dd,
+
@media (min-width: 720px) {
.hlist-items-nowrap dt,
+
.main-wikimedia {
.hlist-items-nowrap li {
+
padding-top: 1rem;
    white-space: nowrap;
+
padding-left: 1rem;
 +
padding-right: 1rem;
 +
}
 
}
 
}
  
/* Но где-то неразрывность надо сбросить (например, в навшаблонах в узких местах) */
 
.wrap,
 
.wraplinks a,
 
.hlist-items-nowrap dl dl, .hlist-items-nowrap dl ol, .hlist-items-nowrap dl ul, /* Allow nested lists to wrap anyway */
 
.hlist-items-nowrap ol dl, .hlist-items-nowrap ol ol, .hlist-items-nowrap ol ul,
 
.hlist-items-nowrap ul dl, .hlist-items-nowrap ul ol, .hlist-items-nowrap ul ul {
 
    white-space: normal;
 
}
 
  
/* ПРИМЕЧАНИЯ ------------------------------------- */
+
/*
 +
Стационарные компьютеры
 +
*/
  
.reflist-narrow .mw-references-columns {
+
@media (min-width: 1000px) {
-webkit-column-width: 20em;
+
.main-wrapper {
-moz-column-width: 20em;
+
display: flex;
column-width: 20em;
+
margin: 0 -0.75rem;
}
+
}
.reflist-wide .mw-references-columns {
+
.main-wrapper-column {
-webkit-column-width: 40em;
+
flex: 1;
-moz-column-width: 40em;
+
margin: 0 0.75rem;
column-width: 40em;
+
}
 +
.main-wikimedia {
 +
padding-top: 1.5rem;
 +
padding-left: 1.5rem;
 +
padding-right: 1.5rem;
 +
}
 
}
 
}
  
/* Enable custom list style types */
 
.reflist ol.references {
 
list-style-type: inherit;
 
}
 
  
/* ТАБЛИЦЫ ---------------------------------------- */
+
/*
 +
Взято из Википедии
 +
со страницы [https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB_%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B9_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B/styles.css Шаблон:Раздел заглавной страницы/styles.css]
 +
*/
  
/* [[Википедия:Оформление таблиц]] */
+
.main-box {
.standard,
+
margin: 0 -1rem 1.5rem;
.wide {
+
padding: 1rem;
border: 1px solid #a2a9b1;
+
background-color: #FFFAF0;
border-collapse: collapse;
+
border: 1px solid silver;
 +
border-color: #FF8C00;
 +
border-radius: 7px;
 +
border-spacing: 1px;
 
}
 
}
  
.standard > tr > th,
+
.main-box>p:last-child {
.standard > tr > td,
+
margin-bottom: 0;
.standard > * > tr > th,
 
.standard > * > tr > td,
 
.wide > tr > th,
 
.wide > tr > td,
 
.wide > * > tr > th,
 
.wide > * > tr > td {
 
border: 1px solid #a2a9b1;
 
padding: 0.2em 0.4em;
 
 
}
 
}
  
.standard > tr > th,
 
.standard > * > tr > th,
 
.wide > tr > th,
 
.wide > * > tr > th {
 
background-color: #eaf3ff;
 
}
 
  
/* ================================================
+
/* Изображение дня */
  ШАБЛОНЫ
 
  ================================================ */
 
 
 
/* КАРТОЧКА --------------------------------------- */
 
  
/* Компоненты карточки */
+
.main-box-image-only>.main-box-content {
.infobox-above {
+
margin: 0.5rem -1rem 0;
font-size: 120%;
 
 
text-align: center;
 
text-align: center;
background: #eaecf0;
 
 
}
 
}
.infobox-image {
+
 
text-align: center;
+
.main-box-image-only>.main-box-content img {
 +
height: auto;
 +
max-width: 100%;
 
}
 
}
.infobox-header {
+
 
 +
.main-box-imageCaption {
 
text-align: center;
 
text-align: center;
background: #eaecf0;
 
 
}
 
}
.infobox-below {
+
 
text-align: center;
+
.main-box-imageCaption>p {
 +
display: inline-block;
 +
margin-bottom: 0;
 +
text-align: left;
 
}
 
}
  
.infobox-medals .NavFrame .NavHead {
+
 
padding: 7px 10px;
+
/* Надзаголовок */
font-weight: bold;
+
 
 +
.main-box-subtitle {
 +
color: #72777d;
 +
line-height: 1.25;
 +
margin-top: -.125em;
 +
/* Балансирование верхней границы надзаголовка из-за line-height: 1.25; */
 
}
 
}
  
/* Встраиваемая карточка */
+
 
.content table.infobox-child {
+
/* Заголовок */
width: 100% !important;
+
 
margin: 0 !important;
+
.main-box-header {
padding: 0;
+
margin-top: -.15em;
border: none;
+
/* Балансирование верхней границы заголовка из-за line-height: 1.3; */
font-size: 100%;
+
text-align: center;
 
}
 
}
  
/* Таблицы в карточках */
+
.main-box-header a {
.content table.infobox table:not(.infobox) {
+
color: inherit;
margin: 0;
 
}
 
.content table.infobox table:not(.infobox):not(.infobox-inherit) td {
 
    width: initial;
 
    padding: initial;
 
}
 
.content table.infobox .infobox-table,
 
.content table.infobox .infobox-tablebox,
 
.content table.infobox .infobox-medals {
 
padding: 0;
 
}
 
.content table.infobox .infobox-inner-table,
 
.content table.infobox .infobox-table > table,
 
.content table.infobox .infobox-tablebox > table,
 
.content table.infobox .infobox-medals > table {
 
width: 100%;
 
display: table;
 
margin: 0;
 
background: transparent;
 
}
 
.content table.infobox .infobox-medals > table {
 
border-collapse: separate;
 
}
 
.content table.infobox .infobox-tablebox > table {
 
background: #ffffff;
 
border-collapse: separate;
 
 
}
 
}
  
/* Списки в карточках */  
+
/*
.infobox th:not(.noplainlist) > ul,
+
Сброс margin на стандартное значение при появлении надзаголовка
.infobox td:not(.noplainlist) > ul,
+
*/
.infobox [data-wikidata-property-id] > ul {
+
.main-box-subtitle+.main-box-header {
list-style-type: none;
 
list-style-image: none;
 
margin: 0;
 
padding: 0;
 
}
 
.infobox .noplainlist > ul:first-child {
 
 
margin-top: 0;
 
margin-top: 0;
 
}
 
}
.infobox th > ol,
+
 
.infobox td > ol,
+
.main-box-header a:focus,
.infobox [data-wikidata-property-id] > ol {
+
.main-box:hover .main-box-header a,
margin: 0;
+
.main-box:hover .main-featuredLists-item>a {
 +
color: #0645ad;
 
}
 
}
.infobox th > dl,
+
 
.infobox td > dl,
+
.main-box:last-child {
.infobox [data-wikidata-property-id] > dl {
 
margin: 0;
 
}
 
.infobox.infobox li,
 
.infobox.infobox dt,
 
.infobox.infobox dd {
 
 
margin-bottom: 0;
 
margin-bottom: 0;
 
}
 
}
.infobox li,
+
 
.infobox dt,
+
 
.infobox dd {
+
/* Подвал */
margin-bottom: 0;
+
 
 +
.main-footer {
 +
display: flex;
 +
justify-content: flex-end;
 +
margin-top: 1rem;
 +
position: relative;
 
}
 
}
.infobox th > ol.references,
+
 
.infobox td > ol.references {
+
.main-footer:empty {
line-height: 1.25em;
+
display: none;
 
}
 
}
.infobox th > ol.references li,
+
 
.infobox td > ol.references li {
+
.main-footer-actions {
margin-bottom: 0.1em;
+
flex: 1;
 
}
 
}
.infobox th > ol.references li:last-child,
+
 
.infobox td > ol.references li:last-child {
+
.main-footer-actions>ul {
margin-bottom: 0;
+
align-items: center;
 +
display: flex;
 
}
 
}
  
/* Сбрасываем неразрывность где нужно */
+
 
.infobox .nowrap,
+
/* Меню */
.infobox .nowraplinks a,
+
 
.infobox .nowraplinks .selflink {
+
.main-footer-menu {
white-space: normal;
+
align-items: stretch;
 +
display: flex;
 
}
 
}
  
/* ToDo: Временные правки стилей элементов внутри карточек */
+
.main-footer-menuToggle {
table.infobox td p {
+
align-items: center;
margin: 0 !important;
+
display: flex;
 +
float: none;
 +
height: 100%;
 +
opacity: 0.87;
 
}
 
}
table.infobox td .NavContent {
+
 
margin-left: 0 !important;
+
.main-footer-menuToggle:hover {
 +
opacity: 0.51;
 
}
 
}
 
 
/* [[Шаблон:Coord]] ------------------------------- */
 
  
/* Блок ссылок на альтернативные сервисы рядом с координатами («HGЯО») */
+
 
.mw-body .geo-services {
+
/* Выпадайка */
font-size: 82%;
+
 
 +
.main-footer-menuDropdown {
 +
background: #fff;
 +
border: 1px solid #a2a9b1;
 +
border-radius: 2px;
 +
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25);
 +
max-width: 15em;
 +
position: absolute;
 +
right: 0;
 +
top: 100%;
 +
z-index: 100;
 
}
 
}
.geo-services a > span {
+
 
margin: 0.25em;
+
.main-footer-menuDropdown .mw-ui-button {
 +
text-align: left;
 +
width: 100%;
 
}
 
}
.geo-services > :first-child a > span {
+
 
margin-left: 0.4em;
+
 
 +
/* Мы в соцсетях, Дружественные проекты, АК */
 +
 
 +
#main-soc p,
 +
#main-fri p,
 +
#main-pir p,
 +
#main-img p {
 +
text-align: center;
 
}
 
}
  
/* [[Шаблон:Ref-info]] ---------------------------- */
+
 
.ref-info {
+
/*
font-size: 85%;
+
Мобильные
cursor: help;
+
*/
color: #72777d;
+
 
 +
@media (max-width: 719px) {
 +
.main-box-responsive-image>.floatleft,
 +
.main-box-responsive-image>.floatright {
 +
float: none;
 +
margin-left: -1rem;
 +
margin-right: -1rem;
 +
text-align: center;
 +
}
 +
.main-box-responsive-image>.floatleft>a,
 +
.main-box-responsive-image>.floatright>a {
 +
display: block;
 +
}
 
}
 
}
  
/* [[Шаблон:Tl]] и аналоги ------------------------ */
+
 
.wp-templatelink {
+
/*
color: #9098a0;
+
Планшеты
 +
*/
 +
 
 +
@media (min-width: 720px) {
 +
.main-box {
 +
margin-bottom: 1rem;
 +
margin-left: 0;
 +
margin-right: 0;
 +
}
 
}
 
}
  
/* ================================================
 
  СТРАНИЦЫ
 
  ================================================ */
 
  
/* [[Заглавная страница]] ------------------------- */
+
/*
 +
Стационарные компьютеры
 +
*/
  
@media (max-width: 719px) {
+
@media (min-width: 1000px) {
.page-Заглавная_страница #content {
+
.main-box {
background-color:#eaecf0;
+
margin-bottom: 1.5rem;
 +
padding: 1.5rem;
 
}
 
}
.page-Заглавная_страница .header-container.header-chrome {
+
.main-box-image-only>.main-box-content {
box-shadow:none;  
+
margin-left: -1.5rem;
 +
margin-right: -1.5rem;
 
}
 
}
 
}
 
}
 +
  
 
/*
 
/*
* Костыли-префиксы для поддержки устаревших браузеров заглавной страницей
+
Братские проекты
* Будут переведены на TemplateStyles, см. [[phab:T162379]]
 
 
*/
 
*/
.main-top-right > ul {
+
 
display: -webkit-box;
+
.main-projects-wrapper-0 {
display: -webkit-flex;
+
width: 100%;
-webkit-flex-wrap: wrap;
+
background: #FFA500;
 +
border-radius: 7px;
 +
border-spacing: 0;
 
}
 
}
  
.main-featuredLists > .main-featuredLists-item {
+
.main-projects-wrapper-1 {
-webkit-box-align: stretch;
+
width: 100%;
-webkit-align-items: stretch;
+
border-radius: 7px;
-webkit-column-break-inside: avoid;
 
display: -webkit-box;
 
display: -webkit-flex;
 
 
}
 
}
  
.main-featuredLists-item > img {
+
.main-projects-header {
-webkit-box-flex: 0;
+
border: 0;
-webkit-flex: 0 auto;
+
text-align: center;
 +
padding-left: 1px;
 +
font-family: sans-serif;
 +
font-size: 100%;
 
}
 
}
  
.main-footer {
+
.main-projects-table {
display: -webkit-box;
+
width: 100%;
display: -webkit-flex;
+
font-size: 90%;
-webkit-box-pack: end;
+
border-radius: 7px;
-webkit-justify-content: flex-end;
+
line-height: 110%;
 +
background: #FFFFFF;
 +
}
 +
 
 +
.main-projects-list {
 +
width: 100%;
 +
background: white;
 +
display: flex;
 +
flex-wrap: wrap;
 
}
 
}
  
.main-footer-actions {
+
.main-project-item {
-webkit-box-flex: 1;
+
flex: 1 1 40%;
-webkit-flex: 1;
+
min-width: 200px;
 
}
 
}
  
.main-footer-actions > ul {
+
.main-project-item-table {
-webkit-box-align: center;
+
width: 100%;
-webkit-align-items: center;
 
display: -webkit-box;
 
display: -webkit-flex;
 
 
}
 
}
  
.main-footer-menu {
+
.main-project-icon {
-webkit-box-align: stretch;
+
width: 6%;
-webkit-align-items: stretch;
 
display: -webkit-box;
 
display: -webkit-flex;
 
 
}
 
}
  
.main-footer-menuToggle {
+
.main-project-title {
-webkit-box-align: center;
+
width: 44%;
-webkit-align-items: center;
+
border-bottom: 1px dashed #AAAAAA;
display: -webkit-box;
 
display: -webkit-flex;
 
 
}
 
}
  
.main-wikimedia-list {
+
#main-wtr,
-webkit-column-count: 4;
+
#main-prs,
-webkit-column-width: 15em;
+
#main-new,
 +
#main-fri {
 +
background-color: #FFFFE0;
 
}
 
}
  
.main-wikimedia-list > .main-wikimedia-listItem {
+
 
-webkit-box-align: stretch;
+
/*
-webkit-align-items: stretch;
+
Блок «Добро пожаловать»
-webkit-column-break-inside: avoid;
+
*/
display: -webkit-box;
+
 
display: -webkit-flex;
+
.main-top-header {
 +
display: flex;
 +
flex-wrap: wrap;
 +
justify-content: space-around;
 
}
 
}
  
.main-wikimedia-listItem > img {
+
.main-top-header-welcome {
-webkit-box-flex: 0;
+
text-align: center;
-webkit-flex: 0 auto;
 
 
}
 
}
  
.main-wikimedia-listItem > a {
+
.main-top-header-welcome-bold {
-webkit-box-flex: 1;
+
margin: 0;
-webkit-flex: 1;
+
padding: .1em;
 +
font-family: sans-serif;
 +
font-size: 162%;
 
}
 
}
  
@media (max-width: 719px) {
+
.main-top-header-categories {
.main-wikimedia-list {
+
display: grid;
-webkit-column-width: 10em;
+
grid-template-columns: 1fr 1fr 1fr;
}
 
 
}
 
}
  
@media (min-width: 1000px) {
+
.main-top-header-patron {
.main-wrapper {
+
flex: 100%;
display: -webkit-box;
+
text-align: center;
display: -webkit-flex;
+
font-size: 95%;
}
+
}
  
.main-wrapper-column {
 
-webkit-box-flex: 1;
 
-webkit-flex: 1;
 
}
 
  
.main-top {
+
/*
-webkit-box-align: center;
+
Прочее
-webkit-align-items: center;
+
*/
display: -webkit-box;
 
display: -webkit-flex;
 
}
 
  
.main-top-left {
+
.main-layout-element {
background-image: -webkit-linear-gradient(left, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
+
margin-bottom: 1rem;
-webkit-box-flex: 3;
+
}
-webkit-flex: 3;
 
}
 
 
.main-top-right {
 
-webkit-box-flex: 2;
 
-webkit-flex: 2;
 
}
 
  
.main-top-right > ul {
+
.main-layout-element:last-child {
-webkit-box-align: center;
+
margin-bottom: 0;
-webkit-align-items: center;
 
-webkit-box-orient: horizontal;
 
-webkit-box-direction: reverse;
 
-webkit-flex-direction: row-reverse;
 
-webkit-box-pack: left;
 
-webkit-justify-content: left;
 
}
 
 
}
 
}

Текущая версия на 00:35, 16 сентября 2021

/* CSS placed here will affect users of the mobile site */
/* CSS placed here will affect users of the mobile site */

/*
 Стили для заглавной страницы.
*/


/*
 Взято из Википедии со страницы
 [https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F/styles.css Шаблон:Заглавная/styles.css]
*/

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


/* Списки без оформления */

.main-plainlist>ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-plainlist li {
	margin-bottom: 0;
}


/* Ссылки-кнопки */

.main-top-right .mw-ui-quiet:hover,
.main-top-right .mw-ui-quiet:focus,
.main-footer .mw-ui-quiet:hover,
.main-footer .mw-ui-quiet:focus {
	color: #0645ad;
}


/*
 Скрытие нумерации заголовков, создаваемой опцией «Автоматически нумеровать заголовки»
 на [[Служебная:Настройки#mw-prefsection-rendering]]
*/

.mw-headline-number {
	display: none;
}


/*
Планшеты
*/

@media (min-width: 720px) {
	.main-wikimedia {
		padding-top: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}


/*
Стационарные компьютеры
*/

@media (min-width: 1000px) {
	.main-wrapper {
		display: flex;
		margin: 0 -0.75rem;
	}
	.main-wrapper-column {
		flex: 1;
		margin: 0 0.75rem;
	}
	.main-wikimedia {
		padding-top: 1.5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}


/*
 Взято из Википедии
 со страницы [https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB_%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B9_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B/styles.css Шаблон:Раздел заглавной страницы/styles.css]
*/

.main-box {
	margin: 0 -1rem 1.5rem;
	padding: 1rem;
	background-color: #FFFAF0;
	border: 1px solid silver;
	border-color: #FF8C00;
	border-radius: 7px;
	border-spacing: 1px;
}

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


/* Изображение дня */

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

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

.main-box-imageCaption {
	text-align: center;
}

.main-box-imageCaption>p {
	display: inline-block;
	margin-bottom: 0;
	text-align: left;
}


/* Надзаголовок */

.main-box-subtitle {
	color: #72777d;
	line-height: 1.25;
	margin-top: -.125em;
	/* Балансирование верхней границы надзаголовка из-за line-height: 1.25; */
}


/* Заголовок */

.main-box-header {
	margin-top: -.15em;
	/* Балансирование верхней границы заголовка из-за line-height: 1.3; */
	text-align: center;
}

.main-box-header a {
	color: inherit;
}

/*
 Сброс margin на стандартное значение при появлении надзаголовка
*/
.main-box-subtitle+.main-box-header {
	margin-top: 0;
}

.main-box-header a:focus,
.main-box:hover .main-box-header a,
.main-box:hover .main-featuredLists-item>a {
	color: #0645ad;
}

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


/* Подвал */

.main-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
	position: relative;
}

.main-footer:empty {
	display: none;
}

.main-footer-actions {
	flex: 1;
}

.main-footer-actions>ul {
	align-items: center;
	display: flex;
}


/* Меню */

.main-footer-menu {
	align-items: stretch;
	display: flex;
}

.main-footer-menuToggle {
	align-items: center;
	display: flex;
	float: none;
	height: 100%;
	opacity: 0.87;
}

.main-footer-menuToggle:hover {
	opacity: 0.51;
}


/* Выпадайка */

.main-footer-menuDropdown {
	background: #fff;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25);
	max-width: 15em;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 100;
}

.main-footer-menuDropdown .mw-ui-button {
	text-align: left;
	width: 100%;
}


/* Мы в соцсетях, Дружественные проекты, АК */

#main-soc p,
#main-fri p,
#main-pir p,
#main-img p {
	text-align: center;
}


/*
Мобильные
*/

@media (max-width: 719px) {
	.main-box-responsive-image>.floatleft,
	.main-box-responsive-image>.floatright {
		float: none;
		margin-left: -1rem;
		margin-right: -1rem;
		text-align: center;
	}
	.main-box-responsive-image>.floatleft>a,
	.main-box-responsive-image>.floatright>a {
		display: block;
	}
}


/*
Планшеты
*/

@media (min-width: 720px) {
	.main-box {
		margin-bottom: 1rem;
		margin-left: 0;
		margin-right: 0;
	}
}


/*
Стационарные компьютеры
*/

@media (min-width: 1000px) {
	.main-box {
		margin-bottom: 1.5rem;
		padding: 1.5rem;
	}
	.main-box-image-only>.main-box-content {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}


/*
Братские проекты
*/

.main-projects-wrapper-0 {
	width: 100%;
	background: #FFA500;
	border-radius: 7px;
	border-spacing: 0;
}

.main-projects-wrapper-1 {
	width: 100%;
	border-radius: 7px;
}

.main-projects-header {
	border: 0;
	text-align: center;
	padding-left: 1px;
	font-family: sans-serif;
	font-size: 100%;
}

.main-projects-table {
	width: 100%;
	font-size: 90%;
	border-radius: 7px;
	line-height: 110%;
	background: #FFFFFF;
}

.main-projects-list {
	width: 100%;
	background: white;
	display: flex;
	flex-wrap: wrap;
}

.main-project-item {
	flex: 1 1 40%;
	min-width: 200px;
}

.main-project-item-table {
	width: 100%;
}

.main-project-icon {
	width: 6%;
}

.main-project-title {
	width: 44%;
	border-bottom: 1px dashed #AAAAAA;
}

#main-wtr,
#main-prs,
#main-new,
#main-fri {
	background-color: #FFFFE0;
}


/*
Блок «Добро пожаловать»
 */

.main-top-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.main-top-header-welcome {
	text-align: center;
}

.main-top-header-welcome-bold {
	margin: 0;
	padding: .1em;
	font-family: sans-serif;
	font-size: 162%;
}

.main-top-header-categories {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.main-top-header-patron {
	flex: 100%;
	text-align: center;
	font-size: 95%;
}


/*
 Прочее
 */

.main-layout-element {
	margin-bottom: 1rem;
}

.main-layout-element:last-child {
	margin-bottom: 0;
}