code cleanup: remove uses of [tabsintitlebar]

This commit is contained in:
MrOtherGuy
2025-11-02 06:10:20 +02:00
parent b3c2d27f24
commit 3e6975e347
8 changed files with 14 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ See the above repository for updates as well as full license text. */
order: -1;
margin-inline: 2px var(--uc-window-drag-space-pre,24px) !important;
}
:root:is([tabsintitlebar],[customtitlebar]) #nav-bar{
:root[customtitlebar] #nav-bar{
border-left-width: 0px;
padding-left: 0px !important;
}

View File

@@ -49,7 +49,7 @@ See the above repository for updates as well as full license text. */
content: "";
pointer-events: auto;
}
:root:is([tabsintitlebar],[customtitlebar]):not([customizing]) .urlbar-input-container::before{
:root[customtitlebar]:not([customizing]) .urlbar-input-container::before{
left: var(--uc-window-drag-space-width);
width: calc(100vw - var(--uc-window-control-width) - var(--uc-buttons-width) - 2 * var(--uc-window-drag-space-width));
}
@@ -61,7 +61,7 @@ See the above repository for updates as well as full license text. */
z-index: 1;
pointer-events: none
}
:root:is([tabsintitlebar],[customtitlebar]) .browser-titlebar,
:root[customtitlebar] .browser-titlebar,
#titlebar{
opacity: 1 !important;
will-change: unset !important;

View File

@@ -35,7 +35,7 @@ This will NOT work correctly if you have hidden tabs such as with tab groups ext
}
/* Fix window controls not being clickable */
:root[tabsintitlebar] #toolbar-menubar:not([autohide="true"],[autohide=""])[inactive]{
:root[customtitlebar] #toolbar-menubar:not([autohide="true"],[autohide=""])[inactive]{
transition: height 0ms steps(1) 80ms;
}
:where(#nav-bar){

View File

@@ -26,10 +26,10 @@ See the above repository for updates as well as full license text. */
max-width: 0px !important;
}
#toolbar-menubar > .titlebar-buttonbox-container{ display: none }
:root:is([tabsintitlebar],[customtitlebar]) #TabsToolbar > .titlebar-buttonbox-container{
:root[customtitlebar] #TabsToolbar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar])[sizemode="normal"] #TabsToolbar > .titlebar-spacer{
:root[customtitlebar][sizemode="normal"] #TabsToolbar > .titlebar-spacer{
display: flex !important;
}
@media -moz-pref("userchrome.menubar-in-main-toolbar.tabs-on-bottom.enabled"){
@@ -42,7 +42,7 @@ See the above repository for updates as well as full license text. */
#TabsToolbar#TabsToolbar > :is(.titlebar-buttonbox-container,.titlebar-spacer){
display: none !important;
}
:root:is([tabsintitlebar],[customtitlebar]) #nav-bar > :is(.titlebar-spacer[type="post-tabs"],.titlebar-buttonbox-container){
:root[customtitlebar] #nav-bar > :is(.titlebar-spacer[type="post-tabs"],.titlebar-buttonbox-container){
display: flex !important;
}
}

View File

@@ -59,7 +59,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
:root[customtitlebar] :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
+ #TabsToolbar{
:root[sizemode="normal"] & {
> .titlebar-spacer[type="post-tabs"]{
@@ -79,7 +79,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
:root[customtitlebar] :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
+ #TabsToolbar > :is(.titlebar-buttonbox-container,.titlebar-spacer[type="post-tabs"]){
display: flex !important;
}
@@ -100,7 +100,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
:root[customtitlebar] :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
+ #TabsToolbar > :is(.titlebar-buttonbox-container,.titlebar-spacer[type="pre-tabs"]){
display: flex !important;
}
@@ -118,7 +118,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
:root[customtitlebar] :where(#toolbar-menubar:is([autohide=""],not([autohide="false"]))){
:root[sizemode="normal"] & {
+ #TabsToolbar > .titlebar-spacer[type="pre-tabs"]{
display: flex !important;

View File

@@ -115,6 +115,6 @@ See the above repository for updates as well as full license text. */
background-color: transparent !important;
}
:root:is([tabsintitlebar],[customtitlebar]) #titlebar:has(> #toolbar-menubar:is([autohide="false"],not([autohide]))) + #nav-bar{
:root[customtitlebar] #titlebar:has(> #toolbar-menubar:is([autohide="false"],not([autohide]))) + #nav-bar{
border-inline-width: 0 !important;
}

View File

@@ -41,7 +41,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:is([autohide=""],not([autohide="false"])) ~ #nav-bar{
:root[customtitlebar] #toolbar-menubar:is([autohide=""],not([autohide="false"])) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}

View File

@@ -26,7 +26,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
display: flex !important;
}
:root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:is([autohide=""],not([autohide="false"])) ~ #nav-bar{
:root[customtitlebar] #toolbar-menubar:is([autohide=""],not([autohide="false"])) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}