examples.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. body {
  2. margin: 0;
  3. background: #fafafa;
  4. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  5. color: #333;
  6. position: absolute;
  7. height: 100%;
  8. width: 100%;
  9. min-height: 800px;
  10. }
  11. #title {
  12. width: 900px;
  13. min-height: 18px;
  14. margin: 10px auto;
  15. text-align: center;
  16. font-size: 16px;
  17. color: #E2E2E2;
  18. font-weight: 400;
  19. }
  20. #title:hover {
  21. color: #777;
  22. }
  23. #viewer.spreads {
  24. width: 900px;
  25. height: 600px;
  26. box-shadow: 0 0 4px #ccc;
  27. border-radius: 5px;
  28. padding: 0;
  29. position: relative;
  30. margin: 10px auto;
  31. background: white url('ajax-loader.gif') center center no-repeat;
  32. top: calc(50vh - 400px);
  33. }
  34. #viewer.spreads .epub-view > iframe {
  35. background: white;
  36. }
  37. #viewer.scrolled {
  38. overflow: hidden;
  39. width: 800px;
  40. margin: 0 auto;
  41. position: relative;
  42. background: url('ajax-loader.gif') center center no-repeat;
  43. }
  44. #viewer.scrolled .epub-container {
  45. background: white;
  46. box-shadow: 0 0 4px #ccc;
  47. margin: 10px;
  48. padding: 20px;
  49. }
  50. #viewer.scrolled .epub-view > iframe {
  51. background: white;
  52. }
  53. #prev {
  54. left: 0;
  55. }
  56. #next {
  57. right: 0;
  58. }
  59. #toc {
  60. display: block;
  61. margin: 10px auto;
  62. }
  63. @media (min-width: 1000px) {
  64. #viewer.spreads:after {
  65. position: absolute;
  66. width: 1px;
  67. border-right: 1px #000 solid;
  68. height: 90%;
  69. z-index: 1;
  70. left: 50%;
  71. margin-left: -1px;
  72. top: 5%;
  73. opacity: .15;
  74. box-shadow: -2px 0 15px rgba(0, 0, 0, 1);
  75. content: "";
  76. }
  77. #viewer.spreads.single:after {
  78. display: none;
  79. }
  80. #prev {
  81. left: 40px;
  82. }
  83. #next {
  84. right: 40px;
  85. }
  86. }
  87. .arrow {
  88. position: fixed;
  89. top: 50%;
  90. margin-top: -32px;
  91. font-size: 64px;
  92. color: #E2E2E2;
  93. font-family: arial, sans-serif;
  94. font-weight: bold;
  95. cursor: pointer;
  96. -webkit-user-select: none;
  97. -moz-user-select: none;
  98. user-select: none;
  99. text-decoration: none;
  100. }
  101. .navlink {
  102. margin: 14px;
  103. display: block;
  104. text-align: center;
  105. text-decoration: none;
  106. color: #ccc;
  107. }
  108. .arrow:hover, .navlink:hover {
  109. color: #777;
  110. }
  111. .arrow:active, .navlink:hover {
  112. color: #000;
  113. }
  114. #book-wrapper {
  115. width: 480px;
  116. height: 640px;
  117. overflow: hidden;
  118. border: 1px solid #ccc;
  119. margin: 28px auto;
  120. background: #fff;
  121. border-radius: 0 5px 5px 0;
  122. position: absolute;
  123. }
  124. #book-viewer {
  125. width: 480px;
  126. height: 660px;
  127. margin: -30px auto;
  128. -moz-box-shadow: inset 10px 0 20px rgba(0,0,0,.1);
  129. -webkit-box-shadow: inset 10px 0 20px rgba(0,0,0,.1);
  130. box-shadow: inset 10px 0 20px rgba(0,0,0,.1);
  131. }
  132. #book-viewer iframe {
  133. padding: 40px 40px;
  134. }
  135. #controls {
  136. position: absolute;
  137. bottom: 16px;
  138. left: 50%;
  139. width: 400px;
  140. margin-left: -200px;
  141. text-align: center;
  142. display: none;
  143. }
  144. #controls > input[type=range] {
  145. width: 400px;
  146. }
  147. #navigation {
  148. width: 400px;
  149. height: 100vh;
  150. position: absolute;
  151. overflow: auto;
  152. top: 0;
  153. left: 0;
  154. background: #777;
  155. -webkit-transition: -webkit-transform .25s ease-out;
  156. -moz-transition: -moz-transform .25s ease-out;
  157. -ms-transition: -moz-transform .25s ease-out;
  158. transition: transform .25s ease-out;
  159. }
  160. #navigation.fixed {
  161. position: fixed;
  162. }
  163. #navigation h1 {
  164. width: 200px;
  165. font-size: 16px;
  166. font-weight: normal;
  167. color: #fff;
  168. margin-bottom: 10px;
  169. }
  170. #navigation h2 {
  171. font-size: 14px;
  172. font-weight: normal;
  173. color: #B0B0B0;
  174. margin-bottom: 20px;
  175. }
  176. #navigation ul {
  177. padding-left: 36px;
  178. margin-left: 0;
  179. margin-top: 12px;
  180. margin-bottom: 12px;
  181. width: 340px;
  182. }
  183. #navigation ul li {
  184. list-style: decimal;
  185. margin-bottom: 10px;
  186. color: #cccddd;
  187. font-size: 12px;
  188. padding-left: 0;
  189. margin-left: 0;
  190. }
  191. #navigation ul li a {
  192. color: #ccc;
  193. text-decoration: none;
  194. }
  195. #navigation ul li a:hover {
  196. color: #fff;
  197. text-decoration: underline;
  198. }
  199. #navigation ul li a.active {
  200. color: #fff;
  201. }
  202. #navigation #cover {
  203. display: block;
  204. margin: 24px auto;
  205. }
  206. #navigation #closer {
  207. position: absolute;
  208. top: 0;
  209. right: 0;
  210. padding: 12px;
  211. color: #cccddd;
  212. width: 24px;
  213. }
  214. #navigation.closed {
  215. -webkit-transform: translate(-400px, 0);
  216. -moz-transform: translate(-400px, 0);
  217. -ms-transform: translate(-400px, 0);
  218. }
  219. svg {
  220. display: block;
  221. }
  222. .close-x {
  223. stroke: #cccddd;
  224. fill: transparent;
  225. stroke-linecap: round;
  226. stroke-width: 5;
  227. }
  228. .close-x:hover {
  229. stroke: #fff;
  230. }
  231. #opener {
  232. position: absolute;
  233. top: 0;
  234. left: 0;
  235. padding: 10px;
  236. stroke: #E2E2E2;
  237. fill: #E2E2E2;
  238. }
  239. #opener:hover {
  240. stroke: #777;
  241. fill: #777;
  242. }