| 1 |
.blueprint-form-field { |
| 2 |
display: flex; |
| 3 |
flex-direction: column; |
| 4 |
gap: 6px; |
| 5 |
align-items: stretch; |
| 6 |
|
| 7 |
.description { |
| 8 |
color: var(--cs-color-text-muted); |
| 9 |
font-size: 13px; |
| 10 |
margin: 0; |
| 11 |
} |
| 12 |
|
| 13 |
&.has-error input, |
| 14 |
&.has-error select, |
| 15 |
&.has-error textarea { |
| 16 |
border-color: var(--cs-color-error); |
| 17 |
} |
| 18 |
|
| 19 |
&__error { |
| 20 |
margin: 4px 0 0; |
| 21 |
color: var(--cs-color-error); |
| 22 |
font-size: 0.9em; |
| 23 |
} |
| 24 |
|
| 25 |
&--repeater { |
| 26 |
grid-column: 1 / -1; |
| 27 |
} |
| 28 |
|
| 29 |
&__repeater-empty { |
| 30 |
margin: 0; |
| 31 |
color: var(--cs-color-text-muted); |
| 32 |
font-size: 0.9rem; |
| 33 |
} |
| 34 |
|
| 35 |
&:has(> input[type='checkbox']) { |
| 36 |
flex-flow: row wrap; |
| 37 |
align-items: center; |
| 38 |
|
| 39 |
.description { |
| 40 |
flex-basis: 100%; |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
.blueprint-form-repeater { |
| 46 |
display: flex; |
| 47 |
flex-direction: column; |
| 48 |
gap: 12px; |
| 49 |
margin-block-start: 8px; |
| 50 |
} |
| 51 |
|
| 52 |
.blueprint-form-repeater__row { |
| 53 |
display: flex; |
| 54 |
flex-wrap: wrap; |
| 55 |
align-items: flex-start; |
| 56 |
gap: 12px 20px; |
| 57 |
padding: 12px 14px; |
| 58 |
background: #fafafa; |
| 59 |
border: 1px solid var(--cs-color-border); |
| 60 |
border-radius: 5px; |
| 61 |
|
| 62 |
.blueprint-form-repeater__cell { |
| 63 |
flex: 1 1 350px; |
| 64 |
min-inline-size: min(350px, 100%); |
| 65 |
min-block-size: 0; |
| 66 |
display: flex; |
| 67 |
flex-direction: column; |
| 68 |
gap: 6px; |
| 69 |
align-items: stretch; |
| 70 |
} |
| 71 |
|
| 72 |
.blueprint-form-repeater__actions { |
| 73 |
flex-basis: 100%; |
| 74 |
margin-inline-start: auto; |
| 75 |
text-align: end; |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
.blueprint-form-repeater__add { |
| 80 |
margin-block-start: 4px; |
| 81 |
align-self: flex-start; |
| 82 |
} |
| 83 |
|
| 84 |
.blueprint-form-fields { |
| 85 |
display: grid; |
| 86 |
grid-template-columns: repeat(2, 1fr); |
| 87 |
gap: 24px 32px; |
| 88 |
|
| 89 |
&[data-section-id='supports']='supports'] { |
| 90 |
grid-template-columns: 1fr; |
| 91 |
max-inline-size: 320px; |
| 92 |
|
| 93 |
.blueprint-form-field { |
| 94 |
flex-direction: row; |
| 95 |
align-items: center; |
| 96 |
gap: 10px; |
| 97 |
|
| 98 |
label { |
| 99 |
font-weight: 500; |
| 100 |
} |
| 101 |
|
| 102 |
.description { |
| 103 |
display: none; |
| 104 |
} |
| 105 |
} |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
.blueprint-validation-notice { |
| 110 |
margin-block: 16px 0; |
| 111 |
} |
| 112 |
|
| 113 |
.blueprint-actions { |
| 114 |
margin-block-start: 24px; |
| 115 |
display: flex; |
| 116 |
justify-content: flex-start; |
| 117 |
gap: 12px; |
| 118 |
} |
| 119 |
|
| 120 |
@media (width <= 782px) { |
| 121 |
.blueprint-form-content { |
| 122 |
padding: 20px; |
| 123 |
} |
| 124 |
|
| 125 |
.blueprint-form-fields { |
| 126 |
grid-template-columns: 1fr; |
| 127 |
} |
| 128 |
|
| 129 |
.generated-snippet { |
| 130 |
padding: 20px; |
| 131 |
} |
| 132 |
|
| 133 |
.blueprint-detail__header-title-row { |
| 134 |
flex-direction: column; |
| 135 |
align-items: flex-start; |
| 136 |
} |
| 137 |
} |
| 138 |
|