Шаблон:ModernTitle/css: различия между версиями
Pok (обсуждение | вклад) Новая страница: «{{#css: →Заголовок h1: h1 .mw-headline { min-width: clamp(50px, 20vw, 300px); padding: 2px 3%; font-size: clamp(1.4rem, 2.5vw, 1.5rem); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } h1::before, h1::after { content: ""; flex-grow: 1; height: 6px; border-radius: 1px; } h1::after { background: linear-gradient(90deg, var(--background-color) 85%, #ffffff00); margin-left: 10px; } h1::before { background: linear-gradient...» |
Pok (обсуждение | вклад) мНет описания правки |
||
| (не показано 11 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
{{#css: | {{#css: | ||
.mw-parser-output h1 .mw-headline { | |||
h1 .mw-headline { | min-width: 250px; | ||
min-width: | |||
padding: 2px 3%; | padding: 2px 3%; | ||
font-size: | 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); | ||
} | } | ||
h1::before, | .mw-parser-output h1::before, | ||
h1::after { | .mw-parser-output h1::after { | ||
content: ""; | content: ""; | ||
flex-grow: 1; | flex-grow: 1; | ||
| Строка 15: | Строка 14: | ||
border-radius: 1px; | border-radius: 1px; | ||
} | } | ||
h1::after { | .mw-parser-output h1::after { | ||
background: linear-gradient(90deg, | background: linear-gradient(90deg, #31313f 85%, transparent); | ||
margin-left: 10px; | margin-left: 10px; | ||
} | } | ||
h1::before { | .mw-parser-output h1::before { | ||
background: linear-gradient(270deg, | background: linear-gradient(270deg, #31313f 85%, transparent); | ||
margin-right: 10px; | margin-right: 10px; | ||
} | } | ||
h1 .mw-headline { | .mw-parser-output h1 .mw-headline { | ||
background-color: | background-color: #31313f; | ||
border-radius: 5px; | border-radius: 5px; | ||
} | } | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
h1 .mw-headline { | .mw-parser-output h1 .mw-headline { | ||
width: 100% !important; | width: 100% !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
h1::before { | .mw-parser-output h1::before { | ||
margin-right: 0; | margin-right: 0; | ||
} | } | ||
h1::after { | .mw-parser-output h1::after { | ||
margin-left: 0; | margin-left: 0; | ||
} | } | ||
| Строка 44: | Строка 43: | ||
/* Сброс стилей */ | /* Сброс стилей */ | ||
h1 { | .mw-parser-output h1 { | ||
border-bottom: none !important; | border-bottom: none !important; | ||
font-family: "noto sans" !important; | font-family: "noto sans" !important; | ||
| Строка 52: | Строка 51: | ||
} | } | ||
h1 { | .mw-parser-output h1 { | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| Строка 61: | Строка 60: | ||
/* Заголовок h2 */ | /* Заголовок h2 */ | ||
h2 { | .mw-parser-output h2:not(#mw-toc-heading) { | ||
font-size: 1. | font-size: 1.2em !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: 6px 8px; | padding: 6px 8px; | ||
background: | 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; | |||
} | } | ||
/* Сброс стилей */ | /* Сброс стилей */ | ||
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; | ||
| Строка 77: | Строка 77: | ||
/* Заголовок h3 */ | /* Заголовок h3 */ | ||
h3 { | .mw-parser-output h3 { | ||
font-size: 1. | font-size: 1.15em !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
margin: 1.1em 0 0.5em; | |||
} | } | ||
/* Сброс стилей */ | /* Сброс стилей */ | ||
h3 { | .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; | font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif !important; | ||
} | } | ||
}} | }} | ||