improve proton compatibility

This commit is contained in:
MrOtherGuy
2021-04-23 11:27:54 +03:00
parent a115193aaa
commit 8d4b1392f2
4 changed files with 33 additions and 9 deletions

View File

@@ -13,8 +13,12 @@ Window controls will be all wrong without it
/* Modify these to change relative widths or default height */
#navigator-toolbox{
--uc-navigationbar-width: 40vw;
--uc-navigationbar-width: 45vw;
--uc-toolbar-height: 40px;
--uc-urlbar-min-width: 50vw; /* minimum width for opened urlbar */
}
@media (-moz-proton){
#scrollbutton-up,#scrollbutton-down{ border-block-width: 2px !important; }
}
/* Override for other densities */
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;}
@@ -56,7 +60,6 @@ Window controls will be all wrong without it
}
#tabbrowser-tabs,
.tabbrowser-tab[pinned]{
height: var(--tab-min-height) !important;
min-height: var(--tab-min-height) !important;
}
#nav-bar{
@@ -80,7 +83,15 @@ Window controls will be all wrong without it
/* 1px margin on touch density causes tabs to be too high */
.tab-close-button{ margin-top: 0 !important }
/* Make opened urlbar overlay the toolbar */
#urlbar[open]:focus-within{
min-width: var(--uc-urlbar-min-width,none) !important;
right: 0 !important;
left: auto !important;
}
/* Hide dropdown placeholder */
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
/* Fix customization view */
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }