Add [customtitlebar] as alternative to [tabsintitlebar]

This commit is contained in:
MrOtherGuy
2024-11-29 16:35:06 +02:00
parent 9e91c32460
commit 582f97c53e
8 changed files with 13 additions and 13 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[tabsintitlebar] #nav-bar{
:root:is([tabsintitlebar],[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[tabsintitlebar]:not([customizing]) .urlbar-input-container::before{
:root:is([tabsintitlebar],[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[tabsintitlebar] .browser-titlebar,
:root:is([tabsintitlebar],[customtitlebar]) .browser-titlebar,
#titlebar{
opacity: 1 !important;
will-change: unset !important;

View File

@@ -23,7 +23,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[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
:root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}

View File

@@ -29,5 +29,5 @@ See the above repository for updates as well as full license text. */
#nav-bar{ padding-left: 300px; }
#toolbar-menubar > .titlebar-buttonbox-container{ display: none }
:root[tabsintitlebar][sizemode="normal"] .titlebar-spacer,
:root[tabsintitlebar] #TabsToolbar > .titlebar-buttonbox-container{ display: flex !important; }
:root:is([tabsintitlebar],[customtitlebar])[sizemode="normal"] .titlebar-spacer,
:root:is([tabsintitlebar],[customtitlebar]) #TabsToolbar > .titlebar-buttonbox-container{ display: flex !important; }

View File

@@ -58,7 +58,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[tabsintitlebar] :where(#toolbar-menubar:not([autohide="false"])){
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:not([autohide="false"])){
+ #TabsToolbar{
:root[sizemode="normal"] & {
> .titlebar-spacer[type="post-tabs"]{
@@ -78,7 +78,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container{
display: flex !important;
}
:root[tabsintitlebar] :where(#toolbar-menubar:not([autohide="false"])){
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:not([autohide="false"])){
+ #TabsToolbar > :is(.titlebar-buttonbox-container,.titlebar-spacer[type="post-tabs"]){
display: flex !important;
}
@@ -99,7 +99,7 @@ See the above repository for updates as well as full license text. */
:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container{
display: flex !important;
}
:root[tabsintitlebar] :where(#toolbar-menubar:not([autohide="false"])){
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:not([autohide="false"])){
+ #TabsToolbar > :is(.titlebar-buttonbox-container,.titlebar-spacer[type="pre-tabs"]){
display: flex !important;
}
@@ -117,7 +117,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[tabsintitlebar] :where(#toolbar-menubar:not([autohide="false"])){
:root:is([tabsintitlebar],[customtitlebar]) :where(#toolbar-menubar:not([autohide="false"])){
:root[sizemode="normal"] & {
+ #TabsToolbar > .titlebar-spacer[type="pre-tabs"]{
display: flex !important;

View File

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

View File

@@ -39,7 +39,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[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
:root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}

View File

@@ -23,7 +23,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[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
:root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}