viewer.css 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999
  1. /* Copyright 2014 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. .textLayer {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. overflow: hidden;
  22. opacity: 0.2;
  23. }
  24. .textLayer > div {
  25. color: transparent;
  26. position: absolute;
  27. white-space: pre;
  28. cursor: text;
  29. -webkit-transform-origin: 0% 0%;
  30. -moz-transform-origin: 0% 0%;
  31. -o-transform-origin: 0% 0%;
  32. -ms-transform-origin: 0% 0%;
  33. transform-origin: 0% 0%;
  34. }
  35. .textLayer .highlight {
  36. margin: -1px;
  37. padding: 1px;
  38. background-color: rgb(180, 0, 170);
  39. border-radius: 4px;
  40. }
  41. .textLayer .highlight.begin {
  42. border-radius: 4px 0px 0px 4px;
  43. }
  44. .textLayer .highlight.end {
  45. border-radius: 0px 4px 4px 0px;
  46. }
  47. .textLayer .highlight.middle {
  48. border-radius: 0px;
  49. }
  50. .textLayer .highlight.selected {
  51. background-color: rgb(0, 100, 0);
  52. }
  53. .textLayer ::selection { background: rgb(0,0,255); }
  54. .textLayer ::-moz-selection { background: rgb(0,0,255); }
  55. .pdfViewer .canvasWrapper {
  56. overflow: hidden;
  57. }
  58. .pdfViewer .page {
  59. direction: ltr;
  60. width: 816px;
  61. height: 1056px;
  62. margin: 1px auto -8px auto;
  63. position: relative;
  64. overflow: visible;
  65. border: 9px solid transparent;
  66. background-clip: content-box;
  67. border-image: url(images/shadow.png) 9 9 repeat;
  68. background-color: white;
  69. }
  70. .pdfViewer.removePageBorders .page {
  71. margin: 0px auto 10px auto;
  72. border: none;
  73. }
  74. .pdfViewer .page canvas {
  75. margin: 0;
  76. display: block;
  77. }
  78. .pdfViewer .page .loadingIcon {
  79. position: absolute;
  80. display: block;
  81. left: 0;
  82. top: 0;
  83. right: 0;
  84. bottom: 0;
  85. background: url('images/loading-icon.gif') center no-repeat;
  86. }
  87. .pdfViewer .page .annotLink > a:hover {
  88. opacity: 0.2;
  89. background: #ff0;
  90. box-shadow: 0px 2px 10px #ff0;
  91. }
  92. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  93. margin-bottom: 100%;
  94. border: 0;
  95. }
  96. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  97. margin-bottom: 100%;
  98. border: 0;
  99. }
  100. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  101. margin-bottom: 100% !important;
  102. border: 0;
  103. }
  104. .pdfPresentationMode:fullscreen .pdfViewer .page {
  105. margin-bottom: 100%;
  106. border: 0;
  107. }
  108. .pdfViewer .page .annotText > img {
  109. position: absolute;
  110. cursor: pointer;
  111. }
  112. .pdfViewer .page .annotTextContentWrapper {
  113. position: absolute;
  114. width: 20em;
  115. }
  116. .pdfViewer .page .annotTextContent {
  117. z-index: 200;
  118. float: left;
  119. max-width: 20em;
  120. background-color: #FFFF99;
  121. box-shadow: 0px 2px 5px #333;
  122. border-radius: 2px;
  123. padding: 0.6em;
  124. cursor: pointer;
  125. }
  126. .pdfViewer .page .annotTextContent > h1 {
  127. font-size: 1em;
  128. border-bottom: 1px solid #000000;
  129. padding-bottom: 0.2em;
  130. }
  131. .pdfViewer .page .annotTextContent > p {
  132. padding-top: 0.2em;
  133. }
  134. .pdfViewer .page .annotLink > a {
  135. position: absolute;
  136. font-size: 1em;
  137. top: 0;
  138. left: 0;
  139. width: 100%;
  140. height: 100%;
  141. }
  142. .pdfViewer .page .annotLink > a /* -ms-a */ {
  143. background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAA\
  144. LAAAAAABAAEAAAIBRAA7") 0 0 repeat;
  145. }
  146. * {
  147. padding: 0;
  148. margin: 0;
  149. }
  150. html {
  151. height: 100%;
  152. /* Font size is needed to make the activity bar the correct size. */
  153. font-size: 10px;
  154. }
  155. body {
  156. height: 100%;
  157. background-color: #404040;
  158. background-image: url(images/texture.png);
  159. }
  160. body,
  161. input,
  162. button,
  163. select {
  164. font: message-box;
  165. outline: none;
  166. }
  167. .hidden {
  168. display: none !important;
  169. }
  170. [hidden] {
  171. display: none !important;
  172. }
  173. #viewerContainer.pdfPresentationMode:-webkit-full-screen {
  174. top: 0px;
  175. border-top: 2px solid transparent;
  176. background-color: #000;
  177. width: 100%;
  178. height: 100%;
  179. overflow: hidden;
  180. cursor: none;
  181. -webkit-user-select: none;
  182. }
  183. #viewerContainer.pdfPresentationMode:-moz-full-screen {
  184. top: 0px;
  185. border-top: 2px solid transparent;
  186. background-color: #000;
  187. width: 100%;
  188. height: 100%;
  189. overflow: hidden;
  190. cursor: none;
  191. -moz-user-select: none;
  192. }
  193. #viewerContainer.pdfPresentationMode:-ms-fullscreen {
  194. top: 0px !important;
  195. border-top: 2px solid transparent;
  196. width: 100%;
  197. height: 100%;
  198. overflow: hidden !important;
  199. cursor: none;
  200. -ms-user-select: none;
  201. }
  202. #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop {
  203. background-color: #000;
  204. }
  205. #viewerContainer.pdfPresentationMode:fullscreen {
  206. top: 0px;
  207. border-top: 2px solid transparent;
  208. background-color: #000;
  209. width: 100%;
  210. height: 100%;
  211. overflow: hidden;
  212. cursor: none;
  213. -webkit-user-select: none;
  214. -moz-user-select: none;
  215. -ms-user-select: none;
  216. }
  217. .pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
  218. display: none;
  219. }
  220. .pdfPresentationMode:-moz-full-screen a:not(.internalLink) {
  221. display: none;
  222. }
  223. .pdfPresentationMode:-ms-fullscreen a:not(.internalLink) {
  224. display: none !important;
  225. }
  226. .pdfPresentationMode:fullscreen a:not(.internalLink) {
  227. display: none;
  228. }
  229. .pdfPresentationMode:-webkit-full-screen .textLayer > div {
  230. cursor: none;
  231. }
  232. .pdfPresentationMode:-moz-full-screen .textLayer > div {
  233. cursor: none;
  234. }
  235. .pdfPresentationMode:-ms-fullscreen .textLayer > div {
  236. cursor: none;
  237. }
  238. .pdfPresentationMode:fullscreen .textLayer > div {
  239. cursor: none;
  240. }
  241. .pdfPresentationMode.pdfPresentationModeControls > *,
  242. .pdfPresentationMode.pdfPresentationModeControls .textLayer > div {
  243. cursor: default;
  244. }
  245. /* outer/inner center provides horizontal center */
  246. .outerCenter {
  247. pointer-events: none;
  248. position: relative;
  249. }
  250. html[dir='ltr'] .outerCenter {
  251. float: right;
  252. right: 50%;
  253. }
  254. html[dir='rtl'] .outerCenter {
  255. float: left;
  256. left: 50%;
  257. }
  258. .innerCenter {
  259. pointer-events: auto;
  260. position: relative;
  261. }
  262. html[dir='ltr'] .innerCenter {
  263. float: right;
  264. right: -50%;
  265. }
  266. html[dir='rtl'] .innerCenter {
  267. float: left;
  268. left: -50%;
  269. }
  270. #outerContainer {
  271. width: 100%;
  272. height: 100%;
  273. position: relative;
  274. }
  275. #sidebarContainer {
  276. position: absolute;
  277. top: 0;
  278. bottom: 0;
  279. width: 200px;
  280. visibility: hidden;
  281. -webkit-transition-duration: 200ms;
  282. -webkit-transition-timing-function: ease;
  283. transition-duration: 200ms;
  284. transition-timing-function: ease;
  285. }
  286. html[dir='ltr'] #sidebarContainer {
  287. -webkit-transition-property: left;
  288. transition-property: left;
  289. left: -200px;
  290. }
  291. html[dir='rtl'] #sidebarContainer {
  292. -webkit-transition-property: right;
  293. transition-property: right;
  294. right: -200px;
  295. }
  296. #outerContainer.sidebarMoving > #sidebarContainer,
  297. #outerContainer.sidebarOpen > #sidebarContainer {
  298. visibility: visible;
  299. }
  300. html[dir='ltr'] #outerContainer.sidebarOpen > #sidebarContainer {
  301. left: 0px;
  302. }
  303. html[dir='rtl'] #outerContainer.sidebarOpen > #sidebarContainer {
  304. right: 0px;
  305. }
  306. #mainContainer {
  307. position: absolute;
  308. top: 0;
  309. right: 0;
  310. bottom: 0;
  311. left: 0;
  312. min-width: 320px;
  313. -webkit-transition-duration: 200ms;
  314. -webkit-transition-timing-function: ease;
  315. transition-duration: 200ms;
  316. transition-timing-function: ease;
  317. }
  318. html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
  319. -webkit-transition-property: left;
  320. transition-property: left;
  321. left: 200px;
  322. }
  323. html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
  324. -webkit-transition-property: right;
  325. transition-property: right;
  326. right: 200px;
  327. }
  328. #sidebarContent {
  329. top: 32px;
  330. bottom: 0;
  331. overflow: auto;
  332. -webkit-overflow-scrolling: touch;
  333. position: absolute;
  334. width: 200px;
  335. background-color: hsla(0,0%,0%,.1);
  336. }
  337. html[dir='ltr'] #sidebarContent {
  338. left: 0;
  339. box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
  340. }
  341. html[dir='rtl'] #sidebarContent {
  342. right: 0;
  343. box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25);
  344. }
  345. #viewerContainer {
  346. overflow: auto;
  347. -webkit-overflow-scrolling: touch;
  348. position: absolute;
  349. top: 32px;
  350. right: 0;
  351. bottom: 0;
  352. left: 0;
  353. outline: none;
  354. }
  355. html[dir='ltr'] #viewerContainer {
  356. box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
  357. }
  358. html[dir='rtl'] #viewerContainer {
  359. box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05);
  360. }
  361. .toolbar {
  362. position: relative;
  363. left: 0;
  364. right: 0;
  365. z-index: 9999;
  366. cursor: default;
  367. }
  368. #toolbarContainer {
  369. width: 100%;
  370. }
  371. #toolbarSidebar {
  372. width: 200px;
  373. height: 32px;
  374. background-color: #424242; /* fallback */
  375. background-image: url(images/texture.png),
  376. linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
  377. }
  378. html[dir='ltr'] #toolbarSidebar {
  379. box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
  380. inset 0 -1px 0 hsla(0,0%,100%,.05),
  381. 0 1px 0 hsla(0,0%,0%,.15),
  382. 0 0 1px hsla(0,0%,0%,.1);
  383. }
  384. html[dir='rtl'] #toolbarSidebar {
  385. box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
  386. inset 0 1px 0 hsla(0,0%,100%,.05),
  387. 0 1px 0 hsla(0,0%,0%,.15),
  388. 0 0 1px hsla(0,0%,0%,.1);
  389. }
  390. #toolbarContainer, .findbar, .secondaryToolbar {
  391. position: relative;
  392. height: 32px;
  393. background-color: #474747; /* fallback */
  394. background-image: url(images/texture.png),
  395. linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
  396. }
  397. html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
  398. box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
  399. inset 0 1px 1px hsla(0,0%,0%,.15),
  400. inset 0 -1px 0 hsla(0,0%,100%,.05),
  401. 0 1px 0 hsla(0,0%,0%,.15),
  402. 0 1px 1px hsla(0,0%,0%,.1);
  403. }
  404. html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
  405. box-shadow: inset -1px 0 0 hsla(0,0%,100%,.08),
  406. inset 0 1px 1px hsla(0,0%,0%,.15),
  407. inset 0 -1px 0 hsla(0,0%,100%,.05),
  408. 0 1px 0 hsla(0,0%,0%,.15),
  409. 0 1px 1px hsla(0,0%,0%,.1);
  410. }
  411. #toolbarViewer {
  412. height: 32px;
  413. }
  414. #loadingBar {
  415. position: relative;
  416. width: 100%;
  417. height: 4px;
  418. background-color: #333;
  419. border-bottom: 1px solid #333;
  420. }
  421. #loadingBar .progress {
  422. position: absolute;
  423. top: 0;
  424. left: 0;
  425. width: 0%;
  426. height: 100%;
  427. background-color: #ddd;
  428. overflow: hidden;
  429. -webkit-transition: width 200ms;
  430. transition: width 200ms;
  431. }
  432. @-webkit-keyframes progressIndeterminate {
  433. 0% { left: 0%; }
  434. 50% { left: 100%; }
  435. 100% { left: 100%; }
  436. }
  437. @keyframes progressIndeterminate {
  438. 0% { left: 0%; }
  439. 50% { left: 100%; }
  440. 100% { left: 100%; }
  441. }
  442. #loadingBar .progress.indeterminate {
  443. background-color: #999;
  444. -webkit-transition: none;
  445. transition: none;
  446. }
  447. #loadingBar .indeterminate .glimmer {
  448. position: absolute;
  449. top: 0;
  450. left: 0;
  451. height: 100%;
  452. width: 50px;
  453. background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
  454. background-size: 100% 100%;
  455. background-repeat: no-repeat;
  456. -webkit-animation: progressIndeterminate 2s linear infinite;
  457. animation: progressIndeterminate 2s linear infinite;
  458. }
  459. .findbar, .secondaryToolbar {
  460. top: 32px;
  461. position: absolute;
  462. z-index: 10000;
  463. height: 32px;
  464. min-width: 16px;
  465. padding: 0px 6px 0px 6px;
  466. margin: 4px 2px 4px 2px;
  467. color: hsl(0,0%,85%);
  468. font-size: 12px;
  469. line-height: 14px;
  470. text-align: left;
  471. cursor: default;
  472. }
  473. html[dir='ltr'] .findbar {
  474. left: 68px;
  475. }
  476. html[dir='rtl'] .findbar {
  477. right: 68px;
  478. }
  479. .findbar label {
  480. -webkit-user-select: none;
  481. -moz-user-select: none;
  482. }
  483. #findInput[data-status="pending"] {
  484. background-image: url(images/loading-small.png);
  485. background-repeat: no-repeat;
  486. background-position: right;
  487. }
  488. html[dir='rtl'] #findInput[data-status="pending"] {
  489. background-position: left;
  490. }
  491. .secondaryToolbar {
  492. padding: 6px;
  493. height: auto;
  494. z-index: 30000;
  495. }
  496. html[dir='ltr'] .secondaryToolbar {
  497. right: 4px;
  498. }
  499. html[dir='rtl'] .secondaryToolbar {
  500. left: 4px;
  501. }
  502. #secondaryToolbarButtonContainer {
  503. max-width: 200px;
  504. max-height: 400px;
  505. overflow-y: auto;
  506. -webkit-overflow-scrolling: touch;
  507. margin-bottom: -4px;
  508. }
  509. .doorHanger,
  510. .doorHangerRight {
  511. border: 1px solid hsla(0,0%,0%,.5);
  512. border-radius: 2px;
  513. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  514. }
  515. .doorHanger:after, .doorHanger:before,
  516. .doorHangerRight:after, .doorHangerRight:before {
  517. bottom: 100%;
  518. border: solid transparent;
  519. content: " ";
  520. height: 0;
  521. width: 0;
  522. position: absolute;
  523. pointer-events: none;
  524. }
  525. .doorHanger:after,
  526. .doorHangerRight:after {
  527. border-bottom-color: hsla(0,0%,32%,.99);
  528. border-width: 8px;
  529. }
  530. .doorHanger:before,
  531. .doorHangerRight:before {
  532. border-bottom-color: hsla(0,0%,0%,.5);
  533. border-width: 9px;
  534. }
  535. html[dir='ltr'] .doorHanger:after,
  536. html[dir='rtl'] .doorHangerRight:after {
  537. left: 13px;
  538. margin-left: -8px;
  539. }
  540. html[dir='ltr'] .doorHanger:before,
  541. html[dir='rtl'] .doorHangerRight:before {
  542. left: 13px;
  543. margin-left: -9px;
  544. }
  545. html[dir='rtl'] .doorHanger:after,
  546. html[dir='ltr'] .doorHangerRight:after {
  547. right: 13px;
  548. margin-right: -8px;
  549. }
  550. html[dir='rtl'] .doorHanger:before,
  551. html[dir='ltr'] .doorHangerRight:before {
  552. right: 13px;
  553. margin-right: -9px;
  554. }
  555. #findMsg {
  556. font-style: italic;
  557. color: #A6B7D0;
  558. }
  559. #findInput.notFound {
  560. background-color: rgb(255, 102, 102);
  561. }
  562. html[dir='ltr'] #toolbarViewerLeft {
  563. margin-left: -1px;
  564. }
  565. html[dir='rtl'] #toolbarViewerRight {
  566. margin-right: -1px;
  567. }
  568. html[dir='ltr'] #toolbarViewerLeft,
  569. html[dir='rtl'] #toolbarViewerRight {
  570. position: absolute;
  571. top: 0;
  572. left: 0;
  573. }
  574. html[dir='ltr'] #toolbarViewerRight,
  575. html[dir='rtl'] #toolbarViewerLeft {
  576. position: absolute;
  577. top: 0;
  578. right: 0;
  579. }
  580. html[dir='ltr'] #toolbarViewerLeft > *,
  581. html[dir='ltr'] #toolbarViewerMiddle > *,
  582. html[dir='ltr'] #toolbarViewerRight > *,
  583. html[dir='ltr'] .findbar > * {
  584. position: relative;
  585. float: left;
  586. }
  587. html[dir='rtl'] #toolbarViewerLeft > *,
  588. html[dir='rtl'] #toolbarViewerMiddle > *,
  589. html[dir='rtl'] #toolbarViewerRight > *,
  590. html[dir='rtl'] .findbar > * {
  591. position: relative;
  592. float: right;
  593. }
  594. html[dir='ltr'] .splitToolbarButton {
  595. margin: 3px 2px 4px 0;
  596. display: inline-block;
  597. }
  598. html[dir='rtl'] .splitToolbarButton {
  599. margin: 3px 0 4px 2px;
  600. display: inline-block;
  601. }
  602. html[dir='ltr'] .splitToolbarButton > .toolbarButton {
  603. border-radius: 0;
  604. float: left;
  605. }
  606. html[dir='rtl'] .splitToolbarButton > .toolbarButton {
  607. border-radius: 0;
  608. float: right;
  609. }
  610. .toolbarButton,
  611. .secondaryToolbarButton,
  612. .overlayButton {
  613. border: 0 none;
  614. background: none;
  615. width: 32px;
  616. height: 25px;
  617. }
  618. .toolbarButton > span {
  619. display: inline-block;
  620. width: 0;
  621. height: 0;
  622. overflow: hidden;
  623. }
  624. .toolbarButton[disabled],
  625. .secondaryToolbarButton[disabled],
  626. .overlayButton[disabled] {
  627. opacity: .5;
  628. }
  629. .toolbarButton.group {
  630. margin-right: 0;
  631. }
  632. .splitToolbarButton.toggled .toolbarButton {
  633. margin: 0;
  634. }
  635. .splitToolbarButton:hover > .toolbarButton,
  636. .splitToolbarButton:focus > .toolbarButton,
  637. .splitToolbarButton.toggled > .toolbarButton,
  638. .toolbarButton.textButton {
  639. background-color: hsla(0,0%,0%,.12);
  640. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  641. background-clip: padding-box;
  642. border: 1px solid hsla(0,0%,0%,.35);
  643. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  644. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  645. 0 0 1px hsla(0,0%,100%,.15) inset,
  646. 0 1px 0 hsla(0,0%,100%,.05);
  647. -webkit-transition-property: background-color, border-color, box-shadow;
  648. -webkit-transition-duration: 150ms;
  649. -webkit-transition-timing-function: ease;
  650. transition-property: background-color, border-color, box-shadow;
  651. transition-duration: 150ms;
  652. transition-timing-function: ease;
  653. }
  654. .splitToolbarButton > .toolbarButton:hover,
  655. .splitToolbarButton > .toolbarButton:focus,
  656. .dropdownToolbarButton:hover,
  657. .overlayButton:hover,
  658. .toolbarButton.textButton:hover,
  659. .toolbarButton.textButton:focus {
  660. background-color: hsla(0,0%,0%,.2);
  661. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  662. 0 0 1px hsla(0,0%,100%,.15) inset,
  663. 0 0 1px hsla(0,0%,0%,.05);
  664. z-index: 199;
  665. }
  666. .splitToolbarButton > .toolbarButton {
  667. position: relative;
  668. }
  669. html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
  670. html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
  671. position: relative;
  672. margin: 0;
  673. margin-right: -1px;
  674. border-top-left-radius: 2px;
  675. border-bottom-left-radius: 2px;
  676. border-right-color: transparent;
  677. }
  678. html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
  679. html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
  680. position: relative;
  681. margin: 0;
  682. margin-left: -1px;
  683. border-top-right-radius: 2px;
  684. border-bottom-right-radius: 2px;
  685. border-left-color: transparent;
  686. }
  687. .splitToolbarButtonSeparator {
  688. padding: 8px 0;
  689. width: 1px;
  690. background-color: hsla(0,0%,0%,.5);
  691. z-index: 99;
  692. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  693. display: inline-block;
  694. margin: 5px 0;
  695. }
  696. html[dir='ltr'] .splitToolbarButtonSeparator {
  697. float: left;
  698. }
  699. html[dir='rtl'] .splitToolbarButtonSeparator {
  700. float: right;
  701. }
  702. .splitToolbarButton:hover > .splitToolbarButtonSeparator,
  703. .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
  704. padding: 12px 0;
  705. margin: 1px 0;
  706. box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
  707. -webkit-transition-property: padding;
  708. -webkit-transition-duration: 10ms;
  709. -webkit-transition-timing-function: ease;
  710. transition-property: padding;
  711. transition-duration: 10ms;
  712. transition-timing-function: ease;
  713. }
  714. .toolbarButton,
  715. .dropdownToolbarButton,
  716. .secondaryToolbarButton,
  717. .overlayButton {
  718. min-width: 16px;
  719. padding: 2px 6px 0;
  720. border: 1px solid transparent;
  721. border-radius: 2px;
  722. color: hsla(0,0%,100%,.8);
  723. font-size: 12px;
  724. line-height: 14px;
  725. -webkit-user-select: none;
  726. -moz-user-select: none;
  727. -ms-user-select: none;
  728. /* Opera does not support user-select, use <... unselectable="on"> instead */
  729. cursor: default;
  730. -webkit-transition-property: background-color, border-color, box-shadow;
  731. -webkit-transition-duration: 150ms;
  732. -webkit-transition-timing-function: ease;
  733. transition-property: background-color, border-color, box-shadow;
  734. transition-duration: 150ms;
  735. transition-timing-function: ease;
  736. }
  737. html[dir='ltr'] .toolbarButton,
  738. html[dir='ltr'] .overlayButton,
  739. html[dir='ltr'] .dropdownToolbarButton {
  740. margin: 3px 2px 4px 0;
  741. }
  742. html[dir='rtl'] .toolbarButton,
  743. html[dir='rtl'] .overlayButton,
  744. html[dir='rtl'] .dropdownToolbarButton {
  745. margin: 3px 0 4px 2px;
  746. }
  747. .toolbarButton:hover,
  748. .toolbarButton:focus,
  749. .dropdownToolbarButton,
  750. .overlayButton,
  751. .secondaryToolbarButton:hover,
  752. .secondaryToolbarButton:focus {
  753. background-color: hsla(0,0%,0%,.12);
  754. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  755. background-clip: padding-box;
  756. border: 1px solid hsla(0,0%,0%,.35);
  757. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  758. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  759. 0 0 1px hsla(0,0%,100%,.15) inset,
  760. 0 1px 0 hsla(0,0%,100%,.05);
  761. }
  762. .toolbarButton:hover:active,
  763. .overlayButton:hover:active,
  764. .dropdownToolbarButton:hover:active,
  765. .secondaryToolbarButton:hover:active {
  766. background-color: hsla(0,0%,0%,.2);
  767. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  768. border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
  769. box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
  770. 0 0 1px hsla(0,0%,0%,.2) inset,
  771. 0 1px 0 hsla(0,0%,100%,.05);
  772. -webkit-transition-property: background-color, border-color, box-shadow;
  773. -webkit-transition-duration: 10ms;
  774. -webkit-transition-timing-function: linear;
  775. transition-property: background-color, border-color, box-shadow;
  776. transition-duration: 10ms;
  777. transition-timing-function: linear;
  778. }
  779. .toolbarButton.toggled,
  780. .splitToolbarButton.toggled > .toolbarButton.toggled,
  781. .secondaryToolbarButton.toggled {
  782. background-color: hsla(0,0%,0%,.3);
  783. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  784. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
  785. box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
  786. 0 0 1px hsla(0,0%,0%,.2) inset,
  787. 0 1px 0 hsla(0,0%,100%,.05);
  788. -webkit-transition-property: background-color, border-color, box-shadow;
  789. -webkit-transition-duration: 10ms;
  790. -webkit-transition-timing-function: linear;
  791. transition-property: background-color, border-color, box-shadow;
  792. transition-duration: 10ms;
  793. transition-timing-function: linear;
  794. }
  795. .toolbarButton.toggled:hover:active,
  796. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
  797. .secondaryToolbarButton.toggled:hover:active {
  798. background-color: hsla(0,0%,0%,.4);
  799. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
  800. box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
  801. 0 0 1px hsla(0,0%,0%,.3) inset,
  802. 0 1px 0 hsla(0,0%,100%,.05);
  803. }
  804. .dropdownToolbarButton {
  805. width: 120px;
  806. max-width: 120px;
  807. padding: 3px 2px 2px;
  808. overflow: hidden;
  809. background: url(images/toolbarButton-menuArrows.png) no-repeat;
  810. }
  811. html[dir='ltr'] .dropdownToolbarButton {
  812. background-position: 95%;
  813. }
  814. html[dir='rtl'] .dropdownToolbarButton {
  815. background-position: 5%;
  816. }
  817. .dropdownToolbarButton > select {
  818. min-width: 140px;
  819. font-size: 12px;
  820. color: hsl(0,0%,95%);
  821. margin: 0;
  822. padding: 0;
  823. border: none;
  824. background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
  825. }
  826. .dropdownToolbarButton > select > option {
  827. background: hsl(0,0%,24%);
  828. }
  829. #customScaleOption {
  830. display: none;
  831. }
  832. #pageWidthOption {
  833. border-bottom: 1px rgba(255, 255, 255, .5) solid;
  834. }
  835. html[dir='ltr'] .splitToolbarButton:first-child,
  836. html[dir='ltr'] .toolbarButton:first-child,
  837. html[dir='rtl'] .splitToolbarButton:last-child,
  838. html[dir='rtl'] .toolbarButton:last-child {
  839. margin-left: 4px;
  840. }
  841. html[dir='ltr'] .splitToolbarButton:last-child,
  842. html[dir='ltr'] .toolbarButton:last-child,
  843. html[dir='rtl'] .splitToolbarButton:first-child,
  844. html[dir='rtl'] .toolbarButton:first-child {
  845. margin-right: 4px;
  846. }
  847. .toolbarButtonSpacer {
  848. width: 30px;
  849. display: inline-block;
  850. height: 1px;
  851. }
  852. .toolbarButtonFlexibleSpacer {
  853. -webkit-box-flex: 1;
  854. -moz-box-flex: 1;
  855. min-width: 30px;
  856. }
  857. html[dir='ltr'] #findPrevious {
  858. margin-left: 3px;
  859. }
  860. html[dir='ltr'] #findNext {
  861. margin-right: 3px;
  862. }
  863. html[dir='rtl'] #findPrevious {
  864. margin-right: 3px;
  865. }
  866. html[dir='rtl'] #findNext {
  867. margin-left: 3px;
  868. }
  869. .toolbarButton::before,
  870. .secondaryToolbarButton::before {
  871. /* All matching images have a size of 16x16
  872. * All relevant containers have a size of 32x25 */
  873. position: absolute;
  874. display: inline-block;
  875. top: 4px;
  876. left: 7px;
  877. }
  878. html[dir="ltr"] .secondaryToolbarButton::before {
  879. left: 4px;
  880. }
  881. html[dir="rtl"] .secondaryToolbarButton::before {
  882. right: 4px;
  883. }
  884. html[dir='ltr'] .toolbarButton#sidebarToggle::before {
  885. content: url(images/toolbarButton-sidebarToggle.png);
  886. }
  887. html[dir='rtl'] .toolbarButton#sidebarToggle::before {
  888. content: url(images/toolbarButton-sidebarToggle-rtl.png);
  889. }
  890. html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
  891. content: url(images/toolbarButton-secondaryToolbarToggle.png);
  892. }
  893. html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
  894. content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png);
  895. }
  896. html[dir='ltr'] .toolbarButton.findPrevious::before {
  897. content: url(images/findbarButton-previous.png);
  898. }
  899. html[dir='rtl'] .toolbarButton.findPrevious::before {
  900. content: url(images/findbarButton-previous-rtl.png);
  901. }
  902. html[dir='ltr'] .toolbarButton.findNext::before {
  903. content: url(images/findbarButton-next.png);
  904. }
  905. html[dir='rtl'] .toolbarButton.findNext::before {
  906. content: url(images/findbarButton-next-rtl.png);
  907. }
  908. html[dir='ltr'] .toolbarButton.pageUp::before {
  909. content: url(images/toolbarButton-pageUp.png);
  910. }
  911. html[dir='rtl'] .toolbarButton.pageUp::before {
  912. content: url(images/toolbarButton-pageUp-rtl.png);
  913. }
  914. html[dir='ltr'] .toolbarButton.pageDown::before {
  915. content: url(images/toolbarButton-pageDown.png);
  916. }
  917. html[dir='rtl'] .toolbarButton.pageDown::before {
  918. content: url(images/toolbarButton-pageDown-rtl.png);
  919. }
  920. .toolbarButton.zoomOut::before {
  921. content: url(images/toolbarButton-zoomOut.png);
  922. }
  923. .toolbarButton.zoomIn::before {
  924. content: url(images/toolbarButton-zoomIn.png);
  925. }
  926. .toolbarButton.presentationMode::before,
  927. .secondaryToolbarButton.presentationMode::before {
  928. content: url(images/toolbarButton-presentationMode.png);
  929. }
  930. .toolbarButton.print::before,
  931. .secondaryToolbarButton.print::before {
  932. content: url(images/toolbarButton-print.png);
  933. }
  934. .toolbarButton.openFile::before,
  935. .secondaryToolbarButton.openFile::before {
  936. content: url(images/toolbarButton-openFile.png);
  937. }
  938. .toolbarButton.download::before,
  939. .secondaryToolbarButton.download::before {
  940. content: url(images/toolbarButton-download.png);
  941. }
  942. .toolbarButton.bookmark,
  943. .secondaryToolbarButton.bookmark {
  944. -webkit-box-sizing: border-box;
  945. -moz-box-sizing: border-box;
  946. box-sizing: border-box;
  947. outline: none;
  948. padding-top: 4px;
  949. text-decoration: none;
  950. }
  951. .secondaryToolbarButton.bookmark {
  952. padding-top: 5px;
  953. }
  954. .bookmark[href='#'] {
  955. opacity: .5;
  956. pointer-events: none;
  957. }
  958. .toolbarButton.bookmark::before,
  959. .secondaryToolbarButton.bookmark::before {
  960. content: url(images/toolbarButton-bookmark.png);
  961. }
  962. #viewThumbnail.toolbarButton::before {
  963. content: url(images/toolbarButton-viewThumbnail.png);
  964. }
  965. html[dir="ltr"] #viewOutline.toolbarButton::before {
  966. content: url(images/toolbarButton-viewOutline.png);
  967. }
  968. html[dir="rtl"] #viewOutline.toolbarButton::before {
  969. content: url(images/toolbarButton-viewOutline-rtl.png);
  970. }
  971. #viewAttachments.toolbarButton::before {
  972. content: url(images/toolbarButton-viewAttachments.png);
  973. }
  974. #viewFind.toolbarButton::before {
  975. content: url(images/toolbarButton-search.png);
  976. }
  977. .secondaryToolbarButton {
  978. position: relative;
  979. margin: 0 0 4px 0;
  980. padding: 3px 0 1px 0;
  981. height: auto;
  982. min-height: 25px;
  983. width: auto;
  984. min-width: 100%;
  985. white-space: normal;
  986. }
  987. html[dir="ltr"] .secondaryToolbarButton {
  988. padding-left: 24px;
  989. text-align: left;
  990. }
  991. html[dir="rtl"] .secondaryToolbarButton {
  992. padding-right: 24px;
  993. text-align: right;
  994. }
  995. html[dir="ltr"] .secondaryToolbarButton.bookmark {
  996. padding-left: 27px;
  997. }
  998. html[dir="rtl"] .secondaryToolbarButton.bookmark {
  999. padding-right: 27px;
  1000. }
  1001. html[dir="ltr"] .secondaryToolbarButton > span {
  1002. padding-right: 4px;
  1003. }
  1004. html[dir="rtl"] .secondaryToolbarButton > span {
  1005. padding-left: 4px;
  1006. }
  1007. .secondaryToolbarButton.firstPage::before {
  1008. content: url(images/secondaryToolbarButton-firstPage.png);
  1009. }
  1010. .secondaryToolbarButton.lastPage::before {
  1011. content: url(images/secondaryToolbarButton-lastPage.png);
  1012. }
  1013. .secondaryToolbarButton.rotateCcw::before {
  1014. content: url(images/secondaryToolbarButton-rotateCcw.png);
  1015. }
  1016. .secondaryToolbarButton.rotateCw::before {
  1017. content: url(images/secondaryToolbarButton-rotateCw.png);
  1018. }
  1019. .secondaryToolbarButton.handTool::before {
  1020. content: url(images/secondaryToolbarButton-handTool.png);
  1021. }
  1022. .secondaryToolbarButton.documentProperties::before {
  1023. content: url(images/secondaryToolbarButton-documentProperties.png);
  1024. }
  1025. .verticalToolbarSeparator {
  1026. display: block;
  1027. padding: 8px 0;
  1028. margin: 8px 4px;
  1029. width: 1px;
  1030. background-color: hsla(0,0%,0%,.5);
  1031. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  1032. }
  1033. html[dir='ltr'] .verticalToolbarSeparator {
  1034. margin-left: 2px;
  1035. }
  1036. html[dir='rtl'] .verticalToolbarSeparator {
  1037. margin-right: 2px;
  1038. }
  1039. .horizontalToolbarSeparator {
  1040. display: block;
  1041. margin: 0 0 4px 0;
  1042. height: 1px;
  1043. width: 100%;
  1044. background-color: hsla(0,0%,0%,.5);
  1045. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  1046. }
  1047. .toolbarField {
  1048. padding: 3px 6px;
  1049. margin: 4px 0 4px 0;
  1050. border: 1px solid transparent;
  1051. border-radius: 2px;
  1052. background-color: hsla(0,0%,100%,.09);
  1053. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  1054. background-clip: padding-box;
  1055. border: 1px solid hsla(0,0%,0%,.35);
  1056. border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  1057. box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
  1058. 0 1px 0 hsla(0,0%,100%,.05);
  1059. color: hsl(0,0%,95%);
  1060. font-size: 12px;
  1061. line-height: 14px;
  1062. outline-style: none;
  1063. transition-property: background-color, border-color, box-shadow;
  1064. transition-duration: 150ms;
  1065. transition-timing-function: ease;
  1066. }
  1067. .toolbarField[type=checkbox] {
  1068. display: inline-block;
  1069. margin: 8px 0px;
  1070. }
  1071. .toolbarField.pageNumber {
  1072. -moz-appearance: textfield; /* hides the spinner in moz */
  1073. min-width: 16px;
  1074. text-align: right;
  1075. width: 40px;
  1076. }
  1077. .toolbarField.pageNumber.visiblePageIsLoading {
  1078. background-image: url(images/loading-small.png);
  1079. background-repeat: no-repeat;
  1080. background-position: 1px;
  1081. }
  1082. .toolbarField.pageNumber::-webkit-inner-spin-button,
  1083. .toolbarField.pageNumber::-webkit-outer-spin-button {
  1084. -webkit-appearance: none;
  1085. margin: 0;
  1086. }
  1087. .toolbarField:hover {
  1088. background-color: hsla(0,0%,100%,.11);
  1089. border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
  1090. }
  1091. .toolbarField:focus {
  1092. background-color: hsla(0,0%,100%,.15);
  1093. border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
  1094. }
  1095. .toolbarLabel {
  1096. min-width: 16px;
  1097. padding: 3px 6px 3px 2px;
  1098. margin: 4px 2px 4px 0;
  1099. border: 1px solid transparent;
  1100. border-radius: 2px;
  1101. color: hsl(0,0%,85%);
  1102. font-size: 12px;
  1103. line-height: 14px;
  1104. text-align: left;
  1105. -webkit-user-select: none;
  1106. -moz-user-select: none;
  1107. cursor: default;
  1108. }
  1109. #thumbnailView {
  1110. position: absolute;
  1111. width: 120px;
  1112. top: 0;
  1113. bottom: 0;
  1114. padding: 10px 40px 0;
  1115. overflow: auto;
  1116. -webkit-overflow-scrolling: touch;
  1117. }
  1118. .thumbnail {
  1119. float: left;
  1120. margin-bottom: 5px;
  1121. }
  1122. #thumbnailView > a:last-of-type > .thumbnail {
  1123. margin-bottom: 10px;
  1124. }
  1125. #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
  1126. margin-bottom: 9px;
  1127. }
  1128. .thumbnail:not([data-loaded]) {
  1129. border: 1px dashed rgba(255, 255, 255, 0.5);
  1130. margin: -1px -1px 4px -1px;
  1131. }
  1132. .thumbnailImage {
  1133. border: 1px solid transparent;
  1134. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  1135. opacity: 0.8;
  1136. z-index: 99;
  1137. background-color: white;
  1138. background-clip: content-box;
  1139. }
  1140. .thumbnailSelectionRing {
  1141. border-radius: 2px;
  1142. padding: 7px;
  1143. }
  1144. a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
  1145. .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
  1146. opacity: .9;
  1147. }
  1148. a:focus > .thumbnail > .thumbnailSelectionRing,
  1149. .thumbnail:hover > .thumbnailSelectionRing {
  1150. background-color: hsla(0,0%,100%,.15);
  1151. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  1152. background-clip: padding-box;
  1153. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  1154. 0 0 1px hsla(0,0%,100%,.2) inset,
  1155. 0 0 1px hsla(0,0%,0%,.2);
  1156. color: hsla(0,0%,100%,.9);
  1157. }
  1158. .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
  1159. box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
  1160. opacity: 1;
  1161. }
  1162. .thumbnail.selected > .thumbnailSelectionRing {
  1163. background-color: hsla(0,0%,100%,.3);
  1164. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  1165. background-clip: padding-box;
  1166. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  1167. 0 0 1px hsla(0,0%,100%,.1) inset,
  1168. 0 0 1px hsla(0,0%,0%,.2);
  1169. color: hsla(0,0%,100%,1);
  1170. }
  1171. #outlineView,
  1172. #attachmentsView {
  1173. position: absolute;
  1174. width: 192px;
  1175. top: 0;
  1176. bottom: 0;
  1177. overflow: auto;
  1178. -webkit-overflow-scrolling: touch;
  1179. -webkit-user-select: none;
  1180. -moz-user-select: none;
  1181. }
  1182. #outlineView {
  1183. padding: 4px 4px 0;
  1184. }
  1185. #attachmentsView {
  1186. padding: 3px 4px 0;
  1187. }
  1188. html[dir='ltr'] .outlineItem > .outlineItems {
  1189. margin-left: 20px;
  1190. }
  1191. html[dir='rtl'] .outlineItem > .outlineItems {
  1192. margin-right: 20px;
  1193. }
  1194. .outlineItem > a,
  1195. .attachmentsItem > button {
  1196. text-decoration: none;
  1197. display: inline-block;
  1198. min-width: 95%;
  1199. height: auto;
  1200. margin-bottom: 1px;
  1201. border-radius: 2px;
  1202. color: hsla(0,0%,100%,.8);
  1203. font-size: 13px;
  1204. line-height: 15px;
  1205. -moz-user-select: none;
  1206. white-space: normal;
  1207. }
  1208. .attachmentsItem > button {
  1209. border: 0 none;
  1210. background: none;
  1211. cursor: pointer;
  1212. width: 100%;
  1213. }
  1214. html[dir='ltr'] .outlineItem > a {
  1215. padding: 2px 0 5px 10px;
  1216. }
  1217. html[dir='ltr'] .attachmentsItem > button {
  1218. padding: 2px 0 3px 7px;
  1219. text-align: left;
  1220. }
  1221. html[dir='rtl'] .outlineItem > a {
  1222. padding: 2px 10px 5px 0;
  1223. }
  1224. html[dir='rtl'] .attachmentsItem > button {
  1225. padding: 2px 7px 3px 0;
  1226. text-align: right;
  1227. }
  1228. .outlineItem > a:hover,
  1229. .attachmentsItem > button:hover {
  1230. background-color: hsla(0,0%,100%,.02);
  1231. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  1232. background-clip: padding-box;
  1233. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  1234. 0 0 1px hsla(0,0%,100%,.2) inset,
  1235. 0 0 1px hsla(0,0%,0%,.2);
  1236. color: hsla(0,0%,100%,.9);
  1237. }
  1238. .outlineItem.selected {
  1239. background-color: hsla(0,0%,100%,.08);
  1240. background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  1241. background-clip: padding-box;
  1242. box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
  1243. 0 0 1px hsla(0,0%,100%,.1) inset,
  1244. 0 0 1px hsla(0,0%,0%,.2);
  1245. color: hsla(0,0%,100%,1);
  1246. }
  1247. .noResults {
  1248. font-size: 12px;
  1249. color: hsla(0,0%,100%,.8);
  1250. font-style: italic;
  1251. cursor: default;
  1252. }
  1253. /* TODO: file FF bug to support ::-moz-selection:window-inactive
  1254. so we can override the opaque grey background when the window is inactive;
  1255. see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
  1256. ::selection { background: rgba(0,0,255,0.3); }
  1257. ::-moz-selection { background: rgba(0,0,255,0.3); }
  1258. #errorWrapper {
  1259. background: none repeat scroll 0 0 #FF5555;
  1260. color: white;
  1261. left: 0;
  1262. position: absolute;
  1263. right: 0;
  1264. z-index: 1000;
  1265. padding: 3px;
  1266. font-size: 0.8em;
  1267. }
  1268. .loadingInProgress #errorWrapper {
  1269. top: 37px;
  1270. }
  1271. #errorMessageLeft {
  1272. float: left;
  1273. }
  1274. #errorMessageRight {
  1275. float: right;
  1276. }
  1277. #errorMoreInfo {
  1278. background-color: #FFFFFF;
  1279. color: black;
  1280. padding: 3px;
  1281. margin: 3px;
  1282. width: 98%;
  1283. }
  1284. .overlayButton {
  1285. width: auto;
  1286. margin: 3px 4px 2px 4px !important;
  1287. padding: 2px 6px 3px 6px;
  1288. }
  1289. #overlayContainer {
  1290. display: table;
  1291. position: absolute;
  1292. width: 100%;
  1293. height: 100%;
  1294. background-color: hsla(0,0%,0%,.2);
  1295. z-index: 40000;
  1296. }
  1297. #overlayContainer > * {
  1298. overflow: auto;
  1299. -webkit-overflow-scrolling: touch;
  1300. }
  1301. #overlayContainer > .container {
  1302. display: table-cell;
  1303. vertical-align: middle;
  1304. text-align: center;
  1305. }
  1306. #overlayContainer > .container > .dialog {
  1307. display: inline-block;
  1308. padding: 15px;
  1309. border-spacing: 4px;
  1310. color: hsl(0,0%,85%);
  1311. font-size: 12px;
  1312. line-height: 14px;
  1313. background-color: #474747; /* fallback */
  1314. background-image: url(images/texture.png),
  1315. linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
  1316. box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
  1317. inset 0 1px 1px hsla(0,0%,0%,.15),
  1318. inset 0 -1px 0 hsla(0,0%,100%,.05),
  1319. 0 1px 0 hsla(0,0%,0%,.15),
  1320. 0 1px 1px hsla(0,0%,0%,.1);
  1321. border: 1px solid hsla(0,0%,0%,.5);
  1322. border-radius: 4px;
  1323. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  1324. }
  1325. .dialog > .row {
  1326. display: table-row;
  1327. }
  1328. .dialog > .row > * {
  1329. display: table-cell;
  1330. }
  1331. .dialog .toolbarField {
  1332. margin: 5px 0;
  1333. }
  1334. .dialog .separator {
  1335. display: block;
  1336. margin: 4px 0 4px 0;
  1337. height: 1px;
  1338. width: 100%;
  1339. background-color: hsla(0,0%,0%,.5);
  1340. box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  1341. }
  1342. .dialog .buttonRow {
  1343. text-align: center;
  1344. vertical-align: middle;
  1345. }
  1346. #passwordOverlay > .dialog {
  1347. text-align: center;
  1348. }
  1349. #passwordOverlay .toolbarField {
  1350. width: 200px;
  1351. }
  1352. #documentPropertiesOverlay > .dialog {
  1353. text-align: left;
  1354. }
  1355. #documentPropertiesOverlay .row > * {
  1356. min-width: 100px;
  1357. }
  1358. html[dir='ltr'] #documentPropertiesOverlay .row > * {
  1359. text-align: left;
  1360. }
  1361. html[dir='rtl'] #documentPropertiesOverlay .row > * {
  1362. text-align: right;
  1363. }
  1364. #documentPropertiesOverlay .row > span {
  1365. width: 125px;
  1366. word-wrap: break-word;
  1367. }
  1368. #documentPropertiesOverlay .row > p {
  1369. max-width: 225px;
  1370. word-wrap: break-word;
  1371. }
  1372. #documentPropertiesOverlay .buttonRow {
  1373. margin-top: 10px;
  1374. }
  1375. .clearBoth {
  1376. clear: both;
  1377. }
  1378. .fileInput {
  1379. background: white;
  1380. color: black;
  1381. margin-top: 5px;
  1382. visibility: hidden;
  1383. position: fixed;
  1384. right: 0;
  1385. top: 0;
  1386. }
  1387. #PDFBug {
  1388. background: none repeat scroll 0 0 white;
  1389. border: 1px solid #666666;
  1390. position: fixed;
  1391. top: 32px;
  1392. right: 0;
  1393. bottom: 0;
  1394. font-size: 10px;
  1395. padding: 0;
  1396. width: 300px;
  1397. }
  1398. #PDFBug .controls {
  1399. background:#EEEEEE;
  1400. border-bottom: 1px solid #666666;
  1401. padding: 3px;
  1402. }
  1403. #PDFBug .panels {
  1404. bottom: 0;
  1405. left: 0;
  1406. overflow: auto;
  1407. -webkit-overflow-scrolling: touch;
  1408. position: absolute;
  1409. right: 0;
  1410. top: 27px;
  1411. }
  1412. #PDFBug button.active {
  1413. font-weight: bold;
  1414. }
  1415. .debuggerShowText {
  1416. background: none repeat scroll 0 0 yellow;
  1417. color: blue;
  1418. }
  1419. .debuggerHideText:hover {
  1420. background: none repeat scroll 0 0 yellow;
  1421. }
  1422. #PDFBug .stats {
  1423. font-family: courier;
  1424. font-size: 10px;
  1425. white-space: pre;
  1426. }
  1427. #PDFBug .stats .title {
  1428. font-weight: bold;
  1429. }
  1430. #PDFBug table {
  1431. font-size: 10px;
  1432. }
  1433. #viewer.textLayer-visible .textLayer > div,
  1434. #viewer.textLayer-hover .textLayer > div:hover {
  1435. background-color: white;
  1436. color: black;
  1437. }
  1438. #viewer.textLayer-shadow .textLayer > div {
  1439. background-color: rgba(255,255,255, .6);
  1440. color: black;
  1441. }
  1442. .grab-to-pan-grab {
  1443. cursor: url("images/grab.cur"), move !important;
  1444. cursor: -webkit-grab !important;
  1445. cursor: -moz-grab !important;
  1446. cursor: grab !important;
  1447. }
  1448. .grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
  1449. cursor: inherit !important;
  1450. }
  1451. .grab-to-pan-grab:active,
  1452. .grab-to-pan-grabbing {
  1453. cursor: url("images/grabbing.cur"), move !important;
  1454. cursor: -webkit-grabbing !important;
  1455. cursor: -moz-grabbing !important;
  1456. cursor: grabbing !important;
  1457. position: fixed;
  1458. background: transparent;
  1459. display: block;
  1460. top: 0;
  1461. left: 0;
  1462. right: 0;
  1463. bottom: 0;
  1464. overflow: hidden;
  1465. z-index: 50000; /* should be higher than anything else in PDF.js! */
  1466. }
  1467. @page {
  1468. margin: 0;
  1469. }
  1470. #printContainer {
  1471. display: none;
  1472. }
  1473. @media screen and (min-resolution: 2dppx) {
  1474. /* Rules for Retina screens */
  1475. .toolbarButton::before {
  1476. -webkit-transform: scale(0.5);
  1477. transform: scale(0.5);
  1478. top: -5px;
  1479. }
  1480. .secondaryToolbarButton::before {
  1481. -webkit-transform: scale(0.5);
  1482. transform: scale(0.5);
  1483. top: -4px;
  1484. }
  1485. html[dir='ltr'] .toolbarButton::before,
  1486. html[dir='rtl'] .toolbarButton::before {
  1487. left: -1px;
  1488. }
  1489. html[dir='ltr'] .secondaryToolbarButton::before {
  1490. left: -2px;
  1491. }
  1492. html[dir='rtl'] .secondaryToolbarButton::before {
  1493. left: 186px;
  1494. }
  1495. .toolbarField.pageNumber.visiblePageIsLoading,
  1496. #findInput[data-status="pending"] {
  1497. background-image: url(images/loading-small@2x.png);
  1498. background-size: 16px 17px;
  1499. }
  1500. .dropdownToolbarButton {
  1501. background: url(images/toolbarButton-menuArrows@2x.png) no-repeat;
  1502. background-size: 7px 16px;
  1503. }
  1504. html[dir='ltr'] .toolbarButton#sidebarToggle::before {
  1505. content: url(images/toolbarButton-sidebarToggle@2x.png);
  1506. }
  1507. html[dir='rtl'] .toolbarButton#sidebarToggle::before {
  1508. content: url(images/toolbarButton-sidebarToggle-rtl@2x.png);
  1509. }
  1510. html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
  1511. content: url(images/toolbarButton-secondaryToolbarToggle@2x.png);
  1512. }
  1513. html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
  1514. content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
  1515. }
  1516. html[dir='ltr'] .toolbarButton.findPrevious::before {
  1517. content: url(images/findbarButton-previous@2x.png);
  1518. }
  1519. html[dir='rtl'] .toolbarButton.findPrevious::before {
  1520. content: url(images/findbarButton-previous-rtl@2x.png);
  1521. }
  1522. html[dir='ltr'] .toolbarButton.findNext::before {
  1523. content: url(images/findbarButton-next@2x.png);
  1524. }
  1525. html[dir='rtl'] .toolbarButton.findNext::before {
  1526. content: url(images/findbarButton-next-rtl@2x.png);
  1527. }
  1528. html[dir='ltr'] .toolbarButton.pageUp::before {
  1529. content: url(images/toolbarButton-pageUp@2x.png);
  1530. }
  1531. html[dir='rtl'] .toolbarButton.pageUp::before {
  1532. content: url(images/toolbarButton-pageUp-rtl@2x.png);
  1533. }
  1534. html[dir='ltr'] .toolbarButton.pageDown::before {
  1535. content: url(images/toolbarButton-pageDown@2x.png);
  1536. }
  1537. html[dir='rtl'] .toolbarButton.pageDown::before {
  1538. content: url(images/toolbarButton-pageDown-rtl@2x.png);
  1539. }
  1540. .toolbarButton.zoomIn::before {
  1541. content: url(images/toolbarButton-zoomIn@2x.png);
  1542. }
  1543. .toolbarButton.zoomOut::before {
  1544. content: url(images/toolbarButton-zoomOut@2x.png);
  1545. }
  1546. .toolbarButton.presentationMode::before,
  1547. .secondaryToolbarButton.presentationMode::before {
  1548. content: url(images/toolbarButton-presentationMode@2x.png);
  1549. }
  1550. .toolbarButton.print::before,
  1551. .secondaryToolbarButton.print::before {
  1552. content: url(images/toolbarButton-print@2x.png);
  1553. }
  1554. .toolbarButton.openFile::before,
  1555. .secondaryToolbarButton.openFile::before {
  1556. content: url(images/toolbarButton-openFile@2x.png);
  1557. }
  1558. .toolbarButton.download::before,
  1559. .secondaryToolbarButton.download::before {
  1560. content: url(images/toolbarButton-download@2x.png);
  1561. }
  1562. .toolbarButton.bookmark::before,
  1563. .secondaryToolbarButton.bookmark::before {
  1564. content: url(images/toolbarButton-bookmark@2x.png);
  1565. }
  1566. #viewThumbnail.toolbarButton::before {
  1567. content: url(images/toolbarButton-viewThumbnail@2x.png);
  1568. }
  1569. html[dir="ltr"] #viewOutline.toolbarButton::before {
  1570. content: url(images/toolbarButton-viewOutline@2x.png);
  1571. }
  1572. html[dir="rtl"] #viewOutline.toolbarButton::before {
  1573. content: url(images/toolbarButton-viewOutline-rtl@2x.png);
  1574. }
  1575. #viewAttachments.toolbarButton::before {
  1576. content: url(images/toolbarButton-viewAttachments@2x.png);
  1577. }
  1578. #viewFind.toolbarButton::before {
  1579. content: url(images/toolbarButton-search@2x.png);
  1580. }
  1581. .secondaryToolbarButton.firstPage::before {
  1582. content: url(images/secondaryToolbarButton-firstPage@2x.png);
  1583. }
  1584. .secondaryToolbarButton.lastPage::before {
  1585. content: url(images/secondaryToolbarButton-lastPage@2x.png);
  1586. }
  1587. .secondaryToolbarButton.rotateCcw::before {
  1588. content: url(images/secondaryToolbarButton-rotateCcw@2x.png);
  1589. }
  1590. .secondaryToolbarButton.rotateCw::before {
  1591. content: url(images/secondaryToolbarButton-rotateCw@2x.png);
  1592. }
  1593. .secondaryToolbarButton.handTool::before {
  1594. content: url(images/secondaryToolbarButton-handTool@2x.png);
  1595. }
  1596. .secondaryToolbarButton.documentProperties::before {
  1597. content: url(images/secondaryToolbarButton-documentProperties@2x.png);
  1598. }
  1599. }
  1600. @media print {
  1601. /* General rules for printing. */
  1602. body {
  1603. background: transparent none;
  1604. }
  1605. /* Rules for browsers that don't support mozPrintCallback. */
  1606. #sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
  1607. display: none;
  1608. }
  1609. #viewerContainer {
  1610. overflow: visible;
  1611. }
  1612. #mainContainer, #viewerContainer, .page, .page canvas {
  1613. position: static;
  1614. padding: 0;
  1615. margin: 0;
  1616. }
  1617. .page {
  1618. float: left;
  1619. display: none;
  1620. border: none;
  1621. box-shadow: none;
  1622. background-clip: content-box;
  1623. background-color: white;
  1624. }
  1625. .page[data-loaded] {
  1626. display: block;
  1627. }
  1628. .fileInput {
  1629. display: none;
  1630. }
  1631. /* Rules for browsers that support mozPrintCallback */
  1632. body[data-mozPrintCallback] #outerContainer {
  1633. display: none;
  1634. }
  1635. body[data-mozPrintCallback] #printContainer {
  1636. display: block;
  1637. }
  1638. /* wrapper around (scaled) print canvas elements */
  1639. #printContainer > div {
  1640. position: relative;
  1641. top: 0;
  1642. left: 0;
  1643. overflow: hidden;
  1644. }
  1645. #printContainer canvas {
  1646. display: block;
  1647. }
  1648. }
  1649. .visibleLargeView,
  1650. .visibleMediumView,
  1651. .visibleSmallView {
  1652. display: none;
  1653. }
  1654. @media all and (max-width: 960px) {
  1655. html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
  1656. html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter {
  1657. float: left;
  1658. left: 205px;
  1659. }
  1660. html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
  1661. html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter {
  1662. float: right;
  1663. right: 205px;
  1664. }
  1665. }
  1666. @media all and (max-width: 900px) {
  1667. .sidebarOpen .hiddenLargeView {
  1668. display: none;
  1669. }
  1670. .sidebarOpen .visibleLargeView {
  1671. display: inherit;
  1672. }
  1673. }
  1674. @media all and (max-width: 860px) {
  1675. .sidebarOpen .hiddenMediumView {
  1676. display: none;
  1677. }
  1678. .sidebarOpen .visibleMediumView {
  1679. display: inherit;
  1680. }
  1681. }
  1682. @media all and (max-width: 770px) {
  1683. #sidebarContainer {
  1684. top: 32px;
  1685. z-index: 100;
  1686. }
  1687. .loadingInProgress #sidebarContainer {
  1688. top: 37px;
  1689. }
  1690. #sidebarContent {
  1691. top: 32px;
  1692. background-color: hsla(0,0%,0%,.7);
  1693. }
  1694. html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
  1695. left: 0px;
  1696. }
  1697. html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
  1698. right: 0px;
  1699. }
  1700. html[dir='ltr'] .outerCenter {
  1701. float: left;
  1702. left: 205px;
  1703. }
  1704. html[dir='rtl'] .outerCenter {
  1705. float: right;
  1706. right: 205px;
  1707. }
  1708. #outerContainer .hiddenLargeView,
  1709. #outerContainer .hiddenMediumView {
  1710. display: inherit;
  1711. }
  1712. #outerContainer .visibleLargeView,
  1713. #outerContainer .visibleMediumView {
  1714. display: none;
  1715. }
  1716. }
  1717. @media all and (max-width: 700px) {
  1718. #outerContainer .hiddenLargeView {
  1719. display: none;
  1720. }
  1721. #outerContainer .visibleLargeView {
  1722. display: inherit;
  1723. }
  1724. }
  1725. @media all and (max-width: 660px) {
  1726. #outerContainer .hiddenMediumView {
  1727. display: none;
  1728. }
  1729. #outerContainer .visibleMediumView {
  1730. display: inherit;
  1731. }
  1732. }
  1733. @media all and (max-width: 600px) {
  1734. .hiddenSmallView {
  1735. display: none;
  1736. }
  1737. .visibleSmallView {
  1738. display: inherit;
  1739. }
  1740. html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
  1741. html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter,
  1742. html[dir='ltr'] .outerCenter {
  1743. left: 156px;
  1744. }
  1745. html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
  1746. html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter,
  1747. html[dir='rtl'] .outerCenter {
  1748. right: 156px;
  1749. }
  1750. .toolbarButtonSpacer {
  1751. width: 0;
  1752. }
  1753. }
  1754. @media all and (max-width: 510px) {
  1755. #scaleSelectContainer, #pageNumberLabel {
  1756. display: none;
  1757. }
  1758. }