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
+3 -1
View File
@@ -14,6 +14,7 @@ See the above repository for updates as well as full license text. */
#toolbar-menubar{ left:0 }
@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){
#TabsToolbar > .titlebar-buttonbox-container{
@@ -69,7 +70,8 @@ See the above repository for updates as well as full license text. */
#urlbar[open]:focus-within{ min-width: var(--uc-urlbar-min-width,none) !important; }
/* Set this pref if you want unpinned tabs to become hidden unless selected */
@media (-moz-bool-pref: "userchrome.hide-unpinned-tabs.enabled"){
@media (-moz-bool-pref: "userchrome.hide-unpinned-tabs.enabled"),
-moz-pref("userchrome.hide-unpinned-tabs.enabled"){
#alltabs-button{ display: flex !important }
.tabbrowser-tab:not([pinned]):not([selected]){ visibility: collapse }
}