1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Improve grouping of the secondary toolbar button CSS rules

Using the `:is(a)` selector we can move the previously separate rules
into the main `.toolbarButton` override rules.

Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
This commit is contained in:
Tim van der Meij 2024-08-12 19:47:46 +02:00
parent 2a982e71ed
commit 68bda90777
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762

View file

@ -1247,6 +1247,16 @@ dialog :link {
white-space: normal;
width: auto;
&:is(a) {
padding-top: 5px;
text-decoration: none;
&[href="#"] {
opacity: 0.5;
pointer-events: none;
}
}
&::before {
inset-inline-start: 12px;
opacity: var(--doorhanger-icon-opacity);
@ -1264,16 +1274,6 @@ dialog :link {
}
}
a.toolbarButton {
padding-top: 5px;
text-decoration: none;
&[href="#"] {
opacity: 0.5;
pointer-events: none;
}
}
#secondaryToolbarButtonContainer {
margin-bottom: -4px;
max-height: calc(var(--viewer-container-height) - 40px);