viewer.css 67 KB

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