.dxc-editor {
border-radius: 8px;
box-sizing: border-box;
display: grid;
font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
grid-template-columns: max-content minmax(0, 1fr);
min-height: 0;
overflow: auto;
tab-size: 4;
}
.dxc-editor *,
.dxc-editor *::before,
.dxc-editor *::after {
box-sizing: border-box;
}
.dxc-editor-viewport {
min-height: 100%;
min-width: 0;
position: relative;
}
.dxc-editor-gutter,
.dxc-editor-highlight,
.dxc-editor-input {
min-height: 100%;
}
.dxc-editor-highlight,
.dxc-editor-input {
padding: var(--dxc-editor-padding, 14px 18px 14px 0);
white-space: pre;
}
.dxc-editor-gutter {
color: var(--muted, currentColor);
padding: var(--dxc-editor-gutter-padding, 14px 0);
pointer-events: none;
user-select: none;
}
.dxc-editor-highlight {
pointer-events: none;
}
.dxc-editor-highlight span {
font-style: normal !important;
font-weight: inherit !important;
}
.dxc-editor-input {
caret-color: var(--dxc-editor-caret, currentColor);
color: transparent;
inset: 0;
outline: none;
overflow-wrap: normal;
position: absolute;
z-index: 1;
}
.dxc-editor-input::selection {
background: var(--dxc-editor-selection, rgba(122, 162, 247, 0.34));
color: transparent;
}
.dxc-editor-input:empty::before {
color: var(--muted, currentColor);
content: attr(data-placeholder);
opacity: 0.72;
}
.dxc-editor:focus-within {
box-shadow: var(--dxc-editor-focus-ring, 0 0 0 3px rgba(122, 162, 247, 0.22));
}
.dxc-editor-line,
.dxc-editor-gutter-line {
min-height: 1.55em;
}
.dxc-editor-gutter-line {
min-width: var(--dxc-editor-gutter-width, 4ch);
padding: var(--dxc-editor-gutter-line-padding, 0 14px);
text-align: right;
}
.dxc-editor-no-gutter {
grid-template-columns: minmax(0, 1fr);
}
.dxc-editor-no-gutter .dxc-editor-highlight,
.dxc-editor-no-gutter .dxc-editor-input {
padding-left: var(--dxc-editor-padding-left, 18px);
}