viewer.css 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507
  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. #download{
  2135. display: none;
  2136. }
  2137. @media all and (max-width: 900px) {
  2138. #toolbarViewerMiddle {
  2139. display: table;
  2140. margin: auto;
  2141. left: auto;
  2142. position: inherit;
  2143. transform: none;
  2144. }
  2145. }
  2146. @media all and (max-width: 840px) {
  2147. #sidebarContainer {
  2148. background-color: var(--sidebar-narrow-bg-color);
  2149. }
  2150. html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
  2151. left: 0 !important;
  2152. }
  2153. html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
  2154. right: 0 !important;
  2155. }
  2156. #outerContainer .hiddenLargeView,
  2157. #outerContainer .hiddenMediumView {
  2158. display: inherit;
  2159. }
  2160. #outerContainer .visibleLargeView,
  2161. #outerContainer .visibleMediumView {
  2162. display: none;
  2163. }
  2164. }
  2165. @media all and (max-width: 770px) {
  2166. #outerContainer .hiddenLargeView {
  2167. display: none;
  2168. }
  2169. #outerContainer .visibleLargeView {
  2170. display: inherit;
  2171. }
  2172. }
  2173. @media all and (max-width: 700px) {
  2174. #outerContainer .hiddenMediumView {
  2175. display: none;
  2176. }
  2177. #outerContainer .visibleMediumView {
  2178. display: inherit;
  2179. }
  2180. }
  2181. @media all and (max-width: 640px) {
  2182. .hiddenSmallView,
  2183. .hiddenSmallView * {
  2184. display: none;
  2185. }
  2186. .visibleSmallView {
  2187. display: inherit;
  2188. }
  2189. .toolbarButtonSpacer {
  2190. width: 0;
  2191. }
  2192. html[dir="ltr"] .findbar {
  2193. left: 34px;
  2194. }
  2195. html[dir="rtl"] .findbar {
  2196. right: 34px;
  2197. }
  2198. }
  2199. @media all and (max-width: 535px) {
  2200. #scaleSelectContainer {
  2201. display: none;
  2202. }
  2203. }