You are here

blazy.photoswipe.theme.css in Blazy PhotoSwipe 7

Same filename and directory in other branches
  1. 8 css/blazy.photoswipe.theme.css

File

css/blazy.photoswipe.theme.css
View source
  1. /**
  2. * @file
  3. */
  4. /** Fix for unclean destroy. */
  5. .pswp[aria-hidden="true"] {
  6. display: none;
  7. }
  8. .pswp__item {
  9. text-align: center;
  10. }
  11. .pswp .media-wrapper {
  12. display: inline-block;
  13. line-height: 0;
  14. margin: 0 auto;
  15. max-width: 98%;
  16. position: relative;
  17. text-align: left;
  18. top: 50%;
  19. -webkit-transform: translateY(-50%);
  20. -ms-transform: translateY(-50%);
  21. transform: translateY(-50%);
  22. vertical-align: middle;
  23. width: 100%;
  24. }
  25. .pswp__item--html .pswp__img {
  26. cursor: -webkit-grab;
  27. cursor: -moz-grab;
  28. cursor: grab;
  29. }
  30. .pswp.pswp--dragging .pswp__img {
  31. cursor: -webkit-grabbing;
  32. cursor: -moz-grabbing;
  33. cursor: grabbing;
  34. }
  35. /**
  36. * Recheck this.
  37. *
  38. * @todo: Remove temp fix for FF will-change warning:
  39. * https://github.com/dimsemenov/PhotoSwipe/issues/855
  40. */
  41. .pswp__zoom-wrap {
  42. will-change: auto !important;
  43. -webkit-backface-visibility: visible !important;
  44. }
  45. /** @todo remove once Blazy updated to fix this regression video size. */
  46. @media screen and (min-width: 1280px) {
  47. /** Prevents oversized video player. Adjust it accordingly. */
  48. .pswp .media-wrapper {
  49. max-width: 72%;
  50. }
  51. }