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

Материал из Space Station 14 Вики
мНет описания правки
мНет описания правки
 
(не показаны 23 промежуточные версии 2 участников)
Строка 1: Строка 1:
<div class="modern-title" style="color:{{{color|#fff}}};font-size:{{{font-size|clamp(1rem, 2.5vw, 1.5rem)}}};margin:{{{margin|15px 0}}};>
<div class="modern-title" style="font-size:{{{font-size|clamp(1.3rem, 2.5vw, 1.7rem)}}};color:{{{color|#fff}}};margin:{{{margin|1.25em 0 0.7em 0}}};><span class="custom-heading" style="padding:{{{padding|0 3%}}};width:{{{width|none}}};>{{{1}}}</span>
<span style="padding:{{{padding|0 clamp(40px, 2.5vw, 60px)}}};width:{{{width|none}}};>{{{1}}}</span>
</div>
</div>
<!-- Не изменяемый CSS -->
<h3></h3><!-- Не изменяемый CSS -->
<div class="customCSS" style="display:none">
<div class="customCSS" style="display:none">
.modern-title {
.modern-title {
Строка 17: Строка 16:
content: "";
content: "";
flex-grow: 1;
flex-grow: 1;
height: 3px;
height: 4px;
background-color: {{{background-color|#9F2828}}};
background-color: {{{background-color|#363649}}};
}
}
.modern-title::before {
.modern-title::before {
margin-right: 10px;
margin-right: 10px;
}
}
.modern-title::after {
.modern-title::after {
margin-left: 10px;
margin-left: 10px;
}
}
.modern-title span {
.modern-title span {
background-color: {{{background-color|#9F2828}}};
background-color: {{{background-color|#363649}}};
border-radius: 5px;
border-radius: 5px;
min-width: clamp(50px, 20vw, 300px);
box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
.modern-title span {
width: 100% !important;
padding: 0 !important;
}
.modern-title::before {
margin-right: 0;
}
.modern-title::after {
margin-left: 0;
}
}
}
</div>
</div>

Текущая версия от 17:02, 15 сентября 2024

{{{1}}}