You are here

blazy.photoswipe.theme.css in Blazy PhotoSwipe 8

Same filename and directory in other branches
  1. 7 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. overflow: hidden;
  17. position: relative;
  18. text-align: left;
  19. top: 50%;
  20. -webkit-transform: translateY(-50%);
  21. -ms-transform: translateY(-50%);
  22. transform: translateY(-50%);
  23. vertical-align: middle;
  24. width: 100%;
  25. }
  26. .pswp__item--html .pswp__img {
  27. cursor: -webkit-grab;
  28. cursor: -moz-grab;
  29. cursor: grab;
  30. }
  31. .pswp.pswp--dragging .pswp__img {
  32. cursor: -webkit-grabbing;
  33. cursor: -moz-grabbing;
  34. cursor: grabbing;
  35. }
  36. /**
  37. * @todo: Remove temp fix for FF will-change warning:
  38. * https://github.com/dimsemenov/PhotoSwipe/issues/855
  39. */
  40. .pswp__zoom-wrap {
  41. will-change: auto !important;
  42. -webkit-backface-visibility: visible !important;
  43. }
  44. .pswp .pswp__item .media {
  45. margin: auto;
  46. }
  47. .pswp__custom-caption {
  48. font-size: 1rem;
  49. color: #fff;
  50. width: 100%;
  51. max-width: 100%;
  52. padding: 2px 8px;
  53. position: absolute;
  54. bottom: 0;
  55. text-align: center;
  56. }
  57. .pswp__custom-caption.is-not-empty {
  58. background: rgba(0, 0, 0, 0.75);
  59. }
  60. .pswp__custom-caption a {
  61. color: #fff;
  62. }
  63. /* Videos/ html are not swipeable at mobile devices, override hidden arrows. */
  64. .pswp--touch.pswp--is-html .pswp__button--arrow {
  65. visibility: visible;
  66. }
  67. /* PhotoSwipe 4 with Responsive image wrapped with pswp__item--html. */
  68. .pswp__item--html img {
  69. max-width: 100%;
  70. }
  71. /** @todo remove once Blazy updated to fix this regression video size. */
  72. @media screen and (min-width: 1280px) {
  73. /** Prevents oversized video player. Adjust it accordingly. */
  74. .pswp .media-wrapper {
  75. max-width: 72%;
  76. }
  77. }