From cb601a0a290b5094b63ca75cd72fbb31a2f4da0e Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 16 May 2024 05:11:36 +0300 Subject: [PATCH] remove old @supports -moz-bool-pref uses --- chrome/centered_statuspanel.css | 8 -------- chrome/floating_findbar_on_top.css | 20 ------------------- chrome/menupopup_forced_color_schemes.css | 10 ---------- chrome/multi-row_tabs_below_content.css | 17 ---------------- chrome/navbar_tabs_oneliner_tabs_on_left.css | 9 --------- chrome/selected_tab_as_urlbar.css | 10 +--------- chrome/tabs_below_content.css | 10 ---------- chrome/tabs_on_bottom.css | 3 --- chrome/window_control_placeholder_support.css | 15 -------------- 9 files changed, 1 insertion(+), 101 deletions(-) diff --git a/chrome/centered_statuspanel.css b/chrome/centered_statuspanel.css index 7c90c21..497f4e7 100644 --- a/chrome/centered_statuspanel.css +++ b/chrome/centered_statuspanel.css @@ -22,11 +22,3 @@ See the above repository for updates as well as full license text. */ border-width: 0 1px 1px 1px !important; } } -@supports -moz-bool-pref("userchrome.centered-statuspanel.on-top.enabled"){ - #statuspanel:not([hidden]){ - inset-block: 0 auto !important; - } - #statuspanel-label{ - border-width: 0 1px 1px 1px !important; - } -} \ No newline at end of file diff --git a/chrome/floating_findbar_on_top.css b/chrome/floating_findbar_on_top.css index fb97ee2..0c8a05a 100644 --- a/chrome/floating_findbar_on_top.css +++ b/chrome/floating_findbar_on_top.css @@ -91,23 +91,3 @@ findbar::after{ border-right: 1px solid var(--chrome-content-separator-color); } } - -@supports -moz-bool-pref("userchrome.floating-findbar-on-right.enabled"){ - findbar{ - flex-direction: row-reverse; - } - findbar > .findbar-container{ - flex-direction: row-reverse; - border-inline-width: 1px 0px; - border-bottom-right-radius: 0px; - border-bottom-left-radius: 4px; - } - /* - Move findbar so it isn't over the scrollbar - Delete if you want findbar to begin from right window edge - */ - findbar{ - margin-right: 16px; - border-right: 1px solid var(--chrome-content-separator-color); - } -} diff --git a/chrome/menupopup_forced_color_schemes.css b/chrome/menupopup_forced_color_schemes.css index 65d307f..a831411 100644 --- a/chrome/menupopup_forced_color_schemes.css +++ b/chrome/menupopup_forced_color_schemes.css @@ -22,13 +22,3 @@ See the above repository for updates as well as full license text. */ color-scheme: dark !important; } } -@supports -moz-bool-pref("userchrome.menupopups.force-light"){ - menupopup{ - color-scheme: light !important; - } -} -@supports -moz-bool-pref("userchrome.menupopups.force-dark"){ - menupopup{ - color-scheme: dark !important; - } -} \ No newline at end of file diff --git a/chrome/multi-row_tabs_below_content.css b/chrome/multi-row_tabs_below_content.css index 2735d87..b4d783e 100644 --- a/chrome/multi-row_tabs_below_content.css +++ b/chrome/multi-row_tabs_below_content.css @@ -239,23 +239,6 @@ See the above repository for updates as well as full license text. */ top: calc(var(--multirow-toolbar-height) + var(--multirow-top-padding) + var(--multirow-menubar-height)); } } - @supports -moz-bool-pref("userchrome.multirowtabs.static-menubar.enabled"){ - :root{ - --multirow-menubar-height: 28px; - --uc-window-drag-space-width: 0px; - --uc-window-control-width: 0px; - } - #main-menubar, - #toolbar-menubar{ height: var(--multirow-menubar-height); background-image: none; } - #toolbar-menubar > #menubar-items{ visibility: visible; background-image: none !important; } - .titlebar-buttonbox-container{ background: none !important } - :root:not([inFullscreen]) #nav-bar{ - top: calc(var(--multirow-menubar-height) + var(--multirow-top-padding)); - } - :root[BookmarksToolbarOverlapsBrowser] #PersonalToolbar{ - top: calc(var(--multirow-toolbar-height) + var(--multirow-top-padding) + var(--multirow-menubar-height)); - } - } @media (-moz-bool-pref: "userchrome.multi-row-tabs.full-width-tabs.enabled"){ .tabbrowser-tab[fadein]:not([pinned]){ max-width: 100vw !important; } } diff --git a/chrome/navbar_tabs_oneliner_tabs_on_left.css b/chrome/navbar_tabs_oneliner_tabs_on_left.css index 204c8d4..ba62b77 100644 --- a/chrome/navbar_tabs_oneliner_tabs_on_left.css +++ b/chrome/navbar_tabs_oneliner_tabs_on_left.css @@ -97,15 +97,6 @@ Window controls will be all wrong without it display: flex; } } -@supports -moz-bool-pref("userchrome.force-window-controls-on-left.enabled"){ - :root:not([inFullscreen]) #TabsToolbar-customization-target > .titlebar-spacer[type="pre-tabs"]{ - width: var(--uc-window-drag-space-post) !important; - display: flex !important; - } - #TabsToolbar > .titlebar-buttonbox-container{ - display: flex; - } -} /* 1px margin on touch density causes tabs to be too high */ .tab-close-button{ margin-top: 0 !important } diff --git a/chrome/selected_tab_as_urlbar.css b/chrome/selected_tab_as_urlbar.css index be45b36..341c24b 100644 --- a/chrome/selected_tab_as_urlbar.css +++ b/chrome/selected_tab_as_urlbar.css @@ -103,15 +103,7 @@ See the above repository for updates as well as full license text. */ z-index: auto; } } - -@supports -moz-bool-pref("userchrome.selected-tab-as-urlbar.nav-buttons-space.disabled"){ - #TabsToolbar > .toolbar-items{ margin-left: 0px } - #nav-bar-customization-target{ margin-left: 0px } - #back-button, #forward-button{ - order: auto; - z-index: auto; - } -} + #nav-bar{ height: calc(var(--tab-min-height) + 2*var(--tab-block-margin)); box-shadow: none !important; diff --git a/chrome/tabs_below_content.css b/chrome/tabs_below_content.css index b573313..31198f1 100644 --- a/chrome/tabs_below_content.css +++ b/chrome/tabs_below_content.css @@ -29,9 +29,6 @@ linux_gtk_window_control_patch.css (-moz-platform: macos){ .titlebar-buttonbox-container{ left:0; right: unset !important; } } -@supports -moz-bool-pref("userchrome.force-window-controls-on-left.enabled"){ - .titlebar-buttonbox-container{ left:0; right: unset !important; } -} :root[uidensity="compact"] .titlebar-buttonbox-container{ height: 32px } @@ -83,10 +80,3 @@ linux_gtk_window_control_patch.css } :root[inFullscreen] #navigator-toolbox:not(:hover) .titlebar-buttonbox-container{ display: none !important; } } - -@supports -moz-bool-pref("browser.fullscreen.autohide"){ - #main-window[inFullscreen]:not([inDOMFullscreen]) > body::after{ - margin-bottom: 1px; - } - :root[inFullscreen] #navigator-toolbox:not(:hover) .titlebar-buttonbox-container{ display: none !important; } -} \ No newline at end of file diff --git a/chrome/tabs_on_bottom.css b/chrome/tabs_on_bottom.css index d6117c5..4acfeae 100644 --- a/chrome/tabs_on_bottom.css +++ b/chrome/tabs_on_bottom.css @@ -24,9 +24,6 @@ have menubar permanently enabled and want it on top (-moz-platform: macos){ .titlebar-buttonbox-container{ left:0; right: unset !important; } } -@supports -moz-bool-pref("userchrome.force-window-controls-on-left.enabled"){ - .titlebar-buttonbox-container{ left:0; right: unset !important; } -} :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px } diff --git a/chrome/window_control_placeholder_support.css b/chrome/window_control_placeholder_support.css index a86dcaa..b4a4efc 100644 --- a/chrome/window_control_placeholder_support.css +++ b/chrome/window_control_placeholder_support.css @@ -83,18 +83,3 @@ See the above repository for updates as well as full license text. */ flex-direction: row-reverse; } } - -/* This pref can be used to force window controls on left even if that is not normal behavior on your OS */ -@supports -moz-bool-pref("userchrome.force-window-controls-on-left.enabled"){ - :root[tabsintitlebar="true"] #nav-bar{ - border-inline-width: calc(var(--uc-window-control-width,0px) + var(--uc-window-drag-space-post,0px)) var(--uc-window-drag-space-pre,0px) - } - :root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child, - :root[sizemode="fullscreen"] #window-controls{ right: unset; } - .titlebar-buttonbox-container{ - order: -1 !important; - } - .titlebar-buttonbox{ - flex-direction: row-reverse; - } -}