2020-05-22 07:13:58 +02:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2020-01-04 23:39:52 +01:00
|
|
|
#PersonalToolbar{
|
|
|
|
--uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
|
2020-08-08 11:00:04 +02:00
|
|
|
--uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
|
2020-07-06 19:29:51 +02:00
|
|
|
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
|
2020-08-29 04:55:01 +02:00
|
|
|
|
|
|
|
/* 0deg = "show" ; 90deg = "hide" */
|
|
|
|
--uc-autohide-toolbar-focus-rotation: 0deg;
|
|
|
|
--uc-autohide-toolbar-hover-rotation: 0deg;
|
2020-01-04 23:39:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px }
|
2020-08-08 11:00:04 +02:00
|
|
|
:root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
|
2019-05-31 23:14:17 +02:00
|
|
|
|
2019-05-31 23:22:40 +02:00
|
|
|
#PersonalToolbar:not([customizing]){
|
2020-07-06 19:29:51 +02:00
|
|
|
position: relative;
|
2020-07-02 16:17:52 +02:00
|
|
|
margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
|
2020-01-18 21:04:18 +01:00
|
|
|
transform: rotateX(90deg);
|
|
|
|
transform-origin: top;
|
2020-07-06 19:29:51 +02:00
|
|
|
transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;
|
2019-11-14 16:48:20 +01:00
|
|
|
z-index: 1;
|
2019-05-31 23:14:17 +02:00
|
|
|
}
|
2020-08-29 04:55:01 +02:00
|
|
|
|
2020-01-04 23:39:52 +01:00
|
|
|
#PlacesToolbarItems > .bookmark-item{ padding-block: var(--uc-bm-padding) !important; }
|
2019-05-31 23:14:17 +02:00
|
|
|
|
2020-01-03 14:39:36 +01:00
|
|
|
/* SELECT BOOKMARKS TOOLBAR BEHAVIOR */
|
2020-01-08 22:51:11 +01:00
|
|
|
/* Comment out or delete either one of these to disable that behavior */
|
2020-01-03 14:39:36 +01:00
|
|
|
|
2020-01-08 22:51:11 +01:00
|
|
|
/* Show when urlbar is focused */
|
2020-01-10 08:47:54 +01:00
|
|
|
#nav-bar:focus-within + #PersonalToolbar{
|
|
|
|
transition-delay: 100ms !important;
|
2020-08-29 04:55:01 +02:00
|
|
|
transform: rotateX(var(--uc-autohide-toolbar-focus-rotation,0));
|
2020-01-10 08:47:54 +01:00
|
|
|
}
|
2020-01-08 22:51:11 +01:00
|
|
|
|
|
|
|
/* Show when cursor is over the toolbar area */
|
2020-01-09 16:50:34 +01:00
|
|
|
#navigator-toolbox:hover > #PersonalToolbar{
|
2020-01-18 21:04:18 +01:00
|
|
|
transition-delay: 100ms !important;
|
2020-08-29 04:55:01 +02:00
|
|
|
transform: rotateX(var(--uc-autohide-toolbar-hover-rotation,0));
|
|
|
|
}
|
|
|
|
|
|
|
|
#navigator-toolbox:hover > #nav-bar:focus-within + #PersonalToolbar {
|
2020-01-18 21:04:18 +01:00
|
|
|
transform: rotateX(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Uncomment to enable compatibility for multi-row_bookmarks.css */
|
|
|
|
/* This would break buttons placed in the toolbar but that is likely not happening if you are using multi-row setup */
|
|
|
|
/*
|
|
|
|
#PersonalToolbar:not([customizing]){
|
|
|
|
position: fixed;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 0px !important;
|
2020-01-09 16:50:34 +01:00
|
|
|
}
|
2020-08-29 04:55:01 +02:00
|
|
|
*/
|