mui.imageviewer.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .mui-imageviewer {
  2. position: absolute;
  3. position: fixed;
  4. background-color: rgba(0, 0, 0, 0.9);
  5. width: 100%;
  6. height: 100%;
  7. z-index: 99;
  8. left: 0px;
  9. top: 0px;
  10. display: none;
  11. opacity: 0;
  12. -webkit-transition: all 0.6s ease-in-out;
  13. transition: all 0.6s ease-in-out;
  14. -webkit-transform-style: preserve-3d;
  15. -webkit-backface-visibility: hidden;
  16. overflow: hidden;
  17. margin: 0px;
  18. padding: 0px;
  19. box-sizing: border-box;
  20. }
  21. .mui-imageviewer-mask {
  22. position: absolute;
  23. z-index: 11;
  24. width: 100%;
  25. height: 100%;
  26. left: 0px;
  27. top: 0px;
  28. display: none;
  29. }
  30. .mui-imageviewer .mui-imageviewer-header {
  31. position: absolute;
  32. height: 45px;
  33. width: 100%;
  34. left: 0px;
  35. top: 0px;
  36. z-index: 10;
  37. background-color: rgba(0, 0, 0, 0.5);
  38. margin: 0px;
  39. padding: 0px;
  40. box-sizing: border-box;
  41. }
  42. .mui-imageviewer .mui-imageviewer-state {
  43. display: block;
  44. width: 100%;
  45. height: 100%;
  46. line-height: 100%;
  47. color: #eee;
  48. text-align: center;
  49. font-size: 16px;
  50. padding: 15px;
  51. }
  52. .mui-imageviewer .mui-imageviewer-header .mui-imageviewer-close {
  53. position: absolute;
  54. top: 5px;
  55. right: 5px;
  56. font-size: 32px;
  57. color: #aaa;
  58. }
  59. .mui-imageviewer .mui-imageviewer-header .mui-imageviewer-close:active {
  60. color: #FF5053;
  61. }
  62. .mui-imageviewer .mui-imageviewer-item {
  63. width: 100%;
  64. height: 100%;
  65. left: 0px;
  66. top: 0px;
  67. position: absolute;
  68. z-index: 0;
  69. margin: 0px;
  70. padding: 0px;
  71. box-sizing: border-box;
  72. -webkit-transition: -webkit-transform 500ms ease-in-out;
  73. transition: transform 500ms ease-in-out;
  74. display: table;
  75. overflow: hidden;
  76. }
  77. .mui-imageviewer .mui-imageviewer-item-center {
  78. -webkit-transform: translateX(0);
  79. transform: translateX(0);
  80. }
  81. .mui-imageviewer .mui-imageviewer-item-left {
  82. -webkit-transform: translateX(-100%);
  83. transform: translateX(-100%);
  84. }
  85. .mui-imageviewer .mui-imageviewer-item-right {
  86. -webkit-transform: translateX(100%);
  87. transform: translateX(100%);
  88. }
  89. .mui-imageviewer .mui-imageviewer-item span {
  90. display: table-cell;
  91. text-align: center;
  92. vertical-align: middle;
  93. line-height: 100%;
  94. font-size: 100%;
  95. margin: 0px;
  96. padding: 0px;
  97. box-sizing: border-box;
  98. overflow: auto;
  99. }
  100. .mui-imageviewer .mui-imageviewer-item img {
  101. backface-visibility: hidden;
  102. transform-origin: 50% 50% 0px;
  103. max-width: 100%;
  104. }
  105. .mui-imageviewer-left,
  106. .mui-imageviewer-right {
  107. position: absolute;
  108. z-index: 2;
  109. color: #aaa;
  110. top: 50%;
  111. margin-top: -18px;
  112. font-size: 36px;
  113. }
  114. .mui-imageviewer-left {
  115. left: 5px;
  116. }
  117. .mui-imageviewer-right {
  118. right: 5px;
  119. }
  120. .mui-imageviewer-left:active,
  121. .mui-imageviewer-right:active {
  122. color: #fff;
  123. }