discourse/app/assets/stylesheets/common/form-kit/_control-code.scss
Joffrey JAFFEUX 0977f9fb47
FIX: correctly render ace editor in FormKit (#28601)
Im not sure when, but hierarchy changed and style were not correctly applied.
2024-08-28 16:24:44 +02:00

39 lines
725 B
SCSS

.form-kit__field-code {
.ace-wrapper {
width: 100%;
> .loading-container {
width: 100%;
}
}
.ace-wrapper[data-disabled="true"] {
opacity: 0.5;
.ace_scroller {
cursor: not-allowed !important;
}
}
.ace-wrapper[data-disabled="false"] {
.ace_focus {
@include default-input;
height: unset;
border-color: var(--tertiary);
outline: 2px solid var(--tertiary);
outline-offset: -1px;
}
}
}
.form-kit__control-code {
height: 250px !important;
width: 100%;
box-sizing: border-box;
border: 1px solid var(--primary-400);
border-radius: var(--d-input-border-radius);
.form-kit__field.has-error & {
border-color: var(--danger);
}
}