2020-05-22 05:13:58 +00: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 22:39:52 +00:00
|
|
|
#PersonalToolbar{
|
|
|
|
--uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
|
2021-09-17 17:33:22 +00:00
|
|
|
--uc-bm-padding: 7px; /* Vertical padding to be applied to bookmarks */
|
2020-07-06 17:29:51 +00:00
|
|
|
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
|
2020-08-29 02:55:01 +00:00
|
|
|
|
2020-08-29 03:07:07 +00:00
|
|
|
/* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
|
|
|
|
--uc-autohide-toolbar-focus-rotation: 0deg; /* urlbar is focused */
|
|
|
|
--uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */
|
2020-01-04 22:39:52 +00:00
|
|
|
}
|
|
|
|
|
2021-09-17 17:33:22 +00:00
|
|
|
:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px; }
|
2020-08-08 09:00:04 +00:00
|
|
|
:root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
|
2019-05-31 21:14:17 +00:00
|
|
|
|
2019-05-31 21:22:40 +00:00
|
|
|
#PersonalToolbar:not([customizing]){
|
2020-07-06 17:29:51 +00:00
|
|
|
position: relative;
|
2020-07-02 14:17:52 +00:00
|
|
|
margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
|
2020-01-18 20:04:18 +00:00
|
|
|
transform: rotateX(90deg);
|
|
|
|
transform-origin: top;
|
2020-07-06 17:29:51 +00:00
|
|
|
transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;
|
2019-11-14 15:48:20 +00:00
|
|
|
z-index: 1;
|
2021-07-30 21:21:22 +00:00
|
|
|
/* The following properties should allow the themes with trasparent toolbars to work */
|
2021-07-30 21:03:00 +00:00
|
|
|
background-color: transparent !important;
|
2021-09-17 17:33:22 +00:00
|
|
|
background-repeat: no-repeat,no-repeat,var(--lwt-background-tiling);
|
|
|
|
--uc-bg-y: calc(-2 * (var(--tab-block-margin) + var(--toolbarbutton-inner-padding) + var(--toolbarbutton-outer-padding)) - var(--tab-min-height) - 16px - var(--bookmark-block-padding));
|
2021-07-30 21:03:00 +00:00
|
|
|
background-position: top left,top left,var(--lwt-background-alignment,top left);
|
2021-09-17 17:33:22 +00:00
|
|
|
background-position-y:top,top,var(--uc-bg-y),var(--uc-bg-y),var(--uc-bg-y);
|
2021-07-30 21:21:22 +00:00
|
|
|
background-image: var(--toolbar-bgimage), linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image,var(--lwt-additional-images)) !important;
|
2021-07-30 21:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-12-16 14:19:28 +00:00
|
|
|
#PlacesToolbarItems > .bookmark-item,
|
|
|
|
#OtherBookmarks,
|
|
|
|
#PersonalToolbar > #import-button{
|
|
|
|
padding-block: var(--uc-bm-padding) !important;
|
|
|
|
}
|
2019-05-31 21:14:17 +00:00
|
|
|
|
2020-01-10 07:47:54 +00:00
|
|
|
#nav-bar:focus-within + #PersonalToolbar{
|
|
|
|
transition-delay: 100ms !important;
|
2020-08-29 02:55:01 +00:00
|
|
|
transform: rotateX(var(--uc-autohide-toolbar-focus-rotation,0));
|
2020-01-10 07:47:54 +00:00
|
|
|
}
|
2020-01-08 21:51:11 +00:00
|
|
|
|
2020-01-09 15:50:34 +00:00
|
|
|
#navigator-toolbox:hover > #PersonalToolbar{
|
2020-01-18 20:04:18 +00:00
|
|
|
transition-delay: 100ms !important;
|
2020-08-29 02:55:01 +00:00
|
|
|
transform: rotateX(var(--uc-autohide-toolbar-hover-rotation,0));
|
|
|
|
}
|
|
|
|
|
|
|
|
#navigator-toolbox:hover > #nav-bar:focus-within + #PersonalToolbar {
|
2020-01-18 20:04:18 +00: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 15:50:34 +00:00
|
|
|
}
|
2021-09-17 17:33:22 +00:00
|
|
|
*/
|