Remove uses of :-moz-lwtheme pseudo-class

The pseudo-class is removed in 126, but can be usually be trivially
replaced with :root[lwtheme]
This commit is contained in:
MrOtherGuy
2024-03-20 07:13:32 +02:00
parent 4215caf2b8
commit 2e47c6caa4
7 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ See the above repository for updates as well as full license text. */
}
@media (-moz-platform: windows){
#navigator-toolbox:not(:-moz-lwtheme){ background-color: -moz-dialog !important; }
:root:not([lwtheme]) #navigator-toolbox{ background-color: -moz-dialog !important; }
}
:root[sizemode="fullscreen"],

View File

@@ -71,8 +71,8 @@ See the above repository for updates as well as full license text. */
stroke: var(--lwt-tabs-border-color,transparent);
}
.tabbrowser-tab[selected] > .tab-stack:-moz-lwtheme::before,
.tabbrowser-tab[selected] > .tab-stack:-moz-lwtheme::after{
:root[lwtheme] .tabbrowser-tab[selected] > .tab-stack::before,
:root[lwtheme] .tabbrowser-tab[selected] > .tab-stack::after{
fill: var(--lwt-selected-tab-background-color,var(--toolbar-bgcolor)) !important;
}
.tabbrowser-tab[selected] > .tab-stack::after,
@@ -120,7 +120,7 @@ See the above repository for updates as well as full license text. */
border-top: none !important;
--toolbar-bgcolor: transparent;
}
.tab-background:not(:-moz-lwtheme){
:root:not([lwtheme]) .tab-background{
background-color: var(--lwt-selected-tab-background-color) !important;
}
.tabbrowser-tab[selected] > .tab-stack::before,

View File

@@ -31,7 +31,7 @@ See the above repository for updates as well as full license text. */
--toolbarbutton-inner-padding: 7px !important;
}
/* Few exceptions for default light theme */
#navigator-toolbox:not([movingtab]):-moz-lwtheme > #titlebar > #TabsToolbar{
:root[lwtheme] #navigator-toolbox:not([movingtab]) > #titlebar > #TabsToolbar{
--toolbar-bgcolor: transparent;
}
/* Uncomment this for Fx < 119
@@ -91,7 +91,7 @@ See the above repository for updates as well as full license text. */
outline: none !important;
}
/* This next rule set is needed for Fx 120, otherwise themes with translucent tabs would seem to have extra border separating them from toolbar below. */
#tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background:is([selected], [multiselected]):-moz-lwtheme {
:root[lwtheme] #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background:is([selected], [multiselected]){
background-attachment: scroll, fixed, fixed !important;
background-color: transparent !important;
background-image: linear-gradient(var(--tab-selected-bgcolor, transparent), var(--tab-selected-bgcolor, transparent)), var(--lwt-additional-images,none), var(--lwt-header-image, none) !important;;

View File

@@ -65,7 +65,7 @@ linux_gtk_window_control_patch.css
}
#TabsToolbar:hover{ z-index: 1 }
#TabsToolbar:-moz-lwtheme{ background-color: var(--lwt-accent-color); }
:root[lwtheme] #TabsToolbar{ background-color: var(--lwt-accent-color); }
#TabsToolbar-customization-target{ width: 100vw; }
.tab-background{ border-top-style: none !important; }

View File

@@ -69,7 +69,7 @@ have menubar permanently enabled and want it on top
toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
#navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
#TabsToolbar > .titlebar-buttonbox-container{ visibility: visible }
#navigator-toolbox:not(:-moz-lwtheme){ background-color: -moz-dialog }
:root:not([lwtheme]) #navigator-toolbox{ background-color: -moz-dialog }
/* Uncomment the following if you want bookmarks toolbar to be below tabs */
/*

View File

@@ -8,7 +8,7 @@ See the above repository for updates as well as full license text. */
--toolbar-field-background-color: var(--toolbar-field-non-lwt-bgcolor);
--toolbar-field-focus-background-color: var(--lwt-toolbar-field-focus,Field);
}
:root:-moz-lwtheme{
:root[lwtheme]{
--toolbar-field-background-color: var(--lwt-toolbar-field-background-color);
}

View File

@@ -34,7 +34,7 @@ See the above repository for updates as well as full license text. */
background-color: var(--toolbar-bgcolor);
contain: size;
}
:root:not([customizing]) #tabbrowser-tabs:-moz-lwtheme{
:root[lwtheme]:not([customizing]) #tabbrowser-tabs{
background-color: var(--lwt-accent-color);
}
@media (-moz-bool-pref: "userchrome.vertical-tabs.on-right.enabled"){
@@ -106,7 +106,7 @@ scrollbox[orient="horizontal"]{
display: var(--uc-scrollbutton-display,initial);
}
#titlebar{
will-change: none !important;
will-change: unset !important;
transition: none !important;
opacity: 1 !important;
}