viewer.css 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443
  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. line-height: 1.0;
  24. }
  25. .textLayer > span {
  26. color: transparent;
  27. position: absolute;
  28. white-space: pre;
  29. cursor: text;
  30. -webkit-transform-origin: 0% 0%;
  31. transform-origin: 0% 0%;
  32. }
  33. .textLayer .highlight {
  34. margin: -1px;
  35. padding: 1px;
  36. background-color: rgba(180, 0, 170, 1);
  37. border-radius: 4px;
  38. }
  39. .textLayer .highlight.begin {
  40. border-radius: 4px 0px 0px 4px;
  41. }
  42. .textLayer .highlight.end {
  43. border-radius: 0px 4px 4px 0px;
  44. }
  45. .textLayer .highlight.middle {
  46. border-radius: 0px;
  47. }
  48. .textLayer .highlight.selected {
  49. background-color: rgba(0, 100, 0, 1);
  50. }
  51. .textLayer ::-moz-selection {
  52. background: rgba(0, 0, 255, 1);
  53. }
  54. .textLayer ::selection {
  55. background: rgba(0, 0, 255, 1);
  56. }
  57. .textLayer .endOfContent {
  58. display: block;
  59. position: absolute;
  60. left: 0px;
  61. top: 100%;
  62. right: 0px;
  63. bottom: 0px;
  64. z-index: -1;
  65. cursor: default;
  66. -webkit-user-select: none;
  67. -moz-user-select: none;
  68. -ms-user-select: none;
  69. user-select: none;
  70. }
  71. .textLayer .endOfContent.active {
  72. top: 0px;
  73. }
  74. .annotationLayer section {
  75. position: absolute;
  76. }
  77. .annotationLayer .linkAnnotation > a,
  78. .annotationLayer .buttonWidgetAnnotation.pushButton > a {
  79. position: absolute;
  80. font-size: 1em;
  81. top: 0;
  82. left: 0;
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .annotationLayer .linkAnnotation > a:hover,
  87. .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
  88. opacity: 0.2;
  89. background: rgba(255, 255, 0, 1);
  90. box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
  91. }
  92. .annotationLayer .textAnnotation img {
  93. position: absolute;
  94. cursor: pointer;
  95. }
  96. .annotationLayer .textWidgetAnnotation input,
  97. .annotationLayer .textWidgetAnnotation textarea,
  98. .annotationLayer .choiceWidgetAnnotation select,
  99. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  100. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  101. background-color: rgba(0, 54, 255, 0.13);
  102. border: 1px solid transparent;
  103. box-sizing: border-box;
  104. font-size: 9px;
  105. height: 100%;
  106. margin: 0;
  107. padding: 0 3px;
  108. vertical-align: top;
  109. width: 100%;
  110. }
  111. .annotationLayer .choiceWidgetAnnotation select option {
  112. padding: 0;
  113. }
  114. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  115. border-radius: 50%;
  116. }
  117. .annotationLayer .textWidgetAnnotation textarea {
  118. font: message-box;
  119. font-size: 9px;
  120. resize: none;
  121. }
  122. .annotationLayer .textWidgetAnnotation input[disabled],
  123. .annotationLayer .textWidgetAnnotation textarea[disabled],
  124. .annotationLayer .choiceWidgetAnnotation select[disabled],
  125. .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
  126. .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
  127. background: none;
  128. border: 1px solid transparent;
  129. cursor: not-allowed;
  130. }
  131. .annotationLayer .textWidgetAnnotation input:hover,
  132. .annotationLayer .textWidgetAnnotation textarea:hover,
  133. .annotationLayer .choiceWidgetAnnotation select:hover,
  134. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
  135. .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
  136. border: 1px solid rgba(0, 0, 0, 1);
  137. }
  138. .annotationLayer .textWidgetAnnotation input:focus,
  139. .annotationLayer .textWidgetAnnotation textarea:focus,
  140. .annotationLayer .choiceWidgetAnnotation select:focus {
  141. background: none;
  142. border: 1px solid transparent;
  143. }
  144. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  145. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
  146. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  147. background-color: rgba(0, 0, 0, 1);
  148. content: '';
  149. display: block;
  150. position: absolute;
  151. }
  152. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  153. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  154. height: 80%;
  155. left: 45%;
  156. width: 1px;
  157. }
  158. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
  159. -webkit-transform: rotate(45deg);
  160. transform: rotate(45deg);
  161. }
  162. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  163. -webkit-transform: rotate(-45deg);
  164. transform: rotate(-45deg);
  165. }
  166. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  167. border-radius: 50%;
  168. height: 50%;
  169. left: 30%;
  170. top: 20%;
  171. width: 50%;
  172. }
  173. .annotationLayer .textWidgetAnnotation input.comb {
  174. font-family: monospace;
  175. padding-left: 2px;
  176. padding-right: 0;
  177. }
  178. .annotationLayer .textWidgetAnnotation input.comb:focus {
  179. /*
  180. * Letter spacing is placed on the right side of each character. Hence, the
  181. * letter spacing of the last character may be placed outside the visible
  182. * area, causing horizontal scrolling. We avoid this by extending the width
  183. * when the element has focus and revert this when it loses focus.
  184. */
  185. width: 115%;
  186. }
  187. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  188. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  189. -webkit-appearance: none;
  190. -moz-appearance: none;
  191. appearance: none;
  192. padding: 0;
  193. }
  194. .annotationLayer .popupWrapper {
  195. position: absolute;
  196. width: 20em;
  197. }
  198. .annotationLayer .popup {
  199. position: absolute;
  200. z-index: 200;
  201. max-width: 20em;
  202. background-color: rgba(255, 255, 153, 1);
  203. box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
  204. border-radius: 2px;
  205. padding: 6px;
  206. margin-left: 5px;
  207. cursor: pointer;
  208. font: message-box;
  209. font-size: 9px;
  210. word-wrap: break-word;
  211. }
  212. .annotationLayer .popup > * {
  213. font-size: 9px;
  214. }
  215. .annotationLayer .popup h1 {
  216. display: inline-block;
  217. }
  218. .annotationLayer .popup span {
  219. display: inline-block;
  220. margin-left: 5px;
  221. }
  222. .annotationLayer .popup p {
  223. border-top: 1px solid rgba(51, 51, 51, 1);
  224. margin-top: 2px;
  225. padding-top: 2px;
  226. }
  227. .annotationLayer .highlightAnnotation,
  228. .annotationLayer .underlineAnnotation,
  229. .annotationLayer .squigglyAnnotation,
  230. .annotationLayer .strikeoutAnnotation,
  231. .annotationLayer .freeTextAnnotation,
  232. .annotationLayer .lineAnnotation svg line,
  233. .annotationLayer .squareAnnotation svg rect,
  234. .annotationLayer .circleAnnotation svg ellipse,
  235. .annotationLayer .polylineAnnotation svg polyline,
  236. .annotationLayer .polygonAnnotation svg polygon,
  237. .annotationLayer .caretAnnotation,
  238. .annotationLayer .inkAnnotation svg polyline,
  239. .annotationLayer .stampAnnotation,
  240. .annotationLayer .fileAttachmentAnnotation {
  241. cursor: pointer;
  242. }
  243. .pdfViewer .canvasWrapper {
  244. overflow: hidden;
  245. }
  246. .pdfViewer .page {
  247. direction: ltr;
  248. width: 816px;
  249. height: 1056px;
  250. margin: 0px auto -8px auto;
  251. position: relative;
  252. overflow: visible;
  253. border: 0px solid transparent;
  254. margin-bottom: 2px;
  255. background-clip: content-box;
  256. -webkit-border-image: url(images/shadow.png) 9 9 repeat;
  257. -o-border-image: url(images/shadow.png) 9 9 repeat;
  258. border-image: url(images/shadow.png) 9 9 repeat;
  259. background-color: rgba(255, 255, 255, 1);
  260. }
  261. .pdfViewer.removePageBorders .page {
  262. margin: 0px auto 10px auto;
  263. border: none;
  264. }
  265. .pdfViewer.singlePageView {
  266. display: inline-block;
  267. }
  268. .pdfViewer.singlePageView .page {
  269. margin: 0;
  270. border: none;
  271. }
  272. .pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
  273. margin-left: 3.5px;
  274. margin-right: 3.5px;
  275. text-align: center;
  276. }
  277. .pdfViewer.scrollHorizontal, .spread {
  278. white-space: nowrap;
  279. }
  280. .pdfViewer.removePageBorders,
  281. .pdfViewer.scrollHorizontal .spread,
  282. .pdfViewer.scrollWrapped .spread {
  283. margin-left: 0;
  284. margin-right: 0;
  285. }
  286. .spread .page,
  287. .pdfViewer.scrollHorizontal .page,
  288. .pdfViewer.scrollWrapped .page,
  289. .pdfViewer.scrollHorizontal .spread,
  290. .pdfViewer.scrollWrapped .spread {
  291. display: inline-block;
  292. vertical-align: middle;
  293. }
  294. .spread .page,
  295. .pdfViewer.scrollHorizontal .page,
  296. .pdfViewer.scrollWrapped .page {
  297. margin-left: -3.5px;
  298. margin-right: -3.5px;
  299. }
  300. .pdfViewer.removePageBorders .spread .page,
  301. .pdfViewer.removePageBorders.scrollHorizontal .page,
  302. .pdfViewer.removePageBorders.scrollWrapped .page {
  303. margin-left: 5px;
  304. margin-right: 5px;
  305. }
  306. .pdfViewer .page canvas {
  307. margin: 0;
  308. display: block;
  309. }
  310. .pdfViewer .page canvas[hidden] {
  311. display: none;
  312. }
  313. .pdfViewer .page .loadingIcon {
  314. position: absolute;
  315. display: block;
  316. left: 0;
  317. top: 0;
  318. right: 0;
  319. bottom: 0;
  320. background: url('images/loading-icon.gif') center no-repeat;
  321. }
  322. .pdfPresentationMode .pdfViewer {
  323. margin-left: 0;
  324. margin-right: 0;
  325. }
  326. .pdfPresentationMode .pdfViewer .page,
  327. .pdfPresentationMode .pdfViewer .spread {
  328. display: block;
  329. }
  330. .pdfPresentationMode .pdfViewer .page,
  331. .pdfPresentationMode .pdfViewer.removePageBorders .page {
  332. margin-left: auto;
  333. margin-right: auto;
  334. }
  335. .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
  336. margin-bottom: 100% !important;
  337. }
  338. .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
  339. margin-bottom: 100%;
  340. border: 0;
  341. }
  342. .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
  343. margin-bottom: 100%;
  344. border: 0;
  345. }
  346. .pdfPresentationMode:fullscreen .pdfViewer .page {
  347. margin-bottom: 100%;
  348. border: 0;
  349. }
  350. :root {
  351. --sidebar-width: 200px;
  352. --sidebar-transition-duration: 200ms;
  353. --sidebar-transition-timing-function: ease;
  354. }
  355. * {
  356. padding: 0;
  357. margin: 0;
  358. }
  359. html {
  360. height: 100%;
  361. width: 100%;
  362. /* Font size is needed to make the activity bar the correct size. */
  363. font-size: 10px;
  364. }
  365. body {
  366. height: 100%;
  367. width: 100%;
  368. background-color: rgba(64, 64, 64, 1);
  369. background-image: url(images/texture.png);
  370. }
  371. body,
  372. input,
  373. button,
  374. select {
  375. font: message-box;
  376. outline: none;
  377. }
  378. .hidden {
  379. display: none !important;
  380. }
  381. [hidden] {
  382. display: none !important;
  383. }
  384. #viewerContainer.pdfPresentationMode:-ms-fullscreen {
  385. top: 0px !important;
  386. overflow: hidden !important;
  387. }
  388. #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop {
  389. background-color: rgba(0, 0, 0, 1);
  390. }
  391. #viewerContainer.pdfPresentationMode:-webkit-full-screen {
  392. top: 0px;
  393. border-top: 2px solid rgba(0, 0, 0, 0);
  394. background-color: rgba(0, 0, 0, 1);
  395. width: 100%;
  396. height: 100%;
  397. overflow: hidden;
  398. cursor: none;
  399. -webkit-user-select: none;
  400. user-select: none;
  401. }
  402. #viewerContainer.pdfPresentationMode:-moz-full-screen {
  403. top: 0px;
  404. border-top: 2px solid rgba(0, 0, 0, 0);
  405. background-color: rgba(0, 0, 0, 1);
  406. width: 100%;
  407. height: 100%;
  408. overflow: hidden;
  409. cursor: none;
  410. -moz-user-select: none;
  411. user-select: none;
  412. }
  413. #viewerContainer.pdfPresentationMode:-ms-fullscreen {
  414. top: 0px;
  415. border-top: 2px solid rgba(0, 0, 0, 0);
  416. background-color: rgba(0, 0, 0, 1);
  417. width: 100%;
  418. height: 100%;
  419. overflow: hidden;
  420. cursor: none;
  421. -ms-user-select: none;
  422. user-select: none;
  423. }
  424. #viewerContainer.pdfPresentationMode:fullscreen {
  425. top: 0px;
  426. border-top: 2px solid rgba(0, 0, 0, 0);
  427. background-color: rgba(0, 0, 0, 1);
  428. width: 100%;
  429. height: 100%;
  430. overflow: hidden;
  431. cursor: none;
  432. -webkit-user-select: none;
  433. -moz-user-select: none;
  434. -ms-user-select: none;
  435. user-select: none;
  436. }
  437. .pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
  438. display: none;
  439. }
  440. .pdfPresentationMode:-moz-full-screen a:not(.internalLink) {
  441. display: none;
  442. }
  443. .pdfPresentationMode:-ms-fullscreen a:not(.internalLink) {
  444. display: none;
  445. }
  446. .pdfPresentationMode:fullscreen a:not(.internalLink) {
  447. display: none;
  448. }
  449. .pdfPresentationMode:-webkit-full-screen .textLayer > span {
  450. cursor: none;
  451. }
  452. .pdfPresentationMode:-moz-full-screen .textLayer > span {
  453. cursor: none;
  454. }
  455. .pdfPresentationMode:-ms-fullscreen .textLayer > span {
  456. cursor: none;
  457. }
  458. .pdfPresentationMode:fullscreen .textLayer > span {
  459. cursor: none;
  460. }
  461. .pdfPresentationMode.pdfPresentationModeControls > *,
  462. .pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
  463. cursor: default;
  464. }
  465. #outerContainer {
  466. width: 100%;
  467. height: 100%;
  468. position: relative;
  469. }
  470. #sidebarContainer {
  471. position: absolute;
  472. top: 32px;
  473. bottom: 0;
  474. width: 200px;
  475. width: var(--sidebar-width);
  476. visibility: hidden;
  477. z-index: 100;
  478. border-top: 1px solid rgba(51, 51, 51, 1);
  479. -webkit-transition-duration: 200ms;
  480. transition-duration: 200ms;
  481. -webkit-transition-duration: var(--sidebar-transition-duration);
  482. transition-duration: var(--sidebar-transition-duration);
  483. -webkit-transition-timing-function: ease;
  484. transition-timing-function: ease;
  485. -webkit-transition-timing-function: var(--sidebar-transition-timing-function);
  486. transition-timing-function: var(--sidebar-transition-timing-function);
  487. }
  488. html[dir='ltr'] #sidebarContainer {
  489. -webkit-transition-property: left;
  490. transition-property: left;
  491. left: -200px;
  492. left: calc(0px - var(--sidebar-width));
  493. }
  494. html[dir='rtl'] #sidebarContainer {
  495. -webkit-transition-property: right;
  496. transition-property: right;
  497. right: -200px;
  498. right: calc(0px - var(--sidebar-width));
  499. }
  500. .loadingInProgress #sidebarContainer {
  501. top: 36px;
  502. }
  503. #outerContainer.sidebarResizing #sidebarContainer {
  504. /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
  505. -webkit-transition-duration: 0s;
  506. transition-duration: 0s;
  507. /* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
  508. -webkit-user-select: none;
  509. -moz-user-select: none;
  510. -ms-user-select: none;
  511. user-select: none;
  512. }
  513. #outerContainer.sidebarMoving #sidebarContainer,
  514. #outerContainer.sidebarOpen #sidebarContainer {
  515. visibility: visible;
  516. }
  517. html[dir='ltr'] #outerContainer.sidebarOpen #sidebarContainer {
  518. left: 0px;
  519. }
  520. html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer {
  521. right: 0px;
  522. }
  523. #mainContainer {
  524. position: absolute;
  525. top: 0;
  526. right: 0;
  527. bottom: 0;
  528. left: 0;
  529. min-width: 320px;
  530. }
  531. #sidebarContent {
  532. top: 32px;
  533. bottom: 0;
  534. overflow: auto;
  535. -webkit-overflow-scrolling: touch;
  536. position: absolute;
  537. width: 100%;
  538. background-color: rgba(0, 0, 0, 0.1);
  539. }
  540. html[dir='ltr'] #sidebarContent {
  541. left: 0;
  542. box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
  543. }
  544. html[dir='rtl'] #sidebarContent {
  545. right: 0;
  546. box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
  547. }
  548. #viewerContainer {
  549. overflow: auto;
  550. -webkit-overflow-scrolling: touch;
  551. position: absolute;
  552. top: 0px;
  553. right: 0;
  554. bottom: 0;
  555. left: 0;
  556. outline: none;
  557. }
  558. #viewerContainer:not(.pdfPresentationMode) {
  559. -webkit-transition-duration: 200ms;
  560. transition-duration: 200ms;
  561. -webkit-transition-duration: var(--sidebar-transition-duration);
  562. transition-duration: var(--sidebar-transition-duration);
  563. -webkit-transition-timing-function: ease;
  564. transition-timing-function: ease;
  565. -webkit-transition-timing-function: var(--sidebar-transition-timing-function);
  566. transition-timing-function: var(--sidebar-transition-timing-function);
  567. }
  568. html[dir='ltr'] #viewerContainer {
  569. box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05);
  570. }
  571. html[dir='rtl'] #viewerContainer {
  572. box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
  573. }
  574. #outerContainer.sidebarResizing #viewerContainer {
  575. /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
  576. -webkit-transition-duration: 0s;
  577. transition-duration: 0s;
  578. }
  579. html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
  580. -webkit-transition-property: left;
  581. transition-property: left;
  582. left: 200px;
  583. left: var(--sidebar-width);
  584. }
  585. html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
  586. -webkit-transition-property: right;
  587. transition-property: right;
  588. right: 200px;
  589. right: var(--sidebar-width);
  590. }
  591. .toolbar {
  592. position: relative;
  593. left: 0;
  594. right: 0;
  595. z-index: 9999;
  596. cursor: default;
  597. }
  598. #toolbarContainer {
  599. width: 100%;
  600. }
  601. #toolbarSidebar {
  602. width: 100%;
  603. height: 32px;
  604. background-color: rgba(66, 66, 66, 1); /* fallback */
  605. background-image: url(images/texture.png),
  606. -webkit-gradient(linear, left top, left bottom, from(rgba(77, 77, 77, 0.99)), to(rgba(64, 64, 64, 0.95)));
  607. background-image: url(images/texture.png),
  608. linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95));
  609. }
  610. html[dir='ltr'] #toolbarSidebar {
  611. box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
  612. inset 0 -1px 0 rgba(255, 255, 255, 0.05),
  613. 0 1px 0 rgba(0, 0, 0, 0.15),
  614. 0 0 1px rgba(0, 0, 0, 0.1);
  615. }
  616. html[dir='rtl'] #toolbarSidebar {
  617. box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
  618. inset 0 1px 0 rgba(255, 255, 255, 0.05),
  619. 0 1px 0 rgba(0, 0, 0, 0.15),
  620. 0 0 1px rgba(0, 0, 0, 0.1);
  621. }
  622. #sidebarResizer {
  623. position: absolute;
  624. top: 0;
  625. bottom: 0;
  626. width: 6px;
  627. z-index: 200;
  628. cursor: ew-resize;
  629. }
  630. html[dir='ltr'] #sidebarResizer {
  631. right: -6px;
  632. }
  633. html[dir='rtl'] #sidebarResizer {
  634. left: -6px;
  635. }
  636. #toolbarContainer, .findbar, .secondaryToolbar {
  637. position: relative;
  638. height: 32px;
  639. background-color: rgba(71, 71, 71, 1); /* fallback */
  640. background-image: url(images/texture.png),
  641. -webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82, 0.99)), to(rgba(69, 69, 69, 0.95)));
  642. background-image: url(images/texture.png),
  643. linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95));
  644. }
  645. html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
  646. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
  647. inset 0 -1px 0 rgba(255, 255, 255, 0.05),
  648. 0 1px 0 rgba(0, 0, 0, 0.15),
  649. 0 1px 1px rgba(0, 0, 0, 0.1);
  650. }
  651. html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
  652. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
  653. inset 0 -1px 0 rgba(255, 255, 255, 0.05),
  654. 0 1px 0 rgba(0, 0, 0, 0.15),
  655. 0 1px 1px rgba(0, 0, 0, 0.1);
  656. }
  657. #toolbarViewer {
  658. height: 32px;
  659. }
  660. #loadingBar {
  661. position: relative;
  662. width: 100%;
  663. height: 4px;
  664. background-color: rgba(51, 51, 51, 1);
  665. border-bottom: 1px solid rgba(51, 51, 51, 1);
  666. }
  667. #loadingBar .progress {
  668. position: absolute;
  669. top: 0;
  670. left: 0;
  671. width: 0%;
  672. height: 100%;
  673. background-color: rgba(221, 221, 221, 1);
  674. overflow: hidden;
  675. -webkit-transition: width 200ms;
  676. transition: width 200ms;
  677. }
  678. @-webkit-keyframes progressIndeterminate {
  679. 0% { left: -142px; }
  680. 100% { left: 0; }
  681. }
  682. @keyframes progressIndeterminate {
  683. 0% { left: -142px; }
  684. 100% { left: 0; }
  685. }
  686. #loadingBar .progress.indeterminate {
  687. background-color: rgba(153, 153, 153, 1);
  688. -webkit-transition: none;
  689. transition: none;
  690. }
  691. #loadingBar .progress.indeterminate .glimmer {
  692. position: absolute;
  693. top: 0;
  694. left: 0;
  695. height: 100%;
  696. width: calc(100% + 150px);
  697. background: repeating-linear-gradient(135deg,
  698. rgba(187, 187, 187, 1) 0, rgba(153, 153, 153, 1) 5px,
  699. rgba(153, 153, 153, 1) 45px, rgba(221, 221, 221, 1) 55px,
  700. rgba(221, 221, 221, 1) 95px, rgba(187, 187, 187, 1) 100px);
  701. -webkit-animation: progressIndeterminate 950ms linear infinite;
  702. animation: progressIndeterminate 950ms linear infinite;
  703. }
  704. .findbar, .secondaryToolbar {
  705. top: 32px;
  706. position: absolute;
  707. z-index: 10000;
  708. height: auto;
  709. min-width: 16px;
  710. padding: 0px 6px 0px 6px;
  711. margin: 4px 2px 4px 2px;
  712. color: rgba(217, 217, 217, 1);
  713. font-size: 12px;
  714. line-height: 14px;
  715. text-align: left;
  716. cursor: default;
  717. }
  718. .findbar {
  719. min-width: 300px;
  720. }
  721. .findbar > div {
  722. height: 32px;
  723. }
  724. .findbar.wrapContainers > div {
  725. clear: both;
  726. }
  727. .findbar.wrapContainers > div#findbarMessageContainer {
  728. height: auto;
  729. }
  730. html[dir='ltr'] .findbar {
  731. left: 68px;
  732. }
  733. html[dir='rtl'] .findbar {
  734. right: 68px;
  735. }
  736. .findbar label {
  737. -webkit-user-select: none;
  738. -moz-user-select: none;
  739. -ms-user-select: none;
  740. user-select: none;
  741. }
  742. #findInput {
  743. width: 200px;
  744. }
  745. #findInput::-webkit-input-placeholder {
  746. color: rgba(191, 191, 191, 1);
  747. }
  748. #findInput::-moz-placeholder {
  749. font-style: italic;
  750. }
  751. #findInput:-ms-input-placeholder {
  752. font-style: italic;
  753. }
  754. #findInput::-ms-input-placeholder {
  755. font-style: italic;
  756. }
  757. #findInput::placeholder {
  758. font-style: italic;
  759. }
  760. #findInput[data-status="pending"] {
  761. background-image: url(images/loading-small.png);
  762. background-repeat: no-repeat;
  763. background-position: right;
  764. }
  765. html[dir='rtl'] #findInput[data-status="pending"] {
  766. background-position: left;
  767. }
  768. .secondaryToolbar {
  769. padding: 6px;
  770. height: auto;
  771. z-index: 30000;
  772. }
  773. html[dir='ltr'] .secondaryToolbar {
  774. right: 4px;
  775. }
  776. html[dir='rtl'] .secondaryToolbar {
  777. left: 4px;
  778. }
  779. #secondaryToolbarButtonContainer {
  780. max-width: 200px;
  781. max-height: 400px;
  782. overflow-y: auto;
  783. -webkit-overflow-scrolling: touch;
  784. margin-bottom: -4px;
  785. }
  786. #secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
  787. #secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
  788. display: none !important;
  789. }
  790. .doorHanger,
  791. .doorHangerRight {
  792. border: 1px solid rgba(0, 0, 0, 0.5);
  793. border-radius: 2px;
  794. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  795. }
  796. .doorHanger:after, .doorHanger:before,
  797. .doorHangerRight:after, .doorHangerRight:before {
  798. bottom: 100%;
  799. border: solid rgba(0, 0, 0, 0);
  800. content: " ";
  801. height: 0;
  802. width: 0;
  803. position: absolute;
  804. pointer-events: none;
  805. }
  806. .doorHanger:after,
  807. .doorHangerRight:after {
  808. border-bottom-color: rgba(82, 82, 82, 0.99);
  809. border-width: 8px;
  810. }
  811. .doorHanger:before,
  812. .doorHangerRight:before {
  813. border-bottom-color: rgba(0, 0, 0, 0.5);
  814. border-width: 9px;
  815. }
  816. html[dir='ltr'] .doorHanger:after,
  817. html[dir='rtl'] .doorHangerRight:after {
  818. left: 13px;
  819. margin-left: -8px;
  820. }
  821. html[dir='ltr'] .doorHanger:before,
  822. html[dir='rtl'] .doorHangerRight:before {
  823. left: 13px;
  824. margin-left: -9px;
  825. }
  826. html[dir='rtl'] .doorHanger:after,
  827. html[dir='ltr'] .doorHangerRight:after {
  828. right: 13px;
  829. margin-right: -8px;
  830. }
  831. html[dir='rtl'] .doorHanger:before,
  832. html[dir='ltr'] .doorHangerRight:before {
  833. right: 13px;
  834. margin-right: -9px;
  835. }
  836. #findResultsCount {
  837. background-color: rgba(217, 217, 217, 1);
  838. color: rgba(82, 82, 82, 1);
  839. text-align: center;
  840. padding: 3px 4px;
  841. }
  842. #findMsg {
  843. font-style: italic;
  844. color: rgba(166, 183, 208, 1);
  845. }
  846. #findMsg:empty {
  847. display: none;
  848. }
  849. #findInput.notFound {
  850. background-color: rgba(255, 102, 102, 1);
  851. }
  852. #toolbarViewerMiddle {
  853. position: absolute;
  854. left: 50%;
  855. -webkit-transform: translateX(-50%);
  856. transform: translateX(-50%);
  857. }
  858. html[dir='ltr'] #toolbarViewerLeft,
  859. html[dir='rtl'] #toolbarViewerRight {
  860. float: left;
  861. }
  862. html[dir='ltr'] #toolbarViewerRight,
  863. html[dir='rtl'] #toolbarViewerLeft {
  864. float: right;
  865. }
  866. html[dir='ltr'] #toolbarViewerLeft > *,
  867. html[dir='ltr'] #toolbarViewerMiddle > *,
  868. html[dir='ltr'] #toolbarViewerRight > *,
  869. html[dir='ltr'] .findbar * {
  870. position: relative;
  871. float: left;
  872. }
  873. html[dir='rtl'] #toolbarViewerLeft > *,
  874. html[dir='rtl'] #toolbarViewerMiddle > *,
  875. html[dir='rtl'] #toolbarViewerRight > *,
  876. html[dir='rtl'] .findbar * {
  877. position: relative;
  878. float: right;
  879. }
  880. html[dir='ltr'] .splitToolbarButton {
  881. margin: 3px 2px 4px 0;
  882. display: inline-block;
  883. }
  884. html[dir='rtl'] .splitToolbarButton {
  885. margin: 3px 0 4px 2px;
  886. display: inline-block;
  887. }
  888. html[dir='ltr'] .splitToolbarButton > .toolbarButton {
  889. border-radius: 0;
  890. float: left;
  891. }
  892. html[dir='rtl'] .splitToolbarButton > .toolbarButton {
  893. border-radius: 0;
  894. float: right;
  895. }
  896. .toolbarButton,
  897. .secondaryToolbarButton,
  898. .overlayButton {
  899. border: 0 none;
  900. background: none;
  901. width: 32px;
  902. height: 25px;
  903. }
  904. .toolbarButton > span {
  905. display: inline-block;
  906. width: 0;
  907. height: 0;
  908. overflow: hidden;
  909. }
  910. .toolbarButton[disabled],
  911. .secondaryToolbarButton[disabled],
  912. .overlayButton[disabled] {
  913. opacity: .5;
  914. }
  915. .splitToolbarButton.toggled .toolbarButton {
  916. margin: 0;
  917. }
  918. .splitToolbarButton:hover > .toolbarButton,
  919. .splitToolbarButton:focus > .toolbarButton,
  920. .splitToolbarButton.toggled > .toolbarButton,
  921. .toolbarButton.textButton {
  922. background-color: rgba(0, 0, 0, 0.12);
  923. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  924. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  925. background-clip: padding-box;
  926. border: 1px solid rgba(0, 0, 0, 0.35);
  927. border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
  928. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  929. 0 0 1px rgba(255, 255, 255, 0.15) inset,
  930. 0 1px 0 rgba(255, 255, 255, 0.05);
  931. }
  932. .splitToolbarButton > .toolbarButton:hover,
  933. .splitToolbarButton > .toolbarButton:focus,
  934. .dropdownToolbarButton:hover,
  935. .overlayButton:hover,
  936. .overlayButton:focus,
  937. .toolbarButton.textButton:hover,
  938. .toolbarButton.textButton:focus {
  939. background-color: rgba(0,0,0,0.2);
  940. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  941. 0 0 1px rgba(255, 255, 255, 0.15) inset,
  942. 0 0 1px rgba(0, 0, 0, 0.05);
  943. z-index: 199;
  944. }
  945. .dropdownToolbarButton:hover {
  946. background-color: rgba(0, 0, 0, 0.26);
  947. }
  948. .splitToolbarButton > .toolbarButton {
  949. position: relative;
  950. }
  951. html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
  952. html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
  953. position: relative;
  954. margin: 0;
  955. margin-right: -1px;
  956. border-top-left-radius: 2px;
  957. border-bottom-left-radius: 2px;
  958. border-right-color: rgba(0, 0, 0, 0);
  959. }
  960. html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
  961. html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
  962. position: relative;
  963. margin: 0;
  964. margin-left: -1px;
  965. border-top-right-radius: 2px;
  966. border-bottom-right-radius: 2px;
  967. border-left-color: rgba(0, 0, 0, 0);
  968. }
  969. .splitToolbarButtonSeparator {
  970. padding: 8px 0;
  971. width: 1px;
  972. background-color: rgba(0, 0, 0, 0.5);
  973. z-index: 99;
  974. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  975. display: inline-block;
  976. margin: 5px 0;
  977. }
  978. html[dir='ltr'] .splitToolbarButtonSeparator {
  979. float: left;
  980. }
  981. html[dir='rtl'] .splitToolbarButtonSeparator {
  982. float: right;
  983. }
  984. .splitToolbarButton:hover > .splitToolbarButtonSeparator,
  985. .splitToolbarButton.toggled > .splitToolbarButtonSeparator {
  986. padding: 12px 0;
  987. margin: 1px 0;
  988. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  989. }
  990. .toolbarButton,
  991. .dropdownToolbarButton,
  992. .secondaryToolbarButton,
  993. .overlayButton {
  994. min-width: 16px;
  995. padding: 2px 6px 0;
  996. border: 1px solid rgba(0, 0, 0, 0);
  997. border-radius: 2px;
  998. color: rgba(255, 255, 255, 0.8);
  999. font-size: 12px;
  1000. line-height: 14px;
  1001. -webkit-user-select: none;
  1002. -moz-user-select: none;
  1003. -ms-user-select: none;
  1004. user-select: none;
  1005. /* Opera does not support user-select, use <... unselectable="on"> instead */
  1006. cursor: default;
  1007. }
  1008. html[dir='ltr'] .toolbarButton,
  1009. html[dir='ltr'] .overlayButton,
  1010. html[dir='ltr'] .dropdownToolbarButton {
  1011. margin: 3px 2px 4px 0;
  1012. }
  1013. html[dir='rtl'] .toolbarButton,
  1014. html[dir='rtl'] .overlayButton,
  1015. html[dir='rtl'] .dropdownToolbarButton {
  1016. margin: 3px 0 4px 2px;
  1017. }
  1018. .toolbarButton:hover,
  1019. .toolbarButton:focus,
  1020. .dropdownToolbarButton,
  1021. .overlayButton,
  1022. .secondaryToolbarButton:hover,
  1023. .secondaryToolbarButton:focus {
  1024. background-color: rgba(0, 0, 0, 0.12);
  1025. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1026. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1027. background-clip: padding-box;
  1028. border: 1px solid rgba(0, 0, 0, 0.35);
  1029. border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
  1030. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  1031. 0 0 1px rgba(255, 255, 255, 0.15) inset,
  1032. 0 1px 0 rgba(255, 255, 255, 0.05);
  1033. }
  1034. .toolbarButton:hover:active,
  1035. .overlayButton:hover:active,
  1036. .dropdownToolbarButton:hover:active,
  1037. .secondaryToolbarButton:hover:active {
  1038. background-color: rgba(0, 0, 0, 0.2);
  1039. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1040. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1041. border-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45);
  1042. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
  1043. 0 0 1px rgba(0, 0, 0, 0.2) inset,
  1044. 0 1px 0 rgba(255, 255, 255, 0.05);
  1045. }
  1046. .toolbarButton.toggled,
  1047. .splitToolbarButton.toggled > .toolbarButton.toggled,
  1048. .secondaryToolbarButton.toggled {
  1049. background-color: rgba(0, 0, 0, 0.3);
  1050. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1051. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1052. border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.5);
  1053. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
  1054. 0 0 1px rgba(0, 0, 0, 0.2) inset,
  1055. 0 1px 0 rgba(255, 255, 255, 0.05);
  1056. }
  1057. .toolbarButton.toggled:hover:active,
  1058. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
  1059. .secondaryToolbarButton.toggled:hover:active {
  1060. background-color: rgba(0, 0, 0, 0.4);
  1061. border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.55);
  1062. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset,
  1063. 0 0 1px rgba(0, 0, 0, 0.3) inset,
  1064. 0 1px 0 rgba(255, 255, 255, 0.05);
  1065. }
  1066. .dropdownToolbarButton {
  1067. width: 140px;
  1068. padding: 0;
  1069. overflow: hidden;
  1070. }
  1071. .dropdownToolbarButton::after {
  1072. position: absolute;
  1073. display: inline-block;
  1074. top: 4px;
  1075. content: url(images/toolbarButton-menuArrows.png);
  1076. }
  1077. html[dir='ltr'] .dropdownToolbarButton::after {
  1078. right: 8px;
  1079. }
  1080. html[dir='rtl'] .dropdownToolbarButton::after {
  1081. left: 8px;
  1082. }
  1083. .dropdownToolbarButton > select {
  1084. width: 162px;
  1085. height: 23px;
  1086. font-size: 12px;
  1087. color: rgba(242, 242, 242, 1);
  1088. margin: 0;
  1089. padding: 3px 2px 2px;
  1090. border: none;
  1091. background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
  1092. }
  1093. .dropdownToolbarButton > select > option {
  1094. background: rgba(61, 61, 61, 1);
  1095. }
  1096. #customScaleOption {
  1097. display: none;
  1098. }
  1099. #pageWidthOption {
  1100. border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
  1101. }
  1102. html[dir='ltr'] .splitToolbarButton:first-child,
  1103. html[dir='ltr'] .toolbarButton:first-child,
  1104. html[dir='rtl'] .splitToolbarButton:last-child,
  1105. html[dir='rtl'] .toolbarButton:last-child {
  1106. margin-left: 4px;
  1107. }
  1108. html[dir='ltr'] .splitToolbarButton:last-child,
  1109. html[dir='ltr'] .toolbarButton:last-child,
  1110. html[dir='rtl'] .splitToolbarButton:first-child,
  1111. html[dir='rtl'] .toolbarButton:first-child {
  1112. margin-right: 4px;
  1113. }
  1114. .toolbarButtonSpacer {
  1115. width: 30px;
  1116. display: inline-block;
  1117. height: 1px;
  1118. }
  1119. html[dir='ltr'] #findPrevious {
  1120. margin-left: 3px;
  1121. }
  1122. html[dir='ltr'] #findNext {
  1123. margin-right: 3px;
  1124. }
  1125. html[dir='rtl'] #findPrevious {
  1126. margin-right: 3px;
  1127. }
  1128. html[dir='rtl'] #findNext {
  1129. margin-left: 3px;
  1130. }
  1131. .toolbarButton::before,
  1132. .secondaryToolbarButton::before {
  1133. /* All matching images have a size of 16x16
  1134. * All relevant containers have a size of 32x25 */
  1135. position: absolute;
  1136. display: inline-block;
  1137. top: 4px;
  1138. left: 7px;
  1139. }
  1140. html[dir="ltr"] .secondaryToolbarButton::before {
  1141. left: 4px;
  1142. }
  1143. html[dir="rtl"] .secondaryToolbarButton::before {
  1144. right: 4px;
  1145. }
  1146. html[dir='ltr'] .toolbarButton#sidebarToggle::before {
  1147. content: url(images/toolbarButton-sidebarToggle.png);
  1148. }
  1149. html[dir='rtl'] .toolbarButton#sidebarToggle::before {
  1150. content: url(images/toolbarButton-sidebarToggle-rtl.png);
  1151. }
  1152. html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
  1153. content: url(images/toolbarButton-secondaryToolbarToggle.png);
  1154. }
  1155. html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
  1156. content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png);
  1157. }
  1158. html[dir='ltr'] .toolbarButton.findPrevious::before {
  1159. content: url(images/findbarButton-previous.png);
  1160. }
  1161. html[dir='rtl'] .toolbarButton.findPrevious::before {
  1162. content: url(images/findbarButton-previous-rtl.png);
  1163. }
  1164. html[dir='ltr'] .toolbarButton.findNext::before {
  1165. content: url(images/findbarButton-next.png);
  1166. }
  1167. html[dir='rtl'] .toolbarButton.findNext::before {
  1168. content: url(images/findbarButton-next-rtl.png);
  1169. }
  1170. html[dir='ltr'] .toolbarButton.pageUp::before {
  1171. content: url(images/toolbarButton-pageUp.png);
  1172. }
  1173. html[dir='rtl'] .toolbarButton.pageUp::before {
  1174. content: url(images/toolbarButton-pageUp-rtl.png);
  1175. }
  1176. html[dir='ltr'] .toolbarButton.pageDown::before {
  1177. content: url(images/toolbarButton-pageDown.png);
  1178. }
  1179. html[dir='rtl'] .toolbarButton.pageDown::before {
  1180. content: url(images/toolbarButton-pageDown-rtl.png);
  1181. }
  1182. .toolbarButton.zoomOut::before {
  1183. content: url(images/toolbarButton-zoomOut.png);
  1184. }
  1185. .toolbarButton.zoomIn::before {
  1186. content: url(images/toolbarButton-zoomIn.png);
  1187. }
  1188. .toolbarButton.presentationMode::before,
  1189. .secondaryToolbarButton.presentationMode::before {
  1190. content: url(images/toolbarButton-presentationMode.png);
  1191. }
  1192. .toolbarButton.print::before,
  1193. .secondaryToolbarButton.print::before {
  1194. content: url(images/toolbarButton-print.png);
  1195. }
  1196. .toolbarButton.openFile::before,
  1197. .secondaryToolbarButton.openFile::before {
  1198. content: url(images/toolbarButton-openFile.png);
  1199. }
  1200. .toolbarButton.download::before,
  1201. .secondaryToolbarButton.download::before {
  1202. content: url(images/toolbarButton-download.png);
  1203. }
  1204. .toolbarButton.bookmark,
  1205. .secondaryToolbarButton.bookmark {
  1206. box-sizing: border-box;
  1207. outline: none;
  1208. padding-top: 4px;
  1209. text-decoration: none;
  1210. }
  1211. .secondaryToolbarButton.bookmark {
  1212. padding-top: 5px;
  1213. }
  1214. .bookmark[href='#'] {
  1215. opacity: .5;
  1216. pointer-events: none;
  1217. }
  1218. .toolbarButton.bookmark::before,
  1219. .secondaryToolbarButton.bookmark::before {
  1220. content: url(images/toolbarButton-bookmark.png);
  1221. }
  1222. #viewThumbnail.toolbarButton::before {
  1223. content: url(images/toolbarButton-viewThumbnail.png);
  1224. }
  1225. html[dir="ltr"] #viewOutline.toolbarButton::before {
  1226. content: url(images/toolbarButton-viewOutline.png);
  1227. }
  1228. html[dir="rtl"] #viewOutline.toolbarButton::before {
  1229. content: url(images/toolbarButton-viewOutline-rtl.png);
  1230. }
  1231. #viewAttachments.toolbarButton::before {
  1232. content: url(images/toolbarButton-viewAttachments.png);
  1233. }
  1234. #viewFind.toolbarButton::before {
  1235. content: url(images/toolbarButton-search.png);
  1236. }
  1237. .toolbarButton.pdfSidebarNotification::after {
  1238. position: absolute;
  1239. display: inline-block;
  1240. top: 1px;
  1241. /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
  1242. content: '';
  1243. background-color: rgba(112, 219, 85, 1);
  1244. height: 9px;
  1245. width: 9px;
  1246. border-radius: 50%;
  1247. }
  1248. html[dir='ltr'] .toolbarButton.pdfSidebarNotification::after {
  1249. left: 17px;
  1250. }
  1251. html[dir='rtl'] .toolbarButton.pdfSidebarNotification::after {
  1252. right: 17px;
  1253. }
  1254. .secondaryToolbarButton {
  1255. position: relative;
  1256. margin: 0 0 4px 0;
  1257. padding: 3px 0 1px 0;
  1258. height: auto;
  1259. min-height: 25px;
  1260. width: auto;
  1261. min-width: 100%;
  1262. white-space: normal;
  1263. }
  1264. html[dir="ltr"] .secondaryToolbarButton {
  1265. padding-left: 24px;
  1266. text-align: left;
  1267. }
  1268. html[dir="rtl"] .secondaryToolbarButton {
  1269. padding-right: 24px;
  1270. text-align: right;
  1271. }
  1272. html[dir="ltr"] .secondaryToolbarButton.bookmark {
  1273. padding-left: 27px;
  1274. }
  1275. html[dir="rtl"] .secondaryToolbarButton.bookmark {
  1276. padding-right: 27px;
  1277. }
  1278. html[dir="ltr"] .secondaryToolbarButton > span {
  1279. padding-right: 4px;
  1280. }
  1281. html[dir="rtl"] .secondaryToolbarButton > span {
  1282. padding-left: 4px;
  1283. }
  1284. .secondaryToolbarButton.firstPage::before {
  1285. content: url(images/secondaryToolbarButton-firstPage.png);
  1286. }
  1287. .secondaryToolbarButton.lastPage::before {
  1288. content: url(images/secondaryToolbarButton-lastPage.png);
  1289. }
  1290. .secondaryToolbarButton.rotateCcw::before {
  1291. content: url(images/secondaryToolbarButton-rotateCcw.png);
  1292. }
  1293. .secondaryToolbarButton.rotateCw::before {
  1294. content: url(images/secondaryToolbarButton-rotateCw.png);
  1295. }
  1296. .secondaryToolbarButton.selectTool::before {
  1297. content: url(images/secondaryToolbarButton-selectTool.png);
  1298. }
  1299. .secondaryToolbarButton.handTool::before {
  1300. content: url(images/secondaryToolbarButton-handTool.png);
  1301. }
  1302. .secondaryToolbarButton.scrollVertical::before {
  1303. content: url(images/secondaryToolbarButton-scrollVertical.png);
  1304. }
  1305. .secondaryToolbarButton.scrollHorizontal::before {
  1306. content: url(images/secondaryToolbarButton-scrollHorizontal.png);
  1307. }
  1308. .secondaryToolbarButton.scrollWrapped::before {
  1309. content: url(images/secondaryToolbarButton-scrollWrapped.png);
  1310. }
  1311. .secondaryToolbarButton.spreadNone::before {
  1312. content: url(images/secondaryToolbarButton-spreadNone.png);
  1313. }
  1314. .secondaryToolbarButton.spreadOdd::before {
  1315. content: url(images/secondaryToolbarButton-spreadOdd.png);
  1316. }
  1317. .secondaryToolbarButton.spreadEven::before {
  1318. content: url(images/secondaryToolbarButton-spreadEven.png);
  1319. }
  1320. .secondaryToolbarButton.documentProperties::before {
  1321. content: url(images/secondaryToolbarButton-documentProperties.png);
  1322. }
  1323. .verticalToolbarSeparator {
  1324. display: block;
  1325. padding: 8px 0;
  1326. margin: 8px 4px;
  1327. width: 1px;
  1328. background-color: rgba(0, 0, 0, 0.5);
  1329. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  1330. }
  1331. html[dir='ltr'] .verticalToolbarSeparator {
  1332. margin-left: 2px;
  1333. }
  1334. html[dir='rtl'] .verticalToolbarSeparator {
  1335. margin-right: 2px;
  1336. }
  1337. .horizontalToolbarSeparator {
  1338. display: block;
  1339. margin: 0 0 4px 0;
  1340. height: 1px;
  1341. width: 100%;
  1342. background-color: rgba(0, 0, 0, 0.5);
  1343. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  1344. }
  1345. .toolbarField {
  1346. padding: 3px 6px;
  1347. margin: 4px 0 4px 0;
  1348. border-radius: 2px;
  1349. background-color: rgba(255, 255, 255, 0.09);
  1350. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1351. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1352. background-clip: padding-box;
  1353. border-width: 1px;
  1354. border-style: solid;
  1355. border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
  1356. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset,
  1357. 0 1px 0 rgba(255, 255, 255, 0.05);
  1358. color: rgba(242, 242, 242, 1);
  1359. font-size: 12px;
  1360. line-height: 14px;
  1361. outline-style: none;
  1362. }
  1363. .toolbarField[type=checkbox] {
  1364. display: inline-block;
  1365. margin: 8px 0px;
  1366. }
  1367. .toolbarField.pageNumber {
  1368. -moz-appearance: textfield; /* hides the spinner in moz */
  1369. min-width: 16px;
  1370. text-align: right;
  1371. width: 40px;
  1372. }
  1373. .toolbarField.pageNumber.visiblePageIsLoading {
  1374. background-image: url(images/loading-small.png);
  1375. background-repeat: no-repeat;
  1376. background-position: 1px;
  1377. }
  1378. .toolbarField.pageNumber::-webkit-inner-spin-button,
  1379. .toolbarField.pageNumber::-webkit-outer-spin-button {
  1380. -webkit-appearance: none;
  1381. margin: 0;
  1382. }
  1383. .toolbarField:hover {
  1384. background-color: rgba(255, 255, 255, 0.11);
  1385. border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.43) rgba(0, 0, 0, 0.45);
  1386. }
  1387. .toolbarField:focus {
  1388. background-color: rgba(255, 255, 255, 0.15);
  1389. border-color: rgba(77, 184, 255, 0.8) rgba(77, 184, 255, 0.85) rgba(77, 184, 255, 0.9);
  1390. }
  1391. .toolbarLabel {
  1392. min-width: 16px;
  1393. padding: 3px 6px 3px 2px;
  1394. margin: 4px 2px 4px 0;
  1395. border: 1px solid rgba(0, 0, 0, 0);
  1396. border-radius: 2px;
  1397. color: rgba(217, 217, 217, 1);
  1398. font-size: 12px;
  1399. line-height: 14px;
  1400. text-align: left;
  1401. -webkit-user-select: none;
  1402. -moz-user-select: none;
  1403. -ms-user-select: none;
  1404. user-select: none;
  1405. cursor: default;
  1406. }
  1407. #thumbnailView {
  1408. position: absolute;
  1409. width: calc(100% - 60px);
  1410. top: 0;
  1411. bottom: 0;
  1412. padding: 10px 30px 0;
  1413. overflow: auto;
  1414. -webkit-overflow-scrolling: touch;
  1415. }
  1416. #thumbnailView > a:active,
  1417. #thumbnailView > a:focus {
  1418. outline: 0;
  1419. }
  1420. .thumbnail {
  1421. margin: 0 10px 5px 10px;
  1422. }
  1423. html[dir='ltr'] .thumbnail {
  1424. float: left;
  1425. }
  1426. html[dir='rtl'] .thumbnail {
  1427. float: right;
  1428. }
  1429. #thumbnailView > a:last-of-type > .thumbnail {
  1430. margin-bottom: 10px;
  1431. }
  1432. #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
  1433. margin-bottom: 9px;
  1434. }
  1435. .thumbnail:not([data-loaded]) {
  1436. border: 1px dashed rgba(255, 255, 255, 0.5);
  1437. margin: -1px 9px 4px 9px;
  1438. }
  1439. .thumbnailImage {
  1440. border: 1px solid rgba(0, 0, 0, 0);
  1441. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  1442. opacity: 0.8;
  1443. z-index: 99;
  1444. background-color: rgba(255, 255, 255, 1);
  1445. background-clip: content-box;
  1446. }
  1447. .thumbnailSelectionRing {
  1448. border-radius: 2px;
  1449. padding: 7px;
  1450. }
  1451. a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
  1452. .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
  1453. opacity: .9;
  1454. }
  1455. a:focus > .thumbnail > .thumbnailSelectionRing,
  1456. .thumbnail:hover > .thumbnailSelectionRing {
  1457. background-color: rgba(255, 255, 255, 0.15);
  1458. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1459. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1460. background-clip: padding-box;
  1461. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  1462. 0 0 1px rgba(255, 255, 255, 0.2) inset,
  1463. 0 0 1px rgba(0, 0, 0, 0.2);
  1464. color: rgba(255, 255, 255, 0.9);
  1465. }
  1466. .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
  1467. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  1468. opacity: 1;
  1469. }
  1470. .thumbnail.selected > .thumbnailSelectionRing {
  1471. background-color: rgba(255, 255, 255, 0.3);
  1472. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1473. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1474. background-clip: padding-box;
  1475. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  1476. 0 0 1px rgba(255, 255, 255, 0.1) inset,
  1477. 0 0 1px rgba(0, 0, 0, 0.2);
  1478. color: rgba(255, 255, 255,1);
  1479. }
  1480. #outlineView,
  1481. #attachmentsView {
  1482. position: absolute;
  1483. width: calc(100% - 8px);
  1484. top: 0;
  1485. bottom: 0;
  1486. overflow: auto;
  1487. -webkit-overflow-scrolling: touch;
  1488. -webkit-user-select: none;
  1489. -moz-user-select: none;
  1490. -ms-user-select: none;
  1491. user-select: none;
  1492. }
  1493. #outlineView {
  1494. padding: 4px 4px 0;
  1495. }
  1496. #attachmentsView {
  1497. padding: 3px 4px 0;
  1498. }
  1499. html[dir='ltr'] .outlineWithDeepNesting > .outlineItem,
  1500. html[dir='ltr'] .outlineItem > .outlineItems {
  1501. margin-left: 20px;
  1502. }
  1503. html[dir='rtl'] .outlineWithDeepNesting > .outlineItem,
  1504. html[dir='rtl'] .outlineItem > .outlineItems {
  1505. margin-right: 20px;
  1506. }
  1507. .outlineItem > a,
  1508. .attachmentsItem > button {
  1509. text-decoration: none;
  1510. display: inline-block;
  1511. min-width: 95%;
  1512. min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode)
  1513. of the container. */
  1514. height: auto;
  1515. margin-bottom: 1px;
  1516. border-radius: 2px;
  1517. color: rgba(255, 255, 255, 0.8);
  1518. font-size: 13px;
  1519. line-height: 15px;
  1520. -webkit-user-select: none;
  1521. -moz-user-select: none;
  1522. -ms-user-select: none;
  1523. user-select: none;
  1524. white-space: normal;
  1525. }
  1526. .attachmentsItem > button {
  1527. border: 0 none;
  1528. background: none;
  1529. cursor: pointer;
  1530. width: 100%;
  1531. }
  1532. html[dir='ltr'] .outlineItem > a {
  1533. padding: 2px 0 5px 4px;
  1534. }
  1535. html[dir='ltr'] .attachmentsItem > button {
  1536. padding: 2px 0 3px 7px;
  1537. text-align: left;
  1538. }
  1539. html[dir='rtl'] .outlineItem > a {
  1540. padding: 2px 4px 5px 0;
  1541. }
  1542. html[dir='rtl'] .attachmentsItem > button {
  1543. padding: 2px 7px 3px 0;
  1544. text-align: right;
  1545. }
  1546. .outlineItemToggler {
  1547. position: relative;
  1548. height: 0;
  1549. width: 0;
  1550. color: rgba(255, 255, 255, 0.5);
  1551. }
  1552. .outlineItemToggler::before {
  1553. content: url(images/treeitem-expanded.png);
  1554. display: inline-block;
  1555. position: absolute;
  1556. }
  1557. html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
  1558. content: url(images/treeitem-collapsed.png);
  1559. }
  1560. html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
  1561. content: url(images/treeitem-collapsed-rtl.png);
  1562. }
  1563. .outlineItemToggler.outlineItemsHidden ~ .outlineItems {
  1564. display: none;
  1565. }
  1566. html[dir='ltr'] .outlineItemToggler {
  1567. float: left;
  1568. }
  1569. html[dir='rtl'] .outlineItemToggler {
  1570. float: right;
  1571. }
  1572. html[dir='ltr'] .outlineItemToggler::before {
  1573. right: 4px;
  1574. }
  1575. html[dir='rtl'] .outlineItemToggler::before {
  1576. left: 4px;
  1577. }
  1578. .outlineItemToggler:hover,
  1579. .outlineItemToggler:hover + a,
  1580. .outlineItemToggler:hover ~ .outlineItems,
  1581. .outlineItem > a:hover,
  1582. .attachmentsItem > button:hover {
  1583. background-color: rgba(255, 255, 255, 0.02);
  1584. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1585. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1586. background-clip: padding-box;
  1587. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  1588. 0 0 1px rgba(255, 255, 255, 0.2) inset,
  1589. 0 0 1px rgba(0, 0, 0, 0.2);
  1590. border-radius: 2px;
  1591. color: rgba(255, 255, 255, 0.9);
  1592. }
  1593. .outlineItem.selected {
  1594. background-color: rgba(255, 255, 255, 0.08);
  1595. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
  1596. background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  1597. background-clip: padding-box;
  1598. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
  1599. 0 0 1px rgba(255, 255, 255, 0.1) inset,
  1600. 0 0 1px rgba(0, 0, 0, 0.2);
  1601. color: rgba(255, 255, 255, 1);
  1602. }
  1603. .noResults {
  1604. font-size: 12px;
  1605. color: rgba(255, 255, 255, 0.8);
  1606. font-style: italic;
  1607. cursor: default;
  1608. }
  1609. /* TODO: file FF bug to support ::-moz-selection:window-inactive
  1610. so we can override the opaque grey background when the window is inactive;
  1611. see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
  1612. ::-moz-selection {
  1613. background: rgba(0, 0, 255, 0.3);
  1614. }
  1615. ::selection {
  1616. background: rgba(0, 0, 255, 0.3);
  1617. }
  1618. #errorWrapper {
  1619. background: none repeat scroll 0 0 rgba(255, 85, 85, 1);
  1620. color: rgba(255, 255, 255, 1);
  1621. left: 0;
  1622. position: absolute;
  1623. right: 0;
  1624. z-index: 1000;
  1625. padding: 3px;
  1626. font-size: 0.8em;
  1627. }
  1628. .loadingInProgress #errorWrapper {
  1629. top: 37px;
  1630. }
  1631. #errorMessageLeft {
  1632. float: left;
  1633. }
  1634. #errorMessageRight {
  1635. float: right;
  1636. }
  1637. #errorMoreInfo {
  1638. background-color: rgba(255, 255, 255, 1);
  1639. color: rgba(0, 0, 0, 1);
  1640. padding: 3px;
  1641. margin: 3px;
  1642. width: 98%;
  1643. }
  1644. .overlayButton {
  1645. width: auto;
  1646. margin: 3px 4px 2px 4px !important;
  1647. padding: 2px 6px 3px 6px;
  1648. }
  1649. #overlayContainer {
  1650. display: table;
  1651. position: absolute;
  1652. width: 100%;
  1653. height: 100%;
  1654. background-color: rgba(0, 0, 0, 0.2);
  1655. z-index: 40000;
  1656. }
  1657. #overlayContainer > * {
  1658. overflow: auto;
  1659. -webkit-overflow-scrolling: touch;
  1660. }
  1661. #overlayContainer > .container {
  1662. display: table-cell;
  1663. vertical-align: middle;
  1664. text-align: center;
  1665. }
  1666. #overlayContainer > .container > .dialog {
  1667. display: inline-block;
  1668. padding: 15px;
  1669. border-spacing: 4px;
  1670. color: rgba(217, 217, 217, 1);
  1671. font-size: 12px;
  1672. line-height: 14px;
  1673. background-color: rgba(71, 71, 71, 1); /* fallback */
  1674. background-image: url(images/texture.png),
  1675. -webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82,0.99)), to(rgba(69, 69, 69, 0.95)));
  1676. background-image: url(images/texture.png),
  1677. linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95));
  1678. border: 1px solid rgba(0, 0, 0, 0.5);
  1679. border-radius: 4px;
  1680. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  1681. }
  1682. .dialog > .row {
  1683. display: table-row;
  1684. }
  1685. .dialog > .row > * {
  1686. display: table-cell;
  1687. }
  1688. .dialog .toolbarField {
  1689. margin: 5px 0;
  1690. }
  1691. .dialog .separator {
  1692. display: block;
  1693. margin: 4px 0 4px 0;
  1694. height: 1px;
  1695. width: 100%;
  1696. background-color: rgba(0, 0, 0, 0.5);
  1697. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  1698. }
  1699. .dialog .buttonRow {
  1700. text-align: center;
  1701. vertical-align: middle;
  1702. }
  1703. .dialog :link {
  1704. color: rgba(255, 255, 255, 1);
  1705. }
  1706. #passwordOverlay > .dialog {
  1707. text-align: center;
  1708. }
  1709. #passwordOverlay .toolbarField {
  1710. width: 200px;
  1711. }
  1712. #documentPropertiesOverlay > .dialog {
  1713. text-align: left;
  1714. }
  1715. #documentPropertiesOverlay .row > * {
  1716. min-width: 100px;
  1717. }
  1718. html[dir='ltr'] #documentPropertiesOverlay .row > * {
  1719. text-align: left;
  1720. }
  1721. html[dir='rtl'] #documentPropertiesOverlay .row > * {
  1722. text-align: right;
  1723. }
  1724. #documentPropertiesOverlay .row > span {
  1725. width: 125px;
  1726. word-wrap: break-word;
  1727. }
  1728. #documentPropertiesOverlay .row > p {
  1729. max-width: 225px;
  1730. word-wrap: break-word;
  1731. }
  1732. #documentPropertiesOverlay .buttonRow {
  1733. margin-top: 10px;
  1734. }
  1735. .clearBoth {
  1736. clear: both;
  1737. }
  1738. .fileInput {
  1739. background: rgba(255, 255, 255, 1);
  1740. color: rgba(0, 0, 0, 1);
  1741. margin-top: 5px;
  1742. visibility: hidden;
  1743. position: fixed;
  1744. right: 0;
  1745. top: 0;
  1746. }
  1747. #PDFBug {
  1748. background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
  1749. border: 1px solid rgba(102, 102, 102, 1);
  1750. position: fixed;
  1751. top: 32px;
  1752. right: 0;
  1753. bottom: 0;
  1754. font-size: 10px;
  1755. padding: 0;
  1756. width: 300px;
  1757. }
  1758. #PDFBug .controls {
  1759. background: rgba(238, 238, 238, 1);
  1760. border-bottom: 1px solid rgba(102, 102, 102, 1);
  1761. padding: 3px;
  1762. }
  1763. #PDFBug .panels {
  1764. bottom: 0;
  1765. left: 0;
  1766. overflow: auto;
  1767. -webkit-overflow-scrolling: touch;
  1768. position: absolute;
  1769. right: 0;
  1770. top: 27px;
  1771. }
  1772. #PDFBug .panels > div {
  1773. padding: 5px;
  1774. }
  1775. #PDFBug button.active {
  1776. font-weight: bold;
  1777. }
  1778. .debuggerShowText {
  1779. background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
  1780. color: rgba(0, 0, 255, 1);
  1781. }
  1782. .debuggerHideText:hover {
  1783. background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
  1784. }
  1785. #PDFBug .stats {
  1786. font-family: courier;
  1787. font-size: 10px;
  1788. white-space: pre;
  1789. }
  1790. #PDFBug .stats .title {
  1791. font-weight: bold;
  1792. }
  1793. #PDFBug table {
  1794. font-size: 10px;
  1795. }
  1796. #viewer.textLayer-visible .textLayer {
  1797. opacity: 1.0;
  1798. }
  1799. #viewer.textLayer-visible .canvasWrapper {
  1800. background-color: rgba(128, 255, 128, 1);
  1801. }
  1802. #viewer.textLayer-visible .canvasWrapper canvas {
  1803. mix-blend-mode: screen;
  1804. }
  1805. #viewer.textLayer-visible .textLayer > span {
  1806. background-color: rgba(255, 255, 0, 0.1);
  1807. color: rgba(0, 0, 0, 1);
  1808. border: solid 1px rgba(255, 0, 0, 0.5);
  1809. box-sizing: border-box;
  1810. }
  1811. #viewer.textLayer-hover .textLayer > span:hover {
  1812. background-color: rgba(255, 255, 255, 1);
  1813. color: rgba(0, 0, 0, 1);
  1814. }
  1815. #viewer.textLayer-shadow .textLayer > span {
  1816. background-color: rgba(255, 255, 255, 0.6);
  1817. color: rgba(0, 0, 0, 1);
  1818. }
  1819. .grab-to-pan-grab {
  1820. cursor: url("images/grab.cur"), move !important;
  1821. cursor: -webkit-grab !important;
  1822. cursor: grab !important;
  1823. }
  1824. .grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
  1825. cursor: inherit !important;
  1826. }
  1827. .grab-to-pan-grab:active,
  1828. .grab-to-pan-grabbing {
  1829. cursor: url("images/grabbing.cur"), move !important;
  1830. cursor: -webkit-grabbing !important;
  1831. cursor: grabbing !important;
  1832. position: fixed;
  1833. background: rgba(0, 0, 0, 0);
  1834. display: block;
  1835. top: 0;
  1836. left: 0;
  1837. right: 0;
  1838. bottom: 0;
  1839. overflow: hidden;
  1840. z-index: 50000; /* should be higher than anything else in PDF.js! */
  1841. }
  1842. @page {
  1843. margin: 0;
  1844. }
  1845. #printContainer {
  1846. display: none;
  1847. }
  1848. @media screen and (-webkit-min-device-pixel-ratio: 1.1), screen and (min-resolution: 1.1dppx) {
  1849. /* Rules for Retina screens */
  1850. .toolbarButton::before {
  1851. -webkit-transform: scale(0.5);
  1852. transform: scale(0.5);
  1853. top: -5px;
  1854. }
  1855. .secondaryToolbarButton::before {
  1856. -webkit-transform: scale(0.5);
  1857. transform: scale(0.5);
  1858. top: -4px;
  1859. }
  1860. html[dir='ltr'] .toolbarButton::before,
  1861. html[dir='rtl'] .toolbarButton::before {
  1862. left: -1px;
  1863. }
  1864. html[dir='ltr'] .secondaryToolbarButton::before {
  1865. left: -2px;
  1866. }
  1867. html[dir='rtl'] .secondaryToolbarButton::before {
  1868. left: 186px;
  1869. }
  1870. .toolbarField.pageNumber.visiblePageIsLoading,
  1871. #findInput[data-status="pending"] {
  1872. background-image: url(images/loading-small@2x.png);
  1873. background-size: 16px 17px;
  1874. }
  1875. .dropdownToolbarButton::after {
  1876. -webkit-transform: scale(0.5);
  1877. transform: scale(0.5);
  1878. top: -5px;
  1879. content: url(images/toolbarButton-menuArrows@2x.png);
  1880. }
  1881. html[dir='ltr'] .dropdownToolbarButton::after {
  1882. right: 4px;
  1883. }
  1884. html[dir='rtl'] .dropdownToolbarButton::after {
  1885. left: 4px;
  1886. }
  1887. html[dir='ltr'] .toolbarButton#sidebarToggle::before {
  1888. content: url(images/toolbarButton-sidebarToggle@2x.png);
  1889. }
  1890. html[dir='rtl'] .toolbarButton#sidebarToggle::before {
  1891. content: url(images/toolbarButton-sidebarToggle-rtl@2x.png);
  1892. }
  1893. html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
  1894. content: url(images/toolbarButton-secondaryToolbarToggle@2x.png);
  1895. }
  1896. html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
  1897. content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
  1898. }
  1899. html[dir='ltr'] .toolbarButton.findPrevious::before {
  1900. content: url(images/findbarButton-previous@2x.png);
  1901. }
  1902. html[dir='rtl'] .toolbarButton.findPrevious::before {
  1903. content: url(images/findbarButton-previous-rtl@2x.png);
  1904. }
  1905. html[dir='ltr'] .toolbarButton.findNext::before {
  1906. content: url(images/findbarButton-next@2x.png);
  1907. }
  1908. html[dir='rtl'] .toolbarButton.findNext::before {
  1909. content: url(images/findbarButton-next-rtl@2x.png);
  1910. }
  1911. html[dir='ltr'] .toolbarButton.pageUp::before {
  1912. content: url(images/toolbarButton-pageUp@2x.png);
  1913. }
  1914. html[dir='rtl'] .toolbarButton.pageUp::before {
  1915. content: url(images/toolbarButton-pageUp-rtl@2x.png);
  1916. }
  1917. html[dir='ltr'] .toolbarButton.pageDown::before {
  1918. content: url(images/toolbarButton-pageDown@2x.png);
  1919. }
  1920. html[dir='rtl'] .toolbarButton.pageDown::before {
  1921. content: url(images/toolbarButton-pageDown-rtl@2x.png);
  1922. }
  1923. .toolbarButton.zoomIn::before {
  1924. content: url(images/toolbarButton-zoomIn@2x.png);
  1925. }
  1926. .toolbarButton.zoomOut::before {
  1927. content: url(images/toolbarButton-zoomOut@2x.png);
  1928. }
  1929. .toolbarButton.presentationMode::before,
  1930. .secondaryToolbarButton.presentationMode::before {
  1931. content: url(images/toolbarButton-presentationMode@2x.png);
  1932. }
  1933. .toolbarButton.print::before,
  1934. .secondaryToolbarButton.print::before {
  1935. content: url(images/toolbarButton-print@2x.png);
  1936. }
  1937. .toolbarButton.openFile::before,
  1938. .secondaryToolbarButton.openFile::before {
  1939. content: url(images/toolbarButton-openFile@2x.png);
  1940. }
  1941. .toolbarButton.download::before,
  1942. .secondaryToolbarButton.download::before {
  1943. content: url(images/toolbarButton-download@2x.png);
  1944. }
  1945. .toolbarButton.bookmark::before,
  1946. .secondaryToolbarButton.bookmark::before {
  1947. content: url(images/toolbarButton-bookmark@2x.png);
  1948. }
  1949. #viewThumbnail.toolbarButton::before {
  1950. content: url(images/toolbarButton-viewThumbnail@2x.png);
  1951. }
  1952. html[dir="ltr"] #viewOutline.toolbarButton::before {
  1953. content: url(images/toolbarButton-viewOutline@2x.png);
  1954. }
  1955. html[dir="rtl"] #viewOutline.toolbarButton::before {
  1956. content: url(images/toolbarButton-viewOutline-rtl@2x.png);
  1957. }
  1958. #viewAttachments.toolbarButton::before {
  1959. content: url(images/toolbarButton-viewAttachments@2x.png);
  1960. }
  1961. #viewFind.toolbarButton::before {
  1962. content: url(images/toolbarButton-search@2x.png);
  1963. }
  1964. .secondaryToolbarButton.firstPage::before {
  1965. content: url(images/secondaryToolbarButton-firstPage@2x.png);
  1966. }
  1967. .secondaryToolbarButton.lastPage::before {
  1968. content: url(images/secondaryToolbarButton-lastPage@2x.png);
  1969. }
  1970. .secondaryToolbarButton.rotateCcw::before {
  1971. content: url(images/secondaryToolbarButton-rotateCcw@2x.png);
  1972. }
  1973. .secondaryToolbarButton.rotateCw::before {
  1974. content: url(images/secondaryToolbarButton-rotateCw@2x.png);
  1975. }
  1976. .secondaryToolbarButton.selectTool::before {
  1977. content: url(images/secondaryToolbarButton-selectTool@2x.png);
  1978. }
  1979. .secondaryToolbarButton.handTool::before {
  1980. content: url(images/secondaryToolbarButton-handTool@2x.png);
  1981. }
  1982. .secondaryToolbarButton.scrollVertical::before {
  1983. content: url(images/secondaryToolbarButton-scrollVertical@2x.png);
  1984. }
  1985. .secondaryToolbarButton.scrollHorizontal::before {
  1986. content: url(images/secondaryToolbarButton-scrollHorizontal@2x.png);
  1987. }
  1988. .secondaryToolbarButton.scrollWrapped::before {
  1989. content: url(images/secondaryToolbarButton-scrollWrapped@2x.png);
  1990. }
  1991. .secondaryToolbarButton.spreadNone::before {
  1992. content: url(images/secondaryToolbarButton-spreadNone@2x.png);
  1993. }
  1994. .secondaryToolbarButton.spreadOdd::before {
  1995. content: url(images/secondaryToolbarButton-spreadOdd@2x.png);
  1996. }
  1997. .secondaryToolbarButton.spreadEven::before {
  1998. content: url(images/secondaryToolbarButton-spreadEven@2x.png);
  1999. }
  2000. .secondaryToolbarButton.documentProperties::before {
  2001. content: url(images/secondaryToolbarButton-documentProperties@2x.png);
  2002. }
  2003. .outlineItemToggler::before {
  2004. -webkit-transform: scale(0.5);
  2005. transform: scale(0.5);
  2006. top: -1px;
  2007. content: url(images/treeitem-expanded@2x.png);
  2008. }
  2009. html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
  2010. content: url(images/treeitem-collapsed@2x.png);
  2011. }
  2012. html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
  2013. content: url(images/treeitem-collapsed-rtl@2x.png);
  2014. }
  2015. html[dir='ltr'] .outlineItemToggler::before {
  2016. right: 0;
  2017. }
  2018. html[dir='rtl'] .outlineItemToggler::before {
  2019. left: 0;
  2020. }
  2021. }
  2022. @media print {
  2023. /* General rules for printing. */
  2024. body {
  2025. background: rgba(0, 0, 0, 0) none;
  2026. }
  2027. /* Rules for browsers that don't support mozPrintCallback. */
  2028. #sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
  2029. display: none;
  2030. }
  2031. #viewerContainer {
  2032. overflow: visible;
  2033. }
  2034. #mainContainer, #viewerContainer, .page, .page canvas {
  2035. position: static;
  2036. padding: 0;
  2037. margin: 0;
  2038. }
  2039. .page {
  2040. float: left;
  2041. display: none;
  2042. border: none;
  2043. box-shadow: none;
  2044. background-clip: content-box;
  2045. background-color: rgba(255, 255, 255, 1);
  2046. }
  2047. .page[data-loaded] {
  2048. display: block;
  2049. }
  2050. .fileInput {
  2051. display: none;
  2052. }
  2053. /* Rules for browsers that support PDF.js printing */
  2054. body[data-pdfjsprinting] #outerContainer {
  2055. display: none;
  2056. }
  2057. body[data-pdfjsprinting] #printContainer {
  2058. display: block;
  2059. }
  2060. #printContainer {
  2061. height: 100%;
  2062. }
  2063. /* wrapper around (scaled) print canvas elements */
  2064. #printContainer > div {
  2065. position: relative;
  2066. top: 0;
  2067. left: 0;
  2068. width: 1px;
  2069. height: 1px;
  2070. overflow: visible;
  2071. page-break-after: always;
  2072. page-break-inside: avoid;
  2073. }
  2074. #printContainer canvas,
  2075. #printContainer img {
  2076. display: block;
  2077. }
  2078. }
  2079. .visibleLargeView,
  2080. .visibleMediumView,
  2081. .visibleSmallView {
  2082. display: none;
  2083. }
  2084. @media all and (max-width: 900px) {
  2085. #toolbarViewerMiddle {
  2086. display: table;
  2087. margin: auto;
  2088. left: auto;
  2089. position: inherit;
  2090. -webkit-transform: none;
  2091. transform: none;
  2092. }
  2093. }
  2094. @media all and (max-width: 840px) {
  2095. #sidebarContent {
  2096. background-color: rgba(0, 0, 0, 0.7);
  2097. }
  2098. html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {
  2099. left: 0px !important;
  2100. }
  2101. html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {
  2102. right: 0px !important;
  2103. }
  2104. #outerContainer .hiddenLargeView,
  2105. #outerContainer .hiddenMediumView {
  2106. display: inherit;
  2107. }
  2108. #outerContainer .visibleLargeView,
  2109. #outerContainer .visibleMediumView {
  2110. display: none;
  2111. }
  2112. }
  2113. @media all and (max-width: 770px) {
  2114. #outerContainer .hiddenLargeView {
  2115. display: none;
  2116. }
  2117. #outerContainer .visibleLargeView {
  2118. display: inherit;
  2119. }
  2120. }
  2121. @media all and (max-width: 700px) {
  2122. #outerContainer .hiddenMediumView {
  2123. display: none;
  2124. }
  2125. #outerContainer .visibleMediumView {
  2126. display: inherit;
  2127. }
  2128. }
  2129. @media all and (max-width: 640px) {
  2130. .hiddenSmallView, .hiddenSmallView * {
  2131. display: none;
  2132. }
  2133. .visibleSmallView {
  2134. display: inherit;
  2135. }
  2136. .toolbarButtonSpacer {
  2137. width: 0;
  2138. }
  2139. html[dir='ltr'] .findbar {
  2140. left: 38px;
  2141. }
  2142. html[dir='rtl'] .findbar {
  2143. right: 38px;
  2144. }
  2145. }
  2146. @media all and (max-width: 535px) {
  2147. #scaleSelectContainer {
  2148. display: none;
  2149. }
  2150. }