viewer.css 60 KB

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