diff --git a/web/viewer.css b/web/viewer.css index c12cd44307a9e..b2ce01f33d684 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -446,11 +446,13 @@ body { } .editorParamsToolbar { + background-color: var(--doorhanger-bg-color); top: var(--toolbar-height); position: absolute; z-index: 30000; height: auto; - padding: 0 4px; + inset-inline-end: 4px; + padding: 6px 0 10px; margin: 4px 2px; font: message-box; font-size: 12px; @@ -459,13 +461,6 @@ body { cursor: default; } -.editorParamsToolbar { - padding: 6px 0 10px; - inset-inline-end: 4px; - height: auto; - background-color: var(--doorhanger-bg-color); -} - .editorParamsToolbarContainer { width: 220px; margin-bottom: -4px; @@ -1218,27 +1213,8 @@ dialog :link { z-index: 50000; /* should be higher than anything else in PDF.js! */ } -#secondaryToolbar { - background-color: var(--doorhanger-bg-color); - cursor: default; - font: message-box; - font-size: 12px; - height: auto; - inset-inline-end: 4px; - line-height: 14px; - margin: 4px 2px; - padding: 6px 0 10px; - position: absolute; - text-align: left; - top: var(--toolbar-height); - z-index: 30000; - - :is(button, a) { - font: message-box; - outline: none; - } - - .toolbarButton { +.toolbarButton { + &.labeled { border-radius: 0; display: inline-block; height: auto; @@ -1252,6 +1228,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); @@ -1268,15 +1254,26 @@ dialog :link { padding-inline-end: 4px; } } +} - a.toolbarButton { - padding-top: 5px; - text-decoration: none; +#secondaryToolbar { + background-color: var(--doorhanger-bg-color); + cursor: default; + font: message-box; + font-size: 12px; + height: auto; + inset-inline-end: 4px; + line-height: 14px; + margin: 4px 2px; + padding: 6px 0 10px; + position: absolute; + text-align: left; + top: var(--toolbar-height); + z-index: 30000; - &[href="#"] { - opacity: 0.5; - pointer-events: none; - } + :is(button, a) { + font: message-box; + outline: none; } #secondaryToolbarButtonContainer { diff --git a/web/viewer.html b/web/viewer.html index 4a3b266c00d81..9fa087ddaac85 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -227,7 +227,7 @@