mediaembedediting.css 668 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. .ck-widget.media {
  6. & .ck-media__wrapper {
  7. max-width: 640px;
  8. max-height: 360px;
  9. margin: 0 auto;
  10. & .ck-media__wrapper__aspect {
  11. position: relative;
  12. padding-bottom: 56.2493%;
  13. height: 0;
  14. & * {
  15. pointer-events: none;
  16. position: absolute;
  17. width: 100%;
  18. height: 100%;
  19. top: 0;
  20. left: 0;
  21. }
  22. }
  23. /* Spotify embeds have width="300" height="380" */
  24. &[data-oembed-url*="open.spotify.com"] {
  25. max-width: 300px;
  26. max-height: 380px;
  27. & .ck-media__wrapper__aspect {
  28. padding-bottom: 126%;
  29. }
  30. }
  31. }
  32. }