Skip to content

Commit 763e95d

Browse files
authored
Update userChrome.css - container tabs, auto hide toolbar icons
1 parent 1869c6e commit 763e95d

File tree

1 file changed

+84
-3
lines changed

1 file changed

+84
-3
lines changed

userChrome.css

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ body:not(
245245
/* Extension button scale for macOS */
246246
#unified-extensions-button {
247247
image {
248-
scale: 1.45;
248+
scale: 1.3;
249+
border-radius: 0.75em !important;
249250
}
250251
}
251252

@@ -449,7 +450,7 @@ tab-group > .tab-group-label-container > label.tab-group-label[aria-expanded="tr
449450
#context_bookmarkTab,
450451
#context_moveTabOptions,
451452
#context_sendTabToDevice,
452-
#context_reopenInContainer,
453+
/* #context_reopenInContainer, */
453454
#context_selectAllTabs,
454455
#context_closeDuplicateTabs,
455456
#context_closeTabOptions,
@@ -487,8 +488,35 @@ tab-group > .tab-group-label-container > label.tab-group-label[aria-expanded="tr
487488
#context-sendimage {
488489
display: none !important;
489490
}
491+
492+
--menuitem-padding: 3px !important
493+
}
494+
[hasbeenopened="true"]{
495+
menuitem, menu{
496+
.menu-text{
497+
font-size: 0.93em !important;
498+
padding: 2px 5px !important;
499+
opacity: 1 !important;
500+
transition: all 0.2s ease-in-out !important;
501+
502+
}
503+
504+
&:hover > .menu-text{
505+
padding-left: 8px !important;
506+
padding-right: 2px !important;
507+
}
508+
}
509+
510+
&:has(menu[open="true"]){
511+
& > menuitem .menu-text, menu:not([open="true"]) > .menu-text{
512+
opacity: 0.3 !important;
513+
}
514+
515+
}
490516
}
491517

518+
519+
492520
/*******************************************************************************
493521
* CTRL+TAB SWITCHER STYLING
494522
******************************************************************************/
@@ -700,6 +728,59 @@ body:has(
700728

701729
/* Permanently transparent compact sidebar - fix for zen bug */
702730
#zen-main-app-wrapper[zen-compact-mode="true"] #navigator-toolbox {
731+
/* opacity: 0 !important; */
732+
}
733+
734+
/* auto hide toolbar buttons */
735+
#zen-sidebar-top-buttons{
736+
transition: all 0.3s ease-in-out !important;
737+
margin-top: 0 !important;
738+
padding-top: 5px !important;
739+
}
740+
741+
#navigator-toolbox:not(:has(#nav-bar:hover)):not(:has(#urlbar[open=""])){
742+
#zen-sidebar-top-buttons:not(:hover):not(:has([open="true"])):has(toolbarbutton:not([hidden="true"]):not(#unified-extensions-button)){
743+
margin-top: -20px !important;
744+
margin-bottom: 0 !important;
703745
opacity: 0 !important;
704-
/* display: none !important; */
746+
}
747+
}
748+
749+
750+
/* ======== containers ======= */
751+
tab{
752+
.tab-background{
753+
flex-direction: unset !important;
754+
755+
.tab-context-line{
756+
width: 22px !important;
757+
height: 22px !important;
758+
margin: auto 6px !important;
759+
border-radius: 0.7rem !important;
760+
background-color: transparent !important;
761+
762+
border: 1.5px var(--identity-tab-color) solid !important;
763+
transition: all 0.3s ease-in-out !important;
764+
}
765+
766+
}
767+
&:hover .tab-context-line{
768+
filter: blur(10px) !important;
769+
border: 12px var(--identity-tab-color) solid !important;
770+
771+
}
772+
}
773+
774+
[uidensity="compact"] tab .tab-background .tab-context-line{
775+
margin: auto 5px !important;
776+
}
777+
778+
779+
tab[zen-essential="true"] .tab-background .tab-context-line{
780+
margin: auto !important;
781+
z-index: 1000 !important;
782+
}
783+
784+
tab[discarded=""]:hover, tab[pending="true"]:hover{
785+
filter: grayscale(0) !important;
705786
}

0 commit comments

Comments
 (0)