viewer.css 76 KB

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