create bookmarks_toolbar_on_newtabs_only.css

This commit is contained in:
MrOtherGuy 2020-08-08 12:01:12 +03:00
parent 1ba9cafab4
commit e4beaafb9e
3 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,28 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/bookmarks_toolbar_on_newtabs_only.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* "Real" show-bookmarks toolbar on new-tabs only - requires extension: https://addons.mozilla.org/addon/ntp_titler/ */
/* This is NOT compatible with autohide_bookmarks_toolbar.css because the collapsing methods are different */
#PersonalToolbar{
--uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
--uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
}
:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px }
:root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
#PersonalToolbar:not([customizing]){
margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
visibility: hidden;
transition: margin-bottom 135ms ease !important;
}
/* The prefixes are set by the above linked extension */
:root[titlepreface="NewTab - "] #PersonalToolbar,
:root[titlepreface="Home - "] #PersonalToolbar,
:root[titlepreface="PrivateBrowsing - "] #PersonalToolbar{
visibility: visible;
margin-bottom: 0px;
}

View file

@ -100,5 +100,6 @@
"vertical_menubar.css":["menubar","hack"], "vertical_menubar.css":["menubar","hack"],
"window_control_placeholder_support.css":["window-control","patch"], "window_control_placeholder_support.css":["window-control","patch"],
"vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"],
"classic_firefox_menu_button.css":["classic","menu"] "classic_firefox_menu_button.css":["classic","menu"],
"bookmarks_toolbar_on_newtabs_only.css":["bookmarks","toolbars","autohide","hiding"]
} }

View file

@ -100,3 +100,4 @@ vertical_menubar.css,menubar,hack
window_control_placeholder_support.css,window-control,patch window_control_placeholder_support.css,window-control,patch
vertical_popup_menubar.css,menubar,menu,toolbars,popup vertical_popup_menubar.css,menubar,menu,toolbars,popup
classic_firefox_menu_button.css,classic,menu classic_firefox_menu_button.css,classic,menu
bookmarks_toolbar_on_newtabs_only.css,bookmarks,toolbars,autohide,hiding

1 autohide_bookmarks_and_main_toolbars.css,autohide,bookmarks,toolbars,nav-bar
100 window_control_placeholder_support.css,window-control,patch
101 vertical_popup_menubar.css,menubar,menu,toolbars,popup
102 classic_firefox_menu_button.css,classic,menu
103 bookmarks_toolbar_on_newtabs_only.css,bookmarks,toolbars,autohide,hiding