viewer.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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. * {
  43. padding: 0;
  44. margin: 0;
  45. }
  46. html > body {
  47. font-family: sans-serif;
  48. overflow: hidden;
  49. }
  50. .titlebar > span,
  51. .toolbarLabel,
  52. input,
  53. button,
  54. select {
  55. font: message-box;
  56. }
  57. #titlebar {
  58. position: absolute;
  59. z-index: 2;
  60. top: 0px;
  61. left: 0px;
  62. height: 32px;
  63. width: 100%;
  64. overflow: hidden;
  65. -webkit-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  66. -moz-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  67. box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
  68. background-image: url(images/texture.png), linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  69. background-image: url(images/texture.png), -webkit-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  70. background-image: url(images/texture.png), -moz-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  71. background-image: url(images/texture.png), -ms-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  72. background-image: url(images/texture.png), -o-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
  73. }
  74. #titlebar a, #aboutDialog a, #titlebar a:visited, #aboutDialog a:visited {
  75. color: #ccc;
  76. }
  77. #documentName {
  78. margin-right: 10px;
  79. margin-left: 10px;
  80. margin-top: 8px;
  81. color: #F2F2F2;
  82. line-height: 14px;
  83. font-family: sans-serif;
  84. }
  85. #documentName {
  86. font-size: 14px;
  87. }
  88. #toolbarContainer {
  89. position: absolute;
  90. z-index: 2;
  91. bottom: 0px;
  92. left: 0px;
  93. height: 32px;
  94. width: 100%;
  95. overflow: hidden;
  96. -webkit-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  97. -moz-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  98. box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
  99. background-image: url(images/texture.png), linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  100. background-image: url(images/texture.png), -webkit-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  101. background-image: url(images/texture.png), -moz-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  102. background-image: url(images/texture.png), -ms-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  103. background-image: url(images/texture.png), -o-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
  104. }
  105. #toolbar {
  106. position: relative;
  107. }
  108. #toolbarMiddleContainer, #toolbarLeft {
  109. visibility: hidden;
  110. }
  111. html[dir='ltr'] #toolbarLeft {
  112. margin-left: -1px;
  113. }
  114. html[dir='rtl'] #toolbarRight {
  115. margin-left: -1px;
  116. }
  117. html[dir='ltr'] #toolbarLeft,
  118. html[dir='rtl'] #toolbarRight {
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. }
  123. html[dir='ltr'] #toolbarRight,
  124. html[dir='rtl'] #toolbarLeft {
  125. position: absolute;
  126. top: 0;
  127. right: 0;
  128. }
  129. html[dir='ltr'] #toolbarLeft > *,
  130. html[dir='ltr'] #toolbarMiddle > *,
  131. html[dir='ltr'] #toolbarRight > * {
  132. float: left;
  133. }
  134. html[dir='rtl'] #toolbarLeft > *,
  135. html[dir='rtl'] #toolbarMiddle > *,
  136. html[dir='rtl'] #toolbarRight > * {
  137. float: right;
  138. }
  139. /* outer/inner center provides horizontal center */
  140. html[dir='ltr'] .outerCenter {
  141. float: right;
  142. position: relative;
  143. right: 50%;
  144. }
  145. html[dir='rtl'] .outerCenter {
  146. float: left;
  147. position: relative;
  148. left: 50%;
  149. }
  150. html[dir='ltr'] .innerCenter {
  151. float: right;
  152. position: relative;
  153. right: -50%;
  154. }
  155. html[dir='rtl'] .innerCenter {
  156. float: left;
  157. position: relative;
  158. left: -50%;
  159. }
  160. html[dir='ltr'] .splitToolbarButton {
  161. margin: 3px 2px 4px 0;
  162. display: inline-block;
  163. }
  164. html[dir='rtl'] .splitToolbarButton {
  165. margin: 3px 0 4px 2px;
  166. display: inline-block;
  167. }
  168. html[dir='ltr'] .splitToolbarButton > .toolbarButton {
  169. border-radius: 0;
  170. float: left;
  171. }
  172. html[dir='rtl'] .splitToolbarButton > .toolbarButton {
  173. border-radius: 0;
  174. float: right;
  175. }
  176. .splitToolbarButton.toggled .toolbarButton {
  177. margin: 0;
  178. }
  179. .toolbarButton {
  180. border: 0 none;
  181. background-color: rgba(0, 0, 0, 0);
  182. min-width: 32px;
  183. height: 25px;
  184. border-radius: 2px;
  185. background-image: none;
  186. }
  187. html[dir='ltr'] .toolbarButton,
  188. html[dir='ltr'] .dropdownToolbarButton {
  189. margin: 3px 2px 4px 0;
  190. }
  191. html[dir='rtl'] .toolbarButton,
  192. html[dir='rtl'] .dropdownToolbarButton {
  193. margin: 3px 0 4px 2px;
  194. }
  195. .toolbarButton:hover,
  196. .toolbarButton:focus,
  197. .dropdownToolbarButton {
  198. background-color: hsla(0,0%,0%,.12);
  199. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  200. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  201. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  202. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  203. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  204. background-clip: padding-box;
  205. border: 1px solid hsla(0,0%,0%,.35);
  206. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  207. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  208. 0 0 1px hsla(0,0%,100%,.15) inset,
  209. 0 1px 0 hsla(0,0%,100%,.05);
  210. }
  211. .toolbarButton:hover:active,
  212. .dropdownToolbarButton:hover:active {
  213. background-color: hsla(0,0%,0%,.2);
  214. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  215. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  216. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  217. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  218. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  219. border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
  220. box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
  221. 0 0 1px hsla(0,0%,0%,.2) inset,
  222. 0 1px 0 hsla(0,0%,100%,.05);
  223. }
  224. .splitToolbarButton:hover > .toolbarButton,
  225. .splitToolbarButton:focus > .toolbarButton,
  226. .splitToolbarButton.toggled > .toolbarButton,
  227. .toolbarButton.textButton {
  228. background-color: hsla(0,0%,0%,.12);
  229. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  230. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  231. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  232. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  233. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  234. background-clip: padding-box;
  235. border: 1px solid hsla(0,0%,0%,.35);
  236. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  237. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  238. 0 0 1px hsla(0,0%,100%,.15) inset,
  239. 0 1px 0 hsla(0,0%,100%,.05);
  240. -webkit-transition-property: background-color, border-color, box-shadow;
  241. -webkit-transition-duration: 150ms;
  242. -webkit-transition-timing-function: ease;
  243. -moz-transition-property: background-color, border-color, box-shadow;
  244. -moz-transition-duration: 150ms;
  245. -moz-transition-timing-function: ease;
  246. -ms-transition-property: background-color, border-color, box-shadow;
  247. -ms-transition-duration: 150ms;
  248. -ms-transition-timing-function: ease;
  249. -o-transition-property: background-color, border-color, box-shadow;
  250. -o-transition-duration: 150ms;
  251. -o-transition-timing-function: ease;
  252. transition-property: background-color, border-color, box-shadow;
  253. transition-duration: 150ms;
  254. transition-timing-function: ease;
  255. }
  256. .splitToolbarButton > .toolbarButton:hover,
  257. .splitToolbarButton > .toolbarButton:focus,
  258. .dropdownToolbarButton:hover,
  259. .toolbarButton.textButton:hover,
  260. .toolbarButton.textButton:focus {
  261. background-color: hsla(0,0%,0%,.2);
  262. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  263. 0 0 1px hsla(0,0%,100%,.15) inset,
  264. 0 0 1px hsla(0,0%,0%,.05);
  265. z-index: 199;
  266. }
  267. .splitToolbarButton:hover > .toolbarButton,
  268. .splitToolbarButton:focus > .toolbarButton,
  269. .splitToolbarButton.toggled > .toolbarButton,
  270. .toolbarButton.textButton {
  271. background-color: hsla(0,0%,0%,.12);
  272. background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  273. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  274. background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  275. background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  276. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  277. background-clip: padding-box;
  278. border: 1px solid hsla(0,0%,0%,.35);
  279. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  280. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  281. 0 0 1px hsla(0,0%,100%,.15) inset,
  282. 0 1px 0 hsla(0,0%,100%,.05);
  283. -webkit-transition-property: background-color, border-color, box-shadow;
  284. -webkit-transition-duration: 150ms;
  285. -webkit-transition-timing-function: ease;
  286. -moz-transition-property: background-color, border-color, box-shadow;
  287. -moz-transition-duration: 150ms;
  288. -moz-transition-timing-function: ease;
  289. -ms-transition-property: background-color, border-color, box-shadow;
  290. -ms-transition-duration: 150ms;
  291. -ms-transition-timing-function: ease;
  292. -o-transition-property: background-color, border-color, box-shadow;
  293. -o-transition-duration: 150ms;
  294. -o-transition-timing-function: ease;
  295. transition-property: background-color, border-color, box-shadow;
  296. transition-duration: 150ms;
  297. transition-timing-function: ease;
  298. }
  299. .splitToolbarButton > .toolbarButton:hover,
  300. .splitToolbarButton > .toolbarButton:focus,
  301. .dropdownToolbarButton:hover,
  302. .toolbarButton.textButton:hover,
  303. .toolbarButton.textButton:focus {
  304. background-color: hsla(0,0%,0%,.2);
  305. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  306. 0 0 1px hsla(0,0%,100%,.15) inset,
  307. 0 0 1px hsla(0,0%,0%,.05);
  308. z-index: 199;
  309. }
  310. .dropdownToolbarButton {
  311. border: 1px solid #333 !important;
  312. }
  313. .toolbarButton,
  314. .dropdownToolbarButton {
  315. min-width: 16px;
  316. padding: 2px 6px 2px;
  317. border: 1px solid transparent;
  318. border-radius: 2px;
  319. color: hsl(0,0%,95%);
  320. font-size: 12px;
  321. line-height: 14px;
  322. -webkit-user-select:none;
  323. -moz-user-select:none;
  324. -ms-user-select:none;
  325. /* Opera does not support user-select, use <... unselectable="on"> instead */
  326. cursor: default;
  327. -webkit-transition-property: background-color, border-color, box-shadow;
  328. -webkit-transition-duration: 150ms;
  329. -webkit-transition-timing-function: ease;
  330. -moz-transition-property: background-color, border-color, box-shadow;
  331. -moz-transition-duration: 150ms;
  332. -moz-transition-timing-function: ease;
  333. -ms-transition-property: background-color, border-color, box-shadow;
  334. -ms-transition-duration: 150ms;
  335. -ms-transition-timing-function: ease;
  336. -o-transition-property: background-color, border-color, box-shadow;
  337. -o-transition-duration: 150ms;
  338. -o-transition-timing-function: ease;
  339. transition-property: background-color, border-color, box-shadow;
  340. transition-duration: 150ms;
  341. transition-timing-function: ease;
  342. }
  343. html[dir='ltr'] .toolbarButton,
  344. html[dir='ltr'] .dropdownToolbarButton {
  345. margin: 3px 2px 4px 0;
  346. }
  347. html[dir='rtl'] .toolbarButton,
  348. html[dir='rtl'] .dropdownToolbarButton {
  349. margin: 3px 0 4px 2px;
  350. }
  351. .splitToolbarButton:hover > .splitToolbarButtonSeparator,
  352. .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
  353. padding: 12px 0;
  354. margin: 0;
  355. box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
  356. -webkit-transition-property: padding;
  357. -webkit-transition-duration: 10ms;
  358. -webkit-transition-timing-function: ease;
  359. -moz-transition-property: padding;
  360. -moz-transition-duration: 10ms;
  361. -moz-transition-timing-function: ease;
  362. -ms-transition-property: padding;
  363. -ms-transition-duration: 10ms;
  364. -ms-transition-timing-function: ease;
  365. -o-transition-property: padding;
  366. -o-transition-duration: 10ms;
  367. -o-transition-timing-function: ease;
  368. transition-property: padding;
  369. transition-duration: 10ms;
  370. transition-timing-function: ease;
  371. }
  372. .toolbarButton.toggled:hover:active,
  373. .splitToolbarButton > .toolbarButton:hover:active {
  374. background-color: hsla(0,0%,0%,.4);
  375. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
  376. box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
  377. 0 0 1px hsla(0,0%,0%,.3) inset,
  378. 0 1px 0 hsla(0,0%,100%,.05);
  379. }
  380. html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
  381. html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
  382. position: relative;
  383. margin: 0;
  384. margin-left: 4px;
  385. margin-right: -1px;
  386. border-top-left-radius: 2px;
  387. border-bottom-left-radius: 2px;
  388. border-right-color: transparent;
  389. }
  390. html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
  391. html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
  392. position: relative;
  393. margin: 0;
  394. margin-left: -1px;
  395. border-top-right-radius: 2px;
  396. border-bottom-right-radius: 2px;
  397. border-left-color: transparent;
  398. }
  399. .splitToolbarButtonSeparator {
  400. padding: 8px 0;
  401. width: 1px;
  402. background-color: hsla(0,0%,00%,.5);
  403. z-index: 99;
  404. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  405. display: inline-block;
  406. margin: 5px 0;
  407. }
  408. html[dir='ltr'] .splitToolbarButtonSeparator {
  409. float:left;
  410. }
  411. html[dir='rtl'] .splitToolbarButtonSeparator {
  412. float:right;
  413. }
  414. .dropdownToolbarButton {
  415. min-width: 120px;
  416. max-width: 120px;
  417. padding: 4px 2px 4px;
  418. overflow: hidden;
  419. background: url(images/toolbarButton-menuArrows.png) no-repeat;
  420. }
  421. .dropdownToolbarButton > select {
  422. -webkit-appearance: none;
  423. -moz-appearance: none; /* in the future this might matter, see bugzilla bug #649849 */
  424. min-width: 140px;
  425. font-size: 12px;
  426. color: hsl(0,0%,95%);
  427. margin:0;
  428. padding:0;
  429. border:none;
  430. background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
  431. }
  432. .dropdownToolbarButton > select > option {
  433. background: hsl(0,0%,24%);
  434. }
  435. #pageWidthOption {
  436. border-bottom: 1px rgba(255, 255, 255, .5) solid;
  437. }
  438. html[dir='ltr'] .dropdownToolbarButton {
  439. background-position: 95%;
  440. }
  441. html[dir='rtl'] .dropdownToolbarButton {
  442. background-position: 5%;
  443. }
  444. .toolbarButton.fullscreen::before {
  445. display: inline-block;
  446. content: url(images/toolbarButton-fullscreen.png);
  447. }
  448. .toolbarButton.presentation::before {
  449. display: inline-block;
  450. content: url(images/toolbarButton-presentation.png);
  451. }
  452. .toolbarButton.download::before {
  453. display: inline-block;
  454. content: url(images/toolbarButton-download.png);
  455. }
  456. .toolbarButton.about {
  457. color: #F2F2F2;
  458. font-size: 14px;
  459. font-weight: bold;
  460. line-height: 14px;
  461. font-family: sans-serif;
  462. }
  463. .toolbarButton.about::before {
  464. display: inline-block;
  465. }
  466. .toolbarButton.zoomOut::before {
  467. display: inline-block;
  468. content: url(images/toolbarButton-zoomOut.png);
  469. }
  470. .toolbarButton.zoomIn::before {
  471. display: inline-block;
  472. content: url(images/toolbarButton-zoomIn.png);
  473. }
  474. .toolbarButton.pageUp::before {
  475. display: inline-block;
  476. content: url(images/toolbarButton-pageUp.png);
  477. }
  478. .toolbarButton.pageDown::before {
  479. display: inline-block;
  480. content: url(images/toolbarButton-pageDown.png);
  481. }
  482. .toolbarField.pageNumber {
  483. min-width: 16px;
  484. text-align: right;
  485. width: 40px;
  486. }
  487. .toolbarField {
  488. padding: 3px 6px;
  489. margin: 4px 0 4px 0;
  490. border: 1px solid transparent;
  491. border-radius: 2px;
  492. background-color: hsla(0,0%,100%,.09);
  493. background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  494. background-clip: padding-box;
  495. border: 1px solid hsla(0,0%,0%,.35);
  496. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  497. box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
  498. 0 1px 0 hsla(0,0%,100%,.05);
  499. color: hsl(0,0%,95%);
  500. font-size: 12px;
  501. line-height: 14px;
  502. outline-style: none;
  503. -moz-transition-property: background-color, border-color, box-shadow;
  504. -moz-transition-duration: 150ms;
  505. -moz-transition-timing-function: ease;
  506. }
  507. .toolbarField.pageNumber::-webkit-inner-spin-button,
  508. .toolbarField.pageNumber::-webkit-outer-spin-button {
  509. -webkit-appearance: none;
  510. margin: 0;
  511. }
  512. .toolbarField:hover {
  513. background-color: hsla(0,0%,100%,.11);
  514. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
  515. }
  516. .toolbarField:focus {
  517. background-color: hsla(0,0%,100%,.15);
  518. border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
  519. }
  520. .toolbarLabel {
  521. min-width: 16px;
  522. padding: 3px 6px 3px 2px;
  523. margin: 4px 2px 4px 0;
  524. border: 1px solid transparent;
  525. border-radius: 2px;
  526. color: hsl(0,0%,85%);
  527. font-size: 12px;
  528. line-height: 14px;
  529. text-align: left;
  530. -webkit-user-select:none;
  531. -moz-user-select:none;
  532. cursor: default;
  533. }
  534. #canvasContainer {
  535. overflow: auto;
  536. padding-top: 6px;
  537. padding-bottom: 6px;
  538. position: absolute;
  539. top: 32px;
  540. right: 0;
  541. bottom: 32px;
  542. left: 0;
  543. text-align: center;
  544. background-color: #888;
  545. background-image: url(images/texture.png);
  546. }
  547. #canvasContainer.slideshow {
  548. padding: 0;
  549. overflow: hidden;
  550. }
  551. #canvasContainer.slideshow > * {
  552. margin: auto;
  553. position: absolute;
  554. top: 0;
  555. left: 0;
  556. right: 0;
  557. bottom: 0;
  558. }
  559. .presentationMode {
  560. top: 0 !important;
  561. bottom: 0 !important;
  562. background-color: black !important;
  563. cursor: default !important;
  564. }
  565. #canvas {
  566. box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  567. -webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  568. -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  569. -ms-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  570. -o-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
  571. /*
  572. * Hide the canvas overflow because otherwise the CSS-scaled 'sizer' child
  573. * of the canvas will still advertise the original size in Firefox, causing
  574. * strange scrollbar behavior.
  575. */
  576. overflow: hidden;
  577. }
  578. #sliderContainer {
  579. visibility: hidden;
  580. }
  581. #overlayNavigator {
  582. position: absolute;
  583. width: 100%;
  584. height: 0;
  585. top: calc(50% - 50px);
  586. background-color: rgba(0, 0, 0, 0);
  587. z-index: 3;
  588. opacity: 0;
  589. -webkit-transition: opacity 1s ease-out;
  590. -moz-transition: opacity 1s ease-out;
  591. transition: opacity 1s ease-out;
  592. }
  593. #previousPage {
  594. float: left;
  595. margin-left: 10px;
  596. /* CSS triangle */
  597. border-top: 50px solid transparent;
  598. border-bottom: 50px solid transparent;
  599. border-right: 50px solid black;
  600. opacity: 0.5;
  601. }
  602. #nextPage {
  603. float: right;
  604. margin-right: 10px;
  605. /* CSS triangle */
  606. border-top: 50px solid transparent;
  607. border-bottom: 50px solid transparent;
  608. border-left: 50px solid black;
  609. opacity: 0.5;
  610. }
  611. #previousPage:active {
  612. opacity: 0.8;
  613. }
  614. #nextPage:active {
  615. opacity: 0.8;
  616. }
  617. #overlayCloseButton {
  618. position: absolute;
  619. top: 10px;
  620. right: 10px;
  621. z-index: 3;
  622. font-size: 35px;
  623. color: white;
  624. background-color: black;
  625. opacity: 0.5;
  626. width: 40px;
  627. height: 40px;
  628. -webkit-border-radius: 20px;
  629. -moz-border-radius: 20px;
  630. border-radius: 20px;
  631. text-align: center;
  632. cursor: pointer;
  633. display: none;
  634. }
  635. #overlayCloseButton:active {
  636. background-color: red;
  637. }
  638. #aboutDialogCentererTable {
  639. display: table;
  640. width:100%;
  641. height:100%;
  642. }
  643. #aboutDialogCentererCell {
  644. vertical-align: middle;
  645. text-align:center;
  646. display: table-cell;
  647. }
  648. #aboutDialog {
  649. width: 280px;
  650. background-color: #666;
  651. color: white;
  652. text-align: center;
  653. border-radius: 2px;
  654. box-shadow: 0px 1px 6px black;
  655. padding: 5px;
  656. font-style: sans-serif;
  657. display: inline-block;
  658. }
  659. #aboutDialog h1 {
  660. font-size: 25pt;
  661. }
  662. #aboutDialog p {
  663. font-size: 10pt;
  664. }
  665. #aboutDialog > * {
  666. margin: 10px;
  667. }
  668. #dialogOverlay {
  669. position: absolute;
  670. left: 0px;
  671. top: 0px;
  672. width:100%;
  673. height:100%;
  674. z-index: 3;
  675. background-color: rgba(0,0,0,.5);
  676. overflow: auto;
  677. display: none;
  678. }
  679. @media only screen and (max-device-width: 800px) and (max-device-height: 800px) {
  680. #canvasContainer {
  681. top: 0;
  682. bottom: 0;
  683. }
  684. #overlayNavigator {
  685. height: 100px;
  686. pointer-events: none;
  687. }
  688. #nextPage, #previousPage {
  689. pointer-events: all;
  690. }
  691. #titlebar, #toolbarContainer {
  692. background-color: rgba(0, 0, 0, 0.6);
  693. background-image: none;
  694. -webkit-transition: all 0.5s;
  695. -moz-transition: all 0.5s;
  696. transition: all 0.5s;
  697. }
  698. #titlebar {
  699. top: -32px;
  700. }
  701. #titlebar.viewer-touched {
  702. top: 0px;
  703. }
  704. #toolbarContainer {
  705. bottom: -32px;
  706. }
  707. #toolbarContainer.viewer-touched {
  708. bottom: 0px;
  709. }
  710. .viewer-touched {
  711. display: block;
  712. opacity: 1 !important;
  713. }
  714. #next, #previous {
  715. display: none;
  716. }
  717. }