Шаблон:FlatCardWithHeader/Сollapsible/styles.css: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| (не показано 7 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
.flat-card-with-header--сollapsible { | .flat-card-with-header--сollapsible { | ||
position: relative; | position: relative; | ||
--bg-color--hsl: hsl(var(--theme-bg--hsl), 50%, 0.05); | |||
background: var(--bg-color--hsl); | |||
box-shadow: var(--box-shadow); | box-shadow: var(--box-shadow); | ||
border-radius: var(--border-radius-high); | border-radius: var(--border-radius-high); | ||
| Строка 14: | Строка 15: | ||
text-align: left; | text-align: left; | ||
padding: 3px; | padding: 3px; | ||
border: 1px solid | border: 1px solid var(--color-lighter-alpha-x); | ||
border-bottom: 3px solid var(--color-darkened-border); | border-bottom: 3px solid var(--color-darkened-border); | ||
min-height: 36px; | min-height: 36px; | ||
border-radius: var(--border-radius-high); | border-radius: var(--border-radius-high); | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
background: var(--bg-color); /* --bg-color из стилей шаблона; по умолчанию: var(--theme-bg-color- | background: var(--bg-color); /* --bg-color из стилей шаблона; по умолчанию: var(--theme-bg-color-200) */ | ||
grid-row: 1; | grid-row: 1; | ||
| Строка 26: | Строка 27: | ||
.flat-card-with-header--сollapsible__header-img { | .flat-card-with-header--сollapsible__header-img { | ||
background: rgba( | background: rgba(0, 0, 0, var(--alpha-xs)); | ||
padding: 2px; | padding: 2px; | ||
border-radius: var(--border-radius-low); | border-radius: var(--border-radius-low); | ||
| Строка 32: | Строка 33: | ||
.flat-card-with-header--сollapsible__content { | .flat-card-with-header--сollapsible__content { | ||
grid-column: 1 / 3; | grid-column: 1 / 3; | ||
grid-row: 2; | grid-row: 2; | ||
Текущая версия от 17:55, 16 июня 2025
.flat-card-with-header--сollapsible {
position: relative;
--bg-color--hsl: hsl(var(--theme-bg--hsl), 50%, 0.05);
background: var(--bg-color--hsl);
box-shadow: var(--box-shadow);
border-radius: var(--border-radius-high);
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 var(--color-lighter-alpha-x);
border-bottom: 3px solid var(--color-darkened-border);
min-height: 36px;
border-radius: var(--border-radius-high);
overflow-wrap: anywhere;
background: var(--bg-color); /* --bg-color из стилей шаблона; по умолчанию: var(--theme-bg-color-200) */
grid-row: 1;
grid-column: 1 / 3;
}
.flat-card-with-header--сollapsible__header-img {
background: rgba(0, 0, 0, var(--alpha-xs));
padding: 2px;
border-radius: var(--border-radius-low);
}
.flat-card-with-header--сollapsible__content {
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;
}