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

Материал из Space Station 14 Вики
мНет описания правки
мНет описания правки
Строка 8: Строка 8:
<div class="flat-card-with-header--сollapsible__content no-margin-edges mw-collapsible-content" style="padding:{{{padding|8px}}};{{{style}}}>{{{content}}}</div></div><!--
<div class="flat-card-with-header--сollapsible__content no-margin-edges mw-collapsible-content" style="padding:{{{padding|8px}}};{{{style}}}>{{{content}}}</div></div><!--


-->{{#css:
--><templatestyles src="FlatCardWithHeader/Сollapsible/styles.css" />
.flat-card-with-header--сollapsible {
    position: relative;
    border-radius: 0.4em;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
 
    display: grid;
}
 
.flat-card-with-header--сollapsible__header {
    display: flex;
    align-items: center;
    font-family: "noto sans";
    text-align: left;
    padding: 3px;
    border: 1px solid #ffffff0f;
    border-bottom: 3px solid #00000035 !important;
    min-height: 36px;
    border-radius: 0.4em;
    overflow-wrap: anywhere;
   
    grid-row: 1;
    grid-column: 1 / 3;
}
 
.flat-card-with-header--сollapsible__header-img {
    background: #00000027;
    padding: 2px;
    border-radius: 0.2em;
}
 
.flat-card-with-header--сollapsible__content {
    border-top: 1px solid #00000035;
   
    grid-column: 1 / 3;
    grid-row: 2;
}
 
.flat-card-with-header--сollapsible > .mw-collapsible-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 7px;
   
    top: 0;
    right: 0;
   
    grid-row: 1;
    grid-column: 1 / 3;
}
 
.flat-card-with-header--сollapsible__header a {
    z-index: 2;
    position: relative;
}
}}

Версия от 16:12, 29 марта 2025

{{{title}}}