Replace uses of -moz-bool-pref with -moz-pref

This new media query feature replaces the old -moz-bool-pref in Firefox
137. -moz-pref can be used to also query values of string and number
     prefs
This commit is contained in:
MrOtherGuy
2025-02-13 07:38:04 +02:00
parent 625aad8dbc
commit 6931382f92
18 changed files with 73 additions and 41 deletions

View File

@@ -8,7 +8,8 @@ See the above repository for updates as well as full license text. */
--uc-tabs-hide-animation-delay: 200ms;
}
@media (-moz-bool-pref: "sidebar.verticalTabs"){
@media (-moz-bool-pref: "sidebar.verticalTabs"),
-moz-pref("sidebar.verticalTabs"){
#sidebar-main{
overflow: visible !important;
max-width: var(--tab-collapsed-width) !important;
@@ -37,7 +38,8 @@ See the above repository for updates as well as full license text. */
}
}
}
@media not (-moz-bool-pref: "sidebar.verticalTabs"){
@media not (-moz-bool-pref: "sidebar.verticalTabs"),
not -moz-pref("sidebar.verticalTabs"){
:root:not([customizing],[chromehidden~="menubar"]) #navigator-toolbox:hover,
:root:not([customizing],[chromehidden~="menubar"]) #TabsToolbar{
margin-bottom: calc(0px - 2 * var(--tab-block-margin) - var(--tab-min-height));
@@ -59,7 +61,8 @@ See the above repository for updates as well as full license text. */
transition-delay: 18ms, 0ms !important;
}
}
@media (-moz-bool-pref: "userchrome.autohidetabs.show-while-inactive.enabled"){
@media (-moz-bool-pref: "userchrome.autohidetabs.show-while-inactive.enabled"),
-moz-pref("userchrome.autohidetabs.show-while-inactive.enabled"){
#navigator-toolbox:-moz-window-inactive{
margin-bottom: calc(0px - 2 * var(--tab-block-margin) - var(--tab-min-height));
> #TabsToolbar{