viewer.css 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503
  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. @import url(pdf_viewer.css);
  16. :root {
  17. --dir-factor: 1;
  18. --sidebar-width: 200px;
  19. --sidebar-transition-duration: 200ms;
  20. --sidebar-transition-timing-function: ease;
  21. --scale-select-width: 140px;
  22. --toolbar-icon-opacity: 0.7;
  23. --doorhanger-icon-opacity: 0.9;
  24. --main-color: rgba(12, 12, 13, 1);
  25. --body-bg-color: rgba(237, 237, 240, 1);
  26. --progressBar-percent: 0%;
  27. --progressBar-end-offset: 0;
  28. --progressBar-color: rgba(10, 132, 255, 1);
  29. --progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1);
  30. --progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1);
  31. --scrollbar-color: auto;
  32. --scrollbar-bg-color: auto;
  33. --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
  34. --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
  35. --sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9);
  36. --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
  37. --toolbar-bg-color: rgba(249, 249, 250, 1);
  38. --toolbar-border-color: rgba(204, 204, 204, 1);
  39. --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
  40. --toolbar-border-bottom: none;
  41. --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0
  42. rgba(0, 0, 0, 0.25),
  43. 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  44. --toolbarSidebar-border-bottom: none;
  45. --button-hover-color: rgba(221, 222, 223, 1);
  46. --toggled-btn-color: rgba(0, 0, 0, 1);
  47. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  48. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  49. --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
  50. --dropdown-btn-border: none;
  51. --separator-color: rgba(0, 0, 0, 0.3);
  52. --field-color: rgba(6, 6, 6, 1);
  53. --field-bg-color: rgba(255, 255, 255, 1);
  54. --field-border-color: rgba(187, 187, 188, 1);
  55. --treeitem-color: rgba(0, 0, 0, 0.8);
  56. --treeitem-hover-color: rgba(0, 0, 0, 0.9);
  57. --treeitem-selected-color: rgba(0, 0, 0, 0.9);
  58. --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
  59. --sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
  60. --doorhanger-bg-color: rgba(255, 255, 255, 1);
  61. --doorhanger-border-color: rgba(12, 12, 13, 0.2);
  62. --doorhanger-hover-color: rgba(12, 12, 13, 1);
  63. --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
  64. --doorhanger-separator-color: rgba(222, 222, 222, 1);
  65. --dialog-button-border: none;
  66. --dialog-button-bg-color: rgba(12, 12, 13, 0.1);
  67. --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3);
  68. --loading-icon: url(images/loading.svg);
  69. --treeitem-expanded-icon: url(images/treeitem-expanded.svg);
  70. --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
  71. --toolbarButton-editorFreeText-icon: url(images/toolbarButton-editorFreeText.svg);
  72. --toolbarButton-editorInk-icon: url(images/toolbarButton-editorInk.svg);
  73. --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
  74. --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
  75. --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
  76. --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
  77. --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
  78. --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
  79. --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
  80. --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
  81. --toolbarButton-print-icon: url(images/toolbarButton-print.svg);
  82. /*#if GENERIC*/
  83. --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
  84. /*#endif*/
  85. --toolbarButton-download-icon: url(images/toolbarButton-download.svg);
  86. --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
  87. --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
  88. --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
  89. --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
  90. --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
  91. --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
  92. --toolbarButton-search-icon: url(images/toolbarButton-search.svg);
  93. --findbarButton-previous-icon: url(images/findbarButton-previous.svg);
  94. --findbarButton-next-icon: url(images/findbarButton-next.svg);
  95. --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
  96. --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
  97. --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
  98. --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
  99. --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
  100. --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
  101. --secondaryToolbarButton-scrollPage-icon: url(images/secondaryToolbarButton-scrollPage.svg);
  102. --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
  103. --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
  104. --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
  105. --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
  106. --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
  107. --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
  108. --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
  109. }
  110. :root:dir(rtl) {
  111. --dir-factor: -1;
  112. }
  113. @media (prefers-color-scheme: dark) {
  114. :root {
  115. --main-color: rgba(249, 249, 250, 1);
  116. --body-bg-color: rgba(42, 42, 46, 1);
  117. --progressBar-color: rgba(0, 96, 223, 1);
  118. --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
  119. --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
  120. --scrollbar-color: rgba(121, 121, 123, 1);
  121. --scrollbar-bg-color: rgba(35, 35, 39, 1);
  122. --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
  123. --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
  124. --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
  125. --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
  126. --toolbar-bg-color: rgba(56, 56, 61, 1);
  127. --toolbar-border-color: rgba(12, 12, 13, 1);
  128. --button-hover-color: rgba(102, 102, 103, 1);
  129. --toggled-btn-color: rgba(255, 255, 255, 1);
  130. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  131. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  132. --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
  133. --separator-color: rgba(0, 0, 0, 0.3);
  134. --field-color: rgba(250, 250, 250, 1);
  135. --field-bg-color: rgba(64, 64, 68, 1);
  136. --field-border-color: rgba(115, 115, 115, 1);
  137. --treeitem-color: rgba(255, 255, 255, 0.8);
  138. --treeitem-hover-color: rgba(255, 255, 255, 0.9);
  139. --treeitem-selected-color: rgba(255, 255, 255, 0.9);
  140. --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
  141. --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
  142. --doorhanger-bg-color: rgba(74, 74, 79, 1);
  143. --doorhanger-border-color: rgba(39, 39, 43, 1);
  144. --doorhanger-hover-color: rgba(249, 249, 250, 1);
  145. --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
  146. --doorhanger-separator-color: rgba(92, 92, 97, 1);
  147. --dialog-button-bg-color: rgba(92, 92, 97, 1);
  148. --dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
  149. /* This image is used in <input> elements, which unfortunately means that
  150. * the `mask-image` approach used with all of the other images doesn't work
  151. * here; hence why we still have two versions of this particular image. */
  152. --loading-icon: url(images/loading-dark.svg);
  153. }
  154. }
  155. @media screen and (forced-colors: active) {
  156. :root {
  157. --button-hover-color: Highlight;
  158. --doorhanger-hover-bg-color: Highlight;
  159. --toolbar-icon-opacity: 1;
  160. --toolbar-icon-bg-color: ButtonText;
  161. --toolbar-icon-hover-bg-color: ButtonFace;
  162. --toolbar-border-color: CanvasText;
  163. --toolbar-border-bottom: 1px solid var(--toolbar-border-color);
  164. --toolbar-box-shadow: none;
  165. --toggled-btn-color: HighlightText;
  166. --toggled-btn-bg-color: LinkText;
  167. --doorhanger-hover-color: ButtonFace;
  168. --doorhanger-border-color-whcm: 1px solid ButtonText;
  169. --doorhanger-triangle-opacity-whcm: 0;
  170. --dialog-button-border: 1px solid Highlight;
  171. --dialog-button-hover-bg-color: Highlight;
  172. --dialog-button-hover-color: ButtonFace;
  173. --dropdown-btn-border: 1px solid ButtonText;
  174. --field-border-color: ButtonText;
  175. --main-color: CanvasText;
  176. --separator-color: GrayText;
  177. --doorhanger-separator-color: GrayText;
  178. --toolbarSidebar-box-shadow: none;
  179. --toolbarSidebar-border-bottom: 1px solid var(--toolbar-border-color);
  180. }
  181. }
  182. * {
  183. padding: 0;
  184. margin: 0;
  185. }
  186. html,
  187. body {
  188. height: 100%;
  189. width: 100%;
  190. }
  191. body {
  192. background-color: var(--body-bg-color);
  193. scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
  194. }
  195. .hidden,
  196. [hidden] {
  197. display: none !important;
  198. }
  199. #viewerContainer.pdfPresentationMode:fullscreen {
  200. top: 0;
  201. background-color: rgba(0, 0, 0, 1);
  202. width: 100%;
  203. height: 100%;
  204. overflow: hidden;
  205. cursor: none;
  206. user-select: none;
  207. }
  208. .pdfPresentationMode:fullscreen section:not([data-internal-link]) {
  209. pointer-events: none;
  210. }
  211. .pdfPresentationMode:fullscreen .textLayer span {
  212. cursor: none;
  213. }
  214. .pdfPresentationMode.pdfPresentationModeControls > *,
  215. .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
  216. cursor: default;
  217. }
  218. #outerContainer {
  219. width: 100%;
  220. height: 100%;
  221. position: relative;
  222. }
  223. #sidebarContainer {
  224. position: absolute;
  225. top: 32px;
  226. bottom: 0;
  227. inset-inline-start: calc(-1 * var(--sidebar-width));
  228. width: var(--sidebar-width);
  229. visibility: hidden;
  230. z-index: 100;
  231. font: message-box;
  232. border-top: 1px solid rgba(51, 51, 51, 1);
  233. border-inline-end: var(--doorhanger-border-color-whcm);
  234. transition-property: inset-inline-start;
  235. transition-duration: var(--sidebar-transition-duration);
  236. transition-timing-function: var(--sidebar-transition-timing-function);
  237. }
  238. #outerContainer.sidebarMoving #sidebarContainer,
  239. #outerContainer.sidebarOpen #sidebarContainer {
  240. visibility: visible;
  241. }
  242. #outerContainer.sidebarOpen #sidebarContainer {
  243. inset-inline-start: 0;
  244. }
  245. #mainContainer {
  246. position: absolute;
  247. top: 0;
  248. right: 0;
  249. bottom: 0;
  250. left: 0;
  251. min-width: 350px;
  252. }
  253. #sidebarContent {
  254. top: 32px;
  255. bottom: 0;
  256. inset-inline-start: 0;
  257. overflow: auto;
  258. position: absolute;
  259. width: 100%;
  260. background-color: rgba(0, 0, 0, 0.1);
  261. box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25);
  262. }
  263. #viewerContainer {
  264. overflow: auto;
  265. position: absolute;
  266. top: 32px;
  267. right: 0;
  268. bottom: 0;
  269. left: 0;
  270. outline: none;
  271. }
  272. #viewerContainer:not(.pdfPresentationMode) {
  273. transition-duration: var(--sidebar-transition-duration);
  274. transition-timing-function: var(--sidebar-transition-timing-function);
  275. }
  276. #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
  277. inset-inline-start: var(--sidebar-width);
  278. transition-property: inset-inline-start;
  279. }
  280. .toolbar {
  281. position: relative;
  282. left: 0;
  283. right: 0;
  284. z-index: 9999;
  285. cursor: default;
  286. font: message-box;
  287. }
  288. .toolbar input,
  289. .toolbar button,
  290. .toolbar select,
  291. .secondaryToolbar input,
  292. .secondaryToolbar button,
  293. .secondaryToolbar a,
  294. .secondaryToolbar select,
  295. .editorParamsToolbar input,
  296. .editorParamsToolbar button,
  297. .editorParamsToolbar select,
  298. .findbar input,
  299. .findbar button,
  300. .findbar select,
  301. #sidebarContainer input,
  302. #sidebarContainer button,
  303. #sidebarContainer select {
  304. outline: none;
  305. font: message-box;
  306. }
  307. #toolbarContainer {
  308. width: 100%;
  309. }
  310. #toolbarSidebar {
  311. width: 100%;
  312. height: 32px;
  313. background-color: var(--sidebar-toolbar-bg-color);
  314. box-shadow: var(--toolbarSidebar-box-shadow);
  315. border-bottom: var(--toolbarSidebar-border-bottom);
  316. }
  317. #sidebarResizer {
  318. position: absolute;
  319. top: 0;
  320. bottom: 0;
  321. inset-inline-end: -6px;
  322. width: 6px;
  323. z-index: 200;
  324. cursor: ew-resize;
  325. }
  326. #toolbarContainer,
  327. .findbar,
  328. .secondaryToolbar,
  329. .editorParamsToolbar {
  330. position: relative;
  331. height: 32px;
  332. background-color: var(--toolbar-bg-color);
  333. box-shadow: var(--toolbar-box-shadow);
  334. border-bottom: var(--toolbar-border-bottom);
  335. }
  336. #toolbarViewer {
  337. height: 32px;
  338. }
  339. #loadingBar {
  340. position: absolute;
  341. inset-inline: 0 var(--progressBar-end-offset);
  342. height: 4px;
  343. background-color: var(--body-bg-color);
  344. border-bottom: 1px solid var(--toolbar-border-color);
  345. transition-property: inset-inline-start;
  346. transition-duration: var(--sidebar-transition-duration);
  347. transition-timing-function: var(--sidebar-transition-timing-function);
  348. }
  349. #outerContainer.sidebarOpen #loadingBar {
  350. inset-inline-start: var(--sidebar-width);
  351. }
  352. #loadingBar .progress {
  353. position: absolute;
  354. top: 0;
  355. left: 0;
  356. width: 100%;
  357. transform: scaleX(var(--progressBar-percent));
  358. transform-origin: 0 0;
  359. height: 100%;
  360. background-color: var(--progressBar-color);
  361. overflow: hidden;
  362. transition: transform 200ms;
  363. }
  364. @keyframes progressIndeterminate {
  365. 0% {
  366. transform: translateX(-142px);
  367. }
  368. 100% {
  369. transform: translateX(0);
  370. }
  371. }
  372. #loadingBar.indeterminate .progress {
  373. transform: none;
  374. background-color: var(--progressBar-indeterminate-bg-color);
  375. transition: none;
  376. }
  377. #loadingBar.indeterminate .progress .glimmer {
  378. position: absolute;
  379. top: 0;
  380. left: 0;
  381. height: 100%;
  382. width: calc(100% + 150px);
  383. background: repeating-linear-gradient(
  384. 135deg,
  385. var(--progressBar-indeterminate-blend-color) 0,
  386. var(--progressBar-indeterminate-bg-color) 5px,
  387. var(--progressBar-indeterminate-bg-color) 45px,
  388. var(--progressBar-color) 55px,
  389. var(--progressBar-color) 95px,
  390. var(--progressBar-indeterminate-blend-color) 100px
  391. );
  392. animation: progressIndeterminate 1s linear infinite;
  393. }
  394. #outerContainer.sidebarResizing #sidebarContainer,
  395. #outerContainer.sidebarResizing #viewerContainer,
  396. #outerContainer.sidebarResizing #loadingBar {
  397. /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
  398. transition-duration: 0s;
  399. }
  400. .findbar,
  401. .secondaryToolbar,
  402. .editorParamsToolbar {
  403. top: 32px;
  404. position: absolute;
  405. z-index: 30000;
  406. height: auto;
  407. padding: 0 4px;
  408. margin: 4px 2px;
  409. font: message-box;
  410. font-size: 12px;
  411. line-height: 14px;
  412. text-align: left;
  413. cursor: default;
  414. }
  415. .findbar {
  416. inset-inline-start: 64px;
  417. min-width: 300px;
  418. background-color: var(--toolbar-bg-color);
  419. }
  420. .findbar > div {
  421. height: 32px;
  422. }
  423. .findbar > div#findbarInputContainer {
  424. margin-inline-end: 4px;
  425. }
  426. .findbar.wrapContainers > div,
  427. .findbar.wrapContainers > div#findbarMessageContainer > * {
  428. clear: both;
  429. }
  430. .findbar.wrapContainers > div#findbarMessageContainer {
  431. height: auto;
  432. }
  433. .findbar input[type="checkbox"] {
  434. pointer-events: none;
  435. }
  436. .findbar label {
  437. user-select: none;
  438. }
  439. .findbar label:hover,
  440. .findbar input:focus-visible + label {
  441. color: var(--toggled-btn-color);
  442. background-color: var(--button-hover-color);
  443. }
  444. .findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel {
  445. background-color: var(--toggled-btn-bg-color) !important;
  446. color: var(--toggled-btn-color);
  447. }
  448. #findInput {
  449. width: 200px;
  450. }
  451. /*#if !MOZCENTRAL*/
  452. #findInput::-webkit-input-placeholder {
  453. color: rgba(191, 191, 191, 1);
  454. }
  455. /*#endif*/
  456. #findInput::placeholder {
  457. font-style: normal;
  458. }
  459. #findInput[data-status="pending"] {
  460. background-image: var(--loading-icon);
  461. background-repeat: no-repeat;
  462. background-position: calc(50% + 48% * var(--dir-factor));
  463. }
  464. #findInput[data-status="notFound"] {
  465. background-color: rgba(255, 102, 102, 1);
  466. }
  467. .secondaryToolbar,
  468. .editorParamsToolbar {
  469. padding: 6px 0 10px;
  470. inset-inline-end: 4px;
  471. height: auto;
  472. background-color: var(--doorhanger-bg-color);
  473. }
  474. .editorParamsToolbarContainer {
  475. width: 220px;
  476. margin-bottom: -4px;
  477. }
  478. .editorParamsToolbarContainer > .editorParamsSetter {
  479. min-height: 26px;
  480. display: flex;
  481. align-items: center;
  482. justify-content: space-between;
  483. padding-inline: 10px;
  484. }
  485. .editorParamsToolbarContainer .editorParamsLabel {
  486. padding-inline-end: 10px;
  487. flex: none;
  488. color: var(--main-color);
  489. }
  490. .editorParamsToolbarContainer .editorParamsColor {
  491. width: 32px;
  492. height: 32px;
  493. flex: none;
  494. }
  495. .editorParamsToolbarContainer .editorParamsSlider {
  496. background-color: transparent;
  497. width: 90px;
  498. flex: 0 1 0;
  499. }
  500. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-progress {
  501. background-color: black;
  502. }
  503. /*#if !MOZCENTRAL*/
  504. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-runnable-track,
  505. /*#endif*/
  506. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-track {
  507. background-color: black;
  508. }
  509. /*#if !MOZCENTRAL*/
  510. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb,
  511. /*#endif*/
  512. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb {
  513. background-color: white;
  514. }
  515. #secondaryToolbarButtonContainer {
  516. max-width: 220px;
  517. min-height: 26px;
  518. max-height: calc(var(--viewer-container-height) - 40px);
  519. overflow-y: auto;
  520. margin-bottom: -4px;
  521. }
  522. #editorInkParamsToolbar {
  523. inset-inline-end: 40px;
  524. background-color: var(--toolbar-bg-color);
  525. }
  526. #editorFreeTextParamsToolbar {
  527. inset-inline-end: 68px;
  528. background-color: var(--toolbar-bg-color);
  529. }
  530. .doorHanger,
  531. .doorHangerRight {
  532. border-radius: 2px;
  533. box-shadow: 0 1px 5px var(--doorhanger-border-color),
  534. 0 0 0 1px var(--doorhanger-border-color);
  535. border: var(--doorhanger-border-color-whcm);
  536. }
  537. .doorHanger:after,
  538. .doorHanger:before,
  539. .doorHangerRight:after,
  540. .doorHangerRight:before {
  541. bottom: 100%;
  542. border: 8px solid rgba(0, 0, 0, 0);
  543. content: " ";
  544. height: 0;
  545. width: 0;
  546. position: absolute;
  547. pointer-events: none;
  548. opacity: var(--doorhanger-triangle-opacity-whcm);
  549. }
  550. .doorHanger:after {
  551. inset-inline-start: 10px;
  552. margin-inline-start: -8px;
  553. border-bottom-color: var(--toolbar-bg-color);
  554. }
  555. .doorHangerRight:after {
  556. inset-inline-end: 10px;
  557. margin-inline-end: -8px;
  558. border-bottom-color: var(--doorhanger-bg-color);
  559. }
  560. .doorHanger:before,
  561. .doorHangerRight:before {
  562. border-bottom-color: var(--doorhanger-border-color);
  563. border-width: 9px;
  564. }
  565. .doorHanger:before {
  566. inset-inline-start: 10px;
  567. margin-inline-start: -9px;
  568. }
  569. .doorHangerRight:before {
  570. inset-inline-end: 10px;
  571. margin-inline-end: -9px;
  572. }
  573. #findResultsCount {
  574. background-color: rgba(217, 217, 217, 1);
  575. color: rgba(82, 82, 82, 1);
  576. text-align: center;
  577. padding: 4px 5px;
  578. margin: 5px;
  579. }
  580. #findMsg {
  581. color: rgba(251, 0, 0, 1);
  582. }
  583. #findResultsCount:empty,
  584. #findMsg:empty {
  585. display: none;
  586. }
  587. #toolbarViewerMiddle {
  588. position: absolute;
  589. left: 50%;
  590. transform: translateX(-50%);
  591. }
  592. #toolbarViewerLeft,
  593. #toolbarSidebarLeft {
  594. float: inline-start;
  595. }
  596. #toolbarViewerRight,
  597. #toolbarSidebarRight {
  598. float: inline-end;
  599. }
  600. #toolbarViewerLeft > *,
  601. #toolbarViewerMiddle > *,
  602. #toolbarViewerRight > *,
  603. #toolbarSidebarLeft *,
  604. #toolbarSidebarRight *,
  605. .findbar * {
  606. position: relative;
  607. float: inline-start;
  608. }
  609. #toolbarViewerLeft {
  610. padding-inline-start: 1px;
  611. }
  612. #toolbarViewerRight {
  613. padding-inline-end: 1px;
  614. }
  615. #toolbarSidebarRight {
  616. padding-inline-end: 2px;
  617. }
  618. .splitToolbarButton {
  619. margin: 2px;
  620. display: inline-block;
  621. }
  622. .splitToolbarButton > .toolbarButton {
  623. float: inline-start;
  624. }
  625. .toolbarButton,
  626. .secondaryToolbarButton,
  627. .dialogButton {
  628. border: none;
  629. background: none;
  630. width: 28px;
  631. height: 28px;
  632. outline: none;
  633. }
  634. .dialogButton:hover,
  635. .dialogButton:focus-visible {
  636. background-color: var(--dialog-button-hover-bg-color);
  637. }
  638. .dialogButton:hover > span,
  639. .dialogButton:focus-visible > span {
  640. color: var(--dialog-button-hover-color);
  641. }
  642. .toolbarButton > span {
  643. display: inline-block;
  644. width: 0;
  645. height: 0;
  646. overflow: hidden;
  647. }
  648. .toolbarButton[disabled],
  649. .secondaryToolbarButton[disabled],
  650. .dialogButton[disabled] {
  651. opacity: 0.5;
  652. }
  653. .splitToolbarButton > .toolbarButton:hover,
  654. .splitToolbarButton > .toolbarButton:focus-visible,
  655. .dropdownToolbarButton:hover {
  656. background-color: var(--button-hover-color);
  657. }
  658. .splitToolbarButton > .toolbarButton {
  659. position: relative;
  660. margin: 0;
  661. }
  662. #toolbarSidebar .splitToolbarButton > .toolbarButton {
  663. margin-inline-end: 2px;
  664. }
  665. .splitToolbarButtonSeparator {
  666. float: inline-start;
  667. margin: 4px 0;
  668. width: 1px;
  669. height: 20px;
  670. background-color: var(--separator-color);
  671. }
  672. .toolbarButton,
  673. .dropdownToolbarButton,
  674. .secondaryToolbarButton,
  675. .dialogButton {
  676. min-width: 16px;
  677. margin: 2px 1px;
  678. padding: 2px 6px 0;
  679. border: none;
  680. border-radius: 2px;
  681. color: var(--main-color);
  682. font-size: 12px;
  683. line-height: 14px;
  684. user-select: none;
  685. cursor: default;
  686. box-sizing: border-box;
  687. }
  688. .toolbarButton:hover,
  689. .toolbarButton:focus-visible {
  690. background-color: var(--button-hover-color);
  691. }
  692. .secondaryToolbarButton:hover,
  693. .secondaryToolbarButton:focus-visible {
  694. background-color: var(--doorhanger-hover-bg-color);
  695. color: var(--doorhanger-hover-color);
  696. }
  697. .toolbarButton.toggled,
  698. .splitToolbarButton.toggled > .toolbarButton.toggled,
  699. .secondaryToolbarButton.toggled {
  700. background-color: var(--toggled-btn-bg-color);
  701. color: var(--toggled-btn-color);
  702. }
  703. .toolbarButton.toggled::before,
  704. .secondaryToolbarButton.toggled::before {
  705. background-color: var(--toggled-btn-color);
  706. }
  707. .toolbarButton.toggled:hover:active,
  708. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
  709. .secondaryToolbarButton.toggled:hover:active {
  710. background-color: var(--toggled-hover-active-btn-color);
  711. }
  712. .dropdownToolbarButton {
  713. width: var(--scale-select-width);
  714. padding: 0;
  715. background-color: var(--dropdown-btn-bg-color);
  716. border: var(--dropdown-btn-border);
  717. }
  718. .dropdownToolbarButton::after {
  719. top: 6px;
  720. inset-inline-end: 6px;
  721. pointer-events: none;
  722. mask-image: var(--toolbarButton-menuArrow-icon);
  723. }
  724. .dropdownToolbarButton > select {
  725. appearance: none;
  726. width: inherit;
  727. height: 28px;
  728. font-size: 12px;
  729. color: var(--main-color);
  730. margin: 0;
  731. padding: 1px 0 2px;
  732. padding-inline-start: 6px;
  733. border: none;
  734. background-color: var(--dropdown-btn-bg-color);
  735. }
  736. .dropdownToolbarButton > select:hover,
  737. .dropdownToolbarButton > select:focus-visible {
  738. background-color: var(--button-hover-color);
  739. color: var(--toggled-btn-color);
  740. }
  741. .dropdownToolbarButton > select > option {
  742. background: var(--doorhanger-bg-color);
  743. color: var(--main-color);
  744. }
  745. .toolbarButtonSpacer {
  746. width: 30px;
  747. display: inline-block;
  748. height: 1px;
  749. }
  750. .toolbarButton::before,
  751. .secondaryToolbarButton::before,
  752. .dropdownToolbarButton::after,
  753. .treeItemToggler::before {
  754. /* All matching images have a size of 16x16
  755. * All relevant containers have a size of 28x28 */
  756. position: absolute;
  757. display: inline-block;
  758. width: 16px;
  759. height: 16px;
  760. content: "";
  761. background-color: var(--toolbar-icon-bg-color);
  762. mask-size: cover;
  763. }
  764. .dropdownToolbarButton:hover::after,
  765. .dropdownToolbarButton:focus-visible::after,
  766. .dropdownToolbarButton:active::after {
  767. background-color: var(--toolbar-icon-hover-bg-color);
  768. }
  769. .toolbarButton::before {
  770. opacity: var(--toolbar-icon-opacity);
  771. top: 6px;
  772. left: 6px;
  773. }
  774. .toolbarButton:hover::before,
  775. .toolbarButton:focus-visible::before,
  776. .secondaryToolbarButton:hover::before,
  777. .secondaryToolbarButton:focus-visible::before {
  778. background-color: var(--toolbar-icon-hover-bg-color);
  779. }
  780. .secondaryToolbarButton::before {
  781. opacity: var(--doorhanger-icon-opacity);
  782. top: 5px;
  783. inset-inline-start: 12px;
  784. }
  785. #sidebarToggle::before {
  786. mask-image: var(--toolbarButton-sidebarToggle-icon);
  787. transform: scaleX(var(--dir-factor));
  788. }
  789. #secondaryToolbarToggle::before {
  790. mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
  791. transform: scaleX(var(--dir-factor));
  792. }
  793. #findPrevious::before {
  794. mask-image: var(--findbarButton-previous-icon);
  795. }
  796. #findNext::before {
  797. mask-image: var(--findbarButton-next-icon);
  798. }
  799. #previous::before {
  800. mask-image: var(--toolbarButton-pageUp-icon);
  801. }
  802. #next::before {
  803. mask-image: var(--toolbarButton-pageDown-icon);
  804. }
  805. #zoomOut::before {
  806. mask-image: var(--toolbarButton-zoomOut-icon);
  807. }
  808. #zoomIn::before {
  809. mask-image: var(--toolbarButton-zoomIn-icon);
  810. }
  811. #presentationMode::before {
  812. mask-image: var(--toolbarButton-presentationMode-icon);
  813. }
  814. #editorFreeText::before {
  815. mask-image: var(--toolbarButton-editorFreeText-icon);
  816. }
  817. #editorInk::before {
  818. mask-image: var(--toolbarButton-editorInk-icon);
  819. }
  820. #print::before,
  821. #secondaryPrint::before {
  822. mask-image: var(--toolbarButton-print-icon);
  823. }
  824. /*#if GENERIC*/
  825. #openFile::before,
  826. #secondaryOpenFile::before {
  827. mask-image: var(--toolbarButton-openFile-icon);
  828. }
  829. /*#endif*/
  830. #download::before,
  831. #secondaryDownload::before {
  832. mask-image: var(--toolbarButton-download-icon);
  833. }
  834. a.secondaryToolbarButton {
  835. padding-top: 5px;
  836. text-decoration: none;
  837. }
  838. a.toolbarButton[href="#"],
  839. a.secondaryToolbarButton[href="#"] {
  840. opacity: 0.5;
  841. pointer-events: none;
  842. }
  843. #viewBookmark::before {
  844. mask-image: var(--toolbarButton-bookmark-icon);
  845. }
  846. #viewThumbnail::before {
  847. mask-image: var(--toolbarButton-viewThumbnail-icon);
  848. }
  849. #viewOutline::before {
  850. mask-image: var(--toolbarButton-viewOutline-icon);
  851. transform: scaleX(var(--dir-factor));
  852. }
  853. #viewAttachments::before {
  854. mask-image: var(--toolbarButton-viewAttachments-icon);
  855. }
  856. #viewLayers::before {
  857. mask-image: var(--toolbarButton-viewLayers-icon);
  858. }
  859. #currentOutlineItem::before {
  860. mask-image: var(--toolbarButton-currentOutlineItem-icon);
  861. transform: scaleX(var(--dir-factor));
  862. }
  863. #viewFind::before {
  864. mask-image: var(--toolbarButton-search-icon);
  865. }
  866. .pdfSidebarNotification::after {
  867. position: absolute;
  868. display: inline-block;
  869. top: 2px;
  870. inset-inline-end: 2px;
  871. /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
  872. content: "";
  873. background-color: rgba(112, 219, 85, 1);
  874. height: 9px;
  875. width: 9px;
  876. border-radius: 50%;
  877. }
  878. .secondaryToolbarButton {
  879. position: relative;
  880. margin: 0;
  881. padding: 0 0 1px;
  882. padding-inline-start: 36px;
  883. height: auto;
  884. min-height: 26px;
  885. width: auto;
  886. min-width: 100%;
  887. text-align: start;
  888. white-space: normal;
  889. border-radius: 0;
  890. box-sizing: border-box;
  891. display: inline-block;
  892. }
  893. .secondaryToolbarButton > span {
  894. padding-inline-end: 4px;
  895. }
  896. #firstPage::before {
  897. mask-image: var(--secondaryToolbarButton-firstPage-icon);
  898. }
  899. #lastPage::before {
  900. mask-image: var(--secondaryToolbarButton-lastPage-icon);
  901. }
  902. #pageRotateCcw::before {
  903. mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
  904. }
  905. #pageRotateCw::before {
  906. mask-image: var(--secondaryToolbarButton-rotateCw-icon);
  907. }
  908. #cursorSelectTool::before {
  909. mask-image: var(--secondaryToolbarButton-selectTool-icon);
  910. }
  911. #cursorHandTool::before {
  912. mask-image: var(--secondaryToolbarButton-handTool-icon);
  913. }
  914. #scrollPage::before {
  915. mask-image: var(--secondaryToolbarButton-scrollPage-icon);
  916. }
  917. #scrollVertical::before {
  918. mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
  919. }
  920. #scrollHorizontal::before {
  921. mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
  922. }
  923. #scrollWrapped::before {
  924. mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
  925. }
  926. #spreadNone::before {
  927. mask-image: var(--secondaryToolbarButton-spreadNone-icon);
  928. }
  929. #spreadOdd::before {
  930. mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
  931. }
  932. #spreadEven::before {
  933. mask-image: var(--secondaryToolbarButton-spreadEven-icon);
  934. }
  935. #documentProperties::before {
  936. mask-image: var(--secondaryToolbarButton-documentProperties-icon);
  937. }
  938. .verticalToolbarSeparator {
  939. display: block;
  940. margin: 5px 2px;
  941. width: 1px;
  942. height: 22px;
  943. background-color: var(--separator-color);
  944. }
  945. .horizontalToolbarSeparator {
  946. display: block;
  947. margin: 6px 0;
  948. height: 1px;
  949. width: 100%;
  950. background-color: var(--doorhanger-separator-color);
  951. }
  952. .toolbarField {
  953. padding: 4px 7px;
  954. margin: 3px 0;
  955. border-radius: 2px;
  956. background-color: var(--field-bg-color);
  957. background-clip: padding-box;
  958. border: 1px solid var(--field-border-color);
  959. box-shadow: none;
  960. color: var(--field-color);
  961. font-size: 12px;
  962. line-height: 16px;
  963. outline: none;
  964. }
  965. .toolbarField[type="checkbox"] {
  966. opacity: 0;
  967. position: absolute !important;
  968. left: 0;
  969. margin: 10px 0 3px;
  970. margin-inline-start: 7px;
  971. }
  972. #pageNumber {
  973. -moz-appearance: textfield; /* hides the spinner in moz */
  974. text-align: right;
  975. width: 40px;
  976. }
  977. #pageNumber.visiblePageIsLoading {
  978. background-image: var(--loading-icon);
  979. background-repeat: no-repeat;
  980. background-position: 3px;
  981. }
  982. /*#if !MOZCENTRAL*/
  983. #pageNumber::-webkit-inner-spin-button {
  984. -webkit-appearance: none;
  985. }
  986. /*#endif*/
  987. .toolbarField:focus {
  988. border-color: #0a84ff;
  989. }
  990. .toolbarLabel {
  991. min-width: 16px;
  992. padding: 7px;
  993. margin: 2px;
  994. border-radius: 2px;
  995. color: var(--main-color);
  996. font-size: 12px;
  997. line-height: 14px;
  998. text-align: left;
  999. user-select: none;
  1000. cursor: default;
  1001. }
  1002. #numPages.toolbarLabel {
  1003. padding-inline-start: 3px;
  1004. }
  1005. #thumbnailView,
  1006. #outlineView,
  1007. #attachmentsView,
  1008. #layersView {
  1009. position: absolute;
  1010. width: calc(100% - 8px);
  1011. top: 0;
  1012. bottom: 0;
  1013. padding: 4px 4px 0;
  1014. overflow: auto;
  1015. user-select: none;
  1016. }
  1017. #thumbnailView {
  1018. width: calc(100% - 60px);
  1019. padding: 10px 30px 0;
  1020. }
  1021. #thumbnailView > a:active,
  1022. #thumbnailView > a:focus {
  1023. outline: 0;
  1024. }
  1025. .thumbnail {
  1026. float: inline-start;
  1027. margin: 0 10px 5px;
  1028. }
  1029. #thumbnailView > a:last-of-type > .thumbnail {
  1030. margin-bottom: 10px;
  1031. }
  1032. #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
  1033. margin-bottom: 9px;
  1034. }
  1035. .thumbnail:not([data-loaded]) {
  1036. border: 1px dashed rgba(132, 132, 132, 1);
  1037. margin: -1px 9px 4px;
  1038. }
  1039. .thumbnailImage {
  1040. border: 1px solid rgba(0, 0, 0, 0);
  1041. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  1042. opacity: 0.8;
  1043. z-index: 99;
  1044. background-color: rgba(255, 255, 255, 1);
  1045. background-clip: content-box;
  1046. }
  1047. .thumbnailSelectionRing {
  1048. border-radius: 2px;
  1049. padding: 7px;
  1050. }
  1051. a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
  1052. .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
  1053. opacity: 0.9;
  1054. }
  1055. a:focus > .thumbnail > .thumbnailSelectionRing,
  1056. .thumbnail:hover > .thumbnailSelectionRing {
  1057. background-color: var(--sidebaritem-bg-color);
  1058. background-clip: padding-box;
  1059. color: rgba(255, 255, 255, 0.9);
  1060. }
  1061. .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
  1062. opacity: 1;
  1063. }
  1064. .thumbnail.selected > .thumbnailSelectionRing {
  1065. background-color: var(--sidebaritem-bg-color);
  1066. background-clip: padding-box;
  1067. color: rgba(255, 255, 255, 1);
  1068. }
  1069. .treeWithDeepNesting > .treeItem,
  1070. .treeItem > .treeItems {
  1071. margin-inline-start: 20px;
  1072. }
  1073. .treeItem > a {
  1074. text-decoration: none;
  1075. display: inline-block;
  1076. /* Subtract the right padding (left, in RTL mode) of the container: */
  1077. min-width: calc(100% - 4px);
  1078. height: auto;
  1079. margin-bottom: 1px;
  1080. padding: 2px 0 5px;
  1081. padding-inline-start: 4px;
  1082. border-radius: 2px;
  1083. color: var(--treeitem-color);
  1084. font-size: 13px;
  1085. line-height: 15px;
  1086. user-select: none;
  1087. white-space: normal;
  1088. cursor: pointer;
  1089. }
  1090. #layersView .treeItem > a * {
  1091. cursor: pointer;
  1092. }
  1093. #layersView .treeItem > a > label {
  1094. padding-inline-start: 4px;
  1095. }
  1096. #layersView .treeItem > a > label > input {
  1097. float: inline-start;
  1098. margin-top: 1px;
  1099. }
  1100. .treeItemToggler {
  1101. position: relative;
  1102. float: inline-start;
  1103. height: 0;
  1104. width: 0;
  1105. color: rgba(255, 255, 255, 0.5);
  1106. }
  1107. .treeItemToggler::before {
  1108. inset-inline-end: 4px;
  1109. mask-image: var(--treeitem-expanded-icon);
  1110. }
  1111. .treeItemToggler.treeItemsHidden::before {
  1112. mask-image: var(--treeitem-collapsed-icon);
  1113. transform: scaleX(var(--dir-factor));
  1114. }
  1115. .treeItemToggler.treeItemsHidden ~ .treeItems {
  1116. display: none;
  1117. }
  1118. .treeItem.selected > a {
  1119. background-color: var(--treeitem-selected-bg-color);
  1120. color: var(--treeitem-selected-color);
  1121. }
  1122. .treeItemToggler:hover,
  1123. .treeItemToggler:hover + a,
  1124. .treeItemToggler:hover ~ .treeItems,
  1125. .treeItem > a:hover {
  1126. background-color: var(--sidebaritem-bg-color);
  1127. background-clip: padding-box;
  1128. border-radius: 2px;
  1129. color: var(--treeitem-hover-color);
  1130. }
  1131. .dialogButton {
  1132. width: auto;
  1133. margin: 3px 4px 2px !important;
  1134. padding: 2px 11px;
  1135. color: var(--main-color);
  1136. background-color: var(--dialog-button-bg-color);
  1137. border: var(--dialog-button-border) !important;
  1138. }
  1139. dialog {
  1140. margin: auto;
  1141. padding: 15px;
  1142. border-spacing: 4px;
  1143. color: var(--main-color);
  1144. font: message-box;
  1145. font-size: 12px;
  1146. line-height: 14px;
  1147. background-color: var(--doorhanger-bg-color);
  1148. border: 1px solid rgba(0, 0, 0, 0.5);
  1149. border-radius: 4px;
  1150. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  1151. }
  1152. dialog::backdrop {
  1153. background-color: rgba(0, 0, 0, 0.2);
  1154. }
  1155. dialog > .row {
  1156. display: table-row;
  1157. }
  1158. dialog > .row > * {
  1159. display: table-cell;
  1160. }
  1161. dialog .toolbarField {
  1162. margin: 5px 0;
  1163. }
  1164. dialog .separator {
  1165. display: block;
  1166. margin: 4px 0;
  1167. height: 1px;
  1168. width: 100%;
  1169. background-color: var(--separator-color);
  1170. }
  1171. dialog .buttonRow {
  1172. text-align: center;
  1173. vertical-align: middle;
  1174. }
  1175. dialog :link {
  1176. color: rgba(255, 255, 255, 1);
  1177. }
  1178. #passwordDialog {
  1179. text-align: center;
  1180. }
  1181. #passwordDialog .toolbarField {
  1182. width: 200px;
  1183. }
  1184. #documentPropertiesDialog {
  1185. text-align: left;
  1186. }
  1187. #documentPropertiesDialog .row > * {
  1188. min-width: 100px;
  1189. text-align: start;
  1190. }
  1191. #documentPropertiesDialog .row > span {
  1192. width: 125px;
  1193. word-wrap: break-word;
  1194. }
  1195. #documentPropertiesDialog .row > p {
  1196. max-width: 225px;
  1197. word-wrap: break-word;
  1198. }
  1199. #documentPropertiesDialog .buttonRow {
  1200. margin-top: 10px;
  1201. }
  1202. .grab-to-pan-grab {
  1203. cursor: grab !important;
  1204. }
  1205. .grab-to-pan-grab
  1206. *:not(input):not(textarea):not(button):not(select):not(:link) {
  1207. cursor: inherit !important;
  1208. }
  1209. .grab-to-pan-grab:active,
  1210. .grab-to-pan-grabbing {
  1211. cursor: grabbing !important;
  1212. position: fixed;
  1213. background: rgba(0, 0, 0, 0);
  1214. display: block;
  1215. top: 0;
  1216. left: 0;
  1217. right: 0;
  1218. bottom: 0;
  1219. overflow: hidden;
  1220. z-index: 50000; /* should be higher than anything else in PDF.js! */
  1221. }
  1222. @page {
  1223. margin: 0;
  1224. }
  1225. #printContainer {
  1226. display: none;
  1227. }
  1228. @media print {
  1229. body {
  1230. background: rgba(0, 0, 0, 0) none;
  1231. }
  1232. body[data-pdfjsprinting] #outerContainer {
  1233. display: none;
  1234. }
  1235. body[data-pdfjsprinting] #printContainer {
  1236. display: block;
  1237. }
  1238. #printContainer {
  1239. height: 100%;
  1240. }
  1241. /* wrapper around (scaled) print canvas elements */
  1242. #printContainer > .printedPage {
  1243. page-break-after: always;
  1244. page-break-inside: avoid;
  1245. /* The wrapper always cover the whole page. */
  1246. height: 100%;
  1247. width: 100%;
  1248. display: flex;
  1249. flex-direction: column;
  1250. justify-content: center;
  1251. align-items: center;
  1252. }
  1253. #printContainer > .xfaPrintedPage .xfaPage {
  1254. position: absolute;
  1255. }
  1256. #printContainer > .xfaPrintedPage {
  1257. page-break-after: always;
  1258. page-break-inside: avoid;
  1259. width: 100%;
  1260. height: 100%;
  1261. position: relative;
  1262. }
  1263. #printContainer > .printedPage canvas,
  1264. #printContainer > .printedPage img {
  1265. /* The intrinsic canvas / image size will make sure that we fit the page. */
  1266. max-width: 100%;
  1267. max-height: 100%;
  1268. direction: ltr;
  1269. display: block;
  1270. }
  1271. }
  1272. .visibleLargeView,
  1273. .visibleMediumView {
  1274. display: none;
  1275. }
  1276. @media all and (max-width: 900px) {
  1277. #toolbarViewerMiddle {
  1278. display: table;
  1279. margin: auto;
  1280. left: auto;
  1281. position: inherit;
  1282. transform: none;
  1283. }
  1284. }
  1285. @media all and (max-width: 840px) {
  1286. #sidebarContainer {
  1287. background-color: var(--sidebar-narrow-bg-color);
  1288. }
  1289. #outerContainer.sidebarOpen #viewerContainer {
  1290. inset-inline-start: 0 !important;
  1291. }
  1292. }
  1293. @media all and (max-width: 820px) {
  1294. #outerContainer .hiddenLargeView {
  1295. display: none;
  1296. }
  1297. #outerContainer .visibleLargeView {
  1298. display: inherit;
  1299. }
  1300. }
  1301. @media all and (max-width: 750px) {
  1302. #outerContainer .hiddenMediumView {
  1303. display: none;
  1304. }
  1305. #outerContainer .visibleMediumView {
  1306. display: inherit;
  1307. }
  1308. }
  1309. @media all and (max-width: 690px) {
  1310. .hiddenSmallView,
  1311. .hiddenSmallView * {
  1312. display: none;
  1313. }
  1314. .toolbarButtonSpacer {
  1315. width: 0;
  1316. }
  1317. .findbar {
  1318. inset-inline-start: 34px;
  1319. }
  1320. }
  1321. @media all and (max-width: 560px) {
  1322. #scaleSelectContainer {
  1323. display: none;
  1324. }
  1325. }