curved tabs: use @media based -moz-bool-pref
With this change the optional features now require Firefox 120
This commit is contained in:
@@ -112,7 +112,7 @@ See the above repository for updates as well as full license text. */
|
||||
/* OPTIONAL - COLORS - show tabs border, selected tab line and make selected tab match the main toolbar color. Also disables tab shadow */
|
||||
/* Using these color options requires you to set layout.css.color-mix.enabled to true in about:config */
|
||||
|
||||
@supports -moz-bool-pref("userchrome.curved_tabs.extra-border.enabled"){
|
||||
@media (-moz-bool-pref: "userchrome.curved_tabs.extra-border.enabled"){
|
||||
#navigator-toolbox{ --lwt-tabs-border-color: color-mix(in srgb, currentcolor, white 50%) !important; }
|
||||
:root[lwtheme-brighttext] #navigator-toolbox{ --lwt-tabs-border-color: color-mix(in srgb, currentcolor, black 50%) !important; }
|
||||
#tabbrowser-tabs{ --lwt-selected-tab-background-color: var(--toolbar-bgcolor) }
|
||||
@@ -143,7 +143,7 @@ See the above repository for updates as well as full license text. */
|
||||
}
|
||||
|
||||
/* OPTIONAL - Make some of the buttons in tabs toolbar rounded, which might look nicer especially with large curve size */
|
||||
@supports -moz-bool-pref("userchrome.curved_tabs.round-buttons.enabled"){
|
||||
@media (-moz-bool-pref: "userchrome.curved_tabs.round-buttons.enabled"){
|
||||
#tabs-newtab-button > .toolbarbutton-icon,
|
||||
#TabsToolbar #new-tab-button > .toolbarbutton-icon,
|
||||
#alltabs-button > .toolbarbutton-badge-stack,
|
||||
@@ -151,7 +151,7 @@ See the above repository for updates as well as full license text. */
|
||||
}
|
||||
|
||||
/* OPTIONAL - uncomment the following to flip the curves vertically - maybe useful for tabs on bottom ? */
|
||||
@supports -moz-bool-pref("userchrome.curved_tabs.flipped-curve.enabled"){
|
||||
@media (-moz-bool-pref: "userchrome.curved_tabs.flipped-curve.enabled"){
|
||||
.tab-background{ flex-direction: column-reverse }
|
||||
.tabbrowser-tab:hover > .tab-stack > .tab-background,
|
||||
.tab-background[selected]{ border-radius: 0 0 var(--uc-tab-curve-size) var(--uc-tab-curve-size) !important }
|
||||
|
||||
Reference in New Issue
Block a user