viewer.css 58 KB

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