mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 12:21:53 +08:00

``` WARNING: Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. To opt into the new behavior, wrap the declaration in `& {}`. More info: https://sass-lang.com/d/mixed-decls ```
42 lines
740 B
SCSS
42 lines
740 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 {
|
|
outline: 2px solid var(--tertiary);
|
|
outline-offset: -1px;
|
|
|
|
@include default-input {
|
|
height: unset;
|
|
border-color: var(--tertiary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|