Skip to content

Commit

Permalink
Adjusted position of new tab button in vertical tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonnev committed Nov 29, 2024
1 parent 19de3aa commit b9b1f15
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 18 deletions.
27 changes: 21 additions & 6 deletions Private Mode Style/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ toolbar .toolbarbutton-1:not(#back-button):not(#forward-button):not(#reload-butt
}
}
#tabbrowser-arrowscrollbox[orient="vertical"] {
padding: 2px 3px !important;
padding: 2px 3px 2px 2px !important;
}
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab {
Expand Down Expand Up @@ -891,7 +891,7 @@ toolbar .toolbarbutton-1:not(#back-button):not(#forward-button):not(#reload-butt
margin-inline-end: unset !important;
}

/* not expanded vertical tabs */
/** not expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"] {
&:not([expanded]) {
& .tab-background:is([selected], [multiselected]) {
Expand Down Expand Up @@ -936,12 +936,15 @@ toolbar .toolbarbutton-1:not(#back-button):not(#forward-button):not(#reload-butt
}
}
}
#tabbrowser-tabs[orient="vertical"] #tabs-newtab-button {
margin: 4px 5px 4px 5px !important;
background: none !important;

/* position of new tab button in not expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #tabs-newtab-button,
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #vertical-tabs-newtab-button {
margin: 4px auto !important;
background: none !important;
}

/* expanded vertical tabs */
/** expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 0px 4px -1px !important;
background: none !important;
Expand Down Expand Up @@ -1011,6 +1014,18 @@ toolbar .toolbarbutton-1:not(#back-button):not(#forward-button):not(#reload-butt
}
}

/* position of new tab button in expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 3px !important;
padding: 0px 9px !important;
background: none !important;
}
#tabbrowser-tabs[orient="vertical"][expanded] #vertical-tabs-newtab-button {
margin: 4px 5px !important;
padding: 0px 9px !important;
background: none !important;
}

/*** MENUBAR ***/
#menubar-items {
padding-top: 2px !important;
Expand Down
27 changes: 21 additions & 6 deletions Titlebar Enabled/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ toolbarpaletteitem > #stop-reload-button {
}
}
#tabbrowser-arrowscrollbox[orient="vertical"] {
padding: 2px 3px !important;
padding: 2px 3px 2px 2px !important;
}
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab {
Expand Down Expand Up @@ -1194,7 +1194,7 @@ toolbarpaletteitem > #stop-reload-button {
margin-inline-end: unset !important;
}

/* not expanded vertical tabs */
/** not expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"] {
&:not([expanded]) {
& .tab-background:is([selected], [multiselected]) {
Expand Down Expand Up @@ -1239,12 +1239,15 @@ toolbarpaletteitem > #stop-reload-button {
}
}
}
#tabbrowser-tabs[orient="vertical"] #tabs-newtab-button {
margin: 4px 5px 4px 5px !important;
background: none !important;

/* position of new tab button in not expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #tabs-newtab-button,
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #vertical-tabs-newtab-button {
margin: 4px auto !important;
background: none !important;
}

/* expanded vertical tabs */
/** expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 0px 4px -1px !important;
background: none !important;
Expand Down Expand Up @@ -1315,6 +1318,18 @@ toolbarpaletteitem > #stop-reload-button {
}
}

/* position of new tab button in expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 3px !important;
padding: 0px 9px !important;
background: none !important;
}
#tabbrowser-tabs[orient="vertical"][expanded] #vertical-tabs-newtab-button {
margin: 4px 5px !important;
padding: 0px 9px !important;
background: none !important;
}

/* make tab animation in system accent color */
.tab-throbber::before {
fill: LinkText !important;
Expand Down
27 changes: 21 additions & 6 deletions base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ toolbarpaletteitem > #stop-reload-button {
}
}
#tabbrowser-arrowscrollbox[orient="vertical"] {
padding: 2px 3px !important;
padding: 2px 3px 2px 2px !important;
}
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab {
Expand Down Expand Up @@ -1188,7 +1188,7 @@ toolbarpaletteitem > #stop-reload-button {
margin-inline-end: unset !important;
}

/* not expanded vertical tabs */
/** not expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"] {
&:not([expanded]) {
& .tab-background:is([selected], [multiselected]) {
Expand Down Expand Up @@ -1233,12 +1233,15 @@ toolbarpaletteitem > #stop-reload-button {
}
}
}
#tabbrowser-tabs[orient="vertical"] #tabs-newtab-button {
margin: 4px 5px 4px 5px !important;
background: none !important;

/* position of new tab button in not expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #tabs-newtab-button,
#tabbrowser-tabs[orient="vertical"]:not([expanded]) #vertical-tabs-newtab-button {
margin: 4px auto !important;
background: none !important;
}

/* expanded vertical tabs */
/** expanded vertical tabs **/
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 0px 4px -1px !important;
background: none !important;
Expand Down Expand Up @@ -1309,6 +1312,18 @@ toolbarpaletteitem > #stop-reload-button {
}
}

/* position of new tab button in expanded vertical tabs */
#tabbrowser-tabs[orient="vertical"][expanded] #tabs-newtab-button {
margin: 4px 3px !important;
padding: 0px 9px !important;
background: none !important;
}
#tabbrowser-tabs[orient="vertical"][expanded] #vertical-tabs-newtab-button {
margin: 4px 5px !important;
padding: 0px 9px !important;
background: none !important;
}

/* make tab animation in system accent color */
.tab-throbber::before {
fill: LinkText !important;
Expand Down

0 comments on commit b9b1f15

Please sign in to comment.