Шаблон:ModernTitle/css: различия между версиями

Материал из Space Station 14 Вики
м Содержимое страницы заменено на «<templatestyles src="ModernTitle/styles.css" />»
Метка: замена
мНет описания правки
Строка 1: Строка 1:
<templatestyles src="ModernTitle/styles.css" />
{{#css:
.mw-parser-output h1 .mw-headline {
    min-width: 250px;
    padding: 2px 3%;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
 
.mw-parser-output h1::before,
.mw-parser-outputh1::after {
content: "";
flex-grow: 1;
height: 6px;
border-radius: 1px;
}
.mw-parser-output h1::after {
    background: linear-gradient(90deg, #31313f 85%, transparent);
    margin-left: 10px;
}
 
.mw-parser-output h1::before {
    background: linear-gradient(270deg, #31313f 85%, transparent);
margin-right: 10px;
}
 
.mw-parser-output h1 .mw-headline {
background-color: #31313f;
border-radius: 5px;
}
 
@media (max-width: 600px) {
.mw-parser-output h1 .mw-headline {
width: 100% !important;
padding: 0 !important;
}
.mw-parser-output h1::before {
margin-right: 0;
}
.mw-parser-output h1::after {
margin-left: 0;
}
}
 
/* Сброс стилей */
.mw-parser-output h1 {
    border-bottom: none !important;
    font-family: "noto sans" !important;
font-weight: bold !important;
    line-height: unset !important;
    display: flex !important;
}
 
.mw-parser-output h1 {
align-items: center;
justify-content: center;
text-align: center;
 
}
 
 
/* Заголовок h2 */
.mw-parser-output h2 {
    font-size: 1.2em !important;
    font-weight: bold !important;
    padding: 6px 8px;
    background: linear-gradient(90deg, rgba(178, 178, 255, 0.11) -50%, transparent 130%);
    border-radius: 0.2em;
    margin: 28px 0 12px;
}
 
/* Сброс стилей */
.mw-parser-output h2 {
    border-bottom: none !important;
    line-height: unset !important;
    font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif !important;
}
 
/* Заголовок h3 */
.mw-parser-output h3 {
    font-size: 1.15em !important;
    font-weight: bold !important;
    margin: 1.1em 0 0.5em;
}
 
/* Сброс стилей */
.mw-parser-output h3 {
    font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif !important;
}
}}

Версия от 20:56, 29 марта 2025