You are here

blazy.css in Blazy 7

Same filename and directory in other branches
  1. 8.2 css/blazy.css

File

css/blazy.css
View source
  1. /**
  2. * @file
  3. */
  4. .blazy,
  5. .blazy *,
  6. .blazy *::before,
  7. .blazy *::after {
  8. box-sizing: border-box;
  9. }
  10. /* The lazyloaded element: IMG, IFRAME, DIV. */
  11. .b-lazy,
  12. .b-responsive {
  13. display: block;
  14. height: auto;
  15. min-height: 1px;
  16. opacity: 0;
  17. transition: opacity 500ms ease-in-out;
  18. }
  19. /* Needed to display preloader with CSS BG image, otherwise hidden. */
  20. .b-loaded,
  21. .b-error,
  22. .b-bg.media--loading {
  23. opacity: 1;
  24. }
  25. .b-bg {
  26. background-size: cover;
  27. background-position: center center;
  28. background-repeat: no-repeat;
  29. }
  30. /* The .blazy container is not always preset such at lightboxes. */
  31. .litebox,
  32. .blazy iframe,
  33. .media iframe {
  34. border: 0 none;
  35. display: block;
  36. max-width: 100%;
  37. }
  38. /** Fix for conflict with Bootstrap CSS if not using aspect ratio. */
  39. .blazy .media {
  40. display: block;
  41. position: relative;
  42. }
  43. /* Be sure to add width to the container accordingly, otherwise collapsed. */
  44. .field[data-blazy] {
  45. min-width: 50%;
  46. }