Skip to content

Commit

Permalink
Merge pull request #14795 from Snuffleupagus/CSS-reduce-duplication
Browse files Browse the repository at this point in the history
Reduce more duplication in the CSS
  • Loading branch information
timvandermeij authored Apr 19, 2022
2 parents b34fb94 + 1ea9740 commit a115d17
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,13 @@
margin: 0;
}

html {
html,
body {
height: 100%;
width: 100%;
}

body {
height: 100%;
width: 100%;
background-color: var(--body-bg-color);
}

Expand All @@ -200,9 +199,7 @@ select {
scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
}

.hidden {
display: none !important;
}
.hidden,
[hidden] {
display: none !important;
}
Expand Down Expand Up @@ -251,11 +248,6 @@ select {
transition-timing-function: var(--sidebar-transition-timing-function);
}

#outerContainer.sidebarResizing #sidebarContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
}

#outerContainer.sidebarMoving #sidebarContainer,
#outerContainer.sidebarOpen #sidebarContainer {
visibility: visible;
Expand Down Expand Up @@ -298,11 +290,6 @@ select {
transition-timing-function: var(--sidebar-transition-timing-function);
}

#outerContainer.sidebarResizing #viewerContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
}

#outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
inset-inline-start: var(--sidebar-width);
transition-property: inset-inline-start;
Expand Down Expand Up @@ -373,11 +360,6 @@ select {
inset-inline-start: var(--sidebar-width);
}

#outerContainer.sidebarResizing #loadingBar {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
}

#loadingBar .progress {
position: absolute;
top: 0;
Expand Down Expand Up @@ -421,6 +403,13 @@ select {
animation: progressIndeterminate 1s linear infinite;
}

#outerContainer.sidebarResizing #sidebarContainer,
#outerContainer.sidebarResizing #viewerContainer,
#outerContainer.sidebarResizing #loadingBar {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
}

.findbar,
.secondaryToolbar {
top: 32px;
Expand Down

0 comments on commit a115d17

Please sign in to comment.