htmlembed.css 822 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /* The feature container. */
  6. .ck-widget.raw-html {
  7. /* Give the embed some air. */
  8. margin: 1em auto;
  9. position: relative;
  10. /* The switch mode button wrapper. */
  11. & .raw-html__mode-toggle-wrapper {
  12. position: absolute;
  13. }
  14. /* Using the feature with enabled previews in data. */
  15. &.raw-html_preview_enabled {
  16. &.raw-html_preview_visible {
  17. & .raw-html__source {
  18. display: none;
  19. }
  20. & .raw-html__preview {
  21. display: block;
  22. }
  23. }
  24. /* Mode: edit the HTML source. */
  25. &:not(.raw-html_preview_visible) .raw-html__preview {
  26. display: none;
  27. }
  28. }
  29. }
  30. .ck-content .raw-html-embed {
  31. /* Give the embed some air. */
  32. margin: 1em auto;
  33. }