/* * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ :root, :host { --ck-source-editing-area-border-radius: var(--ck-radius-md); --ck-source-editing-area-font-size: var(--ck-font-size-md); } .ck-source-editing-area { position: relative; overflow: hidden; } .ck-source-editing-area::after, .ck-source-editing-area textarea { padding: var(--ck-spacing-large, var(--ck-spacing-lg)); margin: 0; border: 1px solid transparent; line-height: var(--ck-line-height-base); /* Kept on the shared textarea/::after rule so the auto-grow mirror matches the textarea's metrics. */ font-size: var(--ck-source-editing-area-font-size); font-family: monospace; white-space: pre-wrap; } .ck-source-editing-area::after { content: attr(data-value) " "; visibility: hidden; display: block; } .ck-source-editing-area textarea { position: absolute; width: 100%; height: 100%; resize: none; outline: none; overflow: hidden; box-sizing: border-box; border-color: var(--ck-color-base-border); /* Backward compatibility: reads the legacy `--ck-rounded-corners-radius` first if overridden. */ border-radius: var(--ck-rounded-corners-radius, var(--ck-radius-corners)); border-top-left-radius: 0; border-top-right-radius: 0; &:not([readonly]):focus { outline: none; border: var(--ck-interactive-focus-ring); /* The textarea replaces the editing area, so it reads the focus shadow of the editing area. Backward compatibility: reads the legacy `--ck-inner-shadow` first if overridden. */ box-shadow: var(--ck-inner-shadow, var(--ck-editor-editable-focus-shadow, var(--ck-inset-shadow-sm))), 0 0; } }