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

Материал из Space Station 14 Вики
мНет описания правки
мНет описания правки
Строка 1: Строка 1:
<div class="gradient-header-frame--no-gradient" style="margin:{{{margin|16px 0px}}};>
<div class="flat-card-with-header" style="margin:{{{margin|16px 0px}}};>
{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
<div class="gradient-header-frame--no-gradient__header" style="background-color:{{{background-color|#303039}}}>
<div class="flat-card-with-header__header" style="background-color:{{{background-color|#303039}}}>
{{#if:{{{picture|}}}|<div class="gradient-header-frame--no-gradient__header-img">[[файл:{{{picture|BikeHorn.png}}}|{{{pixel|32x32px}}}|link=]]</div>}}
{{#if:{{{picture|}}}|<div class="flat-card-with-header__header-img">[[файл:{{{picture|BikeHorn.png}}}|{{{pixel|32x32px}}}|link=]]</div>}}
<div style="margin-left:6px;">'''{{{title}}}'''</div>
<div style="margin-left:6px;">'''{{{title}}}'''</div>
</div>
</div>
}}
}}
<div class="gradient-header-frame--no-gradient__content no-margin-edges" style="padding:{{{padding|8px}}};background-color:{{{background-color|#303039}}}{{{transparency|50}}};{{{style}}}>{{{content}}}</div></div><!--
<div class="flat-card-with-header__content no-margin-edges" style="padding:{{{padding|8px}}};background-color:{{{background-color|#303039}}}{{{transparency|50}}};{{{style}}}>{{{content}}}</div></div><!--


-->{{#css:
-->{{#css:
.gradient-header-frame--no-gradient {
.flat-card-with-header {
     border-radius: 0.4em;
     border-radius: 0.4em;
     overflow: hidden;
     overflow: hidden;
Строка 15: Строка 15:
}
}


.gradient-header-frame--no-gradient__header {
.flat-card-with-header__header {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
Строка 27: Строка 27:
}
}


.gradient-header-frame--no-gradient__header-img {
.flat-card-with-header__header-img {
     background: #00000027;
     background: #00000027;
     padding: 2px;
     padding: 2px;
Строка 33: Строка 33:
}
}


.gradient-header-frame--no-gradient__content {
.flat-card-with-header__content {
     overflow: auto;
     overflow: auto;
}
}


.gradient-header-frame--no-gradient__content::-webkit-scrollbar { width: 10px; }
.flat-card-with-header__content::-webkit-scrollbar { width: 10px; }
.gradient-header-frame--no-gradient__content::-webkit-scrollbar-track  { background: #2c2c33; }
.flat-card-with-header__content::-webkit-scrollbar-track  { background: #2c2c33; }
.gradient-header-frame--no-gradient__content::-webkit-scrollbar-thumb { background: #44444d; border: 2px solid #2c2c33; border-radius: 0; }
.flat-card-with-header__content::-webkit-scrollbar-thumb { background: #44444d; border: 2px solid #2c2c33; border-radius: 0; }
}}
}}

Версия от 01:46, 27 декабря 2024

{{{content}}}