viewer.css 7.2 KB

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