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

Материал из Вики-КОБ (Концепция общественной безопасности)
Перейти к навигации Перейти к поиску
(Содержимое страницы заменено на «→‎CSS placed here will affect users of the mobile site: »)
Метка: замена
 
Строка 1: Строка 1:
 
/* CSS placed here will affect users of the mobile site */
 
/* CSS placed here will affect users of the mobile site */
/* Общие классы */
 
.inline-block {
 
display:inline-block;
 
}
 
.serif {
 
font-family: 'Linux Libertine','Georgia','Times',serif;
 
}
 
 
/* Лишние ссылки в меню инструментов */
 
#t-permalink {
 
display:none;
 
}
 
 
/* Список всех страниц */
 
.mw-allpages-body {
 
columns: unset;
 
-moz-columns: unset;
 
-webkit-columns: unset;
 
}
 
 
/* Цитата */
 
blockquote {
 
border-left: 4px solid #e0e0e0;
 
padding: 3px 15px;
 
background: #f5f5f5;
 
margin: 0.7em 0 0.7em 2%;
 
}
 
 
/* Встраивание видео */
 
.embedvideo-thumb,
 
.embedvideo-description {
 
background:#000;
 
color:#000;
 
}
 
.embedvideo-thumb {
 
margin-bottom:.5em;
 
}
 
.embedvideo-inline {
 
display:inline-block;
 
vertical-align:top;
 
}
 
.embedvideo-width-full {
 
width:560px;
 
}
 
.embedvideo-height-full {
 
height:315px;
 
}
 
.embedvideo-width-half {
 
width:280px;
 
}
 
.embedvideo-height-half {
 
height:158px;
 
}
 
.embedvideo-center {
 
margin-left:auto;
 
margin-right:auto;
 
}
 
.embedvideo-right {
 
clear:right;
 
float:right;
 
margin-left:.5em;
 
}
 
.embedvideo-left {
 
clear:left;
 
float:left;
 
margin-right:.5em;
 
}
 
 
/* Примечания */
 
.mw-parser-output > .mw-references-wrap:before {
 
content: "Примечания";
 
}
 
.mw-parser-output > .mw-references-wrap::before {
 
font-size: 1.5em;
 
margin-top: 1em;
 
border-bottom: 1px solid #a2a9b1;
 
display: block;
 
font-family: 'Linux Libertine','Georgia','Times',serif;
 
line-height: 1.3;
 
}
 
 
/* Подвал */
 
#footer #footer-icons {
 
float: unset;
 
}
 
.footer-extra {
 
display:inline-block;
 
margin-bottom: 5px;
 
}
 
.footer-link {
 
position: relative;
 
top: 6px;
 
}
 
#footer ul li.ya-share2__item {
 
margin: -6px 4px 0px 0px;
 
}
 
 
/* Главная страница */
 
.page-Вики-КОБ_Приветствие #firstHeading {
 
display:none;
 
}
 
 
/* Плитки */
 
.tile {
 
padding: 0.5rem 1.5rem;
 
margin: 0 0 0.5rem 0;
 
border: 1px solid #c8ccd1;
 
border-radius: 2px;
 
box-shadow: 0 1px 1px rgba(0,0,0,.15);
 
}
 
.tile-header {
 
margin: 0.15rem 0 0.25rem 0;
 
}
 
.big-tile {
 
padding: 1.5rem;
 
margin: 0 0 1.5rem 0;
 
}
 
.main-tile {
 
padding: 2rem 1.5rem;
 
margin: -1rem 0 1.5rem 0;
 
background-color: #f8f9fa;
 
}
 
.main-tile-header {
 
font-size: 1.8em;
 
line-height: 1.3;
 
}
 
.tile-buttons-wrapper {
 
padding: 0 1.5rem 1.5rem 1.5rem;
 
}
 
.tile-button {
 
display: inline-block;
 
margin: 1.5rem 1.5rem 0 0;
 
}
 
.tile-button a {
 
background-color: #f8f9fa;
 
color: #222;
 
border-color: #a2a9b1;
 
padding-top: 0.57142857em;
 
padding-bottom: 0.5em;
 
border-style: solid;
 
border-width: 1px;
 
border-radius: 2px;
 
padding-left: 0.85714286em;
 
padding-right: 0.85714286em;
 
position: relative;
 
font-weight: bold;
 
text-decoration: none;
 
vertical-align: top;
 
text-align: center;
 
cursor: pointer;
 
display: inline-block;
 
}
 
.tile-button a:hover {
 
background-color: #ffffff;
 
color: #444444;
 
border-color: #a2a9b1;
 
}
 
.tile-button a:active {
 
background-color: #c8ccd1;
 
color: #000000;
 
border-color: #72777d;
 
box-shadow: none;
 
}
 
.mw-body-content .tile h2 {
 
margin-top: unset;
 
}
 
.tile-column {
 
display: inline-block;
 
vertical-align: top;
 
}
 
@media only screen and (min-width: 1000px) {
 
.tile-column {
 
width: calc(50% - 12px);
 
}
 
}
 
.tile-column-left {
 
margin-right:20px;
 
}
 
.background-blue {
 
background-color: #f0f8fe;
 
}
 
.background-red {
 
background-color: #fff8f8;
 
}
 
.background-yellow {
 
background-color: #fffff4;
 
}
 
.background-green {
 
background-color: #f6fff6;
 
}
 
 
/* Оглавление */
 
.toc {
 
padding: 14px 21px 9px 14px;
 
border-left: 4px solid #a2a9b1;
 
border-right: unset;
 
border-top: unset;
 
border-bottom: unset;
 
font-size: unset;
 
}
 
.toc .toctitle {
 
text-align: left;
 
}
 
 
.minerva-footer {
 
    text-align: center;
 
}
 
 
/* Исправляем длинный заголовок в мобильной версии */
 
.header {
 
white-space: unset;
 
}
 

Текущая версия на 13:50, 12 февраля 2021

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