2024-03-15 07:47:42 +08:00
|
|
|
.schema-field {
|
|
|
|
margin-bottom: 1em;
|
2024-03-27 13:59:01 +08:00
|
|
|
width: 100%;
|
2024-03-22 11:36:34 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 25% 1fr;
|
|
|
|
gap: 1em;
|
|
|
|
|
2024-03-30 03:01:02 +08:00
|
|
|
@include breakpoint(mobile-extra-large) {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
gap: 0;
|
|
|
|
}
|
|
|
|
|
2024-03-22 11:36:34 +08:00
|
|
|
.schema-field__label {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
2024-04-02 00:43:19 +08:00
|
|
|
&[data-type="boolean"] .schema-field__input {
|
2024-03-22 11:36:34 +08:00
|
|
|
flex-direction: row;
|
|
|
|
}
|
2024-03-15 07:47:42 +08:00
|
|
|
|
|
|
|
.schema-field__input {
|
2024-03-22 11:36:34 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
2024-04-02 00:43:19 +08:00
|
|
|
min-width: 0;
|
2024-03-22 11:36:34 +08:00
|
|
|
|
2024-03-15 07:47:42 +08:00
|
|
|
input {
|
2024-03-21 12:39:25 +08:00
|
|
|
width: 100%;
|
2024-03-15 07:47:42 +08:00
|
|
|
margin-bottom: 0;
|
2024-03-22 11:36:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
width: auto;
|
2024-03-15 07:47:42 +08:00
|
|
|
}
|
|
|
|
|
2024-03-21 12:39:25 +08:00
|
|
|
.select-kit {
|
|
|
|
width: 100%;
|
2024-03-22 15:32:00 +08:00
|
|
|
|
|
|
|
&.--invalid {
|
|
|
|
summary {
|
|
|
|
border-color: var(--danger);
|
|
|
|
}
|
|
|
|
}
|
2024-03-21 12:39:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.schema-field__input-description {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-medium);
|
2024-04-02 00:43:19 +08:00
|
|
|
min-width: 0;
|
|
|
|
overflow-wrap: break-word;
|
2024-03-21 12:39:25 +08:00
|
|
|
}
|
2024-03-15 07:47:42 +08:00
|
|
|
}
|
2024-03-22 11:36:34 +08:00
|
|
|
|
2024-03-21 12:39:25 +08:00
|
|
|
.schema-field__input-supporting-text {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
margin-top: 0.2em;
|
2024-03-26 12:54:04 +08:00
|
|
|
width: 100%;
|
2024-04-02 00:43:19 +08:00
|
|
|
gap: 0 0.5em;
|
2024-03-15 07:47:42 +08:00
|
|
|
|
2024-03-21 12:39:25 +08:00
|
|
|
.schema-field__input-count {
|
|
|
|
margin-left: auto;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
|
|
|
|
&.--error {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.schema-field__input-error {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
2024-03-15 07:47:42 +08:00
|
|
|
}
|
|
|
|
}
|