mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge pull request #15111 from calixteman/1776914
Add a visible page border in HCM (bug 1776914)
This commit is contained in:
commit
ce63663282
1 changed files with 6 additions and 4 deletions
|
@ -22,6 +22,7 @@
|
||||||
--pdfViewer-padding-bottom: 0;
|
--pdfViewer-padding-bottom: 0;
|
||||||
--page-margin: 1px auto -8px;
|
--page-margin: 1px auto -8px;
|
||||||
--page-border: 9px solid transparent;
|
--page-border: 9px solid transparent;
|
||||||
|
--page-border-image: url(images/shadow.png) 9 9 repeat;
|
||||||
--spreadHorizontalWrapped-margin-LR: -3.5px;
|
--spreadHorizontalWrapped-margin-LR: -3.5px;
|
||||||
--scale-factor: 1;
|
--scale-factor: 1;
|
||||||
}
|
}
|
||||||
|
@ -29,9 +30,10 @@
|
||||||
@media screen and (forced-colors: active) {
|
@media screen and (forced-colors: active) {
|
||||||
:root {
|
:root {
|
||||||
--pdfViewer-padding-bottom: 9px;
|
--pdfViewer-padding-bottom: 9px;
|
||||||
--page-margin: 9px auto 0;
|
--page-margin: 8px auto -1px;
|
||||||
--page-border: none;
|
--page-border: 1px solid CanvasText;
|
||||||
--spreadHorizontalWrapped-margin-LR: 4.5px;
|
--page-border-image: none;
|
||||||
|
--spreadHorizontalWrapped-margin-LR: 3.5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +63,8 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
border: var(--page-border);
|
border: var(--page-border);
|
||||||
|
border-image: var(--page-border-image);
|
||||||
background-clip: content-box;
|
background-clip: content-box;
|
||||||
border-image: url(images/shadow.png) 9 9 repeat;
|
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue