pdf_viewer.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  1. /* Copyright 2014 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. .textLayer {
  16. position: absolute;
  17. text-align: initial;
  18. left: 0;
  19. top: 0;
  20. right: 0;
  21. bottom: 0;
  22. overflow: hidden;
  23. opacity: 0.2;
  24. line-height: 1;
  25. -webkit-text-size-adjust: none;
  26. -moz-text-size-adjust: none;
  27. text-size-adjust: none;
  28. forced-color-adjust: none;
  29. }
  30. .textLayer span,
  31. .textLayer br {
  32. color: transparent;
  33. position: absolute;
  34. white-space: pre;
  35. cursor: text;
  36. transform-origin: 0% 0%;
  37. }
  38. /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
  39. * the problem doesn't show up in "text" reference tests. */
  40. .textLayer span.markedContent {
  41. top: 0;
  42. height: 0;
  43. }
  44. .textLayer .highlight {
  45. margin: -1px;
  46. padding: 1px;
  47. background-color: rgba(180, 0, 170, 1);
  48. border-radius: 4px;
  49. }
  50. .textLayer .highlight.appended {
  51. position: initial;
  52. }
  53. .textLayer .highlight.begin {
  54. border-radius: 4px 0 0 4px;
  55. }
  56. .textLayer .highlight.end {
  57. border-radius: 0 4px 4px 0;
  58. }
  59. .textLayer .highlight.middle {
  60. border-radius: 0;
  61. }
  62. .textLayer .highlight.selected {
  63. background-color: rgba(0, 100, 0, 1);
  64. }
  65. .textLayer ::-moz-selection {
  66. background: rgba(0, 0, 255, 1);
  67. }
  68. .textLayer ::selection {
  69. background: rgba(0, 0, 255, 1);
  70. }
  71. /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
  72. .textLayer br::-moz-selection {
  73. background: transparent;
  74. }
  75. .textLayer br::selection {
  76. background: transparent;
  77. }
  78. .textLayer .endOfContent {
  79. display: block;
  80. position: absolute;
  81. left: 0;
  82. top: 100%;
  83. right: 0;
  84. bottom: 0;
  85. z-index: -1;
  86. cursor: default;
  87. -webkit-user-select: none;
  88. -moz-user-select: none;
  89. user-select: none;
  90. }
  91. .textLayer .endOfContent.active {
  92. top: 0;
  93. }
  94. :root {
  95. --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
  96. }
  97. @media (forced-colors: active) {
  98. .annotationLayer .textWidgetAnnotation input:required,
  99. .annotationLayer .textWidgetAnnotation textarea:required,
  100. .annotationLayer .choiceWidgetAnnotation select:required,
  101. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  102. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  103. outline: 1.5px solid selectedItem;
  104. }
  105. }
  106. .annotationLayer {
  107. position: absolute;
  108. top: 0;
  109. left: 0;
  110. pointer-events: none;
  111. transform-origin: 0 0;
  112. }
  113. .annotationLayer section {
  114. position: absolute;
  115. text-align: initial;
  116. pointer-events: auto;
  117. box-sizing: border-box;
  118. transform-origin: 0 0;
  119. }
  120. .annotationLayer .linkAnnotation > a,
  121. .annotationLayer .buttonWidgetAnnotation.pushButton > a {
  122. position: absolute;
  123. font-size: 1em;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 100%;
  128. }
  129. .annotationLayer .buttonWidgetAnnotation.pushButton > canvas {
  130. width: 100%;
  131. height: 100%;
  132. }
  133. .annotationLayer .linkAnnotation > a:hover,
  134. .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
  135. opacity: 0.2;
  136. background: rgba(255, 255, 0, 1);
  137. box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
  138. }
  139. .annotationLayer .textAnnotation img {
  140. position: absolute;
  141. cursor: pointer;
  142. width: 100%;
  143. height: 100%;
  144. }
  145. .annotationLayer .textWidgetAnnotation input,
  146. .annotationLayer .textWidgetAnnotation textarea,
  147. .annotationLayer .choiceWidgetAnnotation select,
  148. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  149. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  150. background-image: var(--annotation-unfocused-field-background);
  151. border: 1px solid transparent;
  152. box-sizing: border-box;
  153. font: calc(9px * var(--scale-factor)) sans-serif;
  154. height: 100%;
  155. margin: 0;
  156. vertical-align: top;
  157. width: 100%;
  158. }
  159. .annotationLayer .textWidgetAnnotation input:required,
  160. .annotationLayer .textWidgetAnnotation textarea:required,
  161. .annotationLayer .choiceWidgetAnnotation select:required,
  162. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  163. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  164. outline: 1.5px solid red;
  165. }
  166. .annotationLayer .choiceWidgetAnnotation select option {
  167. padding: 0;
  168. }
  169. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  170. border-radius: 50%;
  171. }
  172. .annotationLayer .textWidgetAnnotation textarea {
  173. resize: none;
  174. }
  175. .annotationLayer .textWidgetAnnotation input[disabled],
  176. .annotationLayer .textWidgetAnnotation textarea[disabled],
  177. .annotationLayer .choiceWidgetAnnotation select[disabled],
  178. .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
  179. .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
  180. background: none;
  181. border: 1px solid transparent;
  182. cursor: not-allowed;
  183. }
  184. .annotationLayer .textWidgetAnnotation input:hover,
  185. .annotationLayer .textWidgetAnnotation textarea:hover,
  186. .annotationLayer .choiceWidgetAnnotation select:hover,
  187. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
  188. .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
  189. border: 1px solid rgba(0, 0, 0, 1);
  190. }
  191. .annotationLayer .textWidgetAnnotation input:focus,
  192. .annotationLayer .textWidgetAnnotation textarea:focus,
  193. .annotationLayer .choiceWidgetAnnotation select:focus {
  194. background: none;
  195. border: 1px solid transparent;
  196. }
  197. .annotationLayer .textWidgetAnnotation input :focus,
  198. .annotationLayer .textWidgetAnnotation textarea :focus,
  199. .annotationLayer .choiceWidgetAnnotation select :focus,
  200. .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
  201. .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
  202. background-image: none;
  203. background-color: transparent;
  204. outline: auto;
  205. }
  206. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  207. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
  208. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  209. background-color: CanvasText;
  210. content: "";
  211. display: block;
  212. position: absolute;
  213. }
  214. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  215. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  216. height: 80%;
  217. left: 45%;
  218. width: 1px;
  219. }
  220. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
  221. transform: rotate(45deg);
  222. }
  223. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  224. transform: rotate(-45deg);
  225. }
  226. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  227. border-radius: 50%;
  228. height: 50%;
  229. left: 30%;
  230. top: 20%;
  231. width: 50%;
  232. }
  233. .annotationLayer .textWidgetAnnotation input.comb {
  234. font-family: monospace;
  235. padding-left: 2px;
  236. padding-right: 0;
  237. }
  238. .annotationLayer .textWidgetAnnotation input.comb:focus {
  239. /*
  240. * Letter spacing is placed on the right side of each character. Hence, the
  241. * letter spacing of the last character may be placed outside the visible
  242. * area, causing horizontal scrolling. We avoid this by extending the width
  243. * when the element has focus and revert this when it loses focus.
  244. */
  245. width: 103%;
  246. }
  247. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  248. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  249. -webkit-appearance: none;
  250. -moz-appearance: none;
  251. appearance: none;
  252. }
  253. .annotationLayer .popupTriggerArea {
  254. height: 100%;
  255. width: 100%;
  256. }
  257. .annotationLayer .popupWrapper {
  258. position: absolute;
  259. font-size: calc(9px * var(--scale-factor));
  260. width: 100%;
  261. min-width: calc(180px * var(--scale-factor));
  262. pointer-events: none;
  263. }
  264. .annotationLayer .popup {
  265. position: absolute;
  266. z-index: 200;
  267. max-width: calc(180px * var(--scale-factor));
  268. background-color: rgba(255, 255, 153, 1);
  269. box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))
  270. rgba(136, 136, 136, 1);
  271. border-radius: calc(2px * var(--scale-factor));
  272. padding: calc(6px * var(--scale-factor));
  273. margin-left: calc(5px * var(--scale-factor));
  274. cursor: pointer;
  275. font: message-box;
  276. white-space: normal;
  277. word-wrap: break-word;
  278. pointer-events: auto;
  279. }
  280. .annotationLayer .popup > * {
  281. font-size: calc(9px * var(--scale-factor));
  282. }
  283. .annotationLayer .popup h1 {
  284. display: inline-block;
  285. }
  286. .annotationLayer .popupDate {
  287. display: inline-block;
  288. margin-left: calc(5px * var(--scale-factor));
  289. }
  290. .annotationLayer .popupContent {
  291. border-top: 1px solid rgba(51, 51, 51, 1);
  292. margin-top: calc(2px * var(--scale-factor));
  293. padding-top: calc(2px * var(--scale-factor));
  294. }
  295. .annotationLayer .richText > * {
  296. white-space: pre-wrap;
  297. font-size: calc(9px * var(--scale-factor));
  298. }
  299. .annotationLayer .highlightAnnotation,
  300. .annotationLayer .underlineAnnotation,
  301. .annotationLayer .squigglyAnnotation,
  302. .annotationLayer .strikeoutAnnotation,
  303. .annotationLayer .freeTextAnnotation,
  304. .annotationLayer .lineAnnotation svg line,
  305. .annotationLayer .squareAnnotation svg rect,
  306. .annotationLayer .circleAnnotation svg ellipse,
  307. .annotationLayer .polylineAnnotation svg polyline,
  308. .annotationLayer .polygonAnnotation svg polygon,
  309. .annotationLayer .caretAnnotation,
  310. .annotationLayer .inkAnnotation svg polyline,
  311. .annotationLayer .stampAnnotation,
  312. .annotationLayer .fileAttachmentAnnotation {
  313. cursor: pointer;
  314. }
  315. .annotationLayer section svg {
  316. position: absolute;
  317. width: 100%;
  318. height: 100%;
  319. }
  320. :root {
  321. --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
  322. }
  323. @media (forced-colors: active) {
  324. .xfaLayer *:required {
  325. outline: 1.5px solid selectedItem;
  326. }
  327. }
  328. .xfaLayer .highlight {
  329. margin: -1px;
  330. padding: 1px;
  331. background-color: rgba(239, 203, 237, 1);
  332. border-radius: 4px;
  333. }
  334. .xfaLayer .highlight.appended {
  335. position: initial;
  336. }
  337. .xfaLayer .highlight.begin {
  338. border-radius: 4px 0 0 4px;
  339. }
  340. .xfaLayer .highlight.end {
  341. border-radius: 0 4px 4px 0;
  342. }
  343. .xfaLayer .highlight.middle {
  344. border-radius: 0;
  345. }
  346. .xfaLayer .highlight.selected {
  347. background-color: rgba(203, 223, 203, 1);
  348. }
  349. .xfaLayer ::-moz-selection {
  350. background: rgba(0, 0, 255, 1);
  351. }
  352. .xfaLayer ::selection {
  353. background: rgba(0, 0, 255, 1);
  354. }
  355. .xfaPage {
  356. overflow: hidden;
  357. position: relative;
  358. }
  359. .xfaContentarea {
  360. position: absolute;
  361. }
  362. .xfaPrintOnly {
  363. display: none;
  364. }
  365. .xfaLayer {
  366. position: absolute;
  367. text-align: initial;
  368. top: 0;
  369. left: 0;
  370. transform-origin: 0 0;
  371. line-height: 1.2;
  372. }
  373. .xfaLayer * {
  374. color: inherit;
  375. font: inherit;
  376. font-style: inherit;
  377. font-weight: inherit;
  378. font-kerning: inherit;
  379. letter-spacing: -0.01px;
  380. text-align: inherit;
  381. text-decoration: inherit;
  382. box-sizing: border-box;
  383. background-color: transparent;
  384. padding: 0;
  385. margin: 0;
  386. pointer-events: auto;
  387. line-height: inherit;
  388. }
  389. .xfaLayer *:required {
  390. outline: 1.5px solid red;
  391. }
  392. .xfaLayer div {
  393. pointer-events: none;
  394. }
  395. .xfaLayer svg {
  396. pointer-events: none;
  397. }
  398. .xfaLayer svg * {
  399. pointer-events: none;
  400. }
  401. .xfaLayer a {
  402. color: blue;
  403. }
  404. .xfaRich li {
  405. margin-left: 3em;
  406. }
  407. .xfaFont {
  408. color: black;
  409. font-weight: normal;
  410. font-kerning: none;
  411. font-size: 10px;
  412. font-style: normal;
  413. letter-spacing: 0;
  414. text-decoration: none;
  415. vertical-align: 0;
  416. }
  417. .xfaCaption {
  418. overflow: hidden;
  419. flex: 0 0 auto;
  420. }
  421. .xfaCaptionForCheckButton {
  422. overflow: hidden;
  423. flex: 1 1 auto;
  424. }
  425. .xfaLabel {
  426. height: 100%;
  427. width: 100%;
  428. }
  429. .xfaLeft {
  430. display: flex;
  431. flex-direction: row;
  432. align-items: center;
  433. }
  434. .xfaRight {
  435. display: flex;
  436. flex-direction: row-reverse;
  437. align-items: center;
  438. }
  439. .xfaLeft > .xfaCaption,
  440. .xfaLeft > .xfaCaptionForCheckButton,
  441. .xfaRight > .xfaCaption,
  442. .xfaRight > .xfaCaptionForCheckButton {
  443. max-height: 100%;
  444. }
  445. .xfaTop {
  446. display: flex;
  447. flex-direction: column;
  448. align-items: flex-start;
  449. }
  450. .xfaBottom {
  451. display: flex;
  452. flex-direction: column-reverse;
  453. align-items: flex-start;
  454. }
  455. .xfaTop > .xfaCaption,
  456. .xfaTop > .xfaCaptionForCheckButton,
  457. .xfaBottom > .xfaCaption,
  458. .xfaBottom > .xfaCaptionForCheckButton {
  459. width: 100%;
  460. }
  461. .xfaBorder {
  462. background-color: transparent;
  463. position: absolute;
  464. pointer-events: none;
  465. }
  466. .xfaWrapped {
  467. width: 100%;
  468. height: 100%;
  469. }
  470. .xfaTextfield:focus,
  471. .xfaSelect:focus {
  472. background-image: none;
  473. background-color: transparent;
  474. outline: auto;
  475. outline-offset: -1px;
  476. }
  477. .xfaCheckbox:focus,
  478. .xfaRadio:focus {
  479. outline: auto;
  480. }
  481. .xfaTextfield,
  482. .xfaSelect {
  483. height: 100%;
  484. width: 100%;
  485. flex: 1 1 auto;
  486. border: none;
  487. resize: none;
  488. background-image: var(--xfa-unfocused-field-background);
  489. }
  490. .xfaTop > .xfaTextfield,
  491. .xfaTop > .xfaSelect,
  492. .xfaBottom > .xfaTextfield,
  493. .xfaBottom > .xfaSelect {
  494. flex: 0 1 auto;
  495. }
  496. .xfaButton {
  497. cursor: pointer;
  498. width: 100%;
  499. height: 100%;
  500. border: none;
  501. text-align: center;
  502. }
  503. .xfaLink {
  504. width: 100%;
  505. height: 100%;
  506. position: absolute;
  507. top: 0;
  508. left: 0;
  509. }
  510. .xfaCheckbox,
  511. .xfaRadio {
  512. width: 100%;
  513. height: 100%;
  514. flex: 0 0 auto;
  515. border: none;
  516. }
  517. .xfaRich {
  518. white-space: pre-wrap;
  519. width: 100%;
  520. height: 100%;
  521. }
  522. .xfaImage {
  523. -o-object-position: left top;
  524. object-position: left top;
  525. -o-object-fit: contain;
  526. object-fit: contain;
  527. width: 100%;
  528. height: 100%;
  529. }
  530. .xfaLrTb,
  531. .xfaRlTb,
  532. .xfaTb {
  533. display: flex;
  534. flex-direction: column;
  535. align-items: stretch;
  536. }
  537. .xfaLr {
  538. display: flex;
  539. flex-direction: row;
  540. align-items: stretch;
  541. }
  542. .xfaRl {
  543. display: flex;
  544. flex-direction: row-reverse;
  545. align-items: stretch;
  546. }
  547. .xfaTb > div {
  548. justify-content: left;
  549. }
  550. .xfaPosition {
  551. position: relative;
  552. }
  553. .xfaArea {
  554. position: relative;
  555. }
  556. .xfaValignMiddle {
  557. display: flex;
  558. align-items: center;
  559. }
  560. .xfaTable {
  561. display: flex;
  562. flex-direction: column;
  563. align-items: stretch;
  564. }
  565. .xfaTable .xfaRow {
  566. display: flex;
  567. flex-direction: row;
  568. align-items: stretch;
  569. }
  570. .xfaTable .xfaRlRow {
  571. display: flex;
  572. flex-direction: row-reverse;
  573. align-items: stretch;
  574. flex: 1;
  575. }
  576. .xfaTable .xfaRlRow > div {
  577. flex: 1;
  578. }
  579. .xfaNonInteractive input,
  580. .xfaNonInteractive textarea,
  581. .xfaDisabled input,
  582. .xfaDisabled textarea,
  583. .xfaReadOnly input,
  584. .xfaReadOnly textarea {
  585. background: initial;
  586. }
  587. @media print {
  588. .xfaTextfield,
  589. .xfaSelect {
  590. background: transparent;
  591. }
  592. .xfaSelect {
  593. -webkit-appearance: none;
  594. -moz-appearance: none;
  595. appearance: none;
  596. text-indent: 1px;
  597. text-overflow: "";
  598. }
  599. }
  600. :root {
  601. --focus-outline: solid 2px red;
  602. --hover-outline: dashed 2px blue;
  603. --freetext-line-height: 1.35;
  604. --freetext-padding: 2px;
  605. --editorInk-editing-cursor: url(images/toolbarButton-editorInk.svg) 0 16;
  606. }
  607. @media (forced-colors: active) {
  608. :root {
  609. --focus-outline: solid 3px ButtonText;
  610. --hover-outline: dashed 3px ButtonText;
  611. }
  612. }
  613. [data-editor-rotation="90"] {
  614. transform: rotate(90deg);
  615. }
  616. [data-editor-rotation="180"] {
  617. transform: rotate(180deg);
  618. }
  619. [data-editor-rotation="270"] {
  620. transform: rotate(270deg);
  621. }
  622. .annotationEditorLayer {
  623. background: transparent;
  624. position: absolute;
  625. top: 0;
  626. left: 0;
  627. font-size: calc(100px * var(--scale-factor));
  628. transform-origin: 0 0;
  629. }
  630. .annotationEditorLayer .selectedEditor {
  631. outline: var(--focus-outline);
  632. resize: none;
  633. }
  634. .annotationEditorLayer .freeTextEditor {
  635. position: absolute;
  636. background: transparent;
  637. border-radius: 3px;
  638. padding: calc(var(--freetext-padding) * var(--scale-factor));
  639. resize: none;
  640. width: auto;
  641. height: auto;
  642. z-index: 1;
  643. transform-origin: 0 0;
  644. touch-action: none;
  645. }
  646. .annotationEditorLayer .freeTextEditor .internal {
  647. background: transparent;
  648. border: none;
  649. top: 0;
  650. left: 0;
  651. overflow: visible;
  652. white-space: nowrap;
  653. resize: none;
  654. font: 10px sans-serif;
  655. line-height: var(--freetext-line-height);
  656. }
  657. .annotationEditorLayer .freeTextEditor .overlay {
  658. position: absolute;
  659. display: none;
  660. background: transparent;
  661. top: 0;
  662. left: 0;
  663. width: 100%;
  664. height: 100%;
  665. }
  666. .annotationEditorLayer .freeTextEditor .overlay.enabled {
  667. display: block;
  668. }
  669. .annotationEditorLayer .freeTextEditor .internal:empty::before {
  670. content: attr(default-content);
  671. color: gray;
  672. }
  673. .annotationEditorLayer .freeTextEditor .internal:focus {
  674. outline: none;
  675. }
  676. .annotationEditorLayer .inkEditor.disabled {
  677. resize: none;
  678. }
  679. .annotationEditorLayer .inkEditor.disabled.selectedEditor {
  680. resize: horizontal;
  681. }
  682. .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),
  683. .annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {
  684. outline: var(--hover-outline);
  685. }
  686. .annotationEditorLayer .inkEditor {
  687. position: absolute;
  688. background: transparent;
  689. border-radius: 3px;
  690. overflow: auto;
  691. width: 100%;
  692. height: 100%;
  693. z-index: 1;
  694. transform-origin: 0 0;
  695. cursor: auto;
  696. }
  697. .annotationEditorLayer .inkEditor.editing {
  698. resize: none;
  699. cursor: var(--editorInk-editing-cursor), pointer;
  700. }
  701. .annotationEditorLayer .inkEditor .inkEditorCanvas {
  702. position: absolute;
  703. top: 0;
  704. left: 0;
  705. width: 100%;
  706. height: 100%;
  707. touch-action: none;
  708. }
  709. :root {
  710. --viewer-container-height: 0;
  711. --pdfViewer-padding-bottom: 0;
  712. --page-margin: 1px auto -8px;
  713. --page-border: 9px solid transparent;
  714. --page-border-image: url(images/shadow.png) 9 9 repeat;
  715. --spreadHorizontalWrapped-margin-LR: -3.5px;
  716. --scale-factor: 1;
  717. }
  718. @media screen and (forced-colors: active) {
  719. :root {
  720. --pdfViewer-padding-bottom: 9px;
  721. --page-margin: 8px auto -1px;
  722. --page-border: 1px solid CanvasText;
  723. --page-border-image: none;
  724. --spreadHorizontalWrapped-margin-LR: 3.5px;
  725. }
  726. }
  727. [data-main-rotation="90"] {
  728. transform: rotate(90deg) translateY(-100%);
  729. }
  730. [data-main-rotation="180"] {
  731. transform: rotate(180deg) translate(-100%, -100%);
  732. }
  733. [data-main-rotation="270"] {
  734. transform: rotate(270deg) translateX(-100%);
  735. }
  736. .pdfViewer {
  737. padding-bottom: var(--pdfViewer-padding-bottom);
  738. }
  739. .pdfViewer .canvasWrapper {
  740. overflow: hidden;
  741. }
  742. .pdfViewer .page {
  743. direction: ltr;
  744. width: 816px;
  745. height: 1056px;
  746. margin: var(--page-margin);
  747. position: relative;
  748. overflow: visible;
  749. border: var(--page-border);
  750. -o-border-image: var(--page-border-image);
  751. border-image: var(--page-border-image);
  752. background-clip: content-box;
  753. background-color: rgba(255, 255, 255, 1);
  754. }
  755. .pdfViewer .dummyPage {
  756. position: relative;
  757. width: 0;
  758. height: var(--viewer-container-height);
  759. }
  760. .pdfViewer.removePageBorders .page {
  761. margin: 0 auto 10px;
  762. border: none;
  763. }
  764. .pdfViewer.singlePageView {
  765. display: inline-block;
  766. }
  767. .pdfViewer.singlePageView .page {
  768. margin: 0;
  769. border: none;
  770. }
  771. .pdfViewer.scrollHorizontal,
  772. .pdfViewer.scrollWrapped,
  773. .spread {
  774. margin-left: 3.5px;
  775. margin-right: 3.5px;
  776. text-align: center;
  777. }
  778. .pdfViewer.scrollHorizontal,
  779. .spread {
  780. white-space: nowrap;
  781. }
  782. .pdfViewer.removePageBorders,
  783. .pdfViewer.scrollHorizontal .spread,
  784. .pdfViewer.scrollWrapped .spread {
  785. margin-left: 0;
  786. margin-right: 0;
  787. }
  788. .spread .page,
  789. .spread .dummyPage,
  790. .pdfViewer.scrollHorizontal .page,
  791. .pdfViewer.scrollWrapped .page,
  792. .pdfViewer.scrollHorizontal .spread,
  793. .pdfViewer.scrollWrapped .spread {
  794. display: inline-block;
  795. vertical-align: middle;
  796. }
  797. .spread .page,
  798. .pdfViewer.scrollHorizontal .page,
  799. .pdfViewer.scrollWrapped .page {
  800. margin-left: var(--spreadHorizontalWrapped-margin-LR);
  801. margin-right: var(--spreadHorizontalWrapped-margin-LR);
  802. }
  803. .pdfViewer.removePageBorders .spread .page,
  804. .pdfViewer.removePageBorders.scrollHorizontal .page,
  805. .pdfViewer.removePageBorders.scrollWrapped .page {
  806. margin-left: 5px;
  807. margin-right: 5px;
  808. }
  809. .pdfViewer .page canvas {
  810. margin: 0;
  811. display: block;
  812. }
  813. .pdfViewer .page canvas[hidden] {
  814. display: none;
  815. }
  816. .pdfViewer .page .loadingIcon {
  817. position: absolute;
  818. display: block;
  819. left: 0;
  820. top: 0;
  821. right: 0;
  822. bottom: 0;
  823. background: url("images/loading-icon.gif") center no-repeat;
  824. }
  825. .pdfViewer .page .loadingIcon.notVisible {
  826. background: none;
  827. }
  828. .pdfViewer.enablePermissions .textLayer span {
  829. -webkit-user-select: none !important;
  830. -moz-user-select: none !important;
  831. user-select: none !important;
  832. cursor: not-allowed;
  833. }
  834. .pdfPresentationMode .pdfViewer {
  835. padding-bottom: 0;
  836. }
  837. .pdfPresentationMode .spread {
  838. margin: 0;
  839. }
  840. .pdfPresentationMode .pdfViewer .page {
  841. margin: 0 auto;
  842. border: 2px solid transparent;
  843. }