Skip to content

Instantly share code, notes, and snippets.

@sys9kdr
Last active December 11, 2015 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sys9kdr/4634475 to your computer and use it in GitHub Desktop.
Save sys9kdr/4634475 to your computer and use it in GitHub Desktop.
Firefox userstylesheet, tabs under nav-bar.
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url("chrome://browser/content/browser.xul"){
#titlebar{
margin-bottom:0 !important;
}
#appmenu-button-container{
min-width:98px !important;
}
#TabsToolbar{
margin:0 -4px 0 -4px !important;
-moz-box-ordinal-group:101 !important;
}
tab,
.tabs-newtab-button,
.tab-content{
-moz-transform:scaleY(-1) !important;
}
#main-window[sizemode="maximized"] #nav-bar{
border-top:1px solid rgba(26,26,26,0.5) !important;
}
toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#addon-bar){
border-bottom:1px solid rgba(26, 26, 26, 0.4) !important;
}
toolbar:not(#toolbar-menubar){
margin-bottom:-1px !important;
}
#main-window[sizemode="maximized"][tabsontop="true"] #TabsToolbar{
margin:0 -126px 0 -103px !important;
}
#main-window[sizemode="maximized"][tabsontop="true"] #toolbar-menubar[autohide="false"] ~ #TabsToolbar,
#main-window[sizemode="maximized"][tabsontop="true"] #titlebar[hidden="true"] ~ #tab-view-deck #TabsToolbar{
margin:0 !important;
}
#nav-bar{
-moz-box-ordinal-group:100 !important;
background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5))!important;/*firefox 16++*/
visibility:visible !important;
}
/*forward button*/
#nav-bar[currentset*="unified-back-forward-button,urlbar-container"] #forward-button[disabled="true"]{
visibility:hidden !important;
}
toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#addon-bar):not(#nav-bar){
-moz-box-ordinal-group:100 !important;
background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5))!important;/*firefox 16++*/
}
#main-window[sizemode="maximized"] #nav-bar{
border-top:1px solid rgba(26,26,26,0.5) !important;
}
toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#addon-bar){
border-bottom:1px solid rgba(26, 26, 26, 0.4) !important;
}
.tabs-newtab-button image[class="toolbarbutton-icon"]{
margin-top:-2px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment