viewer.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. /*!
  2. * Viewer v1.0.0
  3. * https://github.com/fengyuanchen/viewer
  4. *
  5. * Copyright (c) 2015-2018 Chen Fengyuan
  6. * Released under the MIT license
  7. *
  8. * Date: 2018-04-01T06:09:55.194Z
  9. */
  10. /*小鸣*/
  11. .docs-pictures{
  12. display: flex;
  13. justify-content: space-between;
  14. flex-wrap: wrap;
  15. }
  16. .docs-galley .docs-pictures>li{
  17. margin-bottom: 1%;
  18. }
  19. /*小鸣*/
  20. .viewer-close
  21. {
  22. display: none;
  23. }
  24. .viewer-zoom-ins{
  25. background:url("../image/icon.png?v=201906140935") -3px -35px;
  26. background-size: cover;
  27. }
  28. .viewer-zoom-outs{
  29. background: url("../image/icon.png?v=201906140935") -38px -35px;
  30. background-size: cover;
  31. }
  32. .viewer-prevs{
  33. background: url("../image/icon.png?v=201906140935") -72px -35px;
  34. background-size: cover;
  35. }
  36. .viewer-plays{
  37. background: url("../image/icon.png?v=201906140935") -98px -35px;
  38. background-size: cover;
  39. }
  40. .viewer-nexts{
  41. background: url("../image/icon.png?v=201906140935") -129px -35px;
  42. background-size: cover;
  43. }
  44. .viewer-enlarge{
  45. background: url("../image/icon.png?v=201906140935") -162.5px -35px;
  46. background-size: cover;
  47. }
  48. .viewer-one-to-ones{
  49. background: url("../image/icon.png?v=201906140935") -273px -35px;
  50. background-size: cover;
  51. }
  52. .viewer-one-to-ones2{
  53. background: url("../image/icon.png?v=201906140935") -303.5px -35px;
  54. background-size: cover;
  55. display: none;
  56. }
  57. .viewer-container {
  58. bottom: 0;
  59. direction: ltr;
  60. font-size: 0;
  61. left: 0;
  62. line-height: 0;
  63. overflow: hidden;
  64. position: absolute;
  65. right: 0;
  66. -webkit-tap-highlight-color: transparent;
  67. top: 0;
  68. -webkit-touch-callout: none;
  69. -ms-touch-action: none;
  70. touch-action: none;
  71. -webkit-user-select: none;
  72. -moz-user-select: none;
  73. -ms-user-select: none;
  74. user-select: none;
  75. }
  76. .viewer-container::-moz-selection,
  77. .viewer-container *::-moz-selection {
  78. background-color: transparent;
  79. }
  80. .viewer-container::selection,
  81. .viewer-container *::selection {
  82. background-color: transparent;
  83. }
  84. .viewer-container img {
  85. display: block;
  86. height: auto;
  87. max-height: none !important;
  88. max-width: none !important;
  89. min-height: 0 !important;
  90. min-width: 0 !important;
  91. width: 100%;
  92. }
  93. ::-webkit-scrollbar{
  94. width: 0;
  95. }
  96. .viewer-canvas {
  97. bottom: 0;
  98. left: 0;
  99. overflow: hidden;
  100. position: absolute;
  101. right: 0;
  102. top: 0;
  103. }
  104. .viewer-canvas>ul{
  105. height: auto;
  106. margin: 0 ;
  107. padding: 0;
  108. width: 9999999999px;
  109. }
  110. .viewer-canvas li{
  111. height: auto;
  112. margin: 0 ;
  113. padding: 0;
  114. margin-left:10px;
  115. /*width: 100%;*/
  116. float: left;
  117. }
  118. .viewer-move{
  119. position: relative!important;
  120. }
  121. /*.viewer-canvas > img {*/
  122. /*height: auto;*/
  123. /*margin: 0 ;*/
  124. /*width: auto;*/
  125. /*padding: 0;*/
  126. /*}*/
  127. .viewer-canvas img {
  128. height: auto;
  129. margin: 0 ;
  130. width: auto;
  131. padding: 0;
  132. float: left;
  133. }
  134. .viewer-footer {
  135. bottom: 0;
  136. left: 0;
  137. overflow: hidden;
  138. position: absolute;
  139. right: 0;
  140. text-align: right;
  141. }
  142. .viewer-navbar {
  143. background-color: rgba(0, 0, 0, .5);
  144. overflow: hidden;
  145. }
  146. .viewer-list {
  147. -webkit-box-sizing: content-box;
  148. box-sizing: content-box;
  149. height: 50px;
  150. margin: 0;
  151. overflow: hidden;
  152. padding: 1px 0;
  153. }
  154. .viewer-list > li {
  155. color: transparent;
  156. cursor: pointer;
  157. float: left;
  158. font-size: 0;
  159. height: 50px;
  160. line-height: 0;
  161. opacity: .5;
  162. overflow: hidden;
  163. -webkit-transition: opacity .15s;
  164. transition: opacity .15s;
  165. width: 30px;
  166. }
  167. .viewer-list > li:hover {
  168. opacity: .75;
  169. }
  170. .viewer-list > li + li {
  171. margin-left: 1px;
  172. }
  173. .viewer-list > .viewer-loading {
  174. position: relative;
  175. }
  176. .viewer-list > .viewer-loading::after {
  177. border-width: 2px;
  178. height: 20px;
  179. margin-left: -10px;
  180. margin-top: -10px;
  181. width: 20px;
  182. }
  183. .viewer-list > .viewer-active,
  184. .viewer-list > .viewer-active:hover {
  185. opacity: 1;
  186. }
  187. .viewer-player {
  188. background-color: #000;
  189. bottom: 0;
  190. cursor: none;
  191. display: none;
  192. left: 0;
  193. position: absolute;
  194. right: 0;
  195. top: 0;
  196. }
  197. .viewer-player > img {
  198. left: 0;
  199. position: absolute;
  200. top: 0;
  201. }
  202. .viewer-toolbar ul {
  203. display: inline-block;
  204. overflow: hidden;
  205. }
  206. #d1 ul li{
  207. display: block;
  208. }
  209. .viewer-toolbar li {
  210. background-color: rgba(0, 0, 0, .5);
  211. border-radius: 50%;
  212. cursor: pointer;
  213. float: left;
  214. overflow: hidden;
  215. -webkit-transition: background-color .15s;
  216. transition: background-color .15s;
  217. width: 35px;
  218. height: 35px;
  219. }
  220. .viewer-toolbar li:hover {
  221. background-color: rgba(0, 0, 0, .8);
  222. }
  223. .viewer-toolbar li::before {
  224. margin: 2px;
  225. }
  226. .viewer-toolbar li + li {
  227. margin-left: 1px;
  228. }
  229. .viewer-toolbar .viewer-small {
  230. height: 18px;
  231. margin-bottom: 3px;
  232. margin-top: 3px;
  233. width: 18px;
  234. }
  235. .viewer-toolbar .viewer-small::before {
  236. margin: -1px;
  237. }
  238. .viewer-toolbar .viewer-large {
  239. height: 30px;
  240. margin-bottom: -3px;
  241. margin-top: -3px;
  242. width: 30px;
  243. }
  244. .viewer-toolbar .viewer-large::before {
  245. margin: 5px;
  246. }
  247. .viewer-tooltip {
  248. background-color: rgba(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. color: #fff;
  266. display: inline-block;
  267. font-size: 15px;
  268. /*line-height: 1;*/
  269. margin: 0 5px 5px;
  270. /*margin: 3px 5px;*/
  271. max-width: 90%;
  272. opacity: .8;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. -webkit-transition: opacity .15s;
  276. transition: opacity .15s;
  277. white-space: nowrap;
  278. line-height: 30px;
  279. float: left;
  280. }
  281. .viewer-title:hover {
  282. opacity: 1;
  283. }
  284. .viewer-button {
  285. background-color: rgba(0, 0, 0, .5);
  286. border-radius: 50%;
  287. cursor: pointer;
  288. height: 80px;
  289. overflow: hidden;
  290. position: absolute;
  291. right: -40px;
  292. top: -40px;
  293. -webkit-transition: background-color .15s;
  294. transition: background-color .15s;
  295. width: 80px;
  296. }
  297. .viewer-button:focus,
  298. .viewer-button:hover {
  299. background-color: rgba(0, 0, 0, .8);
  300. }
  301. .viewer-button::before {
  302. bottom: 15px;
  303. left: 15px;
  304. position: absolute;
  305. }
  306. .viewer-fixed {
  307. position: fixed;
  308. }
  309. .viewer-open {
  310. overflow: hidden;
  311. }
  312. .viewer-show {
  313. display: block;
  314. }
  315. .viewer-hide {
  316. display: none;
  317. }
  318. .viewer-backdrop {
  319. /*background-color: rgba(0, 0, 0, .5);*/
  320. background-color: rgba(0, 0, 0, 1);
  321. }
  322. .viewer-invisible {
  323. visibility: hidden;
  324. }
  325. .viewer-move {
  326. cursor: move;
  327. cursor: -webkit-grab;
  328. cursor: grab;
  329. }
  330. .viewer-fade {
  331. opacity: 0;
  332. }
  333. .viewer-in {
  334. opacity: 1;
  335. /*opacity: 0.7;*/
  336. }
  337. .viewer-transition {
  338. -webkit-transition: all .3s;
  339. transition: all .3s;
  340. }
  341. @-webkit-keyframes viewer-spinner {
  342. 0% {
  343. -webkit-transform: rotate(0deg);
  344. transform: rotate(0deg);
  345. }
  346. 100% {
  347. -webkit-transform: rotate(360deg);
  348. transform: rotate(360deg);
  349. }
  350. }
  351. @keyframes viewer-spinner {
  352. 0% {
  353. -webkit-transform: rotate(0deg);
  354. transform: rotate(0deg);
  355. }
  356. 100% {
  357. -webkit-transform: rotate(360deg);
  358. transform: rotate(360deg);
  359. }
  360. }
  361. .viewer-loading::after {
  362. -webkit-animation: viewer-spinner 1s linear infinite;
  363. animation: viewer-spinner 1s linear infinite;
  364. border: 4px solid rgba(255, 255, 255, .1);
  365. border-left-color: rgba(255, 255, 255, .5);
  366. border-radius: 50%;
  367. content: '';
  368. display: inline-block;
  369. height: 40px;
  370. left: 50%;
  371. margin-left: -20px;
  372. margin-top: -20px;
  373. position: absolute;
  374. top: 50%;
  375. width: 40px;
  376. z-index: 1;
  377. }
  378. @media (max-width: 767px) {
  379. .viewer-hide-xs-down {
  380. display: none;
  381. }
  382. }
  383. @media (max-width: 991px) {
  384. .viewer-hide-sm-down {
  385. display: none;
  386. }
  387. }
  388. @media (max-width: 1199px) {
  389. .viewer-hide-md-down {
  390. display: none;
  391. }
  392. }
  393. @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  394. .viewer-footer {
  395. height: 75px;
  396. }
  397. .viewer-toolbar li {
  398. transform: scale(1.2);
  399. margin: 10px 0;
  400. }
  401. .viewer-toolbar li + li {
  402. margin-left: 8px;
  403. }
  404. .viewer-title{
  405. font-size: 20px;
  406. margin: 10px 0 10px 10px;
  407. }
  408. }