MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Нет описания правки |
Нет описания правки |
||
| Строка 3: | Строка 3: | ||
#p-logo { visibility: hidden; } // Логотип в левом верхнем углу. | #p-logo { visibility: hidden; } // Логотип в левом верхнем углу. | ||
/* Имя автора в одной строке с первым абзацем */ | |||
.mw-parser-output h3.author-heading { | .mw-parser-output h3.author-heading { | ||
display: inline; | display: inline !important; | ||
font-size: inherit; | font-size: inherit !important; | ||
font-weight: bold; | font-weight: bold; | ||
line-height: inherit; | line-height: inherit !important; | ||
margin: 0; | margin: 0 !important; | ||
padding: 0; | padding: 0 !important; | ||
border: 0; | border: 0 !important; | ||
} | } | ||
/* Первый абзац | /* Первый абзац цитаты */ | ||
.mw-parser-output h3.author-heading + p { | .mw-parser-output h3.author-heading + p { | ||
display: inline; | display: inline !important; | ||
margin: 0; | margin: 0 !important; | ||
padding: 0; | padding: 0 !important; | ||
} | } | ||
/* | /* Скрываем номер заголовка, добавленный NumberHeadings */ | ||
.mw-parser-output h3.author-heading .mw-headline-number { | |||
display: none !important; | |||
} | |||
/* Разделяем две следующие друг за другом одноабзацные цитаты */ | |||
.mw-parser-output h3.author-heading + p:has(+ h3.author-heading)::after { | .mw-parser-output h3.author-heading + p:has(+ h3.author-heading)::after { | ||
content: "\A\A"; | content: "\A\A"; | ||
white-space: pre; | white-space: pre; | ||
} | } | ||
Версия от 02:42, 12 октября 2026
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
#p-logo { visibility: hidden; } // Логотип в левом верхнем углу.
/* Имя автора в одной строке с первым абзацем */
.mw-parser-output h3.author-heading {
display: inline !important;
font-size: inherit !important;
font-weight: bold;
line-height: inherit !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
}
/* Первый абзац цитаты */
.mw-parser-output h3.author-heading + p {
display: inline !important;
margin: 0 !important;
padding: 0 !important;
}
/* Скрываем номер заголовка, добавленный NumberHeadings */
.mw-parser-output h3.author-heading .mw-headline-number {
display: none !important;
}
/* Разделяем две следующие друг за другом одноабзацные цитаты */
.mw-parser-output h3.author-heading + p:has(+ h3.author-heading)::after {
content: "\A\A";
white-space: pre;
}