viewer.css 57 KB

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