/* * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* Widget container. */ .ck-editor__editable .raw-html { position: relative; margin-top: 1em; margin-bottom: 1em; } /* Switch mode button. */ .ck-editor__editable .raw-html .raw-html__switch-mode { position: absolute; top: 0; right: 0; width: 5em; height: 5em; cursor: pointer; } /* Edit source element. */ .ck-editor__editable .raw-html textarea { width: 30em; height: 5em; resize: none; } /* Edit source mode is enabled. */ .ck-editor__editable .raw-html.raw-html--edit-source textarea { display: block; } .ck-editor__editable .raw-html .raw-html__preview { min-height: 5em; min-width: 30em; } /* Edit source mode is enabled. */ .ck-editor__editable .raw-html.raw-html--edit-source .raw-html__preview { display: none; } /* Preview mode is enabled. */ .ck-editor__editable .raw-html:not(.raw-html--edit-source) textarea { display: none; } .ck-editor__editable .raw-html__preview-placeholder { height: 5em; background-color: hsl(0, 0%, 50%); text-align: center; line-height: 5em; }