urlbar_popup_full_width: add workaround for Fx 119 light-dark() problem

This commit is contained in:
MrOtherGuy
2023-11-02 16:35:10 +02:00
parent 576b7d2bd5
commit 7082fc7d64

View File

@@ -50,4 +50,19 @@ See the above repository for updates as well as full license text. */
/* This may seem pretty weird, but it gets around an issue where the height of urlbar may suddenly change when one starts typing into it */
/* If you are otherwise modifying the urlbar height then you might need to modify the height of this too */
#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; }
#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; }
/* This is a workaround for fx 119 specifically for users that use default theme, should remove when 120 is released. See bug 1853524 */
#urlbar:not(:-moz-lwtheme){
--toolbar-bgcolor: #f9f9fb;
--toolbar-field-background-color: rgb(240, 240, 244);
--toolbar-field-focus-background-color: white;
}
/* ...and for dark variant */
@media (prefers-color-scheme: dark){
#urlbar:not(:-moz-lwtheme){
--toolbar-bgcolor: rgb(43, 42, 51);
--toolbar-field-background-color: rgb(28, 27, 34);
--toolbar-field-focus-background-color: rgb(66, 65, 77)
}
}