Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
122 lines
2.3 KiB
Plaintext
122 lines
2.3 KiB
Plaintext
@import '../../scss/styles.scss';
|
|
|
|
@layer payload-default {
|
|
.array-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--base) / 2);
|
|
|
|
&__header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--base) / 2);
|
|
|
|
&__header-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--base) / 4);
|
|
}
|
|
}
|
|
|
|
&--has-no-error {
|
|
> .array-field__header .array-field__header-content {
|
|
color: var(--theme-text);
|
|
}
|
|
}
|
|
|
|
&__header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: base(0.5);
|
|
}
|
|
|
|
&__header-wrap {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
&__header-actions {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
color: var(--theme-elevation-800);
|
|
}
|
|
|
|
&__header-action {
|
|
@extend %btn-reset;
|
|
cursor: pointer;
|
|
margin-left: base(0.5);
|
|
|
|
&:hover,
|
|
&:focus-visible {
|
|
text-decoration: underline;
|
|
color: var(--theme-elevation-600);
|
|
}
|
|
}
|
|
|
|
&__row-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: base(0.5);
|
|
pointer-events: none;
|
|
}
|
|
|
|
&__draggable-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--base) / 2);
|
|
}
|
|
|
|
&__title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&__add-row {
|
|
align-self: flex-start;
|
|
margin: 2px 0;
|
|
--btn-color: var(--theme-elevation-400);
|
|
|
|
&:hover:not(:disabled) {
|
|
--btn-color: var(--theme-elevation-800);
|
|
}
|
|
|
|
&:disabled {
|
|
--btn-color: var(--theme-elevation-300);
|
|
}
|
|
|
|
.btn__label {
|
|
color: var(--btn-color);
|
|
}
|
|
.btn__icon {
|
|
border-color: var(--btn-color);
|
|
path {
|
|
stroke: var(--btn-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
html[data-theme='light'] {
|
|
.array-field {
|
|
&--has-error {
|
|
> .array-field__header .array-field__header-content {
|
|
color: var(--theme-error-750);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
html[data-theme='dark'] {
|
|
.array-field {
|
|
&--has-error {
|
|
> .array-field__header .array-field__header-content {
|
|
color: var(--theme-error-500);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|