Add selectors for urlbar-background as class

This commit is contained in:
MrOtherGuy
2025-08-02 09:51:40 +03:00
parent 14d2fa0d03
commit 8ae2da6590
5 changed files with 6 additions and 3 deletions
+1
View File
@@ -17,6 +17,7 @@ See the above repository for updates as well as full license text. */
.urlbarView-row-inner{ .urlbarView-row-inner{
padding-inline-start: 4px !important; padding-inline-start: 4px !important;
} }
:where(#urlbar) > .urlbar-background,
#urlbar-background{ #urlbar-background{
animation: none !important; animation: none !important;
} }
+1
View File
@@ -16,6 +16,7 @@ menupopup,
/* The rounding is also applied to searchbar and urlbar to look consistent */ /* The rounding is also applied to searchbar and urlbar to look consistent */
searchbar#searchbar, searchbar#searchbar,
:where(#urlbar) > .urlbar-background,
#urlbar-background{ #urlbar-background{
border-radius: var(--uc-menupopup-border-radius) !important border-radius: var(--uc-menupopup-border-radius) !important
} }
+1
View File
@@ -28,6 +28,7 @@ See the above repository for updates as well as full license text. */
} }
.urlbar-input-container > :not(.urlbar-input-box){ opacity: 0 } .urlbar-input-container > :not(.urlbar-input-box){ opacity: 0 }
:where(#urlbar) > .urlbar-background,
#urlbar-background{ #urlbar-background{
background: transparent !important; background: transparent !important;
border: none !important; border: none !important;
+2 -2
View File
@@ -21,11 +21,11 @@ See the above repository for updates as well as full license text. */
z-index: 1; z-index: 1;
inset-inline: 15vw !important; inset-inline: 15vw !important;
} }
:root:not([customizing]) #urlbar:not(:focus-within) > #urlbar-background{ :root:not([customizing]) #urlbar:not(:focus-within) > :is(#urlbar-background,.urlbar-background){
background: transparent !important; background: transparent !important;
border-color: transparent !important; border-color: transparent !important;
} }
:root:not([customizing]) #urlbar:not(:focus-within):hover > #urlbar-background{ :root:not([customizing]) #urlbar:not(:focus-within):hover > :is(#urlbar-background,.urlbar-background){
background: var(--toolbarbutton-hover-background) !important; background: var(--toolbarbutton-hover-background) !important;
} }
#urlbar:not(:focus-within) #page-action-buttons, #urlbar:not(:focus-within) #page-action-buttons,
+1 -1
View File
@@ -33,7 +33,7 @@ See the above repository for updates as well as full license text. */
position: static !important; position: static !important;
padding: calc(2px + var(--urlbar-margin-inline,5px)) !important; padding: calc(2px + var(--urlbar-margin-inline,5px)) !important;
} }
#urlbar[open] > #urlbar-background{ z-index: -1 !important; } #urlbar[open] > :is(#urlbar-background,.urlbar-background){ z-index: -1 !important; }
/* OPTIONAL FEATURES */ /* OPTIONAL FEATURES */