MozillaZine


89 Change Height Of Tab Bar With New Code

User Help for Mozilla Firefox
tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 6th, 2021, 2:45 am

i use this to change the tabs to the way they were before 89, but id like the tab bar bigger. can someone help me

https://imgur.com/hHAohTc

Code: Select all
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/non_floating_sharp_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* This style makes tabs and related items non-rounded and connects tabs to toolbars like in previous Firefox versions. */

/* It's not strictly a requirement, but this style expects  compact_proton.css to be loaded before it. */

:root{
  --proton-tab-block-margin: 0px !important;
  --tab-block-margin: 0px !important;
  --tabs-shadow-size: 1px !important;
 
  /* Remove next line if you want selected tab to have color other than toolbar background - then it follows your theme color  */
  --lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
 
  /* Uncomment next line to force specific color for tab top line */
  /* --tab-line-color: blue !important; */
}

/* This sets a color for border around tabs and between tabs & navigation toolbars. Set to transparent to remove the border.*/
#navigator-toolbox{
  --tabs-border-color: color-mix(in srgb, currentcolor 30%, transparent) !important;
}

/* This overrides value in compact_proton.css */
#nav-bar{
  box-shadow: 0 -1px 0 0 var(--tabs-border-color) !important;
}

#TabsToolbar{
  --toolbarbutton-inner-padding: 7px !important;
  --toolbar-bgcolor: transparent;
}

#TabsToolbar .toolbarbutton-1 > .toolbarbutton-badge-stack,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important;  }

/* tabs newtab button needs some special styling... */
#tabs-newtab-button{ padding-inline: 0 !important; }
#tabbrowser-arrowscrollbox > #tabs-newtab-button > .toolbarbutton-icon{
  border-radius: 0 !important;
  width: initial !important;
  height: initial !important;
  padding: 9px !important;
}
:root[uidensity="compact"] #tabbrowser-arrowscrollbox > #tabs-newtab-button > .toolbarbutton-icon{
  padding: 7px !important;
}

#scrollbutton-up,
#scrollbutton-down{ border-radius: 0 !important; border-width: 0 !important; padding-inline: 3px !important; }

/* tab shaping */
.tabbrowser-tab{ padding-inline: 0 !important; }

#tabbrowser-tabs[positionpinnedtabs] .tabbrowser-tab[pinned]{ min-height: calc(var(--tab-min-height) + 2px) !important; }

.tab-content[pinned]{ padding-inline: 11px !important; }

.tab-background{
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tab-background[selected]{
  border-inline: 1px solid var(--tabs-border-color) !important;
}


.tab-stack:hover > .tab-background::before{
  background-color: inherit;
}
.tab-stack > .tab-background[selected]::before{
  background-color: highlight;
  background-image: linear-gradient(var(--tab-line-color),var(--tab-line-color));
}
/* Photon-like tab on hover animation for the top line */
@keyframes tab-line-anim{ from{ margin-inline: 20px } to { margin-inline: 0 } }
.tab-background::before{ animation: tab-line-anim 160ms }

/* Disable animation for selected and pinned tabs */
.tabbrowser-tab[pinned] > .tab-stack > .tab-background::before,
.tab-background[selected]{ animation: none }

/* moves context-line to the bottom */
.tab-context-line{ -moz-box-ordinal-group: 2; margin-inline: 10px !important; }

tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 6th, 2021, 9:56 pm

move to top

tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 7th, 2021, 11:49 pm

move to top

jscher2000

User avatar
 
Posts: 11396
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted June 8th, 2021, 2:01 pm

I suggest asking the author of the CSS. Either you can file an issue there on his Github, or he hangs out on https://www.reddit.com/r/FirefoxCSS/

tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 9th, 2021, 8:35 am

move to top

dickvl

User avatar
 
Posts: 53497
Joined: July 18th, 2005, 3:25 am

Post Posted June 9th, 2021, 11:07 am

Try

Code: Select all
*|*:root { --tab-min-height: 35px !important; }

tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 9th, 2021, 12:17 pm

didnt work

jetspeedz
 
Posts: 187
Joined: January 4th, 2013, 12:11 am

Post Posted June 9th, 2021, 2:23 pm

Use this i just went through this hassle again and F Mozilla for doing this again, i don't know why i stick around for this madness. If its not CSS code its plugins they break

:root { --tab-min-height: 0px !important;}
#TabsToolbar, .tabbrowser-tab {max-height: 20px !important;}

tunescool
 
Posts: 71
Joined: May 11th, 2009, 6:22 am

Post Posted June 10th, 2021, 12:14 am

didnt work

Return to Firefox Support


Who is online

Users browsing this forum: Google Adsense [Bot] and 5 guests