From db8dd681d2afb43151cd29ff9ee78b358b1b13b9 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 6 Dec 2018 21:38:55 +0200 Subject: [PATCH] New file --- chrome/autohide_sidebar.css | 29 ++++++++++++++++++++++ chrome/blank_page_background.css | 6 +++++ chrome/hide_toolbox_top_bottom_borders.css | 10 ++++++++ 3 files changed, 45 insertions(+) create mode 100644 chrome/autohide_sidebar.css create mode 100644 chrome/blank_page_background.css create mode 100644 chrome/hide_toolbox_top_bottom_borders.css diff --git a/chrome/autohide_sidebar.css b/chrome/autohide_sidebar.css new file mode 100644 index 0000000..003f571 --- /dev/null +++ b/chrome/autohide_sidebar.css @@ -0,0 +1,29 @@ +/* Show sidebar only when the cursor is over it */ +/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */ + +#sidebar-box{ + --uc-sidebar-width: 40px; + --uc-sidebar-hover-width: 210px; + position: relative; + min-width: var(--uc-sidebar-width) !important; + width: var(--uc-sidebar-width) !important; +} + +#sidebar-splitter{ display: none } + +#sidebar-header{ overflow: hidden; } + +#sidebar{ + transition: min-width 115ms linear !important; + min-width: var(--uc-sidebar-width) !important; + will-change: min-width; +} + +#sidebar-box:hover > #sidebar{ min-width: var(--uc-sidebar-hover-width) !important; } + +/* Add sidebar divider */ + +#sidebar, +#sidebar-header{ + border-right: 1px solid rgb(80,80,80); +} \ No newline at end of file diff --git a/chrome/blank_page_background.css b/chrome/blank_page_background.css new file mode 100644 index 0000000..2aa543f --- /dev/null +++ b/chrome/blank_page_background.css @@ -0,0 +1,6 @@ +/* Set blank page background-color */ +/* Uses color from theme_colors if available */ + +#tabbrowser-tabpanels{ + background-color: var(--uc-light-bkgnd-color,rgb(46,54,69)) !important; +} \ No newline at end of file diff --git a/chrome/hide_toolbox_top_bottom_borders.css b/chrome/hide_toolbox_top_bottom_borders.css new file mode 100644 index 0000000..3fe6799 --- /dev/null +++ b/chrome/hide_toolbox_top_bottom_borders.css @@ -0,0 +1,10 @@ +#main-window[sizemode="normal"]{ border-top: none !important } +#navigator-toolbox::after{ content: none !important } + +/* OPTIONAL - uncomment to remove still remaining space atop of tabs */ +/* This just increases the height of tabs by few pixels, not decrease the toolbar height */ + +/* Fx pre-65 */ +/* #navigator-toolbox > #TabsToolbar{margin-top: -2px;} */ +/* Fx65+ */ +/* #TabsToolbar > .toolbar-items > spacer{ display: none; } */ \ No newline at end of file