mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: correctly render ace editor in FormKit (#28601)
Im not sure when, but hierarchy changed and style were not correctly applied.
This commit is contained in:
parent
c95f9dbf34
commit
0977f9fb47
@ -1,35 +1,38 @@
|
|||||||
.form-kit__control-code {
|
.form-kit__field-code {
|
||||||
height: 250px;
|
.ace-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
> .loading-container {
|
||||||
> .ace_editor {
|
width: 100%;
|
||||||
box-sizing: border-box;
|
|
||||||
border: 1px solid var(--primary-400);
|
|
||||||
border-radius: var(--d-input-border-radius);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[data-disabled="false"] {
|
|
||||||
> .ace_editor {
|
|
||||||
@include default-input;
|
|
||||||
height: 100% !important;
|
|
||||||
|
|
||||||
&.ace_focus {
|
|
||||||
border-color: var(--tertiary);
|
|
||||||
outline: 2px solid var(--tertiary);
|
|
||||||
outline-offset: -1px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-kit__field.has-error & {
|
.ace-wrapper[data-disabled="true"] {
|
||||||
border-color: var(--danger);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[data-disabled]:not([data-disabled="false"]) {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|
||||||
.ace_scroller {
|
.ace_scroller {
|
||||||
cursor: not-allowed !important;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user