blueimp-gallery-video.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @charset "UTF-8";
  2. /*
  3. * blueimp Gallery Video Factory CSS 1.3.0
  4. * https://github.com/blueimp/Gallery
  5. *
  6. * Copyright 2013, Sebastian Tschan
  7. * https://blueimp.net
  8. *
  9. * Licensed under the MIT license:
  10. * http://www.opensource.org/licenses/MIT
  11. */
  12. .blueimp-gallery > .slides > .slide > .video-content > img {
  13. position: absolute;
  14. top: 0;
  15. right: 0;
  16. bottom: 0;
  17. left: 0;
  18. margin: auto;
  19. width: auto;
  20. height: auto;
  21. max-width: 100%;
  22. max-height: 100%;
  23. /* Prevent artifacts in Mozilla Firefox: */
  24. -moz-backface-visibility: hidden;
  25. }
  26. .blueimp-gallery > .slides > .slide > .video-content > video {
  27. position: absolute;
  28. top: 0;
  29. left: 0;
  30. width: 100%;
  31. height: 100%;
  32. }
  33. .blueimp-gallery > .slides > .slide > .video-content > iframe {
  34. position: absolute;
  35. top: 100%;
  36. left: 0;
  37. width: 100%;
  38. height: 100%;
  39. border: none;
  40. }
  41. .blueimp-gallery > .slides > .slide > .video-playing > iframe {
  42. top: 0;
  43. }
  44. .blueimp-gallery > .slides > .slide > .video-content > a {
  45. position: absolute;
  46. top: 50%;
  47. right: 0;
  48. left: 0;
  49. margin: -64px auto 0;
  50. width: 128px;
  51. height: 128px;
  52. background: url(../img/video-play.png) center no-repeat;
  53. opacity: 0.8;
  54. cursor: pointer;
  55. }
  56. .blueimp-gallery > .slides > .slide > .video-content > a:hover {
  57. opacity: 1;
  58. }
  59. .blueimp-gallery > .slides > .slide > .video-playing > a,
  60. .blueimp-gallery > .slides > .slide > .video-playing > img {
  61. display: none;
  62. }
  63. .blueimp-gallery > .slides > .slide > .video-content > video {
  64. display: none;
  65. }
  66. .blueimp-gallery > .slides > .slide > .video-playing > video {
  67. display: block;
  68. }
  69. .blueimp-gallery > .slides > .slide > .video-loading > a {
  70. background: url(../img/loading.gif) center no-repeat;
  71. background-size: 64px 64px;
  72. }
  73. /* Replace PNGs with SVGs for capable browsers (excluding IE<9) */
  74. body:last-child .blueimp-gallery > .slides > .slide > .video-content:not(.video-loading) > a {
  75. background-image: url(../img/video-play.svg);
  76. }
  77. /* IE7 fixes */
  78. *+html .blueimp-gallery > .slides > .slide > .video-content {
  79. height: 100%;
  80. }
  81. *+html .blueimp-gallery > .slides > .slide > .video-content > a {
  82. left: 50%;
  83. margin-left: -64px;
  84. }