htmlembed.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. .ck-editor__editable {
  6. /* The feature container. */
  7. & .raw-html {
  8. position: relative;
  9. padding: var(--ck-spacing-standard);
  10. /* The switch mode button. */
  11. & .raw-html__switch-mode {
  12. position: absolute;
  13. top: var(--ck-spacing-standard);
  14. right: var(--ck-spacing-standard);
  15. & svg {
  16. fill: currentColor;
  17. }
  18. }
  19. /* The edit source element. */
  20. & .raw-html__source {
  21. width: calc(100% - 37px - 3 * var(--ck-spacing-standard));
  22. height: 10em;
  23. resize: none;
  24. }
  25. }
  26. /* Using the feature with enabled previews in data. */
  27. & .raw-html--preview-enabled {
  28. /* The preview data container. */
  29. & .raw-html__preview {
  30. width: calc(100% - 37px - var(--ck-spacing-standard));
  31. text-align: center;
  32. }
  33. /* Mode: preview the HTML. */
  34. &.raw-html--display-preview {
  35. background: #f0f0f0;
  36. & .raw-html__source {
  37. display: none;
  38. }
  39. & .raw-html__preview {
  40. display: block;
  41. }
  42. }
  43. /* Mode: edit the HTML source. */
  44. &:not(.raw-html--display-preview) .raw-html__preview {
  45. display: none;
  46. }
  47. }
  48. }