demo-viewer.css 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. /**
  2. * Copyright (C) 2012-2014 KO GmbH <copyright@kogmbh.com>
  3. *
  4. * @licstart
  5. * This file is part of WebODF.
  6. *
  7. * WebODF is free software: you can redistribute it and/or modify it
  8. * under the terms of the GNU Affero General Public License (GNU AGPL)
  9. * as published by the Free Software Foundation, either version 3 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * WebODF is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with WebODF. If not, see <http://www.gnu.org/licenses/>.
  19. * @licend
  20. *
  21. * @source: http://www.webodf.org/
  22. * @source: https://github.com/kogmbh/WebODF/
  23. */
  24. /*
  25. * This file is a derivative from a part of Mozilla's PDF.js project. The
  26. * original license header follows.
  27. */
  28. /* Copyright 2012 Mozilla Foundation
  29. *
  30. * Licensed under the Apache License, Version 2.0 (the "License");
  31. * you may not use this file except in compliance with the License.
  32. * You may obtain a copy of the License at
  33. *
  34. * http://www.apache.org/licenses/LICENSE-2.0
  35. *
  36. * Unless required by applicable law or agreed to in writing, software
  37. * distributed under the License is distributed on an "AS IS" BASIS,
  38. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  39. * See the License for the specific language governing permissions and
  40. * limitations under the License.
  41. */
  42. @namespace cursor url(urn:webodf:names:cursor);
  43. .caret {
  44. opacity: 0 !important;
  45. }
  46. * {
  47. padding: 0;
  48. margin: 0;
  49. }
  50. html > body {
  51. font-family: sans-serif;
  52. overflow: scroll;
  53. }
  54. .titlebar > span,
  55. .toolbarLabel,
  56. input,
  57. button,
  58. select {
  59. font: message-box;
  60. }
  61. #titlebar {
  62. position: absolute;
  63. z-index: 2;
  64. top: 140px;
  65. left: 0px;
  66. height: 64px;
  67. width: 100%;
  68. overflow: hidden;
  69. -webkit-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  70. -moz-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  71. box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  72. background-image: url(images/texture.png), linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  73. background-image: url(images/texture.png), -webkit-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  74. background-image: url(images/texture.png), -moz-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  75. background-image: url(images/texture.png), -ms-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  76. background-image: url(images/texture.png), -o-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  77. }
  78. #titlebar a, #titlebar a:visited {
  79. color: #ccc;
  80. }
  81. #toolbarContainer {
  82. position: absolute;
  83. z-index: 2;
  84. bottom: 0px;
  85. left: 0px;
  86. height: 32px;
  87. width: 100%;
  88. overflow: hidden;
  89. display: none;
  90. -webkit-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  91. -moz-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  92. box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  93. background-image: url(images/texture.png), linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  94. background-image: url(images/texture.png), -webkit-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  95. background-image: url(images/texture.png), -moz-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  96. background-image: url(images/texture.png), -ms-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  97. background-image: url(images/texture.png), -o-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  98. }
  99. #toolbar {
  100. position: relative;
  101. }
  102. #toolbarMiddleContainer, #toolbarLeft {
  103. visibility: hidden;
  104. }
  105. html[dir='ltr'] #toolbarLeft {
  106. margin-left: -1px;
  107. }
  108. html[dir='rtl'] #toolbarRight {
  109. margin-left: -1px;
  110. }
  111. html[dir='ltr'] #toolbarLeft,
  112. html[dir='rtl'] #toolbarRight {
  113. position: absolute;
  114. top: 0;
  115. left: 0;
  116. }
  117. html[dir='ltr'] #toolbarRight,
  118. html[dir='rtl'] #toolbarLeft {
  119. position: absolute;
  120. top: 0;
  121. right: 0;
  122. }
  123. html[dir='ltr'] #toolbarLeft > *,
  124. html[dir='ltr'] #toolbarMiddle > *,
  125. html[dir='ltr'] #toolbarRight > * {
  126. float: left;
  127. }
  128. html[dir='rtl'] #toolbarLeft > *,
  129. html[dir='rtl'] #toolbarMiddle > *,
  130. html[dir='rtl'] #toolbarRight > * {
  131. float: right;
  132. }
  133. /* outer/inner center provides horizontal center */
  134. html[dir='ltr'] .outerCenter {
  135. float: right;
  136. position: relative;
  137. right: 50%;
  138. }
  139. html[dir='rtl'] .outerCenter {
  140. float: left;
  141. position: relative;
  142. left: 50%;
  143. }
  144. html[dir='ltr'] .innerCenter {
  145. float: right;
  146. position: relative;
  147. right: -50%;
  148. }
  149. html[dir='rtl'] .innerCenter {
  150. float: left;
  151. position: relative;
  152. left: -50%;
  153. }
  154. html[dir='ltr'] .splitToolbarButton {
  155. margin: 3px 2px 4px 0;
  156. display: inline-block;
  157. }
  158. html[dir='rtl'] .splitToolbarButton {
  159. margin: 3px 0 4px 2px;
  160. display: inline-block;
  161. }
  162. html[dir='ltr'] .splitToolbarButton > .toolbarButton {
  163. border-radius: 0;
  164. float: left;
  165. }
  166. html[dir='rtl'] .splitToolbarButton > .toolbarButton {
  167. border-radius: 0;
  168. float: right;
  169. }
  170. .splitToolbarButton.toggled .toolbarButton {
  171. margin: 0;
  172. }
  173. .toolbarButton {
  174. border: 0 none;
  175. background-color: rgba(0, 0, 0, 0);
  176. min-width: 32px;
  177. height: 25px;
  178. border-radius: 2px;
  179. background-image: none;
  180. }
  181. html[dir='ltr'] .toolbarButton,
  182. html[dir='ltr'] .dropdownToolbarButton {
  183. margin: 3px 2px 4px 0;
  184. }
  185. html[dir='rtl'] .toolbarButton,
  186. html[dir='rtl'] .dropdownToolbarButton {
  187. margin: 3px 0 4px 2px;
  188. }
  189. .toolbarButton:hover,
  190. .toolbarButton:focus,
  191. .dropdownToolbarButton {
  192. background-color: hsla(0,0%,0%,.12);
  193. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  194. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  195. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  196. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  197. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  198. background-clip: padding-box;
  199. border: 1px solid hsla(0,0%,0%,.35);
  200. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  201. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  202. 0 0 1px hsla(0,0%,100%,.15) inset,
  203. 0 1px 0 hsla(0,0%,100%,.05);
  204. }
  205. .toolbarButton:hover:active,
  206. .dropdownToolbarButton:hover:active {
  207. background-color: hsla(0,0%,0%,.2);
  208. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  209. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  210. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  211. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  212. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  213. border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
  214. box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
  215. 0 0 1px hsla(0,0%,0%,.2) inset,
  216. 0 1px 0 hsla(0,0%,100%,.05);
  217. }
  218. .splitToolbarButton:hover > .toolbarButton,
  219. .splitToolbarButton:focus > .toolbarButton,
  220. .splitToolbarButton.toggled > .toolbarButton,
  221. .toolbarButton.textButton {
  222. background-color: hsla(0,0%,0%,.12);
  223. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  224. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  225. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  226. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  227. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  228. background-clip: padding-box;
  229. border: 1px solid hsla(0,0%,0%,.35);
  230. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  231. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  232. 0 0 1px hsla(0,0%,100%,.15) inset,
  233. 0 1px 0 hsla(0,0%,100%,.05);
  234. -webkit-transition-property: background-color, border-color, box-shadow;
  235. -webkit-transition-duration: 150ms;
  236. -webkit-transition-timing-function: ease;
  237. -moz-transition-property: background-color, border-color, box-shadow;
  238. -moz-transition-duration: 150ms;
  239. -moz-transition-timing-function: ease;
  240. -ms-transition-property: background-color, border-color, box-shadow;
  241. -ms-transition-duration: 150ms;
  242. -ms-transition-timing-function: ease;
  243. -o-transition-property: background-color, border-color, box-shadow;
  244. -o-transition-duration: 150ms;
  245. -o-transition-timing-function: ease;
  246. transition-property: background-color, border-color, box-shadow;
  247. transition-duration: 150ms;
  248. transition-timing-function: ease;
  249. }
  250. .splitToolbarButton > .toolbarButton:hover,
  251. .splitToolbarButton > .toolbarButton:focus,
  252. .dropdownToolbarButton:hover,
  253. .toolbarButton.textButton:hover,
  254. .toolbarButton.textButton:focus {
  255. background-color: hsla(0,0%,0%,.2);
  256. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  257. 0 0 1px hsla(0,0%,100%,.15) inset,
  258. 0 0 1px hsla(0,0%,0%,.05);
  259. z-index: 199;
  260. }
  261. .splitToolbarButton:hover > .toolbarButton,
  262. .splitToolbarButton:focus > .toolbarButton,
  263. .splitToolbarButton.toggled > .toolbarButton,
  264. .toolbarButton.textButton {
  265. background-color: hsla(0,0%,0%,.12);
  266. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  267. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  268. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  269. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  270. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  271. background-clip: padding-box;
  272. border: 1px solid hsla(0,0%,0%,.35);
  273. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  274. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  275. 0 0 1px hsla(0,0%,100%,.15) inset,
  276. 0 1px 0 hsla(0,0%,100%,.05);
  277. -webkit-transition-property: background-color, border-color, box-shadow;
  278. -webkit-transition-duration: 150ms;
  279. -webkit-transition-timing-function: ease;
  280. -moz-transition-property: background-color, border-color, box-shadow;
  281. -moz-transition-duration: 150ms;
  282. -moz-transition-timing-function: ease;
  283. -ms-transition-property: background-color, border-color, box-shadow;
  284. -ms-transition-duration: 150ms;
  285. -ms-transition-timing-function: ease;
  286. -o-transition-property: background-color, border-color, box-shadow;
  287. -o-transition-duration: 150ms;
  288. -o-transition-timing-function: ease;
  289. transition-property: background-color, border-color, box-shadow;
  290. transition-duration: 150ms;
  291. transition-timing-function: ease;
  292. }
  293. .splitToolbarButton > .toolbarButton:hover,
  294. .splitToolbarButton > .toolbarButton:focus,
  295. .dropdownToolbarButton:hover,
  296. .toolbarButton.textButton:hover,
  297. .toolbarButton.textButton:focus {
  298. background-color: hsla(0,0%,0%,.2);
  299. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  300. 0 0 1px hsla(0,0%,100%,.15) inset,
  301. 0 0 1px hsla(0,0%,0%,.05);
  302. z-index: 199;
  303. }
  304. .dropdownToolbarButton {
  305. border: 1px solid #333 !important;
  306. }
  307. .toolbarButton,
  308. .dropdownToolbarButton {
  309. min-width: 16px;
  310. padding: 2px 6px 2px;
  311. border: 1px solid transparent;
  312. border-radius: 2px;
  313. color: hsl(0,0%,95%);
  314. font-size: 12px;
  315. line-height: 14px;
  316. -webkit-user-select:none;
  317. -moz-user-select:none;
  318. -ms-user-select:none;
  319. /* Opera does not support user-select, use <... unselectable="on"> instead */
  320. cursor: default;
  321. -webkit-transition-property: background-color, border-color, box-shadow;
  322. -webkit-transition-duration: 150ms;
  323. -webkit-transition-timing-function: ease;
  324. -moz-transition-property: background-color, border-color, box-shadow;
  325. -moz-transition-duration: 150ms;
  326. -moz-transition-timing-function: ease;
  327. -ms-transition-property: background-color, border-color, box-shadow;
  328. -ms-transition-duration: 150ms;
  329. -ms-transition-timing-function: ease;
  330. -o-transition-property: background-color, border-color, box-shadow;
  331. -o-transition-duration: 150ms;
  332. -o-transition-timing-function: ease;
  333. transition-property: background-color, border-color, box-shadow;
  334. transition-duration: 150ms;
  335. transition-timing-function: ease;
  336. }
  337. html[dir='ltr'] .toolbarButton,
  338. html[dir='ltr'] .dropdownToolbarButton {
  339. margin: 3px 2px 4px 0;
  340. }
  341. html[dir='rtl'] .toolbarButton,
  342. html[dir='rtl'] .dropdownToolbarButton {
  343. margin: 3px 0 4px 2px;
  344. }
  345. .splitToolbarButton:hover > .splitToolbarButtonSeparator,
  346. .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
  347. padding: 12px 0;
  348. margin: 0;
  349. box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
  350. -webkit-transition-property: padding;
  351. -webkit-transition-duration: 10ms;
  352. -webkit-transition-timing-function: ease;
  353. -moz-transition-property: padding;
  354. -moz-transition-duration: 10ms;
  355. -moz-transition-timing-function: ease;
  356. -ms-transition-property: padding;
  357. -ms-transition-duration: 10ms;
  358. -ms-transition-timing-function: ease;
  359. -o-transition-property: padding;
  360. -o-transition-duration: 10ms;
  361. -o-transition-timing-function: ease;
  362. transition-property: padding;
  363. transition-duration: 10ms;
  364. transition-timing-function: ease;
  365. }
  366. .toolbarButton.toggled:hover:active,
  367. .splitToolbarButton > .toolbarButton:hover:active {
  368. background-color: hsla(0,0%,0%,.4);
  369. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
  370. box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
  371. 0 0 1px hsla(0,0%,0%,.3) inset,
  372. 0 1px 0 hsla(0,0%,100%,.05);
  373. }
  374. html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
  375. html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
  376. position: relative;
  377. margin: 0;
  378. margin-left: 4px;
  379. margin-right: -1px;
  380. border-top-left-radius: 2px;
  381. border-bottom-left-radius: 2px;
  382. border-right-color: transparent;
  383. }
  384. html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
  385. html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
  386. position: relative;
  387. margin: 0;
  388. margin-left: -1px;
  389. border-top-right-radius: 2px;
  390. border-bottom-right-radius: 2px;
  391. border-left-color: transparent;
  392. }
  393. .splitToolbarButtonSeparator {
  394. padding: 8px 0;
  395. width: 1px;
  396. background-color: hsla(0,0%,00%,.5);
  397. z-index: 99;
  398. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  399. display: inline-block;
  400. margin: 5px 0;
  401. }
  402. html[dir='ltr'] .splitToolbarButtonSeparator {
  403. float:left;
  404. }
  405. html[dir='rtl'] .splitToolbarButtonSeparator {
  406. float:right;
  407. }
  408. .dropdownToolbarButton {
  409. min-width: 120px;
  410. max-width: 120px;
  411. padding: 4px 2px 4px;
  412. overflow: hidden;
  413. background: url(images/toolbarButton-menuArrows.png) no-repeat;
  414. }
  415. .dropdownToolbarButton > select {
  416. -webkit-appearance: none;
  417. -moz-appearance: none; /* in the future this might matter, see bugzilla bug #649849 */
  418. min-width: 140px;
  419. font-size: 12px;
  420. color: hsl(0,0%,95%);
  421. margin:0;
  422. padding:0;
  423. border:none;
  424. background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
  425. }
  426. .dropdownToolbarButton > select > option {
  427. background: hsl(0,0%,24%);
  428. }
  429. #pageWidthOption {
  430. border-bottom: 1px rgba(255, 255, 255, .5) solid;
  431. }
  432. html[dir='ltr'] .dropdownToolbarButton {
  433. background-position: 95%;
  434. }
  435. html[dir='rtl'] .dropdownToolbarButton {
  436. background-position: 5%;
  437. }
  438. .toolbarButton.fullscreen::before {
  439. display: inline-block;
  440. content: url(images/toolbarButton-fullscreen.png);
  441. }
  442. .toolbarButton.presentation::before {
  443. display: inline-block;
  444. content: url(images/toolbarButton-presentation.png);
  445. }
  446. .toolbarButton.download::before {
  447. display: inline-block;
  448. content: url(images/toolbarButton-download.png);
  449. }
  450. .toolbarButton.about {
  451. color: #F2F2F2;
  452. font-size: 14px;
  453. font-weight: bold;
  454. line-height: 14px;
  455. font-family: sans-serif;
  456. }
  457. .toolbarButton.about::before {
  458. display: inline-block;
  459. }
  460. .toolbarButton.zoomOut::before {
  461. display: inline-block;
  462. content: url(images/toolbarButton-zoomOut.png);
  463. }
  464. .toolbarButton.zoomIn::before {
  465. display: inline-block;
  466. content: url(images/toolbarButton-zoomIn.png);
  467. }
  468. .toolbarButton.pageUp::before {
  469. display: inline-block;
  470. content: url(images/toolbarButton-pageUp.png);
  471. }
  472. .toolbarButton.pageDown::before {
  473. display: inline-block;
  474. content: url(images/toolbarButton-pageDown.png);
  475. }
  476. .toolbarField.pageNumber {
  477. min-width: 16px;
  478. text-align: right;
  479. width: 40px;
  480. }
  481. .toolbarField {
  482. padding: 3px 6px;
  483. margin: 4px 0 4px 0;
  484. border: 1px solid transparent;
  485. border-radius: 2px;
  486. background-color: hsla(0,0%,100%,.09);
  487. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  488. background-clip: padding-box;
  489. border: 1px solid hsla(0,0%,0%,.35);
  490. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  491. box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
  492. 0 1px 0 hsla(0,0%,100%,.05);
  493. color: hsl(0,0%,95%);
  494. font-size: 12px;
  495. line-height: 14px;
  496. outline-style: none;
  497. -moz-transition-property: background-color, border-color, box-shadow;
  498. -moz-transition-duration: 150ms;
  499. -moz-transition-timing-function: ease;
  500. }
  501. .toolbarField.pageNumber::-webkit-inner-spin-button,
  502. .toolbarField.pageNumber::-webkit-outer-spin-button {
  503. -webkit-appearance: none;
  504. margin: 0;
  505. }
  506. .toolbarField:hover {
  507. background-color: hsla(0,0%,100%,.11);
  508. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
  509. }
  510. .toolbarField:focus {
  511. background-color: hsla(0,0%,100%,.15);
  512. border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
  513. }
  514. .toolbarLabel {
  515. min-width: 16px;
  516. padding: 3px 6px 3px 2px;
  517. margin: 4px 2px 4px 0;
  518. border: 1px solid transparent;
  519. border-radius: 2px;
  520. color: hsl(0,0%,85%);
  521. font-size: 12px;
  522. line-height: 14px;
  523. text-align: left;
  524. -webkit-user-select:none;
  525. -moz-user-select:none;
  526. cursor: default;
  527. }
  528. #canvasContainer {
  529. overflow: auto;
  530. padding-top: 1px;
  531. padding-bottom: 6px;
  532. position: relative;
  533. top: 32px;
  534. right: 0;
  535. bottom: 0px;
  536. left: 0;
  537. text-align: center;
  538. background-color: #888;
  539. background-image: url(images/texture.png);
  540. }
  541. .presentationMode {
  542. top: 0 !important;
  543. bottom: 0 !important;
  544. background-color: black !important;
  545. cursor: default !important;
  546. }
  547. #canvas {
  548. box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  549. -webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  550. -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  551. -ms-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  552. -o-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  553. /*
  554. * Hide the canvas overflow because otherwise the CSS-scaled 'sizer' child
  555. * of the canvas will still advertise the original size in Firefox, causing
  556. * strange scrollbar behavior.
  557. */
  558. overflow: hidden;
  559. }
  560. #sliderContainer {
  561. visibility: hidden;
  562. }
  563. #overlayNavigator {
  564. position: absolute;
  565. width: 100%;
  566. height: 0;
  567. top: calc(50% - 50px);
  568. background-color: rgba(0, 0, 0, 0);
  569. z-index: 3;
  570. opacity: 0;
  571. -webkit-transition: opacity 1s ease-out;
  572. -moz-transition: opacity 1s ease-out;
  573. transition: opacity 1s ease-out;
  574. }
  575. #previousPage {
  576. float: left;
  577. margin-left: 10px;
  578. /* CSS triangle */
  579. border-top: 50px solid transparent;
  580. border-bottom: 50px solid transparent;
  581. border-right: 50px solid black;
  582. opacity: 0.5;
  583. }
  584. #nextPage {
  585. float: right;
  586. margin-right: 10px;
  587. /* CSS triangle */
  588. border-top: 50px solid transparent;
  589. border-bottom: 50px solid transparent;
  590. border-left: 50px solid black;
  591. opacity: 0.5;
  592. }
  593. #previousPage:active {
  594. opacity: 0.8;
  595. }
  596. #nextPage:active {
  597. opacity: 0.8;
  598. }
  599. #overlayCloseButton {
  600. position: absolute;
  601. top: 10px;
  602. right: 10px;
  603. z-index: 3;
  604. font-size: 35px;
  605. color: white;
  606. background-color: black;
  607. opacity: 0.5;
  608. width: 40px;
  609. height: 40px;
  610. -webkit-border-radius: 20px;
  611. -moz-border-radius: 20px;
  612. border-radius: 20px;
  613. text-align: center;
  614. cursor: pointer;
  615. display: none;
  616. }
  617. #overlayCloseButton:active {
  618. background-color: red;
  619. }
  620. @media only screen and (max-device-width: 800px) and (max-device-height: 800px) {
  621. #canvasContainer {
  622. top: 0;
  623. bottom: 0;
  624. }
  625. #overlayNavigator {
  626. height: 100px;
  627. pointer-events: none;
  628. }
  629. #nextPage, #previousPage {
  630. pointer-events: all;
  631. }
  632. #titlebar, #toolbarContainer {
  633. background-color: rgba(0, 0, 0, 0.6);
  634. background-image: none;
  635. -webkit-transition: all 0.5s;
  636. -moz-transition: all 0.5s;
  637. transition: all 0.5s;
  638. }
  639. #titlebar {
  640. top: -32px;
  641. }
  642. #titlebar.viewer-touched {
  643. top: 0px;
  644. }
  645. #toolbarContainer {
  646. bottom: -32px;
  647. }
  648. #toolbarContainer.viewer-touched {
  649. bottom: 0px;
  650. }
  651. .viewer-touched {
  652. display: block;
  653. opacity: 1 !important;
  654. }
  655. #next, #previous {
  656. display: none;
  657. }
  658. }