You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

449 lines
9.4 KiB

  1. /*!
  2. * Viewer.js v1.3.2
  3. * https://fengyuanchen.github.io/viewerjs
  4. *
  5. * Copyright 2015-present Chen Fengyuan
  6. * Released under the MIT license
  7. *
  8. * Date: 2019-01-24T11:01:30.299Z
  9. */
  10. .viewer-zoom-in::before,
  11. .viewer-zoom-out::before,
  12. .viewer-one-to-one::before,
  13. .viewer-reset::before,
  14. .viewer-prev::before,
  15. .viewer-play::before,
  16. .viewer-next::before,
  17. .viewer-rotate-left::before,
  18. .viewer-rotate-right::before,
  19. .viewer-flip-horizontal::before,
  20. .viewer-flip-vertical::before,
  21. .viewer-fullscreen::before,
  22. .viewer-fullscreen-exit::before,
  23. .viewer-close::before {
  24. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC');
  25. background-repeat: no-repeat;
  26. color: transparent;
  27. display: block;
  28. font-size: 0;
  29. height: 20px;
  30. line-height: 0;
  31. width: 20px;
  32. }
  33. .viewer-zoom-in::before {
  34. background-position: 0 0;
  35. content: 'Zoom In';
  36. }
  37. .viewer-zoom-out::before {
  38. background-position: -20px 0;
  39. content: 'Zoom Out';
  40. }
  41. .viewer-one-to-one::before {
  42. background-position: -40px 0;
  43. content: 'One to One';
  44. }
  45. .viewer-reset::before {
  46. background-position: -60px 0;
  47. content: 'Reset';
  48. }
  49. .viewer-prev::before {
  50. background-position: -80px 0;
  51. content: 'Previous';
  52. }
  53. .viewer-play::before {
  54. background-position: -100px 0;
  55. content: 'Play';
  56. }
  57. .viewer-next::before {
  58. background-position: -120px 0;
  59. content: 'Next';
  60. }
  61. .viewer-rotate-left::before {
  62. background-position: -140px 0;
  63. content: 'Rotate Left';
  64. }
  65. .viewer-rotate-right::before {
  66. background-position: -160px 0;
  67. content: 'Rotate Right';
  68. }
  69. .viewer-flip-horizontal::before {
  70. background-position: -180px 0;
  71. content: 'Flip Horizontal';
  72. }
  73. .viewer-flip-vertical::before {
  74. background-position: -200px 0;
  75. content: 'Flip Vertical';
  76. }
  77. .viewer-fullscreen::before {
  78. background-position: -220px 0;
  79. content: 'Enter Full Screen';
  80. }
  81. .viewer-fullscreen-exit::before {
  82. background-position: -240px 0;
  83. content: 'Exit Full Screen';
  84. }
  85. .viewer-close::before {
  86. background-position: -260px 0;
  87. content: 'Close';
  88. }
  89. .viewer-container {
  90. bottom: 0;
  91. direction: ltr;
  92. font-size: 0;
  93. left: 0;
  94. line-height: 0;
  95. overflow: hidden;
  96. position: absolute;
  97. right: 0;
  98. -webkit-tap-highlight-color: transparent;
  99. top: 0;
  100. -ms-touch-action: none;
  101. touch-action: none;
  102. -webkit-touch-callout: none;
  103. -webkit-user-select: none;
  104. -moz-user-select: none;
  105. -ms-user-select: none;
  106. user-select: none;
  107. }
  108. .viewer-container::selection,
  109. .viewer-container *::selection {
  110. background-color: transparent;
  111. }
  112. .viewer-container img {
  113. display: block;
  114. height: auto;
  115. max-height: none !important;
  116. max-width: none !important;
  117. min-height: 0 !important;
  118. min-width: 0 !important;
  119. width: 100%;
  120. }
  121. .viewer-canvas {
  122. bottom: 0;
  123. left: 0;
  124. overflow: hidden;
  125. position: absolute;
  126. right: 0;
  127. top: 0;
  128. }
  129. .viewer-canvas > img {
  130. height: auto;
  131. margin: 15px auto;
  132. max-width: 90% !important;
  133. width: auto;
  134. }
  135. .viewer-footer {
  136. bottom: 0;
  137. left: 0;
  138. overflow: hidden;
  139. position: absolute;
  140. right: 0;
  141. text-align: center;
  142. }
  143. .viewer-navbar {
  144. background-color: rgba(0, 0, 0, 0.5);
  145. overflow: hidden;
  146. }
  147. .viewer-list {
  148. -webkit-box-sizing: content-box;
  149. box-sizing: content-box;
  150. height: 50px;
  151. margin: 0;
  152. overflow: hidden;
  153. padding: 1px 0;
  154. }
  155. .viewer-list > li {
  156. color: transparent;
  157. cursor: pointer;
  158. float: left;
  159. font-size: 0;
  160. height: 50px;
  161. line-height: 0;
  162. opacity: 0.5;
  163. overflow: hidden;
  164. -webkit-transition: opacity 0.15s;
  165. transition: opacity 0.15s;
  166. width: 30px;
  167. }
  168. .viewer-list > li:hover {
  169. opacity: 0.75;
  170. }
  171. .viewer-list > li + li {
  172. margin-left: 1px;
  173. }
  174. .viewer-list > .viewer-loading {
  175. position: relative;
  176. }
  177. .viewer-list > .viewer-loading::after {
  178. border-width: 2px;
  179. height: 20px;
  180. margin-left: -10px;
  181. margin-top: -10px;
  182. width: 20px;
  183. }
  184. .viewer-list > .viewer-active,
  185. .viewer-list > .viewer-active:hover {
  186. opacity: 1;
  187. }
  188. .viewer-player {
  189. background-color: #000;
  190. bottom: 0;
  191. cursor: none;
  192. display: none;
  193. left: 0;
  194. position: absolute;
  195. right: 0;
  196. top: 0;
  197. }
  198. .viewer-player > img {
  199. left: 0;
  200. position: absolute;
  201. top: 0;
  202. }
  203. .viewer-toolbar > ul {
  204. display: inline-block;
  205. margin: 0 auto 5px;
  206. overflow: hidden;
  207. padding: 3px 0;
  208. }
  209. .viewer-toolbar > ul > li {
  210. background-color: rgba(0, 0, 0, 0.5);
  211. border-radius: 50%;
  212. cursor: pointer;
  213. float: left;
  214. height: 24px;
  215. overflow: hidden;
  216. -webkit-transition: background-color 0.15s;
  217. transition: background-color 0.15s;
  218. width: 24px;
  219. }
  220. .viewer-toolbar > ul > li:hover {
  221. background-color: rgba(0, 0, 0, 0.8);
  222. }
  223. .viewer-toolbar > ul > li::before {
  224. margin: 2px;
  225. }
  226. .viewer-toolbar > ul > li + li {
  227. margin-left: 1px;
  228. }
  229. .viewer-toolbar > ul > .viewer-small {
  230. height: 18px;
  231. margin-bottom: 3px;
  232. margin-top: 3px;
  233. width: 18px;
  234. }
  235. .viewer-toolbar > ul > .viewer-small::before {
  236. margin: -1px;
  237. }
  238. .viewer-toolbar > ul > .viewer-large {
  239. height: 30px;
  240. margin-bottom: -3px;
  241. margin-top: -3px;
  242. width: 30px;
  243. }
  244. .viewer-toolbar > ul > .viewer-large::before {
  245. margin: 5px;
  246. }
  247. .viewer-tooltip {
  248. background-color: rgba(0, 0, 0, 0.8);
  249. border-radius: 10px;
  250. color: #fff;
  251. display: none;
  252. font-size: 12px;
  253. height: 20px;
  254. left: 50%;
  255. line-height: 20px;
  256. margin-left: -25px;
  257. margin-top: -10px;
  258. position: absolute;
  259. text-align: center;
  260. top: 50%;
  261. width: 50px;
  262. }
  263. .viewer-title {
  264. color: #ccc;
  265. display: inline-block;
  266. font-size: 12px;
  267. line-height: 1;
  268. margin: 0 5% 5px;
  269. max-width: 90%;
  270. opacity: 0.8;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. -webkit-transition: opacity 0.15s;
  274. transition: opacity 0.15s;
  275. white-space: nowrap;
  276. }
  277. .viewer-title:hover {
  278. opacity: 1;
  279. }
  280. .viewer-button {
  281. background-color: rgba(0, 0, 0, 0.5);
  282. border-radius: 50%;
  283. cursor: pointer;
  284. height: 80px;
  285. overflow: hidden;
  286. position: absolute;
  287. right: -40px;
  288. top: -40px;
  289. -webkit-transition: background-color 0.15s;
  290. transition: background-color 0.15s;
  291. width: 80px;
  292. }
  293. .viewer-button:focus,
  294. .viewer-button:hover {
  295. background-color: rgba(0, 0, 0, 0.8);
  296. }
  297. .viewer-button::before {
  298. bottom: 15px;
  299. left: 15px;
  300. position: absolute;
  301. }
  302. .viewer-fixed {
  303. position: fixed;
  304. }
  305. .viewer-open {
  306. overflow: hidden;
  307. }
  308. .viewer-show {
  309. display: block;
  310. }
  311. .viewer-hide {
  312. display: none;
  313. }
  314. .viewer-backdrop {
  315. background-color: rgba(0, 0, 0, 0.5);
  316. }
  317. .viewer-invisible {
  318. visibility: hidden;
  319. }
  320. .viewer-move {
  321. cursor: move;
  322. cursor: -webkit-grab;
  323. cursor: grab;
  324. }
  325. .viewer-fade {
  326. opacity: 0;
  327. }
  328. .viewer-in {
  329. opacity: 1;
  330. }
  331. .viewer-transition {
  332. -webkit-transition: all 0.3s;
  333. transition: all 0.3s;
  334. }
  335. @-webkit-keyframes viewer-spinner {
  336. 0% {
  337. -webkit-transform: rotate(0deg);
  338. transform: rotate(0deg);
  339. }
  340. 100% {
  341. -webkit-transform: rotate(360deg);
  342. transform: rotate(360deg);
  343. }
  344. }
  345. @keyframes viewer-spinner {
  346. 0% {
  347. -webkit-transform: rotate(0deg);
  348. transform: rotate(0deg);
  349. }
  350. 100% {
  351. -webkit-transform: rotate(360deg);
  352. transform: rotate(360deg);
  353. }
  354. }
  355. .viewer-loading::after {
  356. -webkit-animation: viewer-spinner 1s linear infinite;
  357. animation: viewer-spinner 1s linear infinite;
  358. border: 4px solid rgba(255, 255, 255, 0.1);
  359. border-left-color: rgba(255, 255, 255, 0.5);
  360. border-radius: 50%;
  361. content: '';
  362. display: inline-block;
  363. height: 40px;
  364. left: 50%;
  365. margin-left: -20px;
  366. margin-top: -20px;
  367. position: absolute;
  368. top: 50%;
  369. width: 40px;
  370. z-index: 1;
  371. }
  372. @media (max-width: 767px) {
  373. .viewer-hide-xs-down {
  374. display: none;
  375. }
  376. }
  377. @media (max-width: 991px) {
  378. .viewer-hide-sm-down {
  379. display: none;
  380. }
  381. }
  382. @media (max-width: 1199px) {
  383. .viewer-hide-md-down {
  384. display: none;
  385. }
  386. }