Skip to content

Remove/simplify some CSS rules #14772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 11 additions & 20 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ select {
#outerContainer.sidebarResizing #sidebarContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
/* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
user-select: none;
}

#outerContainer.sidebarMoving #sidebarContainer,
Expand Down Expand Up @@ -429,7 +427,6 @@ select {
position: absolute;
z-index: 10000;
height: auto;
min-width: 16px;
padding: 0 4px;
margin: 4px 2px;
color: rgba(217, 217, 217, 1);
Expand Down Expand Up @@ -1066,7 +1063,6 @@ select {

.toolbarField.pageNumber {
-moz-appearance: textfield; /* hides the spinner in moz */
min-width: 16px;
text-align: right;
width: 40px;
}
Expand Down Expand Up @@ -1102,13 +1098,21 @@ select {
padding-inline-start: 3px;
}

#thumbnailView {
#thumbnailView,
#outlineView,
#attachmentsView,
#layersView {
position: absolute;
width: calc(100% - 60px);
width: calc(100% - 8px);
top: 0;
bottom: 0;
padding: 10px 30px 0;
padding: 4px 4px 0;
overflow: auto;
user-select: none;
}
#thumbnailView {
width: calc(100% - 60px);
padding: 10px 30px 0;
}

#thumbnailView > a:active,
Expand Down Expand Up @@ -1169,18 +1173,6 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
color: rgba(255, 255, 255, 1);
}

#outlineView,
#attachmentsView,
#layersView {
position: absolute;
width: calc(100% - 8px);
top: 0;
bottom: 0;
padding: 4px 4px 0;
overflow: auto;
user-select: none;
}

.treeWithDeepNesting > .treeItem,
.treeItem > .treeItems {
margin-inline-start: 20px;
Expand All @@ -1189,7 +1181,6 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
.treeItem > a {
text-decoration: none;
display: inline-block;
min-width: 95%;
/* Subtract the right padding (left, in RTL mode) of the container: */
min-width: calc(100% - 4px);
height: auto;
Expand Down