viewer.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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. /*width: 100%;*/
  115. float: left;
  116. }
  117. .viewer-move{
  118. position: relative!important;
  119. }
  120. /*.viewer-canvas > img {*/
  121. /*height: auto;*/
  122. /*margin: 0 ;*/
  123. /*width: auto;*/
  124. /*padding: 0;*/
  125. /*}*/
  126. .viewer-canvas img {
  127. height: auto;
  128. margin: 0 ;
  129. width: auto;
  130. padding: 0;
  131. float: left;
  132. }
  133. .viewer-footer {
  134. bottom: 0;
  135. left: 0;
  136. overflow: hidden;
  137. position: absolute;
  138. right: 0;
  139. text-align: right;
  140. }
  141. .viewer-navbar {
  142. background-color: rgba(0, 0, 0, .5);
  143. overflow: hidden;
  144. }
  145. .viewer-list {
  146. -webkit-box-sizing: content-box;
  147. box-sizing: content-box;
  148. height: 50px;
  149. margin: 0;
  150. overflow: hidden;
  151. padding: 1px 0;
  152. }
  153. .viewer-list > li {
  154. color: transparent;
  155. cursor: pointer;
  156. float: left;
  157. font-size: 0;
  158. height: 50px;
  159. line-height: 0;
  160. opacity: .5;
  161. overflow: hidden;
  162. -webkit-transition: opacity .15s;
  163. transition: opacity .15s;
  164. width: 30px;
  165. }
  166. .viewer-list > li:hover {
  167. opacity: .75;
  168. }
  169. .viewer-list > li + li {
  170. margin-left: 1px;
  171. }
  172. .viewer-list > .viewer-loading {
  173. position: relative;
  174. }
  175. .viewer-list > .viewer-loading::after {
  176. border-width: 2px;
  177. height: 20px;
  178. margin-left: -10px;
  179. margin-top: -10px;
  180. width: 20px;
  181. }
  182. .viewer-list > .viewer-active,
  183. .viewer-list > .viewer-active:hover {
  184. opacity: 1;
  185. }
  186. .viewer-player {
  187. background-color: #000;
  188. bottom: 0;
  189. cursor: none;
  190. display: none;
  191. left: 0;
  192. position: absolute;
  193. right: 0;
  194. top: 0;
  195. }
  196. .viewer-player > img {
  197. left: 0;
  198. position: absolute;
  199. top: 0;
  200. }
  201. .viewer-toolbar ul {
  202. display: inline-block;
  203. overflow: hidden;
  204. }
  205. #d1 ul li{
  206. display: block;
  207. }
  208. .viewer-toolbar li {
  209. background-color: rgba(0, 0, 0, .5);
  210. border-radius: 50%;
  211. cursor: pointer;
  212. float: left;
  213. overflow: hidden;
  214. -webkit-transition: background-color .15s;
  215. transition: background-color .15s;
  216. width: 35px;
  217. height: 35px;
  218. }
  219. .viewer-toolbar li:hover {
  220. background-color: rgba(0, 0, 0, .8);
  221. }
  222. .viewer-toolbar li::before {
  223. margin: 2px;
  224. }
  225. .viewer-toolbar li + li {
  226. margin-left: 1px;
  227. }
  228. .viewer-toolbar .viewer-small {
  229. height: 18px;
  230. margin-bottom: 3px;
  231. margin-top: 3px;
  232. width: 18px;
  233. }
  234. .viewer-toolbar .viewer-small::before {
  235. margin: -1px;
  236. }
  237. .viewer-toolbar .viewer-large {
  238. height: 30px;
  239. margin-bottom: -3px;
  240. margin-top: -3px;
  241. width: 30px;
  242. }
  243. .viewer-toolbar .viewer-large::before {
  244. margin: 5px;
  245. }
  246. .viewer-tooltip {
  247. background-color: rgba(0, 0, 0, .8);
  248. border-radius: 10px;
  249. color: #fff;
  250. display: none;
  251. font-size: 12px;
  252. height: 20px;
  253. left: 50%;
  254. line-height: 20px;
  255. margin-left: -25px;
  256. margin-top: -10px;
  257. position: absolute;
  258. text-align: center;
  259. top: 50%;
  260. width: 50px;
  261. }
  262. .viewer-title {
  263. /*color: #ccc;*/
  264. color: #fff;
  265. display: inline-block;
  266. font-size: 15px;
  267. /*line-height: 1;*/
  268. margin: 0 5px 5px;
  269. /*margin: 3px 5px;*/
  270. max-width: 90%;
  271. opacity: .8;
  272. overflow: hidden;
  273. text-overflow: ellipsis;
  274. -webkit-transition: opacity .15s;
  275. transition: opacity .15s;
  276. white-space: nowrap;
  277. line-height: 30px;
  278. float: left;
  279. }
  280. .viewer-title:hover {
  281. opacity: 1;
  282. }
  283. .viewer-button {
  284. background-color: rgba(0, 0, 0, .5);
  285. border-radius: 50%;
  286. cursor: pointer;
  287. height: 80px;
  288. overflow: hidden;
  289. position: absolute;
  290. right: -40px;
  291. top: -40px;
  292. -webkit-transition: background-color .15s;
  293. transition: background-color .15s;
  294. width: 80px;
  295. }
  296. .viewer-button:focus,
  297. .viewer-button:hover {
  298. background-color: rgba(0, 0, 0, .8);
  299. }
  300. .viewer-button::before {
  301. bottom: 15px;
  302. left: 15px;
  303. position: absolute;
  304. }
  305. .viewer-fixed {
  306. position: fixed;
  307. }
  308. .viewer-open {
  309. overflow: hidden;
  310. }
  311. .viewer-show {
  312. display: block;
  313. }
  314. .viewer-hide {
  315. display: none;
  316. }
  317. .viewer-backdrop {
  318. /*background-color: rgba(0, 0, 0, .5);*/
  319. background-color: rgba(0, 0, 0, 1);
  320. }
  321. .viewer-invisible {
  322. visibility: hidden;
  323. }
  324. .viewer-move {
  325. cursor: move;
  326. cursor: -webkit-grab;
  327. cursor: grab;
  328. }
  329. .viewer-fade {
  330. opacity: 0;
  331. }
  332. .viewer-in {
  333. opacity: 1;
  334. /*opacity: 0.7;*/
  335. }
  336. .viewer-transition {
  337. -webkit-transition: all .3s;
  338. transition: all .3s;
  339. }
  340. @-webkit-keyframes viewer-spinner {
  341. 0% {
  342. -webkit-transform: rotate(0deg);
  343. transform: rotate(0deg);
  344. }
  345. 100% {
  346. -webkit-transform: rotate(360deg);
  347. transform: rotate(360deg);
  348. }
  349. }
  350. @keyframes viewer-spinner {
  351. 0% {
  352. -webkit-transform: rotate(0deg);
  353. transform: rotate(0deg);
  354. }
  355. 100% {
  356. -webkit-transform: rotate(360deg);
  357. transform: rotate(360deg);
  358. }
  359. }
  360. .viewer-loading::after {
  361. -webkit-animation: viewer-spinner 1s linear infinite;
  362. animation: viewer-spinner 1s linear infinite;
  363. border: 4px solid rgba(255, 255, 255, .1);
  364. border-left-color: rgba(255, 255, 255, .5);
  365. border-radius: 50%;
  366. content: '';
  367. display: inline-block;
  368. height: 40px;
  369. left: 50%;
  370. margin-left: -20px;
  371. margin-top: -20px;
  372. position: absolute;
  373. top: 50%;
  374. width: 40px;
  375. z-index: 1;
  376. }
  377. @media (max-width: 767px) {
  378. .viewer-hide-xs-down {
  379. display: none;
  380. }
  381. }
  382. @media (max-width: 991px) {
  383. .viewer-hide-sm-down {
  384. display: none;
  385. }
  386. }
  387. @media (max-width: 1199px) {
  388. .viewer-hide-md-down {
  389. display: none;
  390. }
  391. }
  392. @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  393. .viewer-footer {
  394. height: 75px;
  395. }
  396. .viewer-toolbar li {
  397. transform: scale(1.2);
  398. margin: 10px 0;
  399. }
  400. .viewer-toolbar li + li {
  401. margin-left: 8px;
  402. }
  403. .viewer-title{
  404. font-size: 20px;
  405. margin: 10px 0 10px 10px;
  406. }
  407. }