8
0

htmlembed.css 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-embed {
  7. /* Give the embed some air. */
  8. margin: 1em auto;
  9. position: relative;
  10. /* The switch mode button wrapper. */
  11. & .raw-html-embed__buttons-wrapper {
  12. position: absolute;
  13. display: flex;
  14. flex-direction: column;
  15. }
  16. /* Using the feature with enabled previews in data. */
  17. &.raw-html-embed_preview_enabled {
  18. &.raw-html-embed_preview_visible {
  19. & .raw-html-embed__source {
  20. display: none;
  21. }
  22. & .raw-html-embed__preview {
  23. display: block;
  24. }
  25. }
  26. /* Mode: edit the HTML source. */
  27. &:not(.raw-html-embed_preview_visible) .raw-html-embed__preview {
  28. display: none;
  29. }
  30. }
  31. }
  32. .ck-content .raw-html-embed {
  33. /* Give the embed some air. */
  34. margin: 1em auto;
  35. }