Шаблон:ModernFrame/Сollapsible: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 1: | Строка 1: | ||
<div class="modern-frame--сollapsible mw-collapsible mw-collapsed" style="margin:{{{margin|14px 0px}}};> | <div class="modern-frame--сollapsible mw-collapsible mw-collapsed" style="margin:{{{margin|14px 0px}}};> | ||
<div class="modern-frame-- | <div class="modern-frame--сollapsible__header" style="background-color:{{{background-color|#2f2f39}}};border:2px solid {{{border-color|#3e3e4b}}};> | ||
{{#if: {{{picture|}}} | <div class="modern-frame-- | {{#if: {{{picture|}}} | <div class="modern-frame--сollapsible__header-img" style="margin-right:2px">{{{picture}}}</div> }} | ||
<div style="margin-left: 4px;margin-right: 95px;">{{Anchor|{{{title}}}}}'''{{{title}}}'''</div> | <div style="margin-left: 4px;margin-right: 95px;">{{Anchor|{{{title}}}}}'''{{{title}}}'''</div> | ||
</div><!-- | </div><!-- | ||
| Строка 21: | Строка 21: | ||
} | } | ||
.modern-frame-- | .modern-frame--сollapsible__header { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Строка 32: | Строка 32: | ||
border-bottom: 2px solid #00000039 !important; | border-bottom: 2px solid #00000039 !important; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.4); | |||
grid-row: 1; | grid-row: 1; | ||
| Строка 37: | Строка 38: | ||
} | } | ||
.modern-frame-- | .modern-frame--сollapsible__header-img { | ||
background: #00000027; | background: #00000027; | ||
padding: 2px; | padding: 2px; | ||