You are here

blazy.filter.css in Blazy 8.2

Same filename and directory in other branches
  1. 7 css/components/blazy.filter.css

Provides integration with core filter module.

This file contains fixes when Blazy put inside core Align/ Caption images filter which may not suit your design needs, adjust it.

File

css/components/blazy.filter.css
View source
  1. /**
  2. * @file
  3. * Provides integration with core filter module.
  4. *
  5. * This file contains fixes when Blazy put inside core Align/ Caption images
  6. * filter which may not suit your design needs, adjust it.
  7. */
  8. .media-wrapper--blazy,
  9. .media-wrapper--blazy * {
  10. box-sizing: border-box;
  11. }
  12. /** Without this, media--ratio will be collapsed. Adjust accordingly. */
  13. .media-wrapper--blazy {
  14. max-width: 100%;
  15. min-width: 50%;
  16. position: relative;
  17. }
  18. .grid .media-wrapper--blazy {
  19. width: 100%;
  20. }
  21. /** Blazy is placed after filter Align/ Caption will be collapsed. Adjust it. */
  22. .caption .media-wrapper--blazy,
  23. .align-left .media-wrapper--blazy,
  24. .align-right .media-wrapper--blazy,
  25. .align-center .media-wrapper--blazy {
  26. min-width: 320px;
  27. }
  28. .blazy--filter .media-wrapper--blazy {
  29. min-width: 0;
  30. overflow: hidden;
  31. }
  32. .media-wrapper--blazy.align-center img {
  33. display: block;
  34. margin-right: auto;
  35. margin-left: auto;
  36. }