flipify-viewer.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. html, body{
  2. width:100%;
  3. height:100%;
  4. }
  5. body{
  6. overflow:hidden;
  7. margin:0;
  8. padding:0;
  9. }
  10. .touch body{
  11. background-color:#333;
  12. }
  13. .desktop body{
  14. background-image:url(../imgs/background.png);
  15. background-size:150px 150px;
  16. }
  17. .desktop .bar-container{
  18. position: absolute;
  19. top:10px;
  20. left:50%;
  21. width:400px;
  22. height:30;
  23. z-index: 10000;
  24. }
  25. .desktop .bar{
  26. position: absolute;
  27. top:0;
  28. left:-50%;
  29. width:400px;
  30. height:30px;
  31. z-index: 10000;
  32. -webkit-touch-callout: none;
  33. -webkit-user-select: none;
  34. -khtml-user-select: none;
  35. -moz-user-select: none;
  36. -ms-user-select: none;
  37. user-select: none;
  38. opacity:1;
  39. -webkit-transition:opacity 200ms ease-in-out;
  40. -moz-transition:opacity 200ms ease-in-out;
  41. -ms-transition:opacity 200ms ease-in-out;
  42. -o-transition:opacity 200ms ease-in-out;
  43. transition:opacity 200ms ease-in-out;
  44. cursor:default;
  45. }
  46. .touch .bar-container{
  47. position: fixed;
  48. top:0;
  49. left:0;
  50. width:100%;
  51. height:44px;
  52. z-index: 10000;
  53. background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(95, 95, 95)), color-stop(0.5, rgb(58, 58, 58)), color-stop(0.5, rgb(35, 35, 35)), to(rgb(0, 0, 0)) );
  54. border-bottom: 1px solid rgba(0, 0, 0);
  55. -webkit-transform: translate3d(0px, -44px, 0px);
  56. -webkit-transition: -webkit-transform 0.2s ease-in-out;
  57. }
  58. .navigation.touch .bar-container{
  59. -webkit-transform: translate3d(0px, 0px, 0px);
  60. }
  61. .touch .bar{
  62. margin:auto;
  63. width:400px;
  64. position:relative;
  65. }
  66. .bar.hidden{
  67. opacity:0;
  68. -webkit-transition-duration: 500ms;
  69. -moz-transition-duration: 500ms;
  70. -ms-transition-duration: 500ms;
  71. -o-transition-duration: 500ms;
  72. transition-duration: 500ms;
  73. }
  74. .desktop .bar .edges{
  75. width:398px;
  76. height:38px;
  77. -webkit-border-radius:11px;
  78. -moz-border-radius:11px;
  79. -ms-border-radius:11px;
  80. -o-border-radius:11px;
  81. border-radius:11px;
  82. background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(134, 134, 134)), to(rgb(11, 11, 11)) );
  83. border:1px solid #373737;
  84. opacity:0.95;
  85. }
  86. .desktop .bar .edges .bg{
  87. width:396px;
  88. height:36px;
  89. margin:1px;
  90. -webkit-border-radius:10px;
  91. -moz-border-radius:10px;
  92. -ms-border-radius:10px;
  93. -o-border-radius:10px;
  94. border-radius:10px;
  95. background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(95, 95, 95)), color-stop(0.5, rgb(58, 58, 58)), color-stop(0.5, rgb(43, 43, 43)), to(rgb(11, 11, 11)) );
  96. }
  97. .bar .items{
  98. width:400px;
  99. height:44px;
  100. position:absolute;
  101. top:0;
  102. left:0;
  103. text-align:center;
  104. }
  105. .bar .item{
  106. width:40px;
  107. height:44px;
  108. display:inline-block;
  109. text-align: center;
  110. line-height:54px;
  111. margin: 0 8px;
  112. }
  113. .bar .pressed{
  114. background:rgba(0, 0, 0, 0.3);
  115. box-shadow:inset 0 0 10px rgba(0, 0, 0, 0.8);
  116. }
  117. .bar .item:nth-child(3) {
  118. margin: 0 0 0 8px;
  119. }
  120. .bar .item:nth-child(4) {
  121. margin: 0 8px 0 0;
  122. }
  123. .bar .icon{
  124. display:inline-block;
  125. width:20px;
  126. height:20px;
  127. /*background-image:url(../pics/icons@2x.png?b);*/
  128. background-size:500px 20px;
  129. }
  130. .desktop .bottom{
  131. position:absolute;
  132. left:50%;
  133. bottom:10px;
  134. width:800px;
  135. height:40px;
  136. z-index:1000;
  137. }
  138. .touch .bottom{
  139. position:fixed;
  140. left:0;
  141. bottom:0;
  142. width:100%;
  143. height:120px;
  144. z-index:1000;
  145. border-top:1px solid #222;
  146. background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(95, 95, 95)), color-stop(0.5, rgb(58, 58, 58)), color-stop(0.5, rgb(35, 35, 35)), to(rgb(0, 0, 0)) );
  147. -webkit-transform: translate3d(0px, 120px, 0px);
  148. -webkit-transition: -webkit-transform 0.2s ease-in-out;
  149. /* opacity:0.9 */
  150. }
  151. .touch .bottom .edges{
  152. border-top:1px solid rgba(255, 255, 255, 0.2);
  153. width:100%;
  154. height:100%;
  155. }
  156. .touch .bottom .thumbnails{
  157. position:relative;
  158. width:100%;
  159. height:100px;
  160. margin-top:10px;
  161. overflow:hidden;
  162. }
  163. .touch .bottom .thumbnails .viewer{
  164. width:100%;
  165. height:100%;
  166. }
  167. .touch .slide .page{
  168. background:white;
  169. text-align:center;
  170. line-height:100px;
  171. }
  172. .touch .slide .current{
  173. background-color:#DC4033;
  174. }
  175. .touch .slide .single img{
  176. width: 100%;
  177. width: -webkit-calc(100% - 6px);
  178. width: calc(100% - 6px);
  179. height: 100%;
  180. height: -webkit-calc(100% - 6px);
  181. height: calc(100% - 6px);
  182. /*vertical-align: middle;*/
  183. margin-top:3px;
  184. background-color:white;
  185. }
  186. .touch .slide .double-even{
  187. text-align: right;
  188. }
  189. .touch .slide .double-even img{
  190. width: 100%;
  191. width: -webkit-calc(100% - 3px);
  192. width: calc(100% - 3px);
  193. height: 100%;
  194. height: -webkit-calc(100% - 6px);
  195. height: calc(100% - 6px);
  196. /*vertical-align: middle;*/
  197. margin-top:3px;
  198. background-color:white;
  199. }
  200. .touch .slide .double-odd{
  201. text-align: left;
  202. }
  203. .touch .slide .double-odd img{
  204. width: 100%;
  205. width: -webkit-calc(100% - 3px);
  206. width: calc(100% - 3px);
  207. height: 100%;
  208. height: -webkit-calc(100% - 6px);
  209. height: calc(100% - 6px);
  210. /*vertical-align: middle;*/
  211. margin-top:3px;
  212. background-color:white;
  213. }
  214. .navigation.touch .bottom{
  215. -webkit-transform: translate3d(0px, 0px, 0px);
  216. }
  217. .desktop .bottom .thumbnails{
  218. position:absolute;
  219. left:-400px;
  220. width:800px;
  221. height:40px;
  222. margin:auto;
  223. }
  224. .bottom .thumbnails{
  225. -webkit-transition: -webkit-transform 0.3s ease-in-out;
  226. }
  227. .bottom .thumbnails.hidden{
  228. -webkit-transform: translate(0px, 100px);
  229. }
  230. .icon.zoom-in{
  231. background-position:0 0;
  232. }
  233. .bar .item:hover .icon.zoom-in,
  234. .pressed .icon.zoom-in{
  235. background-position:-160px 0;
  236. }
  237. .icon.zoom-out{
  238. background-position:-20px 0;
  239. }
  240. .bar .item:hover .icon.zoom-out,
  241. .pressed .icon.zoom-out{
  242. background-position:-180px 0;
  243. }
  244. .icon.prev-page{
  245. background-position:-40px 0;
  246. }
  247. .bar .item:hover .icon.prev-page,
  248. .pressed .icon.prev-page{
  249. background-position:-200px 0;
  250. }
  251. .icon.next-page{
  252. background-position:-60px 0;
  253. }
  254. .bar .item:hover .icon.next-page,
  255. .pressed .icon.next-page{
  256. background-position:-220px 0;
  257. }
  258. .icon.share{
  259. background-position:-80px 0;
  260. }
  261. .bar .item:hover .icon.share,
  262. .pressed .icon.share{
  263. background-position:-240px 0;
  264. }
  265. .icon.clip{
  266. background-position:-100px 0;
  267. }
  268. .bar .item:hover .icon.clip,
  269. .pressed .icon.clip{
  270. background-position:-260px 0;
  271. }
  272. .magazine-viewport .container{
  273. position:absolute;
  274. top:50%;
  275. left:50%;
  276. width:922px;
  277. height:600px;
  278. margin:auto;
  279. }
  280. .magazine-viewport .magazine{
  281. width:922px;
  282. height:600px;
  283. z-index: 2;
  284. }
  285. .magazine-viewport .page{
  286. width:461px;
  287. height:600px;
  288. background-color:white;
  289. background-repeat:no-repeat;
  290. background-size:100% 100%;
  291. }
  292. .magazine-viewport .zoomer .region{
  293. display:none;
  294. }
  295. .magazine-viewport .zoom-in .region{
  296. display:none;
  297. }
  298. .magazine .region{
  299. position:absolute;
  300. overflow:hidden;
  301. background:#0066FF;
  302. opacity:0.2;
  303. -webkit-border-radius:10px;
  304. -moz-border-radius:10px;
  305. -ms-border-radius:10px;
  306. -o-border-radius:10px;
  307. border-radius:10px;
  308. cursor:pointer;
  309. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
  310. filter: alpha(opacity=20);
  311. }
  312. .magazine .region:hover{
  313. opacity:0.5;
  314. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  315. filter: alpha(opacity=50);
  316. }
  317. .magazine .region.zoom{
  318. opacity:0.01;
  319. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)";
  320. filter: alpha(opacity=1);
  321. }
  322. .magazine .region.zoom:hover{
  323. opacity:0.2;
  324. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
  325. filter: alpha(opacity=20);
  326. }
  327. .magazine .page{
  328. /*-webkit-box-shadow:0 0 10px rgba(0,0,0,0.);
  329. -moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
  330. -ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
  331. -o-box-shadow:0 0 20px rgba(0,0,0,0.2);
  332. box-shadow:0 0 20px rgba(0,0,0,0.2);*/
  333. }
  334. .magazine-viewport .page img{
  335. -webkit-touch-callout: none;
  336. -webkit-user-select: none;
  337. -khtml-user-select: none;
  338. -moz-user-select: none;
  339. -ms-user-select: none;
  340. user-select: none;
  341. margin:0;
  342. }
  343. .magazine-viewport{
  344. overflow:hidden;
  345. }
  346. .magazine-viewport .zoom-in .even .gradient,
  347. .magazine-viewport .zoom-in .odd .gradient{
  348. display:none;
  349. }
  350. /*
  351. .magazine-viewport .loader{
  352. background-image:url(../imgs/loader.gif);
  353. width:22px;
  354. height:22px;
  355. position:absolute;
  356. top:-webkit-calc(50% - 11px);
  357. top:-moz-calc(50% - 11px);
  358. top:-ms-calc(50% - 11px);
  359. top:-o-calc(50% - 11px);
  360. left:-webkit-calc(50% - 11px);
  361. left:-moz-calc(50% - 11px);
  362. left:-ms-calc(50% - 11px);
  363. left:-o-calc(50% - 11px);
  364. }*/
  365. .desktop .magazine-viewport .shadow{
  366. -webkit-box-shadow: 0 0 40px rgba(0,0,0,0.5);
  367. -moz-box-shadow: 0 0 40px rgba(0,0,0,0.5);
  368. -o-box-shadow: 0 0 40px rgba(0,0,0,0.5);
  369. -ms-box-shadow: 0 0 40px rgba(0,0,0,0.5);
  370. box-shadow: 0 0 40px rgba(0,0,0,0.5);
  371. /*
  372. -moz-transition: -moz-box-shadow 0.5s;
  373. -o-transition: -webkit-box-shadow 0.5s;
  374. -ms-transition: -ms-box-shadow 0.5s;
  375. -webkit-box-shadow:0 0 20px #ccc;
  376. -moz-box-shadow:0 0 20px #ccc;
  377. -o-box-shadow:0 0 20px #ccc;
  378. -ms-box-shadow:0 0 20px #ccc;
  379. box-shadow:0 0 20px #ccc;*/
  380. }
  381. .magazine-viewport .next-button,
  382. .magazine-viewport .previous-button{
  383. width:22px;
  384. height:600px;
  385. position:absolute;
  386. top:0;
  387. }
  388. .magazine-viewport .next-button{
  389. right:-22px;
  390. -webkit-border-radius:0 15px 15px 0;
  391. -moz-border-radius:0 15px 15px 0;
  392. -ms-border-radius:0 15px 15px 0;
  393. -o-border-radius:0 15px 15px 0;
  394. border-radius:0 15px 15px 0;
  395. }
  396. .magazine-viewport .previous-button{
  397. left:-22px;
  398. -webkit-border-radius:15px 0 0 15px;
  399. -moz-border-radius:15px 0 0 15px;
  400. -ms-border-radius:15px 0 0 15px;
  401. -o-border-radius:15px 0 0 15px;
  402. border-radius:15px 0 0 15px;
  403. }
  404. .magazine-viewport .previous-button-hover,
  405. .magazine-viewport .next-button-hover{
  406. background-color:rgba(0,0,0, 0.2);
  407. }
  408. .magazine-viewport .previous-button-hover,
  409. .magazine-viewport .previous-button-down{
  410. background-image:url(../imgs/arrows.png);
  411. background-position:-4px 284px;
  412. background-repeat:no-repeat;
  413. }
  414. .magazine-viewport .previous-button-down,
  415. .magazine-viewport .next-button-down{
  416. background-color:rgba(0,0,0, 0.4);
  417. }
  418. .magazine-viewport .next-button-hover,
  419. .magazine-viewport .next-button-down{
  420. background-image:url(../imgs/arrows.png);
  421. background-position:-38px 284px;
  422. background-repeat:no-repeat;
  423. }
  424. .magazine-viewport .zoom-in .next-button,
  425. .magazine-viewport .zoom-in .previous-button{
  426. display:none;
  427. }
  428. .animated{
  429. -webkit-transition:margin-left 0.5s;
  430. -moz-transition:margin-left 0.5s;
  431. -ms-transition:margin-left 0.5s;
  432. -o-transition:margin-left 0.5s;
  433. transition:margin-left 0.5s;
  434. }
  435. .desktop .thumbnails .previous-button,
  436. .desktop .thumbnails .next-button{
  437. background:red;
  438. width:30px;
  439. height:50px;
  440. }
  441. /*
  442. .thumbnails > div{
  443. width:1050px;
  444. height:100px;
  445. margin:20px auto;
  446. }
  447. .thumbnails ul{
  448. margin:0;
  449. padding:0;
  450. text-align:center;
  451. -webkit-transform:scale3d(0.5, 0.5, 1);
  452. -moz-transform:scale3d(0.5, 0.5, 1);
  453. -o-transform:scale3d(0.5, 0.5, 1);
  454. -ms-transform:scale3d(0.5, 0.5, 1);
  455. transform:scale3d(0.5, 0.5, 1);
  456. -webkit-transition:-webkit-transform ease-in-out 100ms;
  457. -moz-transition:-moz-transform ease-in-out 100ms;
  458. -ms-transition:-ms-transform ease-in-out 100ms;
  459. -o-transition:-o-transform ease-in-out 100ms;
  460. transition:transform ease-in-out 100ms;
  461. }
  462. .thumbanils-touch ul{
  463. -webkit-transform:none;
  464. -moz-transform:none;
  465. -o-transform:none;
  466. -ms-transform:none;
  467. transform:none;
  468. }
  469. .thumbnails-hover ul{
  470. -webkit-transform:scale3d(0.6, 0.6, 1);
  471. -moz-transform:scale3d(0.6, 0.6, 1);
  472. -o-transform:scale3d(0.6, 0.6, 1);
  473. -ms-transform:scale3d(0.6, 0.6, 1);
  474. transform:scale3d(0.6, 0.6, 1);
  475. }
  476. .thumbnails li{
  477. list-style:none;
  478. display:inline-block;
  479. margin:0 5px;
  480. -webkit-box-shadow:0 0 10px #ccc;
  481. -moz-box-shadow:0 0 10px #ccc;
  482. -ms-box-shadow:0 0 10px #ccc;
  483. -o-box-shadow:0 0 10px #ccc;
  484. box-shadow:0 0 10px #ccc;
  485. -webkit-transition:-webkit-transform 60ms;
  486. -moz-transition:-webkit-transform 60ms;
  487. -o-transition:-webkit-transform 60ms;
  488. -ms-transition:-webkit-transform 60ms;
  489. transition:-webkit-transform 60ms;
  490. }
  491. .thumbnails li span{
  492. display:none;
  493. }
  494. .thumbnails .current{
  495. -webkit-box-shadow:0 0 10px red;
  496. -moz-box-shadow:0 0 10px red;
  497. -ms-box-shadow:0 0 10px red;
  498. -o-box-shadow:0 0 10px red;
  499. box-shadow:0 0 10px red;
  500. }
  501. .thumbnails .thumb-hover{
  502. -webkit-transform:scale3d(1.3, 1.3, 1);
  503. -moz-transform:scale3d(1.3, 1.3, 1);
  504. -o-transform:scale3d(1.3, 1.3, 1);
  505. -ms-transform:scale3d(1.3, 1.3, 1);
  506. transform:scale3d(1.3, 1.3, 1);
  507. -webkit-box-shadow:0 0 10px #666;
  508. -moz-box-shadow:0 0 10px #666;
  509. -ms-box-shadow:0 0 10px #666;
  510. -o-box-shadow:0 0 10px #666;
  511. box-shadow:0 0 10px #666;
  512. }
  513. .thumbanils-touch .thumb-hover{
  514. -webkit-transform:none;
  515. -moz-transform:none;
  516. -o-transform:none;
  517. -ms-transform:none;
  518. transform:none;
  519. }
  520. .thumbnails .thumb-hover span{
  521. position:absolute;
  522. bottom:-30px;
  523. left:0;
  524. z-index:2;
  525. width:100%;
  526. height:30px;
  527. font:bold 15px arial;
  528. line-height:30px;
  529. color:#666;
  530. display:block;
  531. cursor:default;
  532. }
  533. .thumbnails img{
  534. float:left;
  535. }*/