htmlembed.css 1.0 KB

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-embed {
  7. /* Give the embed some air. */
  8. margin: 1em auto;
  9. position: relative;
  10. clear: both;
  11. /* ----- Emebed label in the upper left corner ----------------------------------------------- */
  12. &::before {
  13. position: absolute;
  14. /* Make sure the content does not cover the label. */
  15. z-index: 1;
  16. }
  17. /* ----- Emebed internals --------------------------------------------------------------------- */
  18. /* The switch mode button wrapper. */
  19. & .raw-html-embed__buttons-wrapper {
  20. position: absolute;
  21. display: flex;
  22. flex-direction: column;
  23. }
  24. }
  25. .ck-content .raw-html-embed {
  26. /* Give the embed some air. */
  27. margin: 1em auto;
  28. /* Give the html embed some minimal width in the content to prevent them
  29. from being "squashed" in tight spaces, e.g. in table cells (https://github.com/ckeditor/ckeditor5/issues/8331) */
  30. min-width: 15em;
  31. }