Skip to content

Instantly share code, notes, and snippets.

@Ben-Kaniobi
Last active August 19, 2016 17:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Ben-Kaniobi/2b4286cd7abb9766e717 to your computer and use it in GitHub Desktop.
Save Ben-Kaniobi/2b4286cd7abb9766e717 to your computer and use it in GitHub Desktop.
userChrome.css
/*
By Ben-Kaniobi
https://gist.github.com/Ben-Kaniobi
Versions:
0.1.6 Updated for Firefox 48; Fixing recommendation pop-up position
0.1.5 Updated for Firefox 42 on Windows 10; Compatibility mode for other script not needed anymore
0.1.4 Compatibility with style "Firefox with Windows 8 colors" can now be selected from dropdown menu on userstyles.org
0.1.3 Minor cosmetic fix: Use right margin to overlap tab borders instead of left margin so the left border is still visible on the first tab
0.1.2 Updated to move the bookmark bar below the address bar
0.1.1 Updated to remove the menu button and small fix
0.1.0 First release
Install:
- Save to "(Firefox profile directory)/chrome/userChrome.css"
or
- Use Stylish addon (https://addons.mozilla.org/de/firefox/addon/stylish/) and install this style at
https://userstyles.org/styles/102428/firefox-anti-australis
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Remove space before first tab */
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
-moz-padding-end: 0 !important;
-moz-padding-start: 0 !important;
}
/* Hide Australis tab styles */
.tab-background-start, .tab-background-end {
visibility: hidden !important;
}
.tab-background-middle {
background: none !important;
}
.tab-background {
background: none !important;
}
/* Remove tab separators */
.tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
background: none !important;
}
/* Remove the menu button */
#PanelUI-menu-button {
display: none !important;
}
/* Tabs on bottom */
#TabsToolbar {
-moz-box-ordinal-group: 100 !important;
}
/* Bookmarks bar under address bar */
#PersonalToolbar {
-moz-box-ordinal-group: 99 !important;
}
/* Move recommendation pop-up up a little bit */
#PopupAutoCompleteRichResult {
margin-top: -3px !important;
}
/* Reduce hight of tabs (and move contents up a bit) */
#tabbrowser-tabs {
min-height: 25px !important;
height: 25px !important;
}
.tab-content {
margin-top: -7px !important;
}
/* New tab button custom shape */
.tabs-newtab-button {
background: none !important;
border: 1px transparent !important;
margin-left: -1px !important;
width: 24px !important;
opacity: 0.3 !important;
}
.tabs-newtab-button:hover {
opacity: 1 !important;
}
/* Tab custom shape and color */
.tabbrowser-tab {
border: 1px solid !important;
border-bottom: none !important;
margin-right: -1px !important;
background: rgba(0,0,0,0.1) !important;
}
.tabbrowser-tab:hover {
background: rgba(128,128,128,0.1) !important;
}
.tabbrowser-tab[selected] {
color: black;
text-shadow: 1px 1px white, -1px -1px white, 1px -1px white, -1px 1px white,
2px 2px 2px white, -2px -2px 2px white, 2px -2px 2px white, -2px 1px 2px white;
background: rgba(255,255,255,0.6) !important;
}
/* Fix tab bar barbackground and border */
#TabsToolbar {
background-image: linear-gradient(#f0f0f0, #f6f6f6) !important;
margin-top: 0px !important;
padding-top: 3px !important;
border: none !important;
box-shadow: none !important;
}
/* Only for Windows 10 */
@media (-moz-os-version: windows-win10) {
/* Fix height of buttons container in title bar */
#titlebar-buttonbox-container {
height: 25px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment