mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 14:54:04 +02:00
Slightly move the resizer on the sidebar (bug 2019585)
And add a white border to the resizer in order to make it visible whatever the background is.
This commit is contained in:
parent
bc8efa190c
commit
241e8c18b9
@ -243,6 +243,7 @@
|
||||
padding-bottom: 16px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
overflow-y: visible;
|
||||
|
||||
#editorCommentsSidebarHeader {
|
||||
width: 100%;
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
--sidebar-max-width: 632px;
|
||||
--sidebar-width: 239px;
|
||||
--resizer-width: 4px;
|
||||
--resizer-shift: calc(0px - var(--resizer-width) - 2px);
|
||||
--resizer-hover-bg-color: light-dark(#0062fa, #00cadb);
|
||||
|
||||
@media screen and (forced-colors: active) {
|
||||
@ -49,6 +50,7 @@
|
||||
max-width: var(--sidebar-max-width);
|
||||
backdrop-filter: var(--sidebar-backdrop-filter);
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
.sidebarResizer {
|
||||
width: var(--resizer-width);
|
||||
@ -56,9 +58,11 @@
|
||||
forced-color-adjust: none;
|
||||
cursor: ew-resize;
|
||||
position: absolute;
|
||||
inset-block: calc(var(--sidebar-padding) + var(--sidebar-border-radius));
|
||||
inset-inline-start: calc(0px - var(--resizer-width) / 2);
|
||||
transition: background-color 0.5s ease-in-out;
|
||||
inset-block: 0;
|
||||
inset-inline-start: var(--resizer-shift);
|
||||
transition:
|
||||
background-color 0.5s ease-in-out,
|
||||
border-color 0.5s ease-in-out;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid transparent;
|
||||
border-block-width: 0;
|
||||
@ -66,6 +70,7 @@
|
||||
|
||||
&:hover {
|
||||
background-color: var(--resizer-hover-bg-color);
|
||||
border-color: white;
|
||||
}
|
||||
&:focus-visible {
|
||||
background-color: var(--resizer-hover-bg-color);
|
||||
|
||||
@ -189,7 +189,7 @@
|
||||
transition-timing-function: var(--sidebar-transition-timing-function);
|
||||
|
||||
.sidebarResizer {
|
||||
inset-inline-start: 100%;
|
||||
inset-inline-start: calc(100% + 4px);
|
||||
}
|
||||
|
||||
.viewsManagerButton {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user