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

Материал из Space Station 14 Вики
мНет описания правки
мНет описания правки
 
(не показано 8 промежуточных версий этого же участника)
Строка 1: Строка 1:
{{#css:
{{#css:
.mw-parser-output h1 .mw-headline {
.mw-parser-output h1 .mw-headline {
     min-width: clamp(50px, 20vw, 300px);
     min-width: 250px;
     padding: 2px 3%;
     padding: 2px 3%;
     font-size: clamp(1.4rem, 2.5vw, 1.5rem);
     font-size: 1.5rem;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
}


.mw-parser-output h1::before,
.mw-parser-output h1::before,
.mw-parser-outputh1::after {
.mw-parser-output h1::after {
content: "";
content: "";
flex-grow: 1;
flex-grow: 1;
Строка 15: Строка 15:
}
}
.mw-parser-output h1::after {
.mw-parser-output h1::after {
     background: linear-gradient(90deg, #31313f 85%, #ffffff00);
     background: linear-gradient(90deg, #31313f 85%, transparent);
     margin-left: 10px;
     margin-left: 10px;
}
}


.mw-parser-output h1::before {
.mw-parser-output h1::before {
     background: linear-gradient(270deg, #31313f 85%, #ffffff00);
     background: linear-gradient(270deg, #31313f 85%, transparent);
margin-right: 10px;
margin-right: 10px;
}
}
Строка 60: Строка 60:


/* Заголовок h2 */
/* Заголовок h2 */
.mw-parser-output h2 {
.mw-parser-output h2:not(#mw-toc-heading) {
     font-size: 1.2em !important;
     font-size: 1.2em !important;
     font-weight: bold !important;
     font-weight: bold !important;
     padding: 6px 8px;
     padding: 6px 8px;
     background: linear-gradient(90deg, #b2b2ff1b -30%, #ffffff00 100%);
     background: linear-gradient(90deg, rgba(178, 178, 255, 0.11) -50%, transparent 130%);
     border-radius: 0.2em;
     border-radius: 0.2em;
    margin: 28px 0 12px;
}
}


/* Сброс стилей */
/* Сброс стилей */
.mw-parser-output h2 {
.mw-parser-output h2:not(#mw-toc-heading) {
     border-bottom: none !important;
     border-bottom: none !important;
     line-height: unset !important;
     line-height: unset !important;
Строка 79: Строка 80:
     font-size: 1.15em !important;
     font-size: 1.15em !important;
     font-weight: bold !important;
     font-weight: bold !important;
    margin: 1.1em 0 0.5em;
}
}



Текущая версия от 21:02, 29 марта 2025