Advertisement
Guest User

navbar-oneline

a guest
Dec 10th, 2024
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.88 KB | None | 0 0
  1. /*
  2. With the introduction of firefox's vertical tabs, it collapses the tab
  3. toolbar whenever vertical tabs are enabled. This makes it a lot easier
  4. to get a one-line bar since the browser's code does the leg work.
  5. I no longer have to worry about positioning the window controls as
  6. that's now something the browser does and it gives an easier way to
  7. get the tab bar back in the event I need it, without reloading the browser
  8. (about:config > sidebar.verticalTabs).
  9.  
  10. This method takes advantage of sidebar.verticalTabs and also sidebar.revamp.
  11. */
  12. #vertical-tabs {
  13.     /* I use TreeStyleTab for tabs, so I can hide the vertical tabs from the
  14.     sidebar */
  15.     display: none !important;
  16. }
  17.  
  18. button-group.tools-and-extensions.actions-list moz-button[view="viewCustomizeSidebar"] {
  19.     /* When vertical tabs are enabled, the extensions & actions buttons get
  20.     combined as one box and all moved to the bottom of the bar.
  21.     "Display: none"-ing the vertical tabs bar moves that whole box back to
  22.     up to the top. However, I think it looks goofy when the settings button is
  23.     up there as well, so I disable the settings button. I don't ever need to
  24.     access it anyway.
  25.     If I need to access the settings, I can just ctrl+alt+shift+I to inspect
  26.     the sidebar element and disable this line of code */
  27.  
  28.     /* TODO: (Maybe todo) Statically set the button to be at the bottom of the
  29.     bottom of the bar and create an overflow-clip (or whatever it's called)
  30.     for the rest of the container for tools-and-actions list. */
  31.     visibility: collapse !important;
  32. }
  33.  
  34. #sidebar-main {
  35.     /* Make the navbar and the sidebar matching colors. Just looks better. */
  36.     /* This appears to be the var the browser uses to set navbar's color */
  37.     background-color: var(--toolbox-non-lwt-bgcolor) !important;
  38. }
  39.  
  40. #sidebar-box {
  41.     /* There's a verryyy small sliver that doesn't get affected by setting
  42.     the background-color of #sidebar-main so that's what this is for */
  43.     background-color: var(--toolbox-non-lwt-bgcolor) !important;
  44. }
  45.  
  46. #navigator-toolbox {
  47.     /* Makes the sidebar and navbar a lil more seamless */
  48.     border-bottom: unset !important;
  49. }
  50.  
  51. #nav-bar > hbox.titlebar-spacer {
  52.     /* Turn off the drag space the browser creates for itself. I prefer
  53.     my drag spaces which are put on either side of the URL bar */
  54.     display: none !important;
  55. }
  56.  
  57. #urlbar-container {
  58.     /* make drag space on both sides of the URL bar */
  59.     margin-right: var(--uc_navbar-dragSpace-width) !important;
  60.     margin-left: var(--uc_navbar-dragSpace-width) !important;
  61. }
  62.  
  63. #urlbar-background {
  64.     /* Make the URL bar background stand out in front of the darker navbar */
  65.     background-color: var(--toolbar-bgcolor) !important;
  66. }
  67.  
  68. #main-window[privatebrowsingmode] #urlbar-background {
  69.     /* Makes the fact I'm in a private window a lil more obvious */
  70.     background: #7000b6 !important;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement