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

@@ -3,12 +3,14 @@ See the above repository for updates as well as full license text. */
/* This requires Firefox 133+ to work */
@media (-moz-bool-pref: "sidebar.verticalTabs"){
@media (-moz-bool-pref: "sidebar.verticalTabs"),
-moz-pref("sidebar.verticalTabs"){
#sidebar-main{
visibility: collapse;
}
}
@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
-moz-pref("userchrome.force-window-controls-on-left.enabled"){
#nav-bar > .titlebar-buttonbox-container{
order: -1 !important;
> .titlebar-buttonbox{
@@ -16,7 +18,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"){
#TabsToolbar:not([customizing]){
visibility: collapse;
}
@@ -37,6 +40,7 @@ See the above repository for updates as well as full license text. */
display: flex !important;
}
@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
-moz-pref("userchrome.force-window-controls-on-left.enabled"),
(-moz-gtk-csd-reversed-placement),
(-moz-platform: macos){
> .titlebar-spacer[type="post-tabs"]{