Last active
December 6, 2021 05:03
-
-
Save sonhanguyen/7d3dcab4c8db1dbb38905bbdcadb9379 to your computer and use it in GitHub Desktop.
side panel style for using with Tree Tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash {} /* | |
cd ~/.mozilla/firefox || cd ~/Library/Application\ Support/Firefox* | |
source <(grep Default= profiles.ini) | |
mkdir $Default/chrome | |
tee $Default/chrome/userChrome.css <<EOF | |
/*#region Firefox */ | |
#browser, | |
#navigator-toolbox { | |
/* uniform bg for toolbar, bookmarks (--toolbar-bgcolor) and titlebar (accent color) */ | |
--toolbar-bgcolor: var(--lwt-accent-color-inactive, var(--lwt-accent-color)); | |
} | |
#navigator-toolbox { | |
display: grid; | |
grid-template-columns: auto minmax(0, 1fr) !important; | |
/* render traffic lights next to nav (instead of on top), assuming that title is turned off */ | |
grid-template: "traffic-lights nav" ". bookmark"; | |
} | |
#nav-bar { | |
grid-area: nav; | |
} | |
#titlebar { | |
grid-area: traffic-lights; | |
} | |
.titlebar-spacer { | |
display: none; | |
} | |
#TabsToolbar-customization-target { | |
/* remove tabs */ | |
display: none; | |
} | |
#PersonalToolbar { | |
grid-area: bookmark; | |
} | |
.urlbar-input-box { | |
font-size: 16px; | |
} | |
/* | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment