Шаблон:FlatCardWithHeader/Сollapsible/styles.css: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) Новая страница: «.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;...» |
Pok (обсуждение | вклад) мНет описания правки |
||
Строка 1: | Строка 1: | ||
.flat-card-with-header--сollapsible { | .flat-card-with-header--сollapsible { | ||
position: relative; | position: relative; | ||
background: rgba(var(--theme-color-lighter--rgb), 0.025); | |||
box-shadow: var(--box-shadow); | |||
border-radius: var(--border-radius-high); | |||
display: grid; | display: grid; | ||
Строка 13: | Строка 14: | ||
text-align: left; | text-align: left; | ||
padding: 3px; | padding: 3px; | ||
border: 1px solid rgba(var(--color-lighter--rgb), 0.07); | |||
border-bottom: 3px solid var(--color-darkened-border); | |||
min-height: 36px; | min-height: 36px; | ||
border-radius: | border-radius: var(--border-radius-high); | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
background: var(--bg-color); /* --bg-color из стилей шаблона; по умолчанию: var(--theme-bg-color-350) */ | |||
grid-row: 1; | grid-row: 1; | ||
Строка 24: | Строка 26: | ||
.flat-card-with-header--сollapsible__header-img { | .flat-card-with-header--сollapsible__header-img { | ||
background: rgba(var(--color-darkened--rgb), var(--alpha-xs)); | |||
padding: 2px; | |||
border-radius: var(--border-radius-low); | |||
} | } | ||
.flat-card-with-header--сollapsible__content { | .flat-card-with-header--сollapsible__content { | ||
border-top: 1px solid var(--color-darkened-border-m); | |||
grid-column: 1 / 3; | grid-column: 1 / 3; |
Версия от 04:44, 16 апреля 2025
.flat-card-with-header--сollapsible {
position: relative;
background: rgba(var(--theme-color-lighter--rgb), 0.025);
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 rgba(var(--color-lighter--rgb), 0.07);
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-350) */
grid-row: 1;
grid-column: 1 / 3;
}
.flat-card-with-header--сollapsible__header-img {
background: rgba(var(--color-darkened--rgb), var(--alpha-xs));
padding: 2px;
border-radius: var(--border-radius-low);
}
.flat-card-with-header--сollapsible__content {
border-top: 1px solid var(--color-darkened-border-m);
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;
}