viewer.css 60 KB

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