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:
parent
2a982e71ed
commit
68bda90777
1 changed files with 10 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue