You are here

blazy.preview.css in Blazy 8.2

Provides CKEditor preview mode overrides.

File

css/components/blazy.preview.css
View source
  1. /**
  2. * @file
  3. * Provides CKEditor preview mode overrides.
  4. */
  5. /** Disable interactive elements such as file video within CKEditor preview. */
  6. .cke_widget_element .blazy {
  7. position: relative;
  8. }
  9. .cke_widget_element .blazy::after {
  10. background: transparent;
  11. content: '';
  12. display: block;
  13. height: 100%;
  14. left: 0;
  15. position: absolute;
  16. top: 0;
  17. width: 100%;
  18. z-index: 9;
  19. }
  20. .cke_widget_element .blazy iframe {
  21. pointer-events: none;
  22. z-index: -2;
  23. }
  24. /** Fixed for file video. */
  25. .cke_widget_element .blazy .media__element {
  26. object-fit: cover;
  27. width: 100%;
  28. }
  29. /** Fixed for shrink media due to parent display: flex or inline-block. */
  30. .cke_widget_element .media {
  31. min-width: 100%;
  32. }
  33. @media screen and (min-width: 768px) {
  34. .cke_widget_element .media {
  35. min-width: 50%;
  36. }
  37. .cke_widget_element .media--switch--media {
  38. min-width: 640px;
  39. }
  40. }