viewer.css 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575
  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. /* custom */
  16. .tooltip {
  17. position: absolute;
  18. background-color: #333;
  19. color: white;
  20. padding: 5px 10px;
  21. border-radius: 4px;
  22. font-size: 14px;
  23. z-index: 100;
  24. pointer-events: none;
  25. }
  26. .tooltip::before {
  27. content: '';
  28. position: absolute;
  29. top: -5px;
  30. left: 50%;
  31. transform: translateX(-50%);
  32. border-left: 5px solid transparent;
  33. border-right: 5px solid transparent;
  34. border-bottom: 5px solid #333;
  35. }
  36. .textLayer{
  37. position:absolute;
  38. text-align:initial;
  39. inset:0;
  40. overflow:hidden;
  41. opacity:1;
  42. line-height:1;
  43. -webkit-text-size-adjust:none;
  44. -moz-text-size-adjust:none;
  45. text-size-adjust:none;
  46. forced-color-adjust:none;
  47. transform-origin:0 0;
  48. caret-color:CanvasText;
  49. }
  50. .textLayer.highlighting{
  51. touch-action:none;
  52. }
  53. .textLayer :is(span, br){
  54. color:transparent;
  55. /* color: rgba(18, 19, 22, 80%); */
  56. position:absolute;
  57. white-space:pre;
  58. cursor:text;
  59. transform-origin:0% 0%;
  60. z-index: 999;
  61. }
  62. .textLayer span.markedContent{
  63. top:0;
  64. height:0;
  65. }
  66. .textLayer .highlight{
  67. --highlight-bg-color:rgb(180 0 170 / 0.25);
  68. --highlight-selected-bg-color:rgb(0 100 0 / 0.25);
  69. --highlight-backdrop-filter:none;
  70. --highlight-selected-backdrop-filter:none;
  71. margin:-1px;
  72. padding:1px;
  73. background-color:var(--highlight-bg-color);
  74. -webkit-backdrop-filter:var(--highlight-backdrop-filter);
  75. backdrop-filter:var(--highlight-backdrop-filter);
  76. border-radius:4px;
  77. }
  78. @media screen and (forced-colors: active){
  79. .textLayer .highlight{
  80. --highlight-bg-color:transparent;
  81. --highlight-selected-bg-color:transparent;
  82. --highlight-backdrop-filter:var(--hcm-highlight-filter);
  83. --highlight-selected-backdrop-filter:var(
  84. --hcm-highlight-selected-filter
  85. );
  86. }
  87. }
  88. .textLayer .highlight.appended{
  89. position:initial;
  90. }
  91. .textLayer .highlight.begin{
  92. border-radius:4px 0 0 4px;
  93. }
  94. .textLayer .highlight.end{
  95. border-radius:0 4px 4px 0;
  96. }
  97. .textLayer .highlight.middle{
  98. border-radius:0;
  99. }
  100. .textLayer .highlight.selected{
  101. background-color:var(--highlight-selected-bg-color);
  102. -webkit-backdrop-filter:var(--highlight-selected-backdrop-filter);
  103. backdrop-filter:var(--highlight-selected-backdrop-filter);
  104. }
  105. .textLayer ::-moz-selection{
  106. background:rgba(0 0 255 / 0.25);
  107. background:color-mix(in srgb, AccentColor, transparent 75%);
  108. }
  109. .textLayer ::selection{
  110. background:rgba(0 0 255 / 0.25);
  111. background:color-mix(in srgb, AccentColor, transparent 75%);
  112. }
  113. .textLayer br::-moz-selection{
  114. background:transparent;
  115. }
  116. .textLayer br::selection{
  117. background:transparent;
  118. }
  119. .textLayer .endOfContent{
  120. display:block;
  121. position:absolute;
  122. inset:100% 0 0;
  123. z-index:-1;
  124. cursor:default;
  125. -webkit-user-select:none;
  126. -moz-user-select:none;
  127. user-select:none;
  128. }
  129. .textLayer .endOfContent.active{
  130. top:0;
  131. }
  132. .annotationLayer{
  133. --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>");
  134. --input-focus-border-color:Highlight;
  135. --input-focus-outline:1px solid Canvas;
  136. --input-unfocused-border-color:transparent;
  137. --input-disabled-border-color:transparent;
  138. --input-hover-border-color:black;
  139. --link-outline:none;
  140. position:absolute;
  141. top:0;
  142. left:0;
  143. pointer-events:none;
  144. transform-origin:0 0;
  145. }
  146. @media screen and (forced-colors: active){
  147. .annotationLayer{
  148. --input-focus-border-color:CanvasText;
  149. --input-unfocused-border-color:ActiveText;
  150. --input-disabled-border-color:GrayText;
  151. --input-hover-border-color:Highlight;
  152. --link-outline:1.5px solid LinkText;
  153. }
  154. .annotationLayer .textWidgetAnnotation :is(input, textarea):required, .annotationLayer .choiceWidgetAnnotation select:required, .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required{
  155. outline:1.5px solid selectedItem;
  156. }
  157. .annotationLayer .linkAnnotation{
  158. outline:var(--link-outline);
  159. }
  160. .annotationLayer .linkAnnotation:hover{
  161. -webkit-backdrop-filter:var(--hcm-highlight-filter);
  162. backdrop-filter:var(--hcm-highlight-filter);
  163. }
  164. .annotationLayer .linkAnnotation > a:hover{
  165. opacity:0 !important;
  166. background:none !important;
  167. box-shadow:none;
  168. }
  169. .annotationLayer .popupAnnotation .popup{
  170. outline:calc(1.5px * var(--scale-factor)) solid CanvasText !important;
  171. background-color:ButtonFace !important;
  172. color:ButtonText !important;
  173. }
  174. .annotationLayer .highlightArea:hover::after{
  175. position:absolute;
  176. top:0;
  177. left:0;
  178. width:100%;
  179. height:100%;
  180. -webkit-backdrop-filter:var(--hcm-highlight-filter);
  181. backdrop-filter:var(--hcm-highlight-filter);
  182. content:"";
  183. pointer-events:none;
  184. }
  185. .annotationLayer .popupAnnotation.focused .popup{
  186. outline:calc(3px * var(--scale-factor)) solid Highlight !important;
  187. }
  188. }
  189. .annotationLayer[data-main-rotation="90"] .norotate{
  190. transform:rotate(270deg) translateX(-100%);
  191. }
  192. .annotationLayer[data-main-rotation="180"] .norotate{
  193. transform:rotate(180deg) translate(-100%, -100%);
  194. }
  195. .annotationLayer[data-main-rotation="270"] .norotate{
  196. transform:rotate(90deg) translateY(-100%);
  197. }
  198. .annotationLayer.disabled section,
  199. .annotationLayer.disabled .popup{
  200. pointer-events:none;
  201. }
  202. .annotationLayer .annotationContent{
  203. position:absolute;
  204. width:100%;
  205. height:100%;
  206. pointer-events:none;
  207. }
  208. .annotationLayer .annotationContent.freetext{
  209. background:transparent;
  210. border:none;
  211. inset:0;
  212. overflow:visible;
  213. white-space:nowrap;
  214. font:10px sans-serif;
  215. line-height:1.35;
  216. -webkit-user-select:none;
  217. -moz-user-select:none;
  218. user-select:none;
  219. }
  220. .annotationLayer section{
  221. position:absolute;
  222. text-align:initial;
  223. pointer-events:auto;
  224. box-sizing:border-box;
  225. transform-origin:0 0;
  226. }
  227. .annotationLayer section:has(div.annotationContent) canvas.annotationContent{
  228. display:none;
  229. }
  230. .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a{
  231. position:absolute;
  232. font-size:1em;
  233. top:0;
  234. left:0;
  235. width:100%;
  236. height:100%;
  237. }
  238. .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
  239. > a:hover{
  240. opacity:0.2;
  241. background-color:rgb(255 255 0);
  242. box-shadow:0 2px 10px rgb(255 255 0);
  243. }
  244. .annotationLayer .linkAnnotation.hasBorder:hover{
  245. background-color:rgb(255 255 0 / 0.2);
  246. }
  247. .annotationLayer .hasBorder{
  248. background-size:100% 100%;
  249. }
  250. .annotationLayer .textAnnotation img{
  251. position:absolute;
  252. cursor:pointer;
  253. width:100%;
  254. height:100%;
  255. top:0;
  256. left:0;
  257. }
  258. .annotationLayer .textWidgetAnnotation :is(input, textarea), .annotationLayer .choiceWidgetAnnotation select, .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input{
  259. background-image:var(--annotation-unfocused-field-background);
  260. border:2px solid var(--input-unfocused-border-color);
  261. box-sizing:border-box;
  262. font:calc(9px * var(--scale-factor)) sans-serif;
  263. height:100%;
  264. margin:0;
  265. vertical-align:top;
  266. width:100%;
  267. }
  268. .annotationLayer .textWidgetAnnotation :is(input, textarea):required, .annotationLayer .choiceWidgetAnnotation select:required, .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required{
  269. outline:1.5px solid red;
  270. }
  271. .annotationLayer .choiceWidgetAnnotation select option{
  272. padding:0;
  273. }
  274. .annotationLayer .buttonWidgetAnnotation.radioButton input{
  275. border-radius:50%;
  276. }
  277. .annotationLayer .textWidgetAnnotation textarea{
  278. resize:none;
  279. }
  280. .annotationLayer .textWidgetAnnotation [disabled]:is(input, textarea), .annotationLayer .choiceWidgetAnnotation select[disabled], .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input[disabled]{
  281. background:none;
  282. border:2px solid var(--input-disabled-border-color);
  283. cursor:not-allowed;
  284. }
  285. .annotationLayer .textWidgetAnnotation :is(input, textarea):hover, .annotationLayer .choiceWidgetAnnotation select:hover, .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:hover{
  286. border:2px solid var(--input-hover-border-color);
  287. }
  288. .annotationLayer .textWidgetAnnotation :is(input, textarea):hover, .annotationLayer .choiceWidgetAnnotation select:hover, .annotationLayer .buttonWidgetAnnotation.checkBox input:hover{
  289. border-radius:2px;
  290. }
  291. .annotationLayer .textWidgetAnnotation :is(input, textarea):focus, .annotationLayer .choiceWidgetAnnotation select:focus{
  292. background:none;
  293. border:2px solid var(--input-focus-border-color);
  294. border-radius:2px;
  295. outline:var(--input-focus-outline);
  296. }
  297. .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus{
  298. background-image:none;
  299. background-color:transparent;
  300. }
  301. .annotationLayer .buttonWidgetAnnotation.checkBox :focus{
  302. border:2px solid var(--input-focus-border-color);
  303. border-radius:2px;
  304. outline:var(--input-focus-outline);
  305. }
  306. .annotationLayer .buttonWidgetAnnotation.radioButton :focus{
  307. border:2px solid var(--input-focus-border-color);
  308. outline:var(--input-focus-outline);
  309. }
  310. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
  311. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,
  312. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{
  313. background-color:CanvasText;
  314. content:"";
  315. display:block;
  316. position:absolute;
  317. }
  318. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
  319. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{
  320. height:80%;
  321. left:45%;
  322. width:1px;
  323. }
  324. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before{
  325. transform:rotate(45deg);
  326. }
  327. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{
  328. transform:rotate(-45deg);
  329. }
  330. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{
  331. border-radius:50%;
  332. height:50%;
  333. left:25%;
  334. top:25%;
  335. width:50%;
  336. }
  337. .annotationLayer .textWidgetAnnotation input.comb{
  338. font-family:monospace;
  339. padding-left:2px;
  340. padding-right:0;
  341. }
  342. .annotationLayer .textWidgetAnnotation input.comb:focus{
  343. width:103%;
  344. }
  345. .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input{
  346. -webkit-appearance:none;
  347. -moz-appearance:none;
  348. appearance:none;
  349. }
  350. .annotationLayer .fileAttachmentAnnotation .popupTriggerArea{
  351. height:100%;
  352. width:100%;
  353. }
  354. .annotationLayer .popupAnnotation{
  355. position:absolute;
  356. font-size:calc(9px * var(--scale-factor));
  357. pointer-events:none;
  358. width:-moz-max-content;
  359. width:max-content;
  360. max-width:45%;
  361. height:auto;
  362. }
  363. .annotationLayer .popup{
  364. background-color:rgb(255 255 153);
  365. box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) rgb(136 136 136);
  366. border-radius:calc(2px * var(--scale-factor));
  367. outline:1.5px solid rgb(255 255 74);
  368. padding:calc(6px * var(--scale-factor));
  369. cursor:pointer;
  370. font:message-box;
  371. white-space:normal;
  372. word-wrap:break-word;
  373. pointer-events:auto;
  374. }
  375. .annotationLayer .popupAnnotation.focused .popup{
  376. outline-width:3px;
  377. }
  378. .annotationLayer .popup *{
  379. font-size:calc(9px * var(--scale-factor));
  380. }
  381. .annotationLayer .popup > .header{
  382. display:inline-block;
  383. }
  384. .annotationLayer .popup > .header h1{
  385. display:inline;
  386. }
  387. .annotationLayer .popup > .header .popupDate{
  388. display:inline-block;
  389. margin-left:calc(5px * var(--scale-factor));
  390. width:-moz-fit-content;
  391. width:fit-content;
  392. }
  393. .annotationLayer .popupContent{
  394. border-top:1px solid rgb(51 51 51);
  395. margin-top:calc(2px * var(--scale-factor));
  396. padding-top:calc(2px * var(--scale-factor));
  397. }
  398. .annotationLayer .richText > *{
  399. white-space:pre-wrap;
  400. font-size:calc(9px * var(--scale-factor));
  401. }
  402. .annotationLayer .popupTriggerArea{
  403. cursor:pointer;
  404. }
  405. .annotationLayer section svg{
  406. position:absolute;
  407. width:100%;
  408. height:100%;
  409. top:0;
  410. left:0;
  411. }
  412. .annotationLayer .annotationTextContent{
  413. position:absolute;
  414. width:100%;
  415. height:100%;
  416. opacity:0;
  417. color:transparent;
  418. -webkit-user-select:none;
  419. -moz-user-select:none;
  420. user-select:none;
  421. pointer-events:none;
  422. }
  423. .annotationLayer .annotationTextContent span{
  424. width:100%;
  425. display:inline-block;
  426. }
  427. .annotationLayer svg.quadrilateralsContainer{
  428. contain:strict;
  429. width:0;
  430. height:0;
  431. position:absolute;
  432. top:0;
  433. left:0;
  434. z-index:-1;
  435. }
  436. :root{
  437. --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>");
  438. --xfa-focus-outline:auto;
  439. }
  440. @media screen and (forced-colors: active){
  441. :root{
  442. --xfa-focus-outline:2px solid CanvasText;
  443. }
  444. .xfaLayer *:required{
  445. outline:1.5px solid selectedItem;
  446. }
  447. }
  448. .xfaLayer{
  449. background-color:transparent;
  450. }
  451. .xfaLayer .highlight{
  452. margin:-1px;
  453. padding:1px;
  454. background-color:rgb(239 203 237);
  455. border-radius:4px;
  456. }
  457. .xfaLayer .highlight.appended{
  458. position:initial;
  459. }
  460. .xfaLayer .highlight.begin{
  461. border-radius:4px 0 0 4px;
  462. }
  463. .xfaLayer .highlight.end{
  464. border-radius:0 4px 4px 0;
  465. }
  466. .xfaLayer .highlight.middle{
  467. border-radius:0;
  468. }
  469. .xfaLayer .highlight.selected{
  470. background-color:rgb(203 223 203);
  471. }
  472. .xfaPage{
  473. overflow:hidden;
  474. position:relative;
  475. }
  476. .xfaContentarea{
  477. position:absolute;
  478. }
  479. .xfaPrintOnly{
  480. display:none;
  481. }
  482. .xfaLayer{
  483. position:absolute;
  484. text-align:initial;
  485. top:0;
  486. left:0;
  487. transform-origin:0 0;
  488. line-height:1.2;
  489. }
  490. .xfaLayer *{
  491. color:inherit;
  492. font:inherit;
  493. font-style:inherit;
  494. font-weight:inherit;
  495. font-kerning:inherit;
  496. letter-spacing:-0.01px;
  497. text-align:inherit;
  498. text-decoration:inherit;
  499. box-sizing:border-box;
  500. background-color:transparent;
  501. padding:0;
  502. margin:0;
  503. pointer-events:auto;
  504. line-height:inherit;
  505. }
  506. .xfaLayer *:required{
  507. outline:1.5px solid red;
  508. }
  509. .xfaLayer div,
  510. .xfaLayer svg,
  511. .xfaLayer svg *{
  512. pointer-events:none;
  513. }
  514. .xfaLayer a{
  515. color:blue;
  516. }
  517. .xfaRich li{
  518. margin-left:3em;
  519. }
  520. .xfaFont{
  521. color:black;
  522. font-weight:normal;
  523. font-kerning:none;
  524. font-size:10px;
  525. font-style:normal;
  526. letter-spacing:0;
  527. text-decoration:none;
  528. vertical-align:0;
  529. }
  530. .xfaCaption{
  531. overflow:hidden;
  532. flex:0 0 auto;
  533. }
  534. .xfaCaptionForCheckButton{
  535. overflow:hidden;
  536. flex:1 1 auto;
  537. }
  538. .xfaLabel{
  539. height:100%;
  540. width:100%;
  541. }
  542. .xfaLeft{
  543. display:flex;
  544. flex-direction:row;
  545. align-items:center;
  546. }
  547. .xfaRight{
  548. display:flex;
  549. flex-direction:row-reverse;
  550. align-items:center;
  551. }
  552. :is(.xfaLeft, .xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton){
  553. max-height:100%;
  554. }
  555. .xfaTop{
  556. display:flex;
  557. flex-direction:column;
  558. align-items:flex-start;
  559. }
  560. .xfaBottom{
  561. display:flex;
  562. flex-direction:column-reverse;
  563. align-items:flex-start;
  564. }
  565. :is(.xfaTop, .xfaBottom) > :is(.xfaCaption, .xfaCaptionForCheckButton){
  566. width:100%;
  567. }
  568. .xfaBorder{
  569. background-color:transparent;
  570. position:absolute;
  571. pointer-events:none;
  572. }
  573. .xfaWrapped{
  574. width:100%;
  575. height:100%;
  576. }
  577. :is(.xfaTextfield, .xfaSelect):focus{
  578. background-image:none;
  579. background-color:transparent;
  580. outline:var(--xfa-focus-outline);
  581. outline-offset:-1px;
  582. }
  583. :is(.xfaCheckbox, .xfaRadio):focus{
  584. outline:var(--xfa-focus-outline);
  585. }
  586. .xfaTextfield,
  587. .xfaSelect{
  588. height:100%;
  589. width:100%;
  590. flex:1 1 auto;
  591. border:none;
  592. resize:none;
  593. background-image:var(--xfa-unfocused-field-background);
  594. }
  595. .xfaSelect{
  596. padding-inline:2px;
  597. }
  598. :is(.xfaTop, .xfaBottom) > :is(.xfaTextfield, .xfaSelect){
  599. flex:0 1 auto;
  600. }
  601. .xfaButton{
  602. cursor:pointer;
  603. width:100%;
  604. height:100%;
  605. border:none;
  606. text-align:center;
  607. }
  608. .xfaLink{
  609. width:100%;
  610. height:100%;
  611. position:absolute;
  612. top:0;
  613. left:0;
  614. }
  615. .xfaCheckbox,
  616. .xfaRadio{
  617. width:100%;
  618. height:100%;
  619. flex:0 0 auto;
  620. border:none;
  621. }
  622. .xfaRich{
  623. white-space:pre-wrap;
  624. width:100%;
  625. height:100%;
  626. }
  627. .xfaImage{
  628. -o-object-position:left top;
  629. object-position:left top;
  630. -o-object-fit:contain;
  631. object-fit:contain;
  632. width:100%;
  633. height:100%;
  634. }
  635. .xfaLrTb,
  636. .xfaRlTb,
  637. .xfaTb{
  638. display:flex;
  639. flex-direction:column;
  640. align-items:stretch;
  641. }
  642. .xfaLr{
  643. display:flex;
  644. flex-direction:row;
  645. align-items:stretch;
  646. }
  647. .xfaRl{
  648. display:flex;
  649. flex-direction:row-reverse;
  650. align-items:stretch;
  651. }
  652. .xfaTb > div{
  653. justify-content:left;
  654. }
  655. .xfaPosition{
  656. position:relative;
  657. }
  658. .xfaArea{
  659. position:relative;
  660. }
  661. .xfaValignMiddle{
  662. display:flex;
  663. align-items:center;
  664. }
  665. .xfaTable{
  666. display:flex;
  667. flex-direction:column;
  668. align-items:stretch;
  669. }
  670. .xfaTable .xfaRow{
  671. display:flex;
  672. flex-direction:row;
  673. align-items:stretch;
  674. }
  675. .xfaTable .xfaRlRow{
  676. display:flex;
  677. flex-direction:row-reverse;
  678. align-items:stretch;
  679. flex:1;
  680. }
  681. .xfaTable .xfaRlRow > div{
  682. flex:1;
  683. }
  684. :is(.xfaNonInteractive, .xfaDisabled, .xfaReadOnly) :is(input, textarea){
  685. background:initial;
  686. }
  687. @media print{
  688. .xfaTextfield,
  689. .xfaSelect{
  690. background:transparent;
  691. }
  692. .xfaSelect{
  693. -webkit-appearance:none;
  694. -moz-appearance:none;
  695. appearance:none;
  696. text-indent:1px;
  697. text-overflow:"";
  698. }
  699. }
  700. /* .canvasWrapper svg{
  701. transform:none;
  702. }
  703. .canvasWrapper svg[data-main-rotation="90"] mask,
  704. .canvasWrapper svg[data-main-rotation="90"] use:not(.clip, .mask){
  705. transform:matrix(0, 1, -1, 0, 1, 0);
  706. }
  707. .canvasWrapper svg[data-main-rotation="180"] mask,
  708. .canvasWrapper svg[data-main-rotation="180"] use:not(.clip, .mask){
  709. transform:matrix(-1, 0, 0, -1, 1, 1);
  710. }
  711. .canvasWrapper svg[data-main-rotation="270"] mask,
  712. .canvasWrapper svg[data-main-rotation="270"] use:not(.clip, .mask){
  713. transform:matrix(0, -1, 1, 0, 0, 1);
  714. }
  715. .canvasWrapper svg.highlight{
  716. --blend-mode:multiply;
  717. position:absolute;
  718. mix-blend-mode:var(--blend-mode);
  719. } */
  720. @media screen and (forced-colors: active){
  721. .canvasWrapper svg.highlight{
  722. --blend-mode:difference;
  723. }
  724. }
  725. .canvasWrapper svg.highlight:not(.free){
  726. fill-rule:evenodd;
  727. }
  728. .canvasWrapper svg.highlightOutline{
  729. position:absolute;
  730. mix-blend-mode:normal;
  731. fill-rule:evenodd;
  732. fill:none;
  733. }
  734. .canvasWrapper svg.highlightOutline.hovered:not(.free):not(.selected){
  735. stroke:var(--hover-outline-color);
  736. stroke-width:var(--outline-width);
  737. }
  738. .canvasWrapper svg.highlightOutline.selected:not(.free) .mainOutline{
  739. stroke:var(--outline-around-color);
  740. stroke-width:calc(
  741. var(--outline-width) + 2 * var(--outline-around-width)
  742. );
  743. }
  744. .canvasWrapper svg.highlightOutline.selected:not(.free) .secondaryOutline{
  745. stroke:var(--outline-color);
  746. stroke-width:var(--outline-width);
  747. }
  748. .canvasWrapper svg.highlightOutline.free.hovered:not(.selected){
  749. stroke:var(--hover-outline-color);
  750. stroke-width:calc(2 * var(--outline-width));
  751. }
  752. .canvasWrapper svg.highlightOutline.free.selected .mainOutline{
  753. stroke:var(--outline-around-color);
  754. stroke-width:calc(
  755. 2 * (var(--outline-width) + var(--outline-around-width))
  756. );
  757. }
  758. .canvasWrapper svg.highlightOutline.free.selected .secondaryOutline{
  759. stroke:var(--outline-color);
  760. stroke-width:calc(2 * var(--outline-width));
  761. }
  762. .toggle-button{
  763. --button-background-color:#f0f0f4;
  764. --button-background-color-hover:#e0e0e6;
  765. --button-background-color-active:#cfcfd8;
  766. --color-accent-primary:#0060df;
  767. --color-accent-primary-hover:#0250bb;
  768. --color-accent-primary-active:#054096;
  769. --border-interactive-color:#8f8f9d;
  770. --border-radius-circle:9999px;
  771. --border-width:1px;
  772. --size-item-small:16px;
  773. --size-item-large:32px;
  774. --color-canvas:white;
  775. --toggle-background-color:var(--button-background-color);
  776. --toggle-background-color-hover:var(--button-background-color-hover);
  777. --toggle-background-color-active:var(--button-background-color-active);
  778. --toggle-background-color-pressed:var(--color-accent-primary);
  779. --toggle-background-color-pressed-hover:var(--color-accent-primary-hover);
  780. --toggle-background-color-pressed-active:var(--color-accent-primary-active);
  781. --toggle-border-color:var(--border-interactive-color);
  782. --toggle-border-color-hover:var(--toggle-border-color);
  783. --toggle-border-color-active:var(--toggle-border-color);
  784. --toggle-border-radius:var(--border-radius-circle);
  785. --toggle-border-width:var(--border-width);
  786. --toggle-height:var(--size-item-small);
  787. --toggle-width:var(--size-item-large);
  788. --toggle-dot-background-color:var(--toggle-border-color);
  789. --toggle-dot-background-color-hover:var(--toggle-dot-background-color);
  790. --toggle-dot-background-color-active:var(--toggle-dot-background-color);
  791. --toggle-dot-background-color-on-pressed:var(--color-canvas);
  792. --toggle-dot-margin:1px;
  793. --toggle-dot-height:calc(
  794. var(--toggle-height) - 2 * var(--toggle-dot-margin) - 2 *
  795. var(--toggle-border-width)
  796. );
  797. --toggle-dot-width:var(--toggle-dot-height);
  798. --toggle-dot-transform-x:calc(
  799. var(--toggle-width) - 4 * var(--toggle-dot-margin) - var(--toggle-dot-width)
  800. );
  801. -webkit-appearance:none;
  802. -moz-appearance:none;
  803. appearance:none;
  804. padding:0;
  805. margin:0;
  806. border:var(--toggle-border-width) solid var(--toggle-border-color);
  807. height:var(--toggle-height);
  808. width:var(--toggle-width);
  809. border-radius:var(--toggle-border-radius);
  810. background:var(--toggle-background-color);
  811. box-sizing:border-box;
  812. flex-shrink:0;
  813. }
  814. @media (prefers-color-scheme: light){
  815. :where(html:not(.is-light)) .toggle-button{
  816. --button-background-color:color-mix(in srgb, currentColor 7%, transparent);
  817. --button-background-color-hover:color-mix(
  818. in srgb,
  819. currentColor 14%,
  820. transparent
  821. );
  822. --button-background-color-active:color-mix(
  823. in srgb,
  824. currentColor 21%,
  825. transparent
  826. );
  827. --color-accent-primary:#0df;
  828. --color-accent-primary-hover:#80ebff;
  829. --color-accent-primary-active:#aaf2ff;
  830. --border-interactive-color:#bfbfc9;
  831. --color-canvas:#1c1b22;
  832. }
  833. }
  834. :where(html.is-dark) .toggle-button{
  835. --button-background-color:color-mix(in srgb, currentColor 7%, transparent);
  836. --button-background-color-hover:color-mix(
  837. in srgb,
  838. currentColor 14%,
  839. transparent
  840. );
  841. --button-background-color-active:color-mix(
  842. in srgb,
  843. currentColor 21%,
  844. transparent
  845. );
  846. --color-accent-primary:#0df;
  847. --color-accent-primary-hover:#80ebff;
  848. --color-accent-primary-active:#aaf2ff;
  849. --border-interactive-color:#bfbfc9;
  850. --color-canvas:#1c1b22;
  851. }
  852. @media (forced-colors: active){
  853. .toggle-button{
  854. --color-accent-primary:ButtonText;
  855. --color-accent-primary-hover:SelectedItem;
  856. --color-accent-primary-active:SelectedItem;
  857. --border-interactive-color:ButtonText;
  858. --button-background-color:ButtonFace;
  859. --border-interactive-color-hover:SelectedItem;
  860. --border-interactive-color-active:SelectedItem;
  861. --border-interactive-color-disabled:GrayText;
  862. --color-canvas:ButtonText;
  863. }
  864. }
  865. .toggle-button:focus-visible{
  866. outline:var(--focus-outline);
  867. outline-offset:var(--focus-outline-offset);
  868. }
  869. .toggle-button:enabled:hover{
  870. background:var(--toggle-background-color-hover);
  871. border-color:var(--toggle-border-color);
  872. }
  873. .toggle-button:enabled:active{
  874. background:var(--toggle-background-color-active);
  875. border-color:var(--toggle-border-color);
  876. }
  877. .toggle-button[aria-pressed="true"]{
  878. background:var(--toggle-background-color-pressed);
  879. border-color:transparent;
  880. }
  881. .toggle-button[aria-pressed="true"]:enabled:hover{
  882. background:var(--toggle-background-color-pressed-hover);
  883. border-color:transparent;
  884. }
  885. .toggle-button[aria-pressed="true"]:enabled:active{
  886. background:var(--toggle-background-color-pressed-active);
  887. border-color:transparent;
  888. }
  889. .toggle-button::before{
  890. display:block;
  891. content:"";
  892. background-color:var(--toggle-dot-background-color);
  893. height:var(--toggle-dot-height);
  894. width:var(--toggle-dot-width);
  895. margin:var(--toggle-dot-margin);
  896. border-radius:var(--toggle-border-radius);
  897. translate:0;
  898. }
  899. .toggle-button[aria-pressed="true"]::before{
  900. translate:var(--toggle-dot-transform-x);
  901. background-color:var(--toggle-dot-background-color-on-pressed);
  902. }
  903. .toggle-button[aria-pressed="true"]:enabled:hover::before,
  904. .toggle-button[aria-pressed="true"]:enabled:active::before{
  905. background-color:var(--toggle-dot-background-color-on-pressed);
  906. }
  907. [dir="rtl"] .toggle-button[aria-pressed="true"]::before{
  908. translate:calc(-1 * var(--toggle-dot-transform-x));
  909. }
  910. @media (prefers-reduced-motion: no-preference){
  911. .toggle-button::before{
  912. transition:translate 100ms;
  913. }
  914. }
  915. @media (prefers-contrast){
  916. .toggle-button:enabled:hover{
  917. border-color:var(--toggle-border-color-hover);
  918. }
  919. .toggle-button:enabled:active{
  920. border-color:var(--toggle-border-color-active);
  921. }
  922. .toggle-button[aria-pressed="true"]:enabled{
  923. border-color:var(--toggle-border-color);
  924. position:relative;
  925. }
  926. .toggle-button[aria-pressed="true"]:enabled:hover,
  927. .toggle-button[aria-pressed="true"]:enabled:hover:active{
  928. border-color:var(--toggle-border-color-hover);
  929. }
  930. .toggle-button[aria-pressed="true"]:enabled:active{
  931. background-color:var(--toggle-dot-background-color-active);
  932. border-color:var(--toggle-dot-background-color-hover);
  933. }
  934. .toggle-button:hover::before,
  935. .toggle-button:active::before{
  936. background-color:var(--toggle-dot-background-color-hover);
  937. }
  938. }
  939. @media (forced-colors){
  940. .toggle-button{
  941. --toggle-dot-background-color:var(--color-accent-primary);
  942. --toggle-dot-background-color-hover:var(--color-accent-primary-hover);
  943. --toggle-dot-background-color-active:var(--color-accent-primary-active);
  944. --toggle-dot-background-color-on-pressed:var(--button-background-color);
  945. --toggle-background-color-disabled:var(--button-background-color-disabled);
  946. --toggle-border-color-hover:var(--border-interactive-color-hover);
  947. --toggle-border-color-active:var(--border-interactive-color-active);
  948. --toggle-border-color-disabled:var(--border-interactive-color-disabled);
  949. }
  950. .toggle-button[aria-pressed="true"]:enabled::after{
  951. border:1px solid var(--button-background-color);
  952. content:"";
  953. position:absolute;
  954. height:var(--toggle-height);
  955. width:var(--toggle-width);
  956. display:block;
  957. border-radius:var(--toggle-border-radius);
  958. inset:-2px;
  959. }
  960. .toggle-button[aria-pressed="true"]:enabled:active::after{
  961. border-color:var(--toggle-border-color-active);
  962. }
  963. }
  964. :root{
  965. --outline-width:2px;
  966. --outline-color:#0060df;
  967. --outline-around-width:1px;
  968. --outline-around-color:#f0f0f4;
  969. --hover-outline-around-color:var(--outline-around-color);
  970. --focus-outline:solid var(--outline-width) var(--outline-color);
  971. --unfocus-outline:solid var(--outline-width) transparent;
  972. --focus-outline-around:solid var(--outline-around-width) var(--outline-around-color);
  973. --hover-outline-color:#8f8f9d;
  974. --hover-outline:solid var(--outline-width) var(--hover-outline-color);
  975. --hover-outline-around:solid var(--outline-around-width) var(--hover-outline-around-color);
  976. --freetext-line-height:1.35;
  977. --freetext-padding:2px;
  978. --resizer-bg-color:var(--outline-color);
  979. --resizer-size:6px;
  980. --resizer-shift:calc(
  981. 0px - (var(--outline-width) + var(--resizer-size)) / 2 -
  982. var(--outline-around-width)
  983. );
  984. --editorFreeText-editing-cursor:text;
  985. --editorInk-editing-cursor:url(images/cursor-editorInk.svg) 0 16, pointer;
  986. --editorHighlight-editing-cursor:url(images/cursor-editorTextHighlight.svg) 24 24, text;
  987. --editorFreeHighlight-editing-cursor:url(images/cursor-editorFreeHighlight.svg) 1 18, pointer;
  988. }
  989. .visuallyHidden{
  990. position:absolute;
  991. top:0;
  992. left:0;
  993. border:0;
  994. margin:0;
  995. padding:0;
  996. width:0;
  997. height:0;
  998. overflow:hidden;
  999. white-space:nowrap;
  1000. font-size:0;
  1001. }
  1002. .textLayer.highlighting{
  1003. cursor:var(--editorFreeHighlight-editing-cursor);
  1004. }
  1005. .textLayer.highlighting:not(.free) span{
  1006. cursor:var(--editorHighlight-editing-cursor);
  1007. }
  1008. .textLayer.highlighting.free span{
  1009. cursor:var(--editorFreeHighlight-editing-cursor);
  1010. }
  1011. @media (min-resolution: 1.1dppx){
  1012. :root{
  1013. --editorFreeText-editing-cursor:url(images/cursor-editorFreeText.svg) 0 16, text;
  1014. }
  1015. }
  1016. @media screen and (forced-colors: active){
  1017. :root{
  1018. --outline-color:CanvasText;
  1019. --outline-around-color:ButtonFace;
  1020. --resizer-bg-color:ButtonText;
  1021. --hover-outline-color:Highlight;
  1022. --hover-outline-around-color:SelectedItemText;
  1023. }
  1024. }
  1025. [data-editor-rotation="90"]{
  1026. transform:rotate(90deg);
  1027. }
  1028. [data-editor-rotation="180"]{
  1029. transform:rotate(180deg);
  1030. }
  1031. [data-editor-rotation="270"]{
  1032. transform:rotate(270deg);
  1033. }
  1034. .annotationEditorLayer{
  1035. background:transparent;
  1036. position:absolute;
  1037. inset:0;
  1038. font-size:calc(100px * var(--scale-factor));
  1039. transform-origin:0 0;
  1040. cursor:auto;
  1041. }
  1042. .annotationEditorLayer.waiting{
  1043. content:"";
  1044. cursor:wait;
  1045. position:absolute;
  1046. inset:0;
  1047. width:100%;
  1048. height:100%;
  1049. }
  1050. .annotationEditorLayer.disabled{
  1051. pointer-events:none;
  1052. }
  1053. .annotationEditorLayer.freetextEditing{
  1054. cursor:var(--editorFreeText-editing-cursor);
  1055. }
  1056. .annotationEditorLayer.inkEditing{
  1057. cursor:var(--editorInk-editing-cursor);
  1058. }
  1059. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor){
  1060. position:absolute;
  1061. background:transparent;
  1062. z-index:1;
  1063. transform-origin:0 0;
  1064. cursor:auto;
  1065. max-width:100%;
  1066. max-height:100%;
  1067. border:var(--unfocus-outline);
  1068. }
  1069. .annotationEditorLayer .draggable.selectedEditor:is(.freeTextEditor, .inkEditor, .stampEditor){
  1070. cursor:move;
  1071. }
  1072. .annotationEditorLayer .moving:is(.freeTextEditor, .inkEditor, .stampEditor){
  1073. touch-action:none;
  1074. }
  1075. .annotationEditorLayer .selectedEditor:is(.freeTextEditor, .inkEditor, .stampEditor){
  1076. border:var(--focus-outline);
  1077. outline:var(--focus-outline-around);
  1078. }
  1079. .annotationEditorLayer .selectedEditor:is(.freeTextEditor, .inkEditor, .stampEditor)::before{
  1080. content:"";
  1081. position:absolute;
  1082. inset:0;
  1083. border:var(--focus-outline-around);
  1084. pointer-events:none;
  1085. }
  1086. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor):hover:not(.selectedEditor){
  1087. border:var(--hover-outline);
  1088. outline:var(--hover-outline-around);
  1089. }
  1090. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor):hover:not(.selectedEditor)::before{
  1091. content:"";
  1092. position:absolute;
  1093. inset:0;
  1094. border:var(--focus-outline-around);
  1095. }
  1096. :is(.annotationEditorLayer
  1097. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1098. --editor-toolbar-delete-image:url(images/editor-toolbar-delete.svg);
  1099. --editor-toolbar-bg-color:#f0f0f4;
  1100. --editor-toolbar-highlight-image:url(images/toolbarButton-editorHighlight.svg);
  1101. --editor-toolbar-fg-color:#2e2e56;
  1102. --editor-toolbar-border-color:#8f8f9d;
  1103. --editor-toolbar-hover-border-color:var(--editor-toolbar-border-color);
  1104. --editor-toolbar-hover-bg-color:#e0e0e6;
  1105. --editor-toolbar-hover-fg-color:var(--editor-toolbar-fg-color);
  1106. --editor-toolbar-hover-outline:none;
  1107. --editor-toolbar-focus-outline-color:#0060df;
  1108. --editor-toolbar-shadow:0 2px 6px 0 rgb(58 57 68 / 0.2);
  1109. --editor-toolbar-vert-offset:6px;
  1110. --editor-toolbar-height:28px;
  1111. --editor-toolbar-padding:2px;
  1112. display:flex;
  1113. width:-moz-fit-content;
  1114. width:fit-content;
  1115. height:var(--editor-toolbar-height);
  1116. flex-direction:column;
  1117. justify-content:center;
  1118. align-items:center;
  1119. cursor:default;
  1120. pointer-events:auto;
  1121. box-sizing:content-box;
  1122. padding:var(--editor-toolbar-padding);
  1123. position:absolute;
  1124. inset-inline-end:0;
  1125. inset-block-start:calc(100% + var(--editor-toolbar-vert-offset));
  1126. border-radius:6px;
  1127. background-color:var(--editor-toolbar-bg-color);
  1128. border:1px solid var(--editor-toolbar-border-color);
  1129. box-shadow:var(--editor-toolbar-shadow);
  1130. }
  1131. @media (prefers-color-scheme: light){
  1132. :where(html:not(.is-light)) :is(.annotationEditorLayer
  1133. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1134. --editor-toolbar-bg-color:#2b2a33;
  1135. --editor-toolbar-fg-color:#fbfbfe;
  1136. --editor-toolbar-hover-bg-color:#52525e;
  1137. --editor-toolbar-focus-outline-color:#0df;
  1138. }
  1139. }
  1140. :where(html.is-dark) :is(.annotationEditorLayer
  1141. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1142. --editor-toolbar-bg-color:#2b2a33;
  1143. --editor-toolbar-fg-color:#fbfbfe;
  1144. --editor-toolbar-hover-bg-color:#52525e;
  1145. --editor-toolbar-focus-outline-color:#0df;
  1146. }
  1147. @media screen and (forced-colors: active){
  1148. :is(.annotationEditorLayer
  1149. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1150. --editor-toolbar-bg-color:ButtonFace;
  1151. --editor-toolbar-fg-color:ButtonText;
  1152. --editor-toolbar-border-color:ButtonText;
  1153. --editor-toolbar-hover-border-color:AccentColor;
  1154. --editor-toolbar-hover-bg-color:ButtonFace;
  1155. --editor-toolbar-hover-fg-color:AccentColor;
  1156. --editor-toolbar-hover-outline:2px solid var(--editor-toolbar-hover-border-color);
  1157. --editor-toolbar-focus-outline-color:ButtonBorder;
  1158. --editor-toolbar-shadow:none;
  1159. }
  1160. }
  1161. :is(.annotationEditorLayer
  1162. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar.hidden{
  1163. display:none;
  1164. }
  1165. :is(.annotationEditorLayer
  1166. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar:has(:focus-visible){
  1167. border-color:transparent;
  1168. }
  1169. [dir="ltr"] :is(.annotationEditorLayer
  1170. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1171. transform-origin:100% 0;
  1172. }
  1173. [dir="rtl"] :is(.annotationEditorLayer
  1174. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar{
  1175. transform-origin:0 0;
  1176. }
  1177. :is(.annotationEditorLayer
  1178. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons{
  1179. display:flex;
  1180. justify-content:center;
  1181. align-items:center;
  1182. gap:0;
  1183. height:100%;
  1184. }
  1185. :is(.annotationEditorLayer
  1186. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .divider{
  1187. width:1px;
  1188. height:calc(
  1189. 2 * var(--editor-toolbar-padding) + var(--editor-toolbar-height)
  1190. );
  1191. background-color:var(--editor-toolbar-border-color);
  1192. display:inline-block;
  1193. margin-inline:2px;
  1194. }
  1195. :is(.annotationEditorLayer
  1196. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .highlightButton{
  1197. width:var(--editor-toolbar-height);
  1198. }
  1199. :is(.annotationEditorLayer
  1200. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .highlightButton::before{
  1201. content:"";
  1202. -webkit-mask-image:var(--editor-toolbar-highlight-image);
  1203. mask-image:var(--editor-toolbar-highlight-image);
  1204. -webkit-mask-repeat:no-repeat;
  1205. mask-repeat:no-repeat;
  1206. -webkit-mask-position:center;
  1207. mask-position:center;
  1208. display:inline-block;
  1209. background-color:var(--editor-toolbar-fg-color);
  1210. width:100%;
  1211. height:100%;
  1212. }
  1213. :is(.annotationEditorLayer
  1214. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .highlightButton:hover::before{
  1215. background-color:var(--editor-toolbar-hover-fg-color);
  1216. }
  1217. :is(.annotationEditorLayer
  1218. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .delete{
  1219. width:var(--editor-toolbar-height);
  1220. }
  1221. :is(.annotationEditorLayer
  1222. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .delete::before{
  1223. content:"";
  1224. -webkit-mask-image:var(--editor-toolbar-delete-image);
  1225. mask-image:var(--editor-toolbar-delete-image);
  1226. -webkit-mask-repeat:no-repeat;
  1227. mask-repeat:no-repeat;
  1228. -webkit-mask-position:center;
  1229. mask-position:center;
  1230. display:inline-block;
  1231. background-color:var(--editor-toolbar-fg-color);
  1232. width:100%;
  1233. height:100%;
  1234. }
  1235. :is(.annotationEditorLayer
  1236. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .delete:hover::before{
  1237. background-color:var(--editor-toolbar-hover-fg-color);
  1238. }
  1239. :is(.annotationEditorLayer
  1240. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons > *{
  1241. height:var(--editor-toolbar-height);
  1242. }
  1243. :is(.annotationEditorLayer
  1244. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons > :not(.divider){
  1245. border:none;
  1246. background-color:transparent;
  1247. cursor:pointer;
  1248. }
  1249. :is(.annotationEditorLayer
  1250. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons > :not(.divider):hover{
  1251. border-radius:2px;
  1252. background-color:var(--editor-toolbar-hover-bg-color);
  1253. color:var(--editor-toolbar-hover-fg-color);
  1254. outline:var(--editor-toolbar-hover-outline);
  1255. outline-offset:1px;
  1256. }
  1257. :is(.annotationEditorLayer
  1258. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons > :not(.divider):hover:active{
  1259. outline:none;
  1260. }
  1261. :is(.annotationEditorLayer
  1262. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons > :not(.divider):focus-visible{
  1263. border-radius:2px;
  1264. outline:2px solid var(--editor-toolbar-focus-outline-color);
  1265. }
  1266. :is(.annotationEditorLayer
  1267. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText{
  1268. --alt-text-add-image:url(images/altText_add.svg);
  1269. --alt-text-done-image:url(images/altText_done.svg);
  1270. display:flex;
  1271. align-items:center;
  1272. justify-content:center;
  1273. width:-moz-max-content;
  1274. width:max-content;
  1275. padding-inline:8px;
  1276. pointer-events:all;
  1277. font:menu;
  1278. font-weight:590;
  1279. font-size:12px;
  1280. color:var(--editor-toolbar-fg-color);
  1281. }
  1282. :is(.annotationEditorLayer
  1283. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText:disabled{
  1284. pointer-events:none;
  1285. }
  1286. :is(.annotationEditorLayer
  1287. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText::before{
  1288. content:"";
  1289. -webkit-mask-image:var(--alt-text-add-image);
  1290. mask-image:var(--alt-text-add-image);
  1291. -webkit-mask-repeat:no-repeat;
  1292. mask-repeat:no-repeat;
  1293. -webkit-mask-position:center;
  1294. mask-position:center;
  1295. display:inline-block;
  1296. width:12px;
  1297. height:13px;
  1298. background-color:var(--editor-toolbar-fg-color);
  1299. margin-inline-end:4px;
  1300. }
  1301. :is(.annotationEditorLayer
  1302. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText:hover::before{
  1303. background-color:var(--editor-toolbar-hover-fg-color);
  1304. }
  1305. :is(.annotationEditorLayer
  1306. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText.done::before{
  1307. -webkit-mask-image:var(--alt-text-done-image);
  1308. mask-image:var(--alt-text-done-image);
  1309. }
  1310. :is(.annotationEditorLayer
  1311. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText .tooltip{
  1312. display:none;
  1313. }
  1314. :is(.annotationEditorLayer
  1315. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText .tooltip.show{
  1316. --alt-text-tooltip-bg:#f0f0f4;
  1317. --alt-text-tooltip-fg:#15141a;
  1318. --alt-text-tooltip-border:#8f8f9d;
  1319. --alt-text-tooltip-shadow:0px 2px 6px 0px rgb(58 57 68 / 0.2);
  1320. display:inline-flex;
  1321. flex-direction:column;
  1322. align-items:center;
  1323. justify-content:center;
  1324. position:absolute;
  1325. top:calc(100% + 2px);
  1326. inset-inline-start:0;
  1327. padding-block:2px 3px;
  1328. padding-inline:3px;
  1329. max-width:300px;
  1330. width:-moz-max-content;
  1331. width:max-content;
  1332. height:auto;
  1333. font-size:12px;
  1334. border:0.5px solid var(--alt-text-tooltip-border);
  1335. background:var(--alt-text-tooltip-bg);
  1336. box-shadow:var(--alt-text-tooltip-shadow);
  1337. color:var(--alt-text-tooltip-fg);
  1338. pointer-events:none;
  1339. }
  1340. @media (prefers-color-scheme: light){
  1341. :where(html:not(.is-light)) :is(.annotationEditorLayer
  1342. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText .tooltip.show{
  1343. --alt-text-tooltip-bg:#1c1b22;
  1344. --alt-text-tooltip-fg:#fbfbfe;
  1345. --alt-text-tooltip-shadow:0px 2px 6px 0px #15141a;
  1346. }
  1347. }
  1348. :where(html.is-dark) :is(.annotationEditorLayer
  1349. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText .tooltip.show{
  1350. --alt-text-tooltip-bg:#1c1b22;
  1351. --alt-text-tooltip-fg:#fbfbfe;
  1352. --alt-text-tooltip-shadow:0px 2px 6px 0px #15141a;
  1353. }
  1354. @media screen and (forced-colors: active){
  1355. :is(.annotationEditorLayer
  1356. :is(.freeTextEditor, .inkEditor, .stampEditor, .highlightEditor),.textLayer) .editToolbar .buttons .altText .tooltip.show{
  1357. --alt-text-tooltip-bg:Canvas;
  1358. --alt-text-tooltip-fg:CanvasText;
  1359. --alt-text-tooltip-border:CanvasText;
  1360. --alt-text-tooltip-shadow:none;
  1361. }
  1362. }
  1363. .annotationEditorLayer .freeTextEditor{
  1364. padding:calc(var(--freetext-padding) * var(--scale-factor));
  1365. width:auto;
  1366. height:auto;
  1367. touch-action:none;
  1368. }
  1369. .annotationEditorLayer .freeTextEditor .internal{
  1370. background:transparent;
  1371. border:none;
  1372. inset:0;
  1373. overflow:visible;
  1374. white-space:nowrap;
  1375. font:10px sans-serif;
  1376. line-height:var(--freetext-line-height);
  1377. -webkit-user-select:none;
  1378. -moz-user-select:none;
  1379. user-select:none;
  1380. }
  1381. .annotationEditorLayer .freeTextEditor .overlay{
  1382. position:absolute;
  1383. display:none;
  1384. background:transparent;
  1385. inset:0;
  1386. width:100%;
  1387. height:100%;
  1388. }
  1389. .annotationEditorLayer freeTextEditor .overlay.enabled{
  1390. display:block;
  1391. }
  1392. .annotationEditorLayer .freeTextEditor .internal:empty::before{
  1393. content:attr(default-content);
  1394. color:gray;
  1395. }
  1396. .annotationEditorLayer .freeTextEditor .internal:focus{
  1397. outline:none;
  1398. -webkit-user-select:auto;
  1399. -moz-user-select:auto;
  1400. user-select:auto;
  1401. }
  1402. .annotationEditorLayer .inkEditor{
  1403. width:100%;
  1404. height:100%;
  1405. }
  1406. .annotationEditorLayer .inkEditor.editing{
  1407. cursor:inherit;
  1408. }
  1409. .annotationEditorLayer .inkEditor .inkEditorCanvas{
  1410. position:absolute;
  1411. inset:0;
  1412. width:100%;
  1413. height:100%;
  1414. touch-action:none;
  1415. }
  1416. .annotationEditorLayer .stampEditor{
  1417. width:auto;
  1418. height:auto;
  1419. }
  1420. .annotationEditorLayer .stampEditor canvas{
  1421. width:100%;
  1422. height:100%;
  1423. }
  1424. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers{
  1425. position:absolute;
  1426. inset:0;
  1427. }
  1428. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers.hidden{
  1429. display:none;
  1430. }
  1431. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer{
  1432. width:var(--resizer-size);
  1433. height:var(--resizer-size);
  1434. background:content-box var(--resizer-bg-color);
  1435. border:var(--focus-outline-around);
  1436. border-radius:2px;
  1437. position:absolute;
  1438. }
  1439. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.topLeft{
  1440. top:var(--resizer-shift);
  1441. left:var(--resizer-shift);
  1442. }
  1443. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.topMiddle{
  1444. top:var(--resizer-shift);
  1445. left:calc(50% + var(--resizer-shift));
  1446. }
  1447. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.topRight{
  1448. top:var(--resizer-shift);
  1449. right:var(--resizer-shift);
  1450. }
  1451. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.middleRight{
  1452. top:calc(50% + var(--resizer-shift));
  1453. right:var(--resizer-shift);
  1454. }
  1455. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.bottomRight{
  1456. bottom:var(--resizer-shift);
  1457. right:var(--resizer-shift);
  1458. }
  1459. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.bottomMiddle{
  1460. bottom:var(--resizer-shift);
  1461. left:calc(50% + var(--resizer-shift));
  1462. }
  1463. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.bottomLeft{
  1464. bottom:var(--resizer-shift);
  1465. left:var(--resizer-shift);
  1466. }
  1467. .annotationEditorLayer :is(.freeTextEditor, .inkEditor, .stampEditor) > .resizers > .resizer.middleLeft{
  1468. top:calc(50% + var(--resizer-shift));
  1469. left:var(--resizer-shift);
  1470. }
  1471. .annotationEditorLayer[data-main-rotation="0"]
  1472. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topLeft,
  1473. .annotationEditorLayer[data-main-rotation="90"]
  1474. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topLeft,
  1475. .annotationEditorLayer[data-main-rotation="180"]
  1476. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topLeft,
  1477. .annotationEditorLayer[data-main-rotation="270"]
  1478. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topLeft,
  1479. .annotationEditorLayer[data-main-rotation="0"]
  1480. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomRight,
  1481. .annotationEditorLayer[data-main-rotation="90"]
  1482. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomRight,
  1483. .annotationEditorLayer[data-main-rotation="180"]
  1484. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomRight,
  1485. .annotationEditorLayer[data-main-rotation="270"]
  1486. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomRight{
  1487. cursor:nwse-resize;
  1488. }
  1489. .annotationEditorLayer[data-main-rotation="0"]
  1490. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topMiddle,
  1491. .annotationEditorLayer[data-main-rotation="90"]
  1492. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topMiddle,
  1493. .annotationEditorLayer[data-main-rotation="180"]
  1494. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topMiddle,
  1495. .annotationEditorLayer[data-main-rotation="270"]
  1496. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topMiddle,
  1497. .annotationEditorLayer[data-main-rotation="0"]
  1498. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomMiddle,
  1499. .annotationEditorLayer[data-main-rotation="90"]
  1500. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomMiddle,
  1501. .annotationEditorLayer[data-main-rotation="180"]
  1502. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomMiddle,
  1503. .annotationEditorLayer[data-main-rotation="270"]
  1504. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomMiddle{
  1505. cursor:ns-resize;
  1506. }
  1507. .annotationEditorLayer[data-main-rotation="0"]
  1508. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topRight,
  1509. .annotationEditorLayer[data-main-rotation="90"]
  1510. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topRight,
  1511. .annotationEditorLayer[data-main-rotation="180"]
  1512. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topRight,
  1513. .annotationEditorLayer[data-main-rotation="270"]
  1514. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topRight,
  1515. .annotationEditorLayer[data-main-rotation="0"]
  1516. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomLeft,
  1517. .annotationEditorLayer[data-main-rotation="90"]
  1518. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomLeft,
  1519. .annotationEditorLayer[data-main-rotation="180"]
  1520. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomLeft,
  1521. .annotationEditorLayer[data-main-rotation="270"]
  1522. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomLeft{
  1523. cursor:nesw-resize;
  1524. }
  1525. .annotationEditorLayer[data-main-rotation="0"]
  1526. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.middleRight,
  1527. .annotationEditorLayer[data-main-rotation="90"]
  1528. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.middleRight,
  1529. .annotationEditorLayer[data-main-rotation="180"]
  1530. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.middleRight,
  1531. .annotationEditorLayer[data-main-rotation="270"]
  1532. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.middleRight,
  1533. .annotationEditorLayer[data-main-rotation="0"]
  1534. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.middleLeft,
  1535. .annotationEditorLayer[data-main-rotation="90"]
  1536. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.middleLeft,
  1537. .annotationEditorLayer[data-main-rotation="180"]
  1538. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.middleLeft,
  1539. .annotationEditorLayer[data-main-rotation="270"]
  1540. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.middleLeft{
  1541. cursor:ew-resize;
  1542. }
  1543. .annotationEditorLayer[data-main-rotation="0"]
  1544. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topLeft,
  1545. .annotationEditorLayer[data-main-rotation="90"]
  1546. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topLeft,
  1547. .annotationEditorLayer[data-main-rotation="180"]
  1548. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topLeft,
  1549. .annotationEditorLayer[data-main-rotation="270"]
  1550. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topLeft,
  1551. .annotationEditorLayer[data-main-rotation="0"]
  1552. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomRight,
  1553. .annotationEditorLayer[data-main-rotation="90"]
  1554. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomRight,
  1555. .annotationEditorLayer[data-main-rotation="180"]
  1556. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomRight,
  1557. .annotationEditorLayer[data-main-rotation="270"]
  1558. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomRight{
  1559. cursor:nesw-resize;
  1560. }
  1561. .annotationEditorLayer[data-main-rotation="0"]
  1562. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topMiddle,
  1563. .annotationEditorLayer[data-main-rotation="90"]
  1564. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topMiddle,
  1565. .annotationEditorLayer[data-main-rotation="180"]
  1566. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topMiddle,
  1567. .annotationEditorLayer[data-main-rotation="270"]
  1568. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topMiddle,
  1569. .annotationEditorLayer[data-main-rotation="0"]
  1570. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomMiddle,
  1571. .annotationEditorLayer[data-main-rotation="90"]
  1572. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomMiddle,
  1573. .annotationEditorLayer[data-main-rotation="180"]
  1574. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomMiddle,
  1575. .annotationEditorLayer[data-main-rotation="270"]
  1576. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomMiddle{
  1577. cursor:ew-resize;
  1578. }
  1579. .annotationEditorLayer[data-main-rotation="0"]
  1580. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.topRight,
  1581. .annotationEditorLayer[data-main-rotation="90"]
  1582. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.topRight,
  1583. .annotationEditorLayer[data-main-rotation="180"]
  1584. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.topRight,
  1585. .annotationEditorLayer[data-main-rotation="270"]
  1586. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.topRight,
  1587. .annotationEditorLayer[data-main-rotation="0"]
  1588. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.bottomLeft,
  1589. .annotationEditorLayer[data-main-rotation="90"]
  1590. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.bottomLeft,
  1591. .annotationEditorLayer[data-main-rotation="180"]
  1592. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.bottomLeft,
  1593. .annotationEditorLayer[data-main-rotation="270"]
  1594. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.bottomLeft{
  1595. cursor:nwse-resize;
  1596. }
  1597. .annotationEditorLayer[data-main-rotation="0"]
  1598. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.middleRight,
  1599. .annotationEditorLayer[data-main-rotation="90"]
  1600. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.middleRight,
  1601. .annotationEditorLayer[data-main-rotation="180"]
  1602. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.middleRight,
  1603. .annotationEditorLayer[data-main-rotation="270"]
  1604. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.middleRight,
  1605. .annotationEditorLayer[data-main-rotation="0"]
  1606. :is([data-editor-rotation="90"], [data-editor-rotation="270"]) > .resizers > .resizer.middleLeft,
  1607. .annotationEditorLayer[data-main-rotation="90"]
  1608. :is([data-editor-rotation="0"], [data-editor-rotation="180"]) > .resizers > .resizer.middleLeft,
  1609. .annotationEditorLayer[data-main-rotation="180"]
  1610. :is([data-editor-rotation="270"], [data-editor-rotation="90"]) > .resizers > .resizer.middleLeft,
  1611. .annotationEditorLayer[data-main-rotation="270"]
  1612. :is([data-editor-rotation="180"], [data-editor-rotation="0"]) > .resizers > .resizer.middleLeft{
  1613. cursor:ns-resize;
  1614. }
  1615. .annotationEditorLayer
  1616. :is(
  1617. [data-main-rotation="0"] [data-editor-rotation="90"],
  1618. [data-main-rotation="90"] [data-editor-rotation="0"],
  1619. [data-main-rotation="180"] [data-editor-rotation="270"],
  1620. [data-main-rotation="270"] [data-editor-rotation="180"]
  1621. ) .editToolbar{
  1622. rotate:270deg;
  1623. }
  1624. [dir="ltr"] .annotationEditorLayer
  1625. :is(
  1626. [data-main-rotation="0"] [data-editor-rotation="90"],
  1627. [data-main-rotation="90"] [data-editor-rotation="0"],
  1628. [data-main-rotation="180"] [data-editor-rotation="270"],
  1629. [data-main-rotation="270"] [data-editor-rotation="180"]
  1630. ) .editToolbar{
  1631. inset-inline-end:calc(0px - var(--editor-toolbar-vert-offset));
  1632. inset-block-start:0;
  1633. }
  1634. [dir="rtl"] .annotationEditorLayer
  1635. :is(
  1636. [data-main-rotation="0"] [data-editor-rotation="90"],
  1637. [data-main-rotation="90"] [data-editor-rotation="0"],
  1638. [data-main-rotation="180"] [data-editor-rotation="270"],
  1639. [data-main-rotation="270"] [data-editor-rotation="180"]
  1640. ) .editToolbar{
  1641. inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));
  1642. inset-block-start:0;
  1643. }
  1644. .annotationEditorLayer
  1645. :is(
  1646. [data-main-rotation="0"] [data-editor-rotation="180"],
  1647. [data-main-rotation="90"] [data-editor-rotation="90"],
  1648. [data-main-rotation="180"] [data-editor-rotation="0"],
  1649. [data-main-rotation="270"] [data-editor-rotation="270"]
  1650. ) .editToolbar{
  1651. rotate:180deg;
  1652. inset-inline-end:100%;
  1653. inset-block-start:calc(0pc - var(--editor-toolbar-vert-offset));
  1654. }
  1655. .annotationEditorLayer
  1656. :is(
  1657. [data-main-rotation="0"] [data-editor-rotation="270"],
  1658. [data-main-rotation="90"] [data-editor-rotation="180"],
  1659. [data-main-rotation="180"] [data-editor-rotation="90"],
  1660. [data-main-rotation="270"] [data-editor-rotation="0"]
  1661. ) .editToolbar{
  1662. rotate:90deg;
  1663. }
  1664. [dir="ltr"] .annotationEditorLayer
  1665. :is(
  1666. [data-main-rotation="0"] [data-editor-rotation="270"],
  1667. [data-main-rotation="90"] [data-editor-rotation="180"],
  1668. [data-main-rotation="180"] [data-editor-rotation="90"],
  1669. [data-main-rotation="270"] [data-editor-rotation="0"]
  1670. ) .editToolbar{
  1671. inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));
  1672. inset-block-start:100%;
  1673. }
  1674. [dir="rtl"] .annotationEditorLayer
  1675. :is(
  1676. [data-main-rotation="0"] [data-editor-rotation="270"],
  1677. [data-main-rotation="90"] [data-editor-rotation="180"],
  1678. [data-main-rotation="180"] [data-editor-rotation="90"],
  1679. [data-main-rotation="270"] [data-editor-rotation="0"]
  1680. ) .editToolbar{
  1681. inset-inline-start:calc(0px - var(--editor-toolbar-vert-offset));
  1682. inset-block-start:0;
  1683. }
  1684. #altTextDialog{
  1685. --dialog-bg-color:white;
  1686. --dialog-border-color:white;
  1687. --dialog-shadow:0 2px 14px 0 rgb(58 57 68 / 0.2);
  1688. --text-primary-color:#15141a;
  1689. --text-secondary-color:#5b5b66;
  1690. --hover-filter:brightness(0.9);
  1691. --focus-ring-color:#0060df;
  1692. --focus-ring-outline:2px solid var(--focus-ring-color);
  1693. --textarea-border-color:#8f8f9d;
  1694. --textarea-bg-color:white;
  1695. --textarea-fg-color:var(--text-secondary-color);
  1696. --radio-bg-color:#f0f0f4;
  1697. --radio-checked-bg-color:#fbfbfe;
  1698. --radio-border-color:#8f8f9d;
  1699. --radio-checked-border-color:#0060df;
  1700. --button-cancel-bg-color:#f0f0f4;
  1701. --button-cancel-fg-color:var(--text-primary-color);
  1702. --button-cancel-border-color:var(--button-cancel-bg-color);
  1703. --button-cancel-hover-bg-color:var(--button-cancel-bg-color);
  1704. --button-cancel-hover-fg-color:var(--button-cancel-fg-color);
  1705. --button-cancel-hover-border-color:var(--button-cancel-hover-bg-color);
  1706. --button-save-bg-color:#0060df;
  1707. --button-save-fg-color:#fbfbfe;
  1708. --button-save-hover-bg-color:var(--button-save-bg-color);
  1709. --button-save-hover-fg-color:var(--button-save-fg-color);
  1710. --button-save-hover-border-color:var(--button-save-hover-bg-color);
  1711. font:message-box;
  1712. font-size:13px;
  1713. font-weight:400;
  1714. line-height:150%;
  1715. border-radius:4px;
  1716. padding:12px 16px;
  1717. border:1px solid var(--dialog-border-color);
  1718. background:var(--dialog-bg-color);
  1719. color:var(--text-primary-color);
  1720. box-shadow:var(--dialog-shadow);
  1721. }
  1722. @media (prefers-color-scheme: light){
  1723. :where(html:not(.is-light)) #altTextDialog{
  1724. --dialog-bg-color:#1c1b22;
  1725. --dialog-border-color:#1c1b22;
  1726. --dialog-shadow:0 2px 14px 0 #15141a;
  1727. --text-primary-color:#fbfbfe;
  1728. --text-secondary-color:#cfcfd8;
  1729. --focus-ring-color:#0df;
  1730. --hover-filter:brightness(1.4);
  1731. --textarea-bg-color:#42414d;
  1732. --radio-bg-color:#2b2a33;
  1733. --radio-checked-bg-color:#15141a;
  1734. --radio-checked-border-color:#0df;
  1735. --button-cancel-bg-color:#2b2a33;
  1736. --button-save-bg-color:#0df;
  1737. --button-save-fg-color:#15141a;
  1738. }
  1739. }
  1740. :where(html.is-dark) #altTextDialog{
  1741. --dialog-bg-color:#1c1b22;
  1742. --dialog-border-color:#1c1b22;
  1743. --dialog-shadow:0 2px 14px 0 #15141a;
  1744. --text-primary-color:#fbfbfe;
  1745. --text-secondary-color:#cfcfd8;
  1746. --focus-ring-color:#0df;
  1747. --hover-filter:brightness(1.4);
  1748. --textarea-bg-color:#42414d;
  1749. --radio-bg-color:#2b2a33;
  1750. --radio-checked-bg-color:#15141a;
  1751. --radio-checked-border-color:#0df;
  1752. --button-cancel-bg-color:#2b2a33;
  1753. --button-save-bg-color:#0df;
  1754. --button-save-fg-color:#15141a;
  1755. }
  1756. @media screen and (forced-colors: active){
  1757. #altTextDialog{
  1758. --dialog-bg-color:Canvas;
  1759. --dialog-border-color:CanvasText;
  1760. --dialog-shadow:none;
  1761. --text-primary-color:CanvasText;
  1762. --text-secondary-color:CanvasText;
  1763. --hover-filter:none;
  1764. --focus-ring-color:ButtonBorder;
  1765. --textarea-border-color:ButtonBorder;
  1766. --textarea-bg-color:Field;
  1767. --textarea-fg-color:ButtonText;
  1768. --radio-bg-color:ButtonFace;
  1769. --radio-checked-bg-color:ButtonFace;
  1770. --radio-border-color:ButtonText;
  1771. --radio-checked-border-color:ButtonText;
  1772. --button-cancel-bg-color:ButtonFace;
  1773. --button-cancel-fg-color:ButtonText;
  1774. --button-cancel-border-color:ButtonText;
  1775. --button-cancel-hover-bg-color:AccentColor;
  1776. --button-cancel-hover-fg-color:AccentColorText;
  1777. --button-save-bg-color:ButtonText;
  1778. --button-save-fg-color:ButtonFace;
  1779. --button-save-hover-bg-color:AccentColor;
  1780. --button-save-hover-fg-color:AccentColorText;
  1781. }
  1782. }
  1783. #altTextDialog::backdrop{
  1784. -webkit-mask:url(#alttext-manager-mask);
  1785. mask:url(#alttext-manager-mask);
  1786. }
  1787. #altTextDialog.positioned{
  1788. margin:0;
  1789. }
  1790. #altTextDialog #altTextContainer{
  1791. width:300px;
  1792. height:-moz-fit-content;
  1793. height:fit-content;
  1794. display:inline-flex;
  1795. flex-direction:column;
  1796. align-items:flex-start;
  1797. gap:16px;
  1798. }
  1799. #altTextDialog #altTextContainer *:focus-visible{
  1800. outline:var(--focus-ring-outline);
  1801. outline-offset:2px;
  1802. }
  1803. #altTextDialog #altTextContainer .radio{
  1804. display:flex;
  1805. flex-direction:column;
  1806. align-items:flex-start;
  1807. gap:4px;
  1808. }
  1809. #altTextDialog #altTextContainer .radio .radioButton{
  1810. display:flex;
  1811. gap:8px;
  1812. align-self:stretch;
  1813. align-items:center;
  1814. }
  1815. #altTextDialog #altTextContainer .radio .radioButton input{
  1816. -webkit-appearance:none;
  1817. -moz-appearance:none;
  1818. appearance:none;
  1819. box-sizing:border-box;
  1820. width:16px;
  1821. height:16px;
  1822. border-radius:50%;
  1823. background-color:var(--radio-bg-color);
  1824. border:1px solid var(--radio-border-color);
  1825. }
  1826. #altTextDialog #altTextContainer .radio .radioButton input:hover{
  1827. filter:var(--hover-filter);
  1828. }
  1829. #altTextDialog #altTextContainer .radio .radioButton input:checked{
  1830. background-color:var(--radio-checked-bg-color);
  1831. border:4px solid var(--radio-checked-border-color);
  1832. }
  1833. #altTextDialog #altTextContainer .radio .radioLabel{
  1834. display:flex;
  1835. padding-inline-start:24px;
  1836. align-items:flex-start;
  1837. gap:10px;
  1838. align-self:stretch;
  1839. }
  1840. #altTextDialog #altTextContainer .radio .radioLabel span{
  1841. flex:1 0 0;
  1842. font-size:11px;
  1843. color:var(--text-secondary-color);
  1844. }
  1845. #altTextDialog #altTextContainer #overallDescription{
  1846. display:flex;
  1847. flex-direction:column;
  1848. align-items:flex-start;
  1849. gap:4px;
  1850. align-self:stretch;
  1851. }
  1852. #altTextDialog #altTextContainer #overallDescription span{
  1853. align-self:stretch;
  1854. }
  1855. #altTextDialog #altTextContainer #overallDescription .title{
  1856. font-size:13px;
  1857. font-style:normal;
  1858. font-weight:590;
  1859. }
  1860. #altTextDialog #altTextContainer #addDescription{
  1861. display:flex;
  1862. flex-direction:column;
  1863. align-items:stretch;
  1864. gap:8px;
  1865. }
  1866. #altTextDialog #altTextContainer #addDescription .descriptionArea{
  1867. flex:1;
  1868. padding-inline:24px 10px;
  1869. }
  1870. #altTextDialog #altTextContainer #addDescription .descriptionArea textarea{
  1871. font:inherit;
  1872. width:100%;
  1873. min-height:75px;
  1874. padding:8px;
  1875. resize:none;
  1876. margin:0;
  1877. box-sizing:border-box;
  1878. border-radius:4px;
  1879. border:1px solid var(--textarea-border-color);
  1880. background:var(--textarea-bg-color);
  1881. color:var(--textarea-fg-color);
  1882. }
  1883. #altTextDialog #altTextContainer #addDescription .descriptionArea textarea:focus{
  1884. outline-offset:0;
  1885. border-color:transparent;
  1886. }
  1887. #altTextDialog #altTextContainer #addDescription .descriptionArea textarea:disabled{
  1888. pointer-events:none;
  1889. opacity:0.4;
  1890. }
  1891. #altTextDialog #altTextContainer #buttons{
  1892. display:flex;
  1893. justify-content:flex-end;
  1894. align-items:flex-start;
  1895. gap:8px;
  1896. align-self:stretch;
  1897. }
  1898. #altTextDialog #altTextContainer #buttons button{
  1899. border-radius:4px;
  1900. border:1px solid;
  1901. font:menu;
  1902. font-weight:600;
  1903. padding:4px 16px;
  1904. width:auto;
  1905. height:32px;
  1906. }
  1907. #altTextDialog #altTextContainer #buttons button:hover{
  1908. cursor:pointer;
  1909. filter:var(--hover-filter);
  1910. }
  1911. #altTextDialog #altTextContainer #buttons button#altTextCancel{
  1912. color:var(--button-cancel-fg-color);
  1913. background-color:var(--button-cancel-bg-color);
  1914. border-color:var(--button-cancel-border-color);
  1915. }
  1916. #altTextDialog #altTextContainer #buttons button#altTextCancel:hover{
  1917. color:var(--button-cancel-hover-fg-color);
  1918. background-color:var(--button-cancel-hover-bg-color);
  1919. border-color:var(--button-cancel-hover-border-color);
  1920. }
  1921. #altTextDialog #altTextContainer #buttons button#altTextSave{
  1922. color:var(--button-save-hover-fg-color);
  1923. background-color:var(--button-save-hover-bg-color);
  1924. border-color:var(--button-save-hover-border-color);
  1925. opacity:1;
  1926. }
  1927. #altTextDialog #altTextContainer #buttons button#altTextSave:hover{
  1928. color:var(--button-save-hover-fg-color);
  1929. background-color:var(--button-save-hover-bg-color);
  1930. border-color:var(--button-save-hover-border-color);
  1931. }
  1932. .colorPicker{
  1933. --hover-outline-color:#0250bb;
  1934. --selected-outline-color:#0060df;
  1935. --swatch-border-color:#cfcfd8;
  1936. }
  1937. @media (prefers-color-scheme: light){
  1938. :where(html:not(.is-light)) .colorPicker{
  1939. --hover-outline-color:#80ebff;
  1940. --selected-outline-color:#aaf2ff;
  1941. --swatch-border-color:#52525e;
  1942. }
  1943. }
  1944. :where(html.is-dark) .colorPicker{
  1945. --hover-outline-color:#80ebff;
  1946. --selected-outline-color:#aaf2ff;
  1947. --swatch-border-color:#52525e;
  1948. }
  1949. @media screen and (forced-colors: active){
  1950. .colorPicker{
  1951. --hover-outline-color:Highlight;
  1952. --selected-outline-color:var(--hover-outline-color);
  1953. --swatch-border-color:ButtonText;
  1954. }
  1955. }
  1956. .colorPicker .swatch{
  1957. width:16px;
  1958. height:16px;
  1959. border:1px solid var(--swatch-border-color);
  1960. border-radius:100%;
  1961. outline-offset:2px;
  1962. box-sizing:border-box;
  1963. forced-color-adjust:none;
  1964. }
  1965. .colorPicker button:is(:hover, .selected) > .swatch{
  1966. border:none;
  1967. }
  1968. .annotationEditorLayer[data-main-rotation="0"] .highlightEditor:not(.free) > .editToolbar{
  1969. rotate:0deg;
  1970. }
  1971. .annotationEditorLayer[data-main-rotation="90"] .highlightEditor:not(.free) > .editToolbar{
  1972. rotate:270deg;
  1973. }
  1974. .annotationEditorLayer[data-main-rotation="180"] .highlightEditor:not(.free) > .editToolbar{
  1975. rotate:180deg;
  1976. }
  1977. .annotationEditorLayer[data-main-rotation="270"] .highlightEditor:not(.free) > .editToolbar{
  1978. rotate:90deg;
  1979. }
  1980. .annotationEditorLayer .highlightEditor{
  1981. position:absolute;
  1982. background:transparent;
  1983. z-index:1;
  1984. cursor:auto;
  1985. max-width:100%;
  1986. max-height:100%;
  1987. border:none;
  1988. outline:none;
  1989. pointer-events:none;
  1990. transform-origin:0 0;
  1991. }
  1992. .annotationEditorLayer .highlightEditor:not(.free){
  1993. transform:none;
  1994. }
  1995. .annotationEditorLayer .highlightEditor .internal{
  1996. position:absolute;
  1997. top:0;
  1998. left:0;
  1999. width:100%;
  2000. height:100%;
  2001. pointer-events:auto;
  2002. }
  2003. .annotationEditorLayer .highlightEditor.disabled .internal{
  2004. pointer-events:none;
  2005. }
  2006. .annotationEditorLayer .highlightEditor.selectedEditor .internal{
  2007. cursor:pointer;
  2008. }
  2009. .annotationEditorLayer .highlightEditor .editToolbar{
  2010. --editor-toolbar-colorpicker-arrow-image:url(images/toolbarButton-menuArrow.svg);
  2011. transform-origin:center !important;
  2012. }
  2013. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker{
  2014. position:relative;
  2015. width:auto;
  2016. display:flex;
  2017. justify-content:center;
  2018. align-items:center;
  2019. gap:4px;
  2020. padding:4px;
  2021. }
  2022. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker::after{
  2023. content:"";
  2024. -webkit-mask-image:var(--editor-toolbar-colorpicker-arrow-image);
  2025. mask-image:var(--editor-toolbar-colorpicker-arrow-image);
  2026. -webkit-mask-repeat:no-repeat;
  2027. mask-repeat:no-repeat;
  2028. -webkit-mask-position:center;
  2029. mask-position:center;
  2030. display:inline-block;
  2031. background-color:var(--editor-toolbar-fg-color);
  2032. width:12px;
  2033. height:12px;
  2034. }
  2035. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker:hover::after{
  2036. background-color:var(--editor-toolbar-hover-fg-color);
  2037. }
  2038. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker:has(.dropdown:not(.hidden)){
  2039. background-color:var(--editor-toolbar-hover-bg-color);
  2040. }
  2041. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker:has(.dropdown:not(.hidden))::after{
  2042. scale:-1;
  2043. }
  2044. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown{
  2045. position:absolute;
  2046. display:flex;
  2047. justify-content:center;
  2048. align-items:center;
  2049. flex-direction:column;
  2050. gap:11px;
  2051. padding-block:8px;
  2052. border-radius:6px;
  2053. background-color:var(--editor-toolbar-bg-color);
  2054. border:1px solid var(--editor-toolbar-border-color);
  2055. box-shadow:var(--editor-toolbar-shadow);
  2056. inset-block-start:calc(100% + 4px);
  2057. width:calc(100% + 2 * var(--editor-toolbar-padding));
  2058. }
  2059. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown button{
  2060. width:100%;
  2061. height:auto;
  2062. border:none;
  2063. cursor:pointer;
  2064. display:flex;
  2065. justify-content:center;
  2066. align-items:center;
  2067. background:none;
  2068. }
  2069. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown button:is(:active, :focus-visible){
  2070. outline:none;
  2071. }
  2072. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown button > .swatch{
  2073. outline-offset:2px;
  2074. }
  2075. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown button[aria-selected="true"] > .swatch{
  2076. outline:2px solid var(--selected-outline-color);
  2077. }
  2078. .annotationEditorLayer .highlightEditor .editToolbar .buttons .colorPicker .dropdown button:is(:hover, :active, :focus-visible) > .swatch{
  2079. outline:2px solid var(--hover-outline-color);
  2080. }
  2081. .editorParamsToolbar:has(#highlightParamsToolbarContainer){
  2082. padding:unset;
  2083. }
  2084. #highlightParamsToolbarContainer{
  2085. height:auto;
  2086. padding-inline:10px;
  2087. padding-block:10px 16px;
  2088. gap:16px;
  2089. display:flex;
  2090. flex-direction:column;
  2091. box-sizing:border-box;
  2092. }
  2093. #highlightParamsToolbarContainer .editorParamsLabel{
  2094. width:-moz-fit-content;
  2095. width:fit-content;
  2096. inset-inline-start:0;
  2097. }
  2098. #highlightParamsToolbarContainer .colorPicker{
  2099. display:flex;
  2100. flex-direction:column;
  2101. gap:8px;
  2102. }
  2103. #highlightParamsToolbarContainer .colorPicker .dropdown{
  2104. display:flex;
  2105. justify-content:space-between;
  2106. align-items:center;
  2107. flex-direction:row;
  2108. height:auto;
  2109. }
  2110. #highlightParamsToolbarContainer .colorPicker .dropdown button{
  2111. width:auto;
  2112. height:auto;
  2113. border:none;
  2114. cursor:pointer;
  2115. display:flex;
  2116. justify-content:center;
  2117. align-items:center;
  2118. background:none;
  2119. flex:0 0 auto;
  2120. }
  2121. #highlightParamsToolbarContainer .colorPicker .dropdown button .swatch{
  2122. width:24px;
  2123. height:24px;
  2124. }
  2125. #highlightParamsToolbarContainer .colorPicker .dropdown button:is(:active, :focus-visible){
  2126. outline:none;
  2127. }
  2128. #highlightParamsToolbarContainer .colorPicker .dropdown button[aria-selected="true"] > .swatch{
  2129. outline:2px solid var(--selected-outline-color);
  2130. }
  2131. #highlightParamsToolbarContainer .colorPicker .dropdown button:is(:hover, :active, :focus-visible) > .swatch{
  2132. outline:2px solid var(--hover-outline-color);
  2133. }
  2134. #highlightParamsToolbarContainer #editorHighlightThickness{
  2135. display:flex;
  2136. flex-direction:column;
  2137. align-items:center;
  2138. gap:4px;
  2139. align-self:stretch;
  2140. }
  2141. #highlightParamsToolbarContainer #editorHighlightThickness .editorParamsLabel{
  2142. width:100%;
  2143. height:auto;
  2144. align-self:stretch;
  2145. }
  2146. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker{
  2147. display:flex;
  2148. justify-content:space-between;
  2149. align-items:center;
  2150. align-self:stretch;
  2151. --example-color:#bfbfc9;
  2152. }
  2153. @media (prefers-color-scheme: light){
  2154. :where(html:not(.is-light)) #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker{
  2155. --example-color:#80808e;
  2156. }
  2157. }
  2158. :where(html.is-dark) #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker{
  2159. --example-color:#80808e;
  2160. }
  2161. @media screen and (forced-colors: active){
  2162. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker{
  2163. --example-color:CanvasText;
  2164. }
  2165. }
  2166. :is(#highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker > .editorParamsSlider[disabled]){
  2167. opacity:0.4;
  2168. }
  2169. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker::before,
  2170. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker::after{
  2171. content:"";
  2172. width:8px;
  2173. aspect-ratio:1;
  2174. display:block;
  2175. border-radius:100%;
  2176. background-color:var(--example-color);
  2177. }
  2178. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker::after{
  2179. width:24px;
  2180. }
  2181. #highlightParamsToolbarContainer #editorHighlightThickness .thicknessPicker .editorParamsSlider{
  2182. width:unset;
  2183. height:14px;
  2184. }
  2185. #highlightParamsToolbarContainer #editorHighlightVisibility{
  2186. display:flex;
  2187. flex-direction:column;
  2188. align-items:flex-start;
  2189. gap:8px;
  2190. align-self:stretch;
  2191. }
  2192. #highlightParamsToolbarContainer #editorHighlightVisibility .divider{
  2193. --divider-color:#d7d7db;
  2194. margin-block:4px;
  2195. width:100%;
  2196. height:1px;
  2197. background-color:var(--divider-color);
  2198. }
  2199. @media (prefers-color-scheme: light){
  2200. :where(html:not(.is-light)) #highlightParamsToolbarContainer #editorHighlightVisibility .divider{
  2201. --divider-color:#8f8f9d;
  2202. }
  2203. }
  2204. :where(html.is-dark) #highlightParamsToolbarContainer #editorHighlightVisibility .divider{
  2205. --divider-color:#8f8f9d;
  2206. }
  2207. @media screen and (forced-colors: active){
  2208. #highlightParamsToolbarContainer #editorHighlightVisibility .divider{
  2209. --divider-color:CanvasText;
  2210. }
  2211. }
  2212. #highlightParamsToolbarContainer #editorHighlightVisibility .toggler{
  2213. display:flex;
  2214. justify-content:space-between;
  2215. align-items:center;
  2216. align-self:stretch;
  2217. }
  2218. :root{
  2219. --viewer-container-height:0;
  2220. --pdfViewer-padding-bottom:0;
  2221. --page-margin:1px auto -8px;
  2222. --page-border:9px solid transparent;
  2223. --spreadHorizontalWrapped-margin-LR:-3.5px;
  2224. --loading-icon-delay:400ms;
  2225. --num-page-width: 10px;
  2226. }
  2227. @media screen and (forced-colors: active){
  2228. :root{
  2229. --pdfViewer-padding-bottom:9px;
  2230. --page-margin:8px auto -1px;
  2231. --page-border:1px solid CanvasText;
  2232. --spreadHorizontalWrapped-margin-LR:3.5px;
  2233. }
  2234. }
  2235. [data-main-rotation="90"]{
  2236. transform:rotate(90deg) translateY(-100%);
  2237. }
  2238. [data-main-rotation="180"]{
  2239. transform:rotate(180deg) translate(-100%, -100%);
  2240. }
  2241. [data-main-rotation="270"]{
  2242. transform:rotate(270deg) translateX(-100%);
  2243. }
  2244. #hiddenCopyElement,
  2245. .hiddenCanvasElement{
  2246. position:absolute;
  2247. top:0;
  2248. left:0;
  2249. width:0;
  2250. height:0;
  2251. display:none;
  2252. }
  2253. .pdfViewer{
  2254. --scale-factor:1;
  2255. padding-bottom:var(--pdfViewer-padding-bottom);
  2256. --hcm-highlight-filter:none;
  2257. --hcm-highlight-selected-filter:none;
  2258. }
  2259. @media screen and (forced-colors: active){
  2260. .pdfViewer{
  2261. --hcm-highlight-filter:invert(100%);
  2262. }
  2263. }
  2264. .pdfViewer .canvasWrapper{
  2265. overflow:hidden;
  2266. width:100%;
  2267. height:100%;
  2268. }
  2269. .pdfViewer .page{
  2270. direction:ltr;
  2271. width:816px;
  2272. height:1056px;
  2273. margin:var(--page-margin);
  2274. position:relative;
  2275. overflow:visible;
  2276. border:var(--page-border);
  2277. background-clip:content-box;
  2278. background-color:rgb(255 255 255);
  2279. }
  2280. .pdfViewer .dummyPage{
  2281. position:relative;
  2282. width:0;
  2283. height:var(--viewer-container-height);
  2284. }
  2285. .pdfViewer.noUserSelect{
  2286. -webkit-user-select:none;
  2287. -moz-user-select:none;
  2288. user-select:none;
  2289. }
  2290. .pdfViewer.removePageBorders .page{
  2291. margin:0 auto 10px;
  2292. border:none;
  2293. }
  2294. .pdfViewer:is(.scrollHorizontal, .scrollWrapped),
  2295. .spread{
  2296. margin-inline:3.5px;
  2297. text-align:center;
  2298. display: flex;
  2299. flex-direction: column;
  2300. align-items: center;
  2301. }
  2302. .pdfViewer.scrollHorizontal,
  2303. .spread{
  2304. white-space:nowrap;
  2305. }
  2306. .pdfViewer.removePageBorders,
  2307. .pdfViewer:is(.scrollHorizontal, .scrollWrapped) .spread{
  2308. margin-inline:0;
  2309. }
  2310. .spread :is(.page, .dummyPage),
  2311. .pdfViewer:is(.scrollHorizontal, .scrollWrapped) :is(.page, .spread){
  2312. display:inline-block;
  2313. vertical-align:middle;
  2314. }
  2315. .spread .page,
  2316. .pdfViewer:is(.scrollHorizontal, .scrollWrapped) .page{
  2317. margin-inline:var(--spreadHorizontalWrapped-margin-LR);
  2318. }
  2319. .pdfViewer.removePageBorders .spread .page,
  2320. .pdfViewer.removePageBorders:is(.scrollHorizontal, .scrollWrapped) .page{
  2321. margin-inline:5px;
  2322. }
  2323. .pdfViewer .page canvas{
  2324. margin:0;
  2325. display:block;
  2326. }
  2327. .pdfViewer .page canvas .structTree{
  2328. contain:strict;
  2329. }
  2330. .pdfViewer .page canvas[hidden]{
  2331. display:none;
  2332. }
  2333. .pdfViewer .page canvas[zooming]{
  2334. width:100%;
  2335. height:100%;
  2336. }
  2337. .pdfViewer .page.loadingIcon::after{
  2338. position:absolute;
  2339. top:0;
  2340. left:0;
  2341. content:"";
  2342. width:100%;
  2343. height:100%;
  2344. background:url("images/loading-icon.gif") center no-repeat;
  2345. display:none;
  2346. transition-property:display;
  2347. transition-delay:var(--loading-icon-delay);
  2348. z-index:5;
  2349. contain:strict;
  2350. }
  2351. .pdfViewer .page.loading::after{
  2352. display:block;
  2353. }
  2354. .pdfViewer .page:not(.loading)::after{
  2355. transition-property:none;
  2356. display:none;
  2357. }
  2358. .pdfPresentationMode .pdfViewer{
  2359. padding-bottom:0;
  2360. }
  2361. .pdfPresentationMode .spread{
  2362. margin:0;
  2363. }
  2364. .pdfPresentationMode .pdfViewer .page{
  2365. margin:0 auto;
  2366. border:2px solid transparent;
  2367. }
  2368. :root{
  2369. --toolbar-height: 48px;
  2370. --dir-factor:1;
  2371. --inline-start:left;
  2372. --inline-end:right;
  2373. --sidebar-width:128px;
  2374. --sidebar-transition-duration:200ms;
  2375. --sidebar-transition-timing-function:ease;
  2376. --toolbar-icon-opacity:0.7;
  2377. --doorhanger-icon-opacity:0.9;
  2378. --editor-toolbar-base-offset:105px;
  2379. --main-color:rgb(12 12 13);
  2380. --body-bg-color:rgb(255, 255, 255);
  2381. --progressBar-color:rgb(10 132 255);
  2382. --progressBar-bg-color:rgb(221 221 222);
  2383. --progressBar-blend-color:rgb(116 177 239);
  2384. --scrollbar-color:auto;
  2385. --scrollbar-bg-color:auto;
  2386. --toolbar-icon-bg-color:rgb(0 0 0);
  2387. --toolbar-icon-hover-bg-color:rgb(0 0 0);
  2388. --sidebar-narrow-bg-color:rgb(212 212 215 / 0.9);
  2389. --sidebar-toolbar-bg-color:rgb(245 246 247);
  2390. --toolbar-bg-color:rgb(255, 255, 255);
  2391. --toolbar-border-color:#EBECF0;
  2392. --toolbar-box-shadow:0 1px 0 var(--toolbar-border-color);
  2393. --toolbar-border-bottom:none;
  2394. --toolbarSidebar-box-shadow:inset calc(-1px * var(--dir-factor)) 0 0 rgb(0 0 0 / 0.25), 0 1px 0 rgb(0 0 0 / 0.15), 0 0 1px rgb(0 0 0 / 0.1);
  2395. --toolbarSidebar-border-bottom:none;
  2396. --button-hover-color: #F4F5F9;
  2397. --toggled-btn-color:rgb(0 0 0);
  2398. --toggled-btn-bg-color:rgb(0 0 0 / 0.3);
  2399. --toggled-hover-active-btn-color:rgb(0 0 0 / 0.4);
  2400. --toggled-hover-btn-outline:none;
  2401. --dropdown-btn-bg-color:rgb(215 215 219);
  2402. --dropdown-btn-border:none;
  2403. --separator-color:rgb(0 0 0 / 0.3);
  2404. --field-color:rgb(6 6 6);
  2405. --field-bg-color:rgb(255 255 255);
  2406. --field-border-color:rgb(187 187 188);
  2407. --treeitem-color:rgb(0 0 0 / 0.8);
  2408. --treeitem-bg-color:rgb(0 0 0 / 0.15);
  2409. --treeitem-hover-color:rgb(0 0 0 / 0.9);
  2410. --treeitem-selected-color:rgb(0 0 0 / 0.9);
  2411. --treeitem-selected-bg-color:rgb(0 0 0 / 0.25);
  2412. --thumbnail-hover-color: #0D53DE;
  2413. --thumbnail-selected-color: #0D53DE;
  2414. --doorhanger-bg-color:rgb(255 255 255);
  2415. --doorhanger-border-color:rgb(12 12 13 / 0.2);
  2416. --doorhanger-hover-color:rgb(12 12 13);
  2417. --doorhanger-hover-bg-color:rgb(237 237 237);
  2418. --doorhanger-separator-color:rgb(222 222 222);
  2419. --dialog-button-border:none;
  2420. --dialog-button-bg-color:rgb(12 12 13 / 0.1);
  2421. --dialog-button-hover-bg-color:rgb(12 12 13 / 0.3);
  2422. --loading-icon:url(images/loading.svg);
  2423. --treeitem-expanded-icon:url(images/treeitem-expanded.svg);
  2424. --treeitem-collapsed-icon:url(images/treeitem-collapsed.svg);
  2425. --toolbarButton-editorFreeText-icon:url(images/toolbarButton-editorFreeText.svg);
  2426. --toolbarButton-editorHighlight-icon:url(images/toolbarButton-editorHighlight.svg);
  2427. --toolbarButton-editorInk-icon:url(images/toolbarButton-editorInk.svg);
  2428. --toolbarButton-editorStamp-icon:url(images/toolbarButton-editorStamp.svg);
  2429. --toolbarButton-menuArrow-icon:url(images/toolbarButton-menuArrow.svg);
  2430. --toolbarButton-sidebarToggle-icon:url(images/toolbarButton-sidebarToggle.svg);
  2431. --toolbarButton-sidebarToggle-icon-open:url(images/toolbarButton-sidebarToggle-open.svg);
  2432. --toolbarButton-secondaryToolbarToggle-icon:url(images/toolbarButton-secondaryToolbarToggle.svg);
  2433. --toolbarButton-pageUp-icon:url(images/toolbarButton-pageUp.svg);
  2434. --toolbarButton-pageDown-icon:url(images/toolbarButton-pageDown.svg);
  2435. --toolbarButton-layerChange-icon:url(images/layer-button.svg);
  2436. --toolbarButton-layerChange-icon-show:url(images/layer-button-show.svg);
  2437. --toolbarButton-zoomOut-icon:url(images/toolbarButton-zoomOut.svg);
  2438. --toolbarButton-zoomIn-icon:url(images/toolbarButton-zoomIn.svg);
  2439. --toolbarButton-presentationMode-icon:url(images/toolbarButton-presentationMode.svg);
  2440. --toolbarButton-print-icon:url(images/toolbarButton-print.svg);
  2441. --toolbarButton-openFile-icon:url(images/toolbarButton-openFile.svg);
  2442. --toolbarButton-download-icon:url(images/toolbarButton-download.svg);
  2443. --toolbarButton-bookmark-icon:url(images/toolbarButton-bookmark.svg);
  2444. --toolbarButton-viewThumbnail-icon:url(images/toolbarButton-viewThumbnail.svg);
  2445. --toolbarButton-viewOutline-icon:url(images/toolbarButton-viewOutline.svg);
  2446. --toolbarButton-viewAttachments-icon:url(images/toolbarButton-viewAttachments.svg);
  2447. --toolbarButton-viewLayers-icon:url(images/toolbarButton-viewLayers.svg);
  2448. --toolbarButton-currentOutlineItem-icon:url(images/toolbarButton-currentOutlineItem.svg);
  2449. --toolbarButton-search-icon:url(images/toolbarButton-search.svg);
  2450. --findbarButton-previous-icon:url(images/findbarButton-previous.svg);
  2451. --findbarButton-next-icon:url(images/findbarButton-next.svg);
  2452. --secondaryToolbarButton-firstPage-icon:url(images/secondaryToolbarButton-firstPage.svg);
  2453. --secondaryToolbarButton-lastPage-icon:url(images/secondaryToolbarButton-lastPage.svg);
  2454. --secondaryToolbarButton-rotateCcw-icon:url(images/secondaryToolbarButton-rotateCcw.svg);
  2455. --secondaryToolbarButton-rotateCw-icon:url(images/secondaryToolbarButton-rotateCw.svg);
  2456. --secondaryToolbarButton-selectTool-icon:url(images/secondaryToolbarButton-selectTool.svg);
  2457. --secondaryToolbarButton-handTool-icon:url(images/secondaryToolbarButton-handTool.svg);
  2458. --secondaryToolbarButton-scrollPage-icon:url(images/secondaryToolbarButton-scrollPage.svg);
  2459. --secondaryToolbarButton-scrollVertical-icon:url(images/secondaryToolbarButton-scrollVertical.svg);
  2460. --secondaryToolbarButton-scrollHorizontal-icon:url(images/secondaryToolbarButton-scrollHorizontal.svg);
  2461. --secondaryToolbarButton-scrollWrapped-icon:url(images/secondaryToolbarButton-scrollWrapped.svg);
  2462. --secondaryToolbarButton-spreadNone-icon:url(images/secondaryToolbarButton-spreadNone.svg);
  2463. --secondaryToolbarButton-spreadOdd-icon:url(images/secondaryToolbarButton-spreadOdd.svg);
  2464. --secondaryToolbarButton-spreadEven-icon:url(images/secondaryToolbarButton-spreadEven.svg);
  2465. --secondaryToolbarButton-documentProperties-icon:url(images/secondaryToolbarButton-documentProperties.svg);
  2466. --editorParams-stampAddImage-icon:url(images/toolbarButton-zoomIn.svg);
  2467. }
  2468. [dir="rtl"]:root{
  2469. --dir-factor:-1;
  2470. --inline-start:right;
  2471. --inline-end:left;
  2472. }
  2473. @media (prefers-color-scheme: dark){
  2474. :root:where(:not(.is-dark)){
  2475. // custom ban dark theme
  2476. /* --main-color:rgb(249 249 250);
  2477. --body-bg-color:rgb(42 42 46);
  2478. --progressBar-color:rgb(0 96 223);
  2479. --progressBar-bg-color:rgb(40 40 43);
  2480. --progressBar-blend-color:rgb(20 68 133);
  2481. --scrollbar-color:rgb(121 121 123);
  2482. --scrollbar-bg-color:rgb(35 35 39);
  2483. --toolbar-icon-bg-color:rgb(255 255 255);
  2484. --toolbar-icon-hover-bg-color:rgb(255 255 255);
  2485. --sidebar-narrow-bg-color:rgb(42 42 46 / 0.9);
  2486. --sidebar-toolbar-bg-color:rgb(50 50 52);
  2487. --toolbar-bg-color:rgb(56 56 61);
  2488. --toolbar-border-color:rgb(12 12 13);
  2489. --button-hover-color: #F4F5F9;
  2490. --toggled-btn-color:rgb(255 255 255);
  2491. --toggled-btn-bg-color:rgb(0 0 0 / 0.3);
  2492. --toggled-hover-active-btn-color:rgb(0 0 0 / 0.4);
  2493. --dropdown-btn-bg-color:rgb(74 74 79);
  2494. --separator-color:rgb(0 0 0 / 0.3);
  2495. --field-color:rgb(250 250 250);
  2496. --field-bg-color:rgb(64 64 68);
  2497. --field-border-color:rgb(115 115 115);
  2498. --treeitem-color:rgb(255 255 255 / 0.8);
  2499. --treeitem-bg-color:rgb(255 255 255 / 0.15);
  2500. --treeitem-hover-color:rgb(255 255 255 / 0.9);
  2501. --treeitem-selected-color:rgb(255 255 255 / 0.9);
  2502. --treeitem-selected-bg-color:rgb(255 255 255 / 0.25);
  2503. --thumbnail-hover-color:rgb(255 255 255 / 0.1);
  2504. --thumbnail-selected-color:rgb(255 255 255 / 0.2);
  2505. --doorhanger-bg-color:rgb(74 74 79);
  2506. --doorhanger-border-color:rgb(39 39 43);
  2507. --doorhanger-hover-color:rgb(249 249 250);
  2508. --doorhanger-hover-bg-color:rgb(93 94 98);
  2509. --doorhanger-separator-color:rgb(92 92 97);
  2510. --dialog-button-bg-color:rgb(92 92 97);
  2511. --dialog-button-hover-bg-color:rgb(115 115 115); */
  2512. }
  2513. }
  2514. :root:where(.is-dark){
  2515. --main-color:rgb(249 249 250);
  2516. --body-bg-color:rgb(42 42 46);
  2517. --progressBar-color:rgb(0 96 223);
  2518. --progressBar-bg-color:rgb(40 40 43);
  2519. --progressBar-blend-color:rgb(20 68 133);
  2520. --scrollbar-color:rgb(121 121 123);
  2521. --scrollbar-bg-color:rgb(35 35 39);
  2522. --toolbar-icon-bg-color:rgb(255 255 255);
  2523. --toolbar-icon-hover-bg-color:rgb(255 255 255);
  2524. --sidebar-narrow-bg-color:rgb(42 42 46 / 0.9);
  2525. --sidebar-toolbar-bg-color:rgb(50 50 52);
  2526. --toolbar-bg-color:rgb(56 56 61);
  2527. --toolbar-border-color:rgb(12 12 13);
  2528. --button-hover-color: #F4F5F9;
  2529. --toggled-btn-color:rgb(255 255 255);
  2530. --toggled-btn-bg-color:rgb(0 0 0 / 0.3);
  2531. --toggled-hover-active-btn-color:rgb(0 0 0 / 0.4);
  2532. --dropdown-btn-bg-color:rgb(74 74 79);
  2533. --separator-color:rgb(0 0 0 / 0.3);
  2534. --field-color:rgb(250 250 250);
  2535. --field-bg-color:rgb(64 64 68);
  2536. --field-border-color:rgb(115 115 115);
  2537. --treeitem-color:rgb(255 255 255 / 0.8);
  2538. --treeitem-bg-color:rgb(255 255 255 / 0.15);
  2539. --treeitem-hover-color:rgb(255 255 255 / 0.9);
  2540. --treeitem-selected-color:rgb(255 255 255 / 0.9);
  2541. --treeitem-selected-bg-color:rgb(255 255 255 / 0.25);
  2542. --thumbnail-hover-color:rgb(255 255 255 / 0.1);
  2543. --thumbnail-selected-color:rgb(255 255 255 / 0.2);
  2544. --doorhanger-bg-color:rgb(74 74 79);
  2545. --doorhanger-border-color:rgb(39 39 43);
  2546. --doorhanger-hover-color:rgb(249 249 250);
  2547. --doorhanger-hover-bg-color:rgb(93 94 98);
  2548. --doorhanger-separator-color:rgb(92 92 97);
  2549. --dialog-button-bg-color:rgb(92 92 97);
  2550. --dialog-button-hover-bg-color:rgb(115 115 115);
  2551. }
  2552. @media screen and (forced-colors: active){
  2553. :root{
  2554. --button-hover-color:#F4F5F9;
  2555. --doorhanger-hover-bg-color:Highlight;
  2556. --toolbar-icon-opacity:1;
  2557. --toolbar-icon-bg-color:ButtonText;
  2558. --toolbar-icon-hover-bg-color:ButtonFace;
  2559. --toggled-hover-active-btn-color:ButtonText;
  2560. --toggled-hover-btn-outline:2px solid ButtonBorder;
  2561. --toolbar-border-color:CanvasText;
  2562. --toolbar-border-bottom:1px solid var(--toolbar-border-color);
  2563. --toolbar-box-shadow:none;
  2564. --toggled-btn-color:HighlightText;
  2565. --toggled-btn-bg-color:LinkText;
  2566. --doorhanger-hover-color:ButtonFace;
  2567. --doorhanger-border-color-whcm:1px solid ButtonText;
  2568. --doorhanger-triangle-opacity-whcm:0;
  2569. --dialog-button-border:1px solid Highlight;
  2570. --dialog-button-hover-bg-color:Highlight;
  2571. --dialog-button-hover-color:ButtonFace;
  2572. --dropdown-btn-border:1px solid ButtonText;
  2573. --field-border-color:ButtonText;
  2574. --main-color:CanvasText;
  2575. --separator-color:GrayText;
  2576. --doorhanger-separator-color:GrayText;
  2577. --toolbarSidebar-box-shadow:none;
  2578. --toolbarSidebar-border-bottom:1px solid var(--toolbar-border-color);
  2579. }
  2580. }
  2581. @media screen and (prefers-reduced-motion: reduce){
  2582. :root{
  2583. --sidebar-transition-duration:0;
  2584. }
  2585. }
  2586. *{
  2587. padding:0;
  2588. margin:0;
  2589. }
  2590. html,
  2591. body{
  2592. height:100%;
  2593. width:100%;
  2594. }
  2595. body{
  2596. background-color:var(--body-bg-color);
  2597. scrollbar-color:var(--scrollbar-color) var(--scrollbar-bg-color);
  2598. }
  2599. .hidden,
  2600. [hidden]{
  2601. display:none !important;
  2602. }
  2603. #viewerContainer.pdfPresentationMode:fullscreen{
  2604. top:0;
  2605. background-color:rgb(0 0 0);
  2606. width:100%;
  2607. height:100%;
  2608. overflow:hidden;
  2609. cursor:none;
  2610. -webkit-user-select:none;
  2611. -moz-user-select:none;
  2612. user-select:none;
  2613. }
  2614. .pdfPresentationMode:fullscreen section:not([data-internal-link]){
  2615. pointer-events:none;
  2616. }
  2617. .pdfPresentationMode:fullscreen .textLayer span{
  2618. cursor:none;
  2619. }
  2620. .pdfPresentationMode.pdfPresentationModeControls > *,
  2621. .pdfPresentationMode.pdfPresentationModeControls .textLayer span{
  2622. cursor:default;
  2623. }
  2624. #outerContainer{
  2625. width:100%;
  2626. height:100%;
  2627. position:relative;
  2628. }
  2629. #sidebarContainer{
  2630. position:absolute;
  2631. inset-block:var(--toolbar-height) 0;
  2632. inset-inline-start:calc(-1 * var(--sidebar-width));
  2633. width:var(--sidebar-width);
  2634. visibility:hidden;
  2635. z-index:100;
  2636. font:message-box;
  2637. border-top:1px solid rgb(51 51 51);
  2638. border-inline-end:var(--doorhanger-border-color-whcm);
  2639. transition-property:inset-inline-start;
  2640. transition-duration:var(--sidebar-transition-duration);
  2641. transition-timing-function:var(--sidebar-transition-timing-function);
  2642. }
  2643. #outerContainer:is(.sidebarMoving, .sidebarOpen) #sidebarContainer{
  2644. visibility:visible;
  2645. }
  2646. #outerContainer.sidebarOpen #sidebarContainer{
  2647. inset-inline-start:0;
  2648. }
  2649. #mainContainer{
  2650. position:absolute;
  2651. inset:0;
  2652. min-width:350px;
  2653. }
  2654. #sidebarContent{
  2655. inset-block:0;
  2656. inset-inline-start:0;
  2657. overflow:auto;
  2658. position:absolute;
  2659. width:100%;
  2660. border-right: 1px solid #EBECF0;
  2661. }
  2662. #viewerContainer{
  2663. overflow:auto;
  2664. position:absolute;
  2665. inset:var(--toolbar-height) 0 0;
  2666. outline:none;
  2667. &::-webkit-scrollbar {
  2668. scrollbar-gutter: stable;
  2669. background: white !important;
  2670. width: 6px !important;
  2671. height: 6px !important;
  2672. }
  2673. /* 滚动条里面轨道 */
  2674. &::-webkit-scrollbar-track {
  2675. scrollbar-gutter: stable;
  2676. background: white !important;
  2677. }
  2678. /* 滑块 */
  2679. &::-webkit-scrollbar-thumb {
  2680. background-color: #EBECF0 !important;
  2681. scrollbar-gutter: stable;
  2682. border-radius: 10px;
  2683. }
  2684. }
  2685. #viewerContainer:not(.pdfPresentationMode){
  2686. transition-duration:var(--sidebar-transition-duration);
  2687. transition-timing-function:var(--sidebar-transition-timing-function);
  2688. }
  2689. #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){
  2690. inset-inline-start:var(--sidebar-width);
  2691. transition-property:inset-inline-start;
  2692. }
  2693. .toolbar{
  2694. position:relative;
  2695. inset-inline:0;
  2696. z-index:9999;
  2697. cursor:default;
  2698. font:message-box;
  2699. }
  2700. :is(.toolbar, .editorParamsToolbar, .findbar, #sidebarContainer)
  2701. :is(input, button, select),
  2702. .secondaryToolbar :is(input, button, a, select){
  2703. outline:none;
  2704. font:message-box;
  2705. }
  2706. #toolbarContainer{
  2707. display: flex;
  2708. width:100%;
  2709. }
  2710. #toolbarSidebar{
  2711. width:100%;
  2712. height:32px;
  2713. background-color:var(--sidebar-toolbar-bg-color);
  2714. box-shadow:var(--toolbarSidebar-box-shadow);
  2715. border-bottom:var(--toolbarSidebar-border-bottom);
  2716. }
  2717. #sidebarResizer{
  2718. position:absolute;
  2719. inset-block:0;
  2720. inset-inline-end:-6px;
  2721. width:6px;
  2722. z-index:200;
  2723. cursor:ew-resize;
  2724. }
  2725. #toolbarContainer,
  2726. .findbar,
  2727. .secondaryToolbar,
  2728. .editorParamsToolbar{
  2729. position:relative;
  2730. height: var(--toolbar-height);
  2731. background-color:var(--toolbar-bg-color);
  2732. box-shadow:var(--toolbar-box-shadow);
  2733. border-bottom:var(--toolbar-border-bottom);
  2734. }
  2735. #toolbarViewer{
  2736. height: var(--toolbar-height);
  2737. display: flex;
  2738. align-items: center;
  2739. justify-content: center;
  2740. width: 100%;
  2741. }
  2742. #loadingBar{
  2743. --progressBar-percent:0%;
  2744. --progressBar-end-offset:0;
  2745. position:absolute;
  2746. inset-inline:0 var(--progressBar-end-offset);
  2747. height:4px;
  2748. bottom: 0;
  2749. transform: translateY(100%);
  2750. background-color:var(--progressBar-bg-color);
  2751. border-bottom:0px solid var(--toolbar-border-color);
  2752. transition-property:inset-inline-start;
  2753. transition-duration:var(--sidebar-transition-duration);
  2754. transition-timing-function:var(--sidebar-transition-timing-function);
  2755. }
  2756. #outerContainer.sidebarOpen #loadingBar{
  2757. inset-inline-start:var(--sidebar-width);
  2758. }
  2759. #loadingBar .progress{
  2760. position:absolute;
  2761. top:0;
  2762. inset-inline-start:0;
  2763. width:100%;
  2764. transform:scaleX(var(--progressBar-percent));
  2765. transform-origin:calc(50% - 50% * var(--dir-factor)) 0;
  2766. height:100%;
  2767. background-color:var(--progressBar-color);
  2768. overflow:hidden;
  2769. transition:transform 200ms;
  2770. }
  2771. @keyframes progressIndeterminate{
  2772. 0%{
  2773. transform:translateX(calc(-142px * var(--dir-factor)));
  2774. }
  2775. 100%{
  2776. transform:translateX(0);
  2777. }
  2778. }
  2779. #loadingBar.indeterminate .progress{
  2780. transform:none;
  2781. background-color:var(--progressBar-bg-color);
  2782. transition:none;
  2783. }
  2784. #loadingBar.indeterminate .progress .glimmer{
  2785. position:absolute;
  2786. top:0;
  2787. inset-inline-start:0;
  2788. height:100%;
  2789. width:calc(100% + 150px);
  2790. background:repeating-linear-gradient(
  2791. 135deg,
  2792. var(--progressBar-blend-color) 0,
  2793. var(--progressBar-bg-color) 5px,
  2794. var(--progressBar-bg-color) 45px,
  2795. var(--progressBar-color) 55px,
  2796. var(--progressBar-color) 95px,
  2797. var(--progressBar-blend-color) 100px
  2798. );
  2799. animation:progressIndeterminate 1s linear infinite;
  2800. }
  2801. #outerContainer.sidebarResizing
  2802. :is(#sidebarContainer, #viewerContainer, #loadingBar){
  2803. transition-duration:0s;
  2804. }
  2805. .findbar,
  2806. .secondaryToolbar,
  2807. .editorParamsToolbar{
  2808. top:32px;
  2809. position:absolute;
  2810. z-index:30000;
  2811. height:auto;
  2812. padding:0 4px;
  2813. margin:4px 2px;
  2814. font:message-box;
  2815. font-size:12px;
  2816. line-height:14px;
  2817. text-align:left;
  2818. cursor:default;
  2819. }
  2820. .findbar{
  2821. inset-inline-start:64px;
  2822. min-width:300px;
  2823. background-color:var(--toolbar-bg-color);
  2824. }
  2825. .findbar > div{
  2826. height:32px;
  2827. }
  2828. .findbar > div#findbarInputContainer{
  2829. margin-inline-end:4px;
  2830. }
  2831. .findbar.wrapContainers > div,
  2832. .findbar.wrapContainers > div#findbarMessageContainer > *{
  2833. clear:both;
  2834. }
  2835. .findbar.wrapContainers > div#findbarMessageContainer{
  2836. height:auto;
  2837. }
  2838. .findbar input[type="checkbox"]{
  2839. pointer-events:none;
  2840. }
  2841. .findbar label{
  2842. -webkit-user-select:none;
  2843. -moz-user-select:none;
  2844. user-select:none;
  2845. }
  2846. .findbar label:hover,
  2847. .findbar input:focus-visible + label{
  2848. color:var(--toggled-btn-color);
  2849. background-color:var(--button-hover-color);
  2850. }
  2851. .findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel{
  2852. background-color:var(--toggled-btn-bg-color) !important;
  2853. color:var(--toggled-btn-color);
  2854. }
  2855. #findInput{
  2856. width:200px;
  2857. }
  2858. #findInput::-moz-placeholder{
  2859. font-style:normal;
  2860. }
  2861. #findInput::placeholder{
  2862. font-style:normal;
  2863. }
  2864. .loadingInput:has(> #findInput[data-status="pending"])::after{
  2865. display:block;
  2866. visibility:visible;
  2867. }
  2868. #findInput[data-status="notFound"]{
  2869. background-color:rgb(255 102 102);
  2870. }
  2871. .secondaryToolbar,
  2872. .editorParamsToolbar{
  2873. padding:6px 0 10px;
  2874. inset-inline-end:4px;
  2875. height:auto;
  2876. background-color:var(--doorhanger-bg-color);
  2877. }
  2878. .editorParamsToolbarContainer{
  2879. width:220px;
  2880. margin-bottom:-4px;
  2881. }
  2882. .editorParamsToolbarContainer > .editorParamsSetter{
  2883. min-height:26px;
  2884. display:flex;
  2885. align-items:center;
  2886. justify-content:space-between;
  2887. padding-inline:10px;
  2888. }
  2889. .editorParamsToolbarContainer .editorParamsLabel{
  2890. padding-inline-end:10px;
  2891. flex:none;
  2892. font:menu;
  2893. font-size:13px;
  2894. font-style:normal;
  2895. font-weight:400;
  2896. line-height:150%;
  2897. color:var(--main-color);
  2898. }
  2899. .editorParamsToolbarContainer .editorParamsColor{
  2900. width:32px;
  2901. height:32px;
  2902. flex:none;
  2903. }
  2904. .editorParamsToolbarContainer .editorParamsSlider{
  2905. background-color:transparent;
  2906. width:90px;
  2907. flex:0 1 0;
  2908. }
  2909. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-progress{
  2910. background-color:black;
  2911. }
  2912. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-runnable-track,
  2913. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-track{
  2914. background-color:black;
  2915. }
  2916. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb,
  2917. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb{
  2918. background-color:white;
  2919. }
  2920. #secondaryToolbarButtonContainer{
  2921. max-width:220px;
  2922. min-height:26px;
  2923. max-height:calc(var(--viewer-container-height) - 40px);
  2924. overflow-y:auto;
  2925. margin-bottom:-4px;
  2926. }
  2927. #editorStampParamsToolbar{
  2928. inset-inline-end:calc(var(--editor-toolbar-base-offset) + 0px);
  2929. }
  2930. #editorInkParamsToolbar{
  2931. inset-inline-end:calc(var(--editor-toolbar-base-offset) + 28px);
  2932. }
  2933. #editorFreeTextParamsToolbar{
  2934. inset-inline-end:calc(var(--editor-toolbar-base-offset) + 56px);
  2935. }
  2936. #editorHighlightParamsToolbar{
  2937. inset-inline-end:calc(var(--editor-toolbar-base-offset) + 84px);
  2938. }
  2939. #editorStampAddImage::before{
  2940. -webkit-mask-image:var(--editorParams-stampAddImage-icon);
  2941. mask-image:var(--editorParams-stampAddImage-icon);
  2942. }
  2943. .doorHanger,
  2944. .doorHangerRight{
  2945. border-radius:2px;
  2946. box-shadow:0 1px 5px var(--doorhanger-border-color), 0 0 0 1px var(--doorhanger-border-color);
  2947. border:var(--doorhanger-border-color-whcm);
  2948. }
  2949. :is(.doorHanger, .doorHangerRight)::after,
  2950. :is(.doorHanger, .doorHangerRight)::before{
  2951. bottom:100%;
  2952. border:8px solid rgb(0 0 0 / 0);
  2953. content:" ";
  2954. height:0;
  2955. width:0;
  2956. position:absolute;
  2957. pointer-events:none;
  2958. opacity:var(--doorhanger-triangle-opacity-whcm);
  2959. }
  2960. .doorHanger::after{
  2961. inset-inline-start:10px;
  2962. margin-inline-start:-8px;
  2963. border-bottom-color:var(--toolbar-bg-color);
  2964. }
  2965. .doorHangerRight::after{
  2966. inset-inline-end:10px;
  2967. margin-inline-end:-8px;
  2968. border-bottom-color:var(--doorhanger-bg-color);
  2969. }
  2970. :is(.doorHanger, .doorHangerRight)::before{
  2971. border-bottom-color:var(--doorhanger-border-color);
  2972. border-width:9px;
  2973. }
  2974. .doorHanger::before{
  2975. inset-inline-start:10px;
  2976. margin-inline-start:-9px;
  2977. }
  2978. .doorHangerRight::before{
  2979. inset-inline-end:10px;
  2980. margin-inline-end:-9px;
  2981. }
  2982. #findResultsCount{
  2983. background-color:rgb(217 217 217);
  2984. color:rgb(82 82 82);
  2985. text-align:center;
  2986. padding:4px 5px;
  2987. margin:5px;
  2988. }
  2989. #findMsg[data-status="notFound"]{
  2990. font-weight:bold;
  2991. }
  2992. :is(#findResultsCount, #findMsg):empty{
  2993. display:none;
  2994. }
  2995. #toolbarViewerMiddle{
  2996. margin-left:auto;
  2997. left:auto;
  2998. margin-right:16px;
  2999. }
  3000. #toolbarViewerLeft,
  3001. #toolbarSidebarLeft{
  3002. float:var(--inline-start);
  3003. }
  3004. #toolbarViewerRight,
  3005. #toolbarSidebarRight{
  3006. float:var(--inline-end);
  3007. }
  3008. #toolbarViewerLeft > *,
  3009. #toolbarViewerMiddle > *,
  3010. #toolbarViewerRight > *,
  3011. #toolbarSidebarLeft *,
  3012. #toolbarSidebarRight *,
  3013. .findbar *{
  3014. position:relative;
  3015. float:var(--inline-start);
  3016. }
  3017. #toolbarViewerLeft{
  3018. padding-inline-start:1px;
  3019. width: calc(50% - 120px);
  3020. }
  3021. #toolbarViewerRight{
  3022. padding-inline-end:1px;
  3023. z-index: 99;
  3024. position: absolute;
  3025. right: 0;
  3026. }
  3027. #toolbarSidebarRight{
  3028. padding-inline-end:2px;
  3029. }
  3030. .splitToolbarButton{
  3031. display: flex;
  3032. align-items: center;
  3033. white-space: nowrap;
  3034. }
  3035. .odlPageControl {
  3036. position: absolute;
  3037. left: calc(50% - 14px);
  3038. transform: translateX(-50%);
  3039. }
  3040. .splitToolbarButton > .toolbarButton{
  3041. cursor: pointer;
  3042. float:var(--inline-start);
  3043. }
  3044. .toolbarButton,
  3045. .secondaryToolbarButton,
  3046. .dialogButton{
  3047. border:none;
  3048. background:none;
  3049. width:16px;
  3050. height: 16px;
  3051. outline:none;
  3052. }
  3053. .dialogButton:is(:hover, :focus-visible){
  3054. background-color:var(--dialog-button-hover-bg-color);
  3055. }
  3056. .dialogButton:is(:hover, :focus-visible) > span{
  3057. color:var(--dialog-button-hover-color);
  3058. }
  3059. .toolbarButton > span{
  3060. display:inline-block;
  3061. width:0;
  3062. height:0;
  3063. overflow:hidden;
  3064. }
  3065. :is(.toolbarButton, .secondaryToolbarButton, .dialogButton)[disabled]{
  3066. opacity:0.5;
  3067. }
  3068. .splitToolbarButton > .toolbarButton:is(:hover, :focus-visible),
  3069. .dropdownToolbarButton:hover{
  3070. background-color:var(--button-hover-color);
  3071. }
  3072. .splitToolbarButton > .toolbarButton{
  3073. position:relative;
  3074. margin:0;
  3075. }
  3076. #toolbarSidebar .splitToolbarButton > .toolbarButton{
  3077. margin-inline-end:2px;
  3078. }
  3079. .splitToolbarButtonSeparator{
  3080. float:var(--inline-start);
  3081. margin:4px 0;
  3082. width:1px;
  3083. height:20px;
  3084. background-color:var(--separator-color);
  3085. }
  3086. .toolbarButton,
  3087. .dropdownToolbarButton,
  3088. .secondaryToolbarButton,
  3089. .dialogButton{
  3090. min-width:16px;
  3091. margin:2px 1px;
  3092. border:none;
  3093. border-radius:2px;
  3094. color:var(--main-color);
  3095. font-size:12px;
  3096. line-height:14px;
  3097. -webkit-user-select:none;
  3098. -moz-user-select:none;
  3099. user-select:none;
  3100. cursor:default;
  3101. box-sizing:border-box;
  3102. }
  3103. .toolbarButton {
  3104. min-width:12px;
  3105. }
  3106. .toolbarButton:is(:hover, :focus-visible){
  3107. background-color:var(--button-hover-color);
  3108. }
  3109. .secondaryToolbarButton:is(:hover, :focus-visible){
  3110. background-color:var(--doorhanger-hover-bg-color);
  3111. color:var(--doorhanger-hover-color);
  3112. }
  3113. :is(.toolbarButton, .secondaryToolbarButton).toggled,
  3114. .splitToolbarButton.toggled > .toolbarButton.toggled{
  3115. background-color:var(--toggled-btn-bg-color);
  3116. color:var(--toggled-btn-color);
  3117. }
  3118. :is(.toolbarButton, .secondaryToolbarButton).toggled:hover,
  3119. .splitToolbarButton.toggled > .toolbarButton.toggled:hover{
  3120. outline:var(--toggled-hover-btn-outline) !important;
  3121. }
  3122. :is(.toolbarButton, .secondaryToolbarButton).toggled::before{
  3123. background-color:var(--toggled-btn-color);
  3124. }
  3125. :is(.toolbarButton, .secondaryToolbarButton).toggled:hover:active,
  3126. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active{
  3127. background-color:var(--toggled-hover-active-btn-color);
  3128. }
  3129. .dropdownToolbarButton{
  3130. display:flex;
  3131. width:-moz-fit-content;
  3132. width:fit-content;
  3133. min-width:140px;
  3134. padding:0;
  3135. background-color:var(--dropdown-btn-bg-color);
  3136. border:var(--dropdown-btn-border);
  3137. }
  3138. .dropdownToolbarButton::after{
  3139. top:6px;
  3140. inset-inline-end:6px;
  3141. pointer-events:none;
  3142. -webkit-mask-image:var(--toolbarButton-menuArrow-icon);
  3143. mask-image:var(--toolbarButton-menuArrow-icon);
  3144. }
  3145. .dropdownToolbarButton > select{
  3146. -webkit-appearance:none;
  3147. -moz-appearance:none;
  3148. appearance:none;
  3149. width:inherit;
  3150. min-width:inherit;
  3151. height:28px;
  3152. font-size:12px;
  3153. color:var(--main-color);
  3154. margin:0;
  3155. padding-block:1px 2px;
  3156. padding-inline:6px 38px;
  3157. border:none;
  3158. background-color:var(--dropdown-btn-bg-color);
  3159. }
  3160. .dropdownToolbarButton > select:is(:hover, :focus-visible){
  3161. background-color:var(--button-hover-color);
  3162. color:var(--toggled-btn-color);
  3163. }
  3164. .dropdownToolbarButton > select > option{
  3165. background:var(--doorhanger-bg-color);
  3166. color:var(--main-color);
  3167. }
  3168. .toolbarButtonSpacer{
  3169. width:30px;
  3170. display:inline-block;
  3171. height:1px;
  3172. }
  3173. :is(.toolbarButton, .secondaryToolbarButton, .treeItemToggler)::before,
  3174. .dropdownToolbarButton::after{
  3175. position:absolute;
  3176. display:inline-block;
  3177. width:16px;
  3178. height:16px;
  3179. content:"";
  3180. background-color:var(--toolbar-icon-bg-color);
  3181. -webkit-mask-size:cover;
  3182. mask-size:cover;
  3183. }
  3184. .dropdownToolbarButton:is(:hover, :focus-visible, :active)::after{
  3185. background-color:var(--toolbar-icon-hover-bg-color);
  3186. }
  3187. .toolbarButton::before{
  3188. opacity:var(--toolbar-icon-opacity);
  3189. top:0px;
  3190. left: 0px;
  3191. }
  3192. .toolbarButton:is(:hover, :focus-visible)::before,
  3193. .secondaryToolbarButton:is(:hover, :focus-visible)::before{
  3194. background-color:var(--toolbar-icon-hover-bg-color);
  3195. }
  3196. .secondaryToolbarButton::before{
  3197. opacity:var(--doorhanger-icon-opacity);
  3198. top:5px;
  3199. inset-inline-start:12px;
  3200. }
  3201. #sidebarToggle::before{
  3202. -webkit-mask-image:var(--toolbarButton-sidebarToggle-icon);
  3203. mask-image:var(--toolbarButton-sidebarToggle-icon);
  3204. transform:scaleX(var(--dir-factor));
  3205. margin-left: 1px;
  3206. margin-top: 1px;
  3207. }
  3208. #secondaryToolbarToggle::before{
  3209. -webkit-mask-image:var(--toolbarButton-secondaryToolbarToggle-icon);
  3210. mask-image:var(--toolbarButton-secondaryToolbarToggle-icon);
  3211. transform:scaleX(var(--dir-factor));
  3212. }
  3213. #findPrevious::before{
  3214. -webkit-mask-image:var(--findbarButton-previous-icon);
  3215. mask-image:var(--findbarButton-previous-icon);
  3216. }
  3217. #findNext::before{
  3218. -webkit-mask-image:var(--findbarButton-next-icon);
  3219. mask-image:var(--findbarButton-next-icon);
  3220. }
  3221. #previous::before{
  3222. -webkit-mask-image:var(--toolbarButton-pageUp-icon);
  3223. mask-image:var(--toolbarButton-pageUp-icon);
  3224. }
  3225. #next::before{
  3226. -webkit-mask-image:var(--toolbarButton-pageDown-icon);
  3227. mask-image:var(--toolbarButton-pageDown-icon);
  3228. }
  3229. #splitLine {
  3230. width: 1px;
  3231. height: 12px;
  3232. background: #D7D8DD;
  3233. margin-right: 16px;
  3234. margin-top: 2px;
  3235. }
  3236. /* custom layerChange icon */
  3237. #layerChange {
  3238. margin-right: 16px;
  3239. }
  3240. #layerChange::before{
  3241. cursor: pointer;
  3242. -webkit-mask-image:var(--toolbarButton-layerChange-icon-show);
  3243. mask-image:var(--toolbarButton-layerChange-icon-show);
  3244. }
  3245. .layerChange-active::before {
  3246. cursor: pointer;
  3247. -webkit-mask-image:var(--toolbarButton-layerChange-icon) !important;
  3248. mask-image:var(--toolbarButton-layerChange-icon) !important;
  3249. }
  3250. #zoomOut::before{
  3251. cursor: pointer;
  3252. -webkit-mask-image:var(--toolbarButton-zoomOut-icon);
  3253. mask-image:var(--toolbarButton-zoomOut-icon);
  3254. }
  3255. #zoomIn::before{
  3256. cursor: pointer;
  3257. -webkit-mask-image:var(--toolbarButton-zoomIn-icon);
  3258. mask-image:var(--toolbarButton-zoomIn-icon);
  3259. }
  3260. #presentationMode::before{
  3261. -webkit-mask-image:var(--toolbarButton-presentationMode-icon);
  3262. mask-image:var(--toolbarButton-presentationMode-icon);
  3263. }
  3264. #editorFreeText::before{
  3265. -webkit-mask-image:var(--toolbarButton-editorFreeText-icon);
  3266. mask-image:var(--toolbarButton-editorFreeText-icon);
  3267. }
  3268. #editorHighlight::before{
  3269. -webkit-mask-image:var(--toolbarButton-editorHighlight-icon);
  3270. mask-image:var(--toolbarButton-editorHighlight-icon);
  3271. }
  3272. #editorInk::before{
  3273. -webkit-mask-image:var(--toolbarButton-editorInk-icon);
  3274. mask-image:var(--toolbarButton-editorInk-icon);
  3275. }
  3276. #editorStamp::before{
  3277. -webkit-mask-image:var(--toolbarButton-editorStamp-icon);
  3278. mask-image:var(--toolbarButton-editorStamp-icon);
  3279. }
  3280. :is(#print, #secondaryPrint)::before{
  3281. -webkit-mask-image:var(--toolbarButton-print-icon);
  3282. mask-image:var(--toolbarButton-print-icon);
  3283. }
  3284. #secondaryOpenFile::before{
  3285. -webkit-mask-image:var(--toolbarButton-openFile-icon);
  3286. mask-image:var(--toolbarButton-openFile-icon);
  3287. }
  3288. :is(#download, #secondaryDownload)::before{
  3289. -webkit-mask-image:var(--toolbarButton-download-icon);
  3290. mask-image:var(--toolbarButton-download-icon);
  3291. }
  3292. a.secondaryToolbarButton{
  3293. padding-top:5px;
  3294. text-decoration:none;
  3295. }
  3296. a:is(.toolbarButton, .secondaryToolbarButton)[href="#"]{
  3297. opacity:0.5;
  3298. pointer-events:none;
  3299. }
  3300. #viewBookmark::before{
  3301. -webkit-mask-image:var(--toolbarButton-bookmark-icon);
  3302. mask-image:var(--toolbarButton-bookmark-icon);
  3303. }
  3304. #viewThumbnail::before{
  3305. -webkit-mask-image:var(--toolbarButton-viewThumbnail-icon);
  3306. mask-image:var(--toolbarButton-viewThumbnail-icon);
  3307. }
  3308. #viewOutline::before{
  3309. -webkit-mask-image:var(--toolbarButton-viewOutline-icon);
  3310. mask-image:var(--toolbarButton-viewOutline-icon);
  3311. transform:scaleX(var(--dir-factor));
  3312. }
  3313. #viewAttachments::before{
  3314. -webkit-mask-image:var(--toolbarButton-viewAttachments-icon);
  3315. mask-image:var(--toolbarButton-viewAttachments-icon);
  3316. }
  3317. #viewLayers::before{
  3318. -webkit-mask-image:var(--toolbarButton-viewLayers-icon);
  3319. mask-image:var(--toolbarButton-viewLayers-icon);
  3320. }
  3321. #currentOutlineItem::before{
  3322. -webkit-mask-image:var(--toolbarButton-currentOutlineItem-icon);
  3323. mask-image:var(--toolbarButton-currentOutlineItem-icon);
  3324. transform:scaleX(var(--dir-factor));
  3325. }
  3326. #viewFind::before{
  3327. -webkit-mask-image:var(--toolbarButton-search-icon);
  3328. mask-image:var(--toolbarButton-search-icon);
  3329. }
  3330. .pdfSidebarNotification::after{
  3331. position:absolute;
  3332. display:inline-block;
  3333. top:2px;
  3334. inset-inline-end:2px;
  3335. content:"";
  3336. background-color:rgb(112 219 85);
  3337. height:9px;
  3338. width:9px;
  3339. border-radius:50%;
  3340. /* [custom] */
  3341. display: none;
  3342. }
  3343. .secondaryToolbarButton{
  3344. position:relative;
  3345. margin:0;
  3346. padding:0 0 1px;
  3347. padding-inline-start:36px;
  3348. height:auto;
  3349. min-height:26px;
  3350. width:auto;
  3351. min-width:100%;
  3352. text-align:start;
  3353. white-space:normal;
  3354. border-radius:0;
  3355. box-sizing:border-box;
  3356. display:inline-block;
  3357. }
  3358. .secondaryToolbarButton > span{
  3359. padding-inline-end:4px;
  3360. }
  3361. #firstPage::before{
  3362. -webkit-mask-image:var(--secondaryToolbarButton-firstPage-icon);
  3363. mask-image:var(--secondaryToolbarButton-firstPage-icon);
  3364. }
  3365. #lastPage::before{
  3366. -webkit-mask-image:var(--secondaryToolbarButton-lastPage-icon);
  3367. mask-image:var(--secondaryToolbarButton-lastPage-icon);
  3368. }
  3369. #pageRotateCcw::before{
  3370. -webkit-mask-image:var(--secondaryToolbarButton-rotateCcw-icon);
  3371. mask-image:var(--secondaryToolbarButton-rotateCcw-icon);
  3372. }
  3373. #pageRotateCw::before{
  3374. -webkit-mask-image:var(--secondaryToolbarButton-rotateCw-icon);
  3375. mask-image:var(--secondaryToolbarButton-rotateCw-icon);
  3376. }
  3377. #cursorSelectTool::before{
  3378. -webkit-mask-image:var(--secondaryToolbarButton-selectTool-icon);
  3379. mask-image:var(--secondaryToolbarButton-selectTool-icon);
  3380. }
  3381. #cursorHandTool::before{
  3382. -webkit-mask-image:var(--secondaryToolbarButton-handTool-icon);
  3383. mask-image:var(--secondaryToolbarButton-handTool-icon);
  3384. }
  3385. #scrollPage::before{
  3386. -webkit-mask-image:var(--secondaryToolbarButton-scrollPage-icon);
  3387. mask-image:var(--secondaryToolbarButton-scrollPage-icon);
  3388. }
  3389. #scrollVertical::before{
  3390. -webkit-mask-image:var(--secondaryToolbarButton-scrollVertical-icon);
  3391. mask-image:var(--secondaryToolbarButton-scrollVertical-icon);
  3392. }
  3393. #scrollHorizontal::before{
  3394. -webkit-mask-image:var(--secondaryToolbarButton-scrollHorizontal-icon);
  3395. mask-image:var(--secondaryToolbarButton-scrollHorizontal-icon);
  3396. }
  3397. #scrollWrapped::before{
  3398. -webkit-mask-image:var(--secondaryToolbarButton-scrollWrapped-icon);
  3399. mask-image:var(--secondaryToolbarButton-scrollWrapped-icon);
  3400. }
  3401. #spreadNone::before{
  3402. -webkit-mask-image:var(--secondaryToolbarButton-spreadNone-icon);
  3403. mask-image:var(--secondaryToolbarButton-spreadNone-icon);
  3404. }
  3405. #spreadOdd::before{
  3406. -webkit-mask-image:var(--secondaryToolbarButton-spreadOdd-icon);
  3407. mask-image:var(--secondaryToolbarButton-spreadOdd-icon);
  3408. }
  3409. #spreadEven::before{
  3410. -webkit-mask-image:var(--secondaryToolbarButton-spreadEven-icon);
  3411. mask-image:var(--secondaryToolbarButton-spreadEven-icon);
  3412. }
  3413. #documentProperties::before{
  3414. -webkit-mask-image:var(--secondaryToolbarButton-documentProperties-icon);
  3415. mask-image:var(--secondaryToolbarButton-documentProperties-icon);
  3416. }
  3417. .verticalToolbarSeparator{
  3418. display:block;
  3419. margin:5px 2px;
  3420. width:1px;
  3421. height:22px;
  3422. background-color:var(--separator-color);
  3423. }
  3424. .horizontalToolbarSeparator{
  3425. display:block;
  3426. margin:6px 0;
  3427. height:1px;
  3428. width:100%;
  3429. background-color:var(--doorhanger-separator-color);
  3430. }
  3431. .toolbarField{
  3432. padding:1px 7px;
  3433. margin:3px 2px;
  3434. border-radius:2px;
  3435. background-color:var(--field-bg-color);
  3436. background-clip:padding-box;
  3437. border:1px solid var(--field-border-color);
  3438. box-shadow:none;
  3439. color:var(--field-color);
  3440. outline:none;
  3441. }
  3442. .toolbarField[type="checkbox"]{
  3443. opacity:0;
  3444. position:absolute !important;
  3445. left:0;
  3446. margin:10px 0 3px;
  3447. margin-inline-start:7px;
  3448. }
  3449. #pageNumber{
  3450. -moz-appearance:textfield;
  3451. text-align:center;
  3452. width: fit-content !important;
  3453. background-size:0 0;
  3454. font-size: 14px !important;
  3455. transition-property:none;
  3456. margin-top: 6px;
  3457. }
  3458. #pageNumber::-webkit-inner-spin-button{
  3459. -webkit-appearance:none;
  3460. }
  3461. .loadingInput:has(> #pageNumber.loading)::after{
  3462. display:block;
  3463. visibility:visible;
  3464. transition-property:visibility;
  3465. transition-delay:var(--loading-icon-delay);
  3466. }
  3467. .loadingInput::after{
  3468. position:absolute;
  3469. visibility:hidden;
  3470. display:none;
  3471. top:calc(50% - 8px);
  3472. width:16px;
  3473. height:16px;
  3474. content:"";
  3475. background-color:var(--toolbar-icon-bg-color);
  3476. -webkit-mask-size:cover;
  3477. mask-size:cover;
  3478. -webkit-mask-image:var(--loading-icon);
  3479. mask-image:var(--loading-icon);
  3480. }
  3481. .loadingInput.start::after{
  3482. inset-inline-start:4px;
  3483. }
  3484. .loadingInput.end::after{
  3485. inset-inline-end:4px;
  3486. }
  3487. .toolbarField:focus{
  3488. border-color:#0a84ff;
  3489. }
  3490. .toolbarLabel{
  3491. min-width:16px;
  3492. padding:7px;
  3493. margin:2px;
  3494. padding-top: 10px;
  3495. border-radius:2px;
  3496. color:var(--main-color);
  3497. font-size:12px;
  3498. line-height:14px;
  3499. text-align:left;
  3500. -webkit-user-select:none;
  3501. -moz-user-select:none;
  3502. user-select:none;
  3503. cursor:default;
  3504. }
  3505. #numPages.toolbarLabel{
  3506. min-width: var(--num-page-width);
  3507. margin-right: -4px;
  3508. padding-inline-start:3px;
  3509. font-size: 14px;
  3510. }
  3511. #thumbnailView,
  3512. #outlineView,
  3513. #attachmentsView,
  3514. #layersView{
  3515. position:absolute;
  3516. width:calc(100% - 8px);
  3517. inset-block:0;
  3518. padding:4px 4px 0;
  3519. overflow:auto;
  3520. -webkit-user-select:none;
  3521. -moz-user-select:none;
  3522. user-select:none;
  3523. }
  3524. #thumbnailView{
  3525. width: 100%;
  3526. padding:10px 0px 0;
  3527. background-color: white;
  3528. display: flex;
  3529. flex-direction: column;
  3530. align-items: center;
  3531. /* 滚动条整体部分 */
  3532. &::-webkit-scrollbar {
  3533. scrollbar-gutter: stable;
  3534. background: white !important;
  3535. width: 6px !important;
  3536. height: 6px !important;
  3537. }
  3538. /* 滚动条里面轨道 */
  3539. &::-webkit-scrollbar-track {
  3540. scrollbar-gutter: stable;
  3541. background: white !important;
  3542. }
  3543. /* 滑块 */
  3544. &::-webkit-scrollbar-thumb {
  3545. background-color: #EBECF0 !important;
  3546. scrollbar-gutter: stable;
  3547. border-radius: 10px;
  3548. }
  3549. & > a {
  3550. text-decoration: none;
  3551. }
  3552. }
  3553. #thumbnailView > a:is(:active, :focus){
  3554. outline:0;
  3555. }
  3556. .thumbnail{
  3557. --thumbnail-width:0;
  3558. --thumbnail-height:0;
  3559. float:var(--inline-start);
  3560. width:var(--thumbnail-width);
  3561. height:var(--thumbnail-height);
  3562. margin:0 0px 8px;
  3563. padding:1px;
  3564. border:1px solid #EBECF0;
  3565. border-radius:4px;
  3566. }
  3567. #thumbnailView > a:last-of-type > .thumbnail{
  3568. margin-bottom:10px;
  3569. }
  3570. /* a:focus > .thumbnail,
  3571. .thumbnail:hover{
  3572. border-color:var(--thumbnail-hover-color);
  3573. } */
  3574. a:hover > .thumbnail,
  3575. .thumbnail:hover{
  3576. border-color:var(--thumbnail-hover-color);
  3577. }
  3578. .thumbnail.selected{
  3579. border-color:var(--thumbnail-selected-color) !important;
  3580. }
  3581. .thumbnailImage{
  3582. width:var(--thumbnail-width);
  3583. height:var(--thumbnail-height);
  3584. opacity:0.9;
  3585. }
  3586. a:focus > .thumbnail > .thumbnailImage,
  3587. .thumbnail:hover > .thumbnailImage{
  3588. opacity:0.95;
  3589. }
  3590. .thumbnail.selected > .thumbnailImage{
  3591. opacity:1 !important;
  3592. }
  3593. .thumbnail:not([data-loaded]) > .thumbnailImage{
  3594. width:calc(var(--thumbnail-width) - 2px);
  3595. height:calc(var(--thumbnail-height) - 2px);
  3596. border:1px dashed rgb(132 132 132);
  3597. }
  3598. .treeWithDeepNesting > .treeItem,
  3599. .treeItem > .treeItems{
  3600. margin-inline-start:20px;
  3601. }
  3602. .treeItem > a{
  3603. text-decoration:none;
  3604. display:inline-block;
  3605. min-width:calc(100% - 4px);
  3606. height:auto;
  3607. margin-bottom:1px;
  3608. padding:2px 0 5px;
  3609. padding-inline-start:4px;
  3610. border-radius:2px;
  3611. color:var(--treeitem-color);
  3612. font-size:13px;
  3613. line-height:15px;
  3614. -webkit-user-select:none;
  3615. -moz-user-select:none;
  3616. user-select:none;
  3617. white-space:normal;
  3618. cursor:pointer;
  3619. }
  3620. #layersView .treeItem > a *{
  3621. cursor:pointer;
  3622. }
  3623. #layersView .treeItem > a > label{
  3624. padding-inline-start:4px;
  3625. }
  3626. #layersView .treeItem > a > label > input{
  3627. float:var(--inline-start);
  3628. margin-top:1px;
  3629. }
  3630. .treeItemToggler{
  3631. position:relative;
  3632. float:var(--inline-start);
  3633. height:0;
  3634. width:0;
  3635. color:rgb(255 255 255 / 0.5);
  3636. }
  3637. .treeItemToggler::before{
  3638. inset-inline-end:4px;
  3639. -webkit-mask-image:var(--treeitem-expanded-icon);
  3640. mask-image:var(--treeitem-expanded-icon);
  3641. }
  3642. .treeItemToggler.treeItemsHidden::before{
  3643. -webkit-mask-image:var(--treeitem-collapsed-icon);
  3644. mask-image:var(--treeitem-collapsed-icon);
  3645. transform:scaleX(var(--dir-factor));
  3646. }
  3647. .treeItemToggler.treeItemsHidden ~ .treeItems{
  3648. display:none;
  3649. }
  3650. .treeItem.selected > a{
  3651. background-color:var(--treeitem-selected-bg-color);
  3652. color:var(--treeitem-selected-color);
  3653. }
  3654. .treeItemToggler:hover,
  3655. .treeItemToggler:hover + a,
  3656. .treeItemToggler:hover ~ .treeItems,
  3657. .treeItem > a:hover{
  3658. background-color:var(--treeitem-bg-color);
  3659. background-clip:padding-box;
  3660. border-radius:2px;
  3661. color:var(--treeitem-hover-color);
  3662. }
  3663. #outlineOptionsContainer{
  3664. display:none;
  3665. }
  3666. #sidebarContainer:has(#outlineView:not(.hidden)) #outlineOptionsContainer{
  3667. display:inherit;
  3668. }
  3669. .dialogButton{
  3670. width:auto;
  3671. margin:3px 4px 2px !important;
  3672. padding:2px 11px;
  3673. color:var(--main-color);
  3674. background-color:var(--dialog-button-bg-color);
  3675. border:var(--dialog-button-border) !important;
  3676. }
  3677. dialog{
  3678. margin:auto;
  3679. padding:15px;
  3680. border-spacing:4px;
  3681. color:var(--main-color);
  3682. font:message-box;
  3683. font-size:12px;
  3684. line-height:14px;
  3685. background-color:var(--doorhanger-bg-color);
  3686. border:1px solid rgb(0 0 0 / 0.5);
  3687. border-radius:4px;
  3688. box-shadow:0 1px 4px rgb(0 0 0 / 0.3);
  3689. }
  3690. dialog::backdrop{
  3691. background-color:rgb(0 0 0 / 0.2);
  3692. }
  3693. dialog > .row{
  3694. display:table-row;
  3695. }
  3696. dialog > .row > *{
  3697. display:table-cell;
  3698. }
  3699. dialog .toolbarField{
  3700. margin:5px 0;
  3701. }
  3702. dialog .separator{
  3703. display:block;
  3704. margin:4px 0;
  3705. height:1px;
  3706. width:100%;
  3707. background-color:var(--separator-color);
  3708. }
  3709. dialog .buttonRow{
  3710. text-align:center;
  3711. vertical-align:middle;
  3712. }
  3713. dialog :link{
  3714. color:rgb(255 255 255);
  3715. }
  3716. #passwordDialog{
  3717. text-align:center;
  3718. }
  3719. #passwordDialog .toolbarField{
  3720. width:200px;
  3721. }
  3722. #documentPropertiesDialog{
  3723. text-align:left;
  3724. }
  3725. #documentPropertiesDialog .row > *{
  3726. min-width:100px;
  3727. text-align:start;
  3728. }
  3729. #documentPropertiesDialog .row > span{
  3730. width:125px;
  3731. word-wrap:break-word;
  3732. }
  3733. #documentPropertiesDialog .row > p{
  3734. max-width:225px;
  3735. word-wrap:break-word;
  3736. }
  3737. #documentPropertiesDialog .buttonRow{
  3738. margin-top:10px;
  3739. }
  3740. .grab-to-pan-grab{
  3741. cursor:grab !important;
  3742. }
  3743. .grab-to-pan-grab
  3744. *:not(input):not(textarea):not(button):not(select):not(:link){
  3745. cursor:inherit !important;
  3746. }
  3747. .grab-to-pan-grab:active,
  3748. .grab-to-pan-grabbing{
  3749. cursor:grabbing !important;
  3750. }
  3751. .grab-to-pan-grabbing{
  3752. position:fixed;
  3753. background:rgb(0 0 0 / 0);
  3754. display:block;
  3755. inset:0;
  3756. overflow:hidden;
  3757. z-index:50000;
  3758. }
  3759. @page{
  3760. margin:0;
  3761. }
  3762. #printContainer{
  3763. display:none;
  3764. }
  3765. @media print{
  3766. body{
  3767. background:rgb(0 0 0 / 0) none;
  3768. }
  3769. body[data-pdfjsprinting] #outerContainer{
  3770. display:none;
  3771. }
  3772. body[data-pdfjsprinting] #printContainer{
  3773. display:block;
  3774. }
  3775. #printContainer{
  3776. height:100%;
  3777. }
  3778. #printContainer > .printedPage{
  3779. page-break-after:always;
  3780. page-break-inside:avoid;
  3781. height:100%;
  3782. width:100%;
  3783. display:flex;
  3784. flex-direction:column;
  3785. justify-content:center;
  3786. align-items:center;
  3787. }
  3788. #printContainer > .xfaPrintedPage .xfaPage{
  3789. position:absolute;
  3790. }
  3791. #printContainer > .xfaPrintedPage{
  3792. page-break-after:always;
  3793. page-break-inside:avoid;
  3794. width:100%;
  3795. height:100%;
  3796. position:relative;
  3797. }
  3798. #printContainer > .printedPage :is(canvas, img){
  3799. max-width:100%;
  3800. max-height:100%;
  3801. direction:ltr;
  3802. display:block;
  3803. }
  3804. }
  3805. .visibleMediumView{
  3806. display:none;
  3807. }
  3808. @media all and (max-width: 900px){
  3809. }
  3810. @media all and (max-width: 840px){
  3811. #sidebarContainer{
  3812. background-color:var(--sidebar-narrow-bg-color);
  3813. }
  3814. #outerContainer.sidebarOpen #viewerContainer{
  3815. inset-inline-start:0 !important;
  3816. }
  3817. }
  3818. @media all and (max-width: 750px){
  3819. :root{
  3820. --editor-toolbar-base-offset:40px;
  3821. }
  3822. #outerContainer .hiddenMediumView{
  3823. display:none;
  3824. }
  3825. #outerContainer .visibleMediumView{
  3826. display:inherit;
  3827. }
  3828. }
  3829. @media all and (max-width: 690px){
  3830. .hiddenSmallView,
  3831. .hiddenSmallView *{
  3832. /* display:none; */
  3833. }
  3834. .toolbarButtonSpacer{
  3835. width:0;
  3836. }
  3837. .findbar{
  3838. inset-inline-start:34px;
  3839. }
  3840. }
  3841. @media all and (max-width: 560px){
  3842. #scaleSelectContainer{
  3843. display:none;
  3844. }
  3845. }
  3846. #odlCustomRatio {
  3847. min-width: 10px;
  3848. }
  3849. #scaleSelect {
  3850. border: none;
  3851. background: transparent;
  3852. }
  3853. .odlImageNum {
  3854. text-align: center;
  3855. text-decoration: none;
  3856. margin-bottom: 8px;
  3857. color: rgba(18, 19, 22, 0.80);
  3858. }
  3859. .odl_selected {
  3860. & > .odlImageNum {
  3861. color: var(--thumbnail-selected-color);
  3862. }
  3863. }
  3864. #odlScale {
  3865. font-size: 14px;
  3866. margin: 2px 8px 0;
  3867. user-select: none;
  3868. }
  3869. #toolbarViewerLeft {
  3870. display: flex;
  3871. align-items: center;
  3872. }
  3873. #sidebarToggle {
  3874. width: 20px;
  3875. height: 20px;
  3876. margin-left: 16px;
  3877. cursor: pointer;
  3878. }
  3879. #sidebarToggle::before,.toggled::before {
  3880. width: 18px !important;
  3881. height: 18px !important;
  3882. }
  3883. #sidebarToggle {
  3884. margin-right: 8px;
  3885. &:active {
  3886. background-color: #F4F5F9 !important;
  3887. }
  3888. }
  3889. #sidebarToggle.toggled {
  3890. background-color: #F4F5F9;
  3891. border-radius: 2px;
  3892. width: 20px !important;
  3893. height: 20px !important;
  3894. }
  3895. #sidebarToggle.toggled::before {
  3896. -webkit-mask-image:var(--toolbarButton-sidebarToggle-icon) !important;
  3897. mask-image:var(--toolbarButton-sidebarToggle-icon) !important;
  3898. width: 18px !important;
  3899. height: 18px !important;
  3900. margin-left: 1px;
  3901. margin-top: 1px;
  3902. }
  3903. #sidebarToggle:is(:hover, :focus-visible) {
  3904. border-radius: 2px;
  3905. }
  3906. #odl-pdf-title {
  3907. margin-left: 8px;
  3908. margin-top: 1px;
  3909. white-space: nowrap;
  3910. overflow: hidden;
  3911. text-overflow: ellipsis;
  3912. max-width: calc(100%)
  3913. }
  3914. @media all and (max-width: 690px){
  3915. #odl-pdf-title {
  3916. max-width: 160px;
  3917. }
  3918. }