Skip to content

Commit 69b2d30

Browse files
committed
feat(tabs): enhance tab group styling and layout adjustments
1 parent ea3fdc7 commit 69b2d30

File tree

1 file changed

+42
-12
lines changed

1 file changed

+42
-12
lines changed

chrome/toolbar/tabbar.css

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,45 @@
309309
.private-browsing-indicator {
310310
display: none !important;
311311
}
312-
312+
/* Tasb groups */
313+
#tabbrowser-arrowscrollbox {
314+
margin-inline-start: 14px !important;
315+
margin-inline-end: 6px !important;
316+
}
317+
.tab-group-label {
318+
tab-group[collapsed] > .tab-group-label-container > & {
319+
filter: grayscale(0.2);
320+
opacity: 0.8 !important;
321+
}
322+
}
323+
324+
.tab-group-label-container {
325+
@media not (-moz-bool-pref: "sidebar.verticalTabs") {
326+
tab-group:not([collapsed]) > &::after {
327+
display: none !important;
328+
}
329+
}
330+
}
331+
.tab-group-label {
332+
tab-group[collapsed] > .tab-group-label-container > & {
333+
outline: none !important;
334+
}
335+
}
336+
.tab-group-label {
337+
margin-top: 14px !important;
338+
border-radius: 4px !important;
339+
padding-inline: 4px !important
340+
}
341+
/* END:Tasb groups */
313342
toolbarbutton[part="scrollbutton-up"],
314343
toolbarbutton[part="scrollbutton-down"] {
315344
border-width: 2px !important;
316345
border-radius: calc(var(--toolbarbutton-border-radius) + 2px) !important;
317346
margin-inline: 2px !important;
318347
}
319-
320-
.tabbrowser-tab:not([pinned], [style*="max-width"])[fadein] {
348+
:not(tab-group) > .tabbrowser-tab:not([pinned], [style*="max-width"])[fadein] {
321349
max-width: 240px !important;
322350
}
323-
324351
.tabbrowser-tab .tab-stack {
325352
&::before,
326353
&::after {
@@ -394,15 +421,18 @@ toolbarbutton[part="scrollbutton-down"] {
394421
margin-top: var(--tab-block-margin) !important;
395422
}
396423

397-
#tabbrowser-arrowscrollbox:not([overflowing]) .tabbrowser-tab {
398-
&:first-of-type {
399-
margin-inline-start: 14px !important;
400-
}
401-
402-
&:last-of-type {
403-
margin-inline-end: 6px !important;
404-
}
424+
/* #tabbrowser-arrowscrollbox:not([overflowing]) .tabbrowser-tab:first-of-type {
425+
margin-inline-start: 14px !important;
426+
}
427+
#tabbrowser-arrowscrollbox:not([overflowing]) .tabbrowser-tab:last-of-type {
428+
margin-inline-end: 6px !important;
405429
}
430+
#tabbrowser-arrowscrollbox:not([overflowing]) tab-group .tabbrowser-tab:first-of-type {
431+
margin-inline-start: 0px !important;
432+
}
433+
#tabbrowser-arrowscrollbox:not([overflowing]) tab-group .tabbrowser-tab:last-of-type {
434+
margin-inline-end: 0px !important;
435+
} */
406436

407437
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])
408438
> #tabbrowser-arrowscrollbox

0 commit comments

Comments
 (0)