Advertisement
Guest User

Untitled

a guest
Dec 17th, 2024
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. /*================== BOOKMARKS TOOLBAR AUTOHIDE (added by me) ===========*/
  2.  
  3. #PersonalToolbar{
  4. --uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
  5. --uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
  6. --uc-autohide-toolbar-delay: 100ms; /* The toolbar is hidden after 0.6s */
  7.  
  8. /* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
  9. --uc-autohide-toolbar-focus-rotation: 0deg; /* urlbar is focused */
  10. --uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */
  11. }
  12.  
  13. :root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px; }
  14. :root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
  15.  
  16. #PersonalToolbar:not([customizing]){
  17. position: relative;
  18. margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
  19. transform: rotateX(90deg);
  20. transform-origin: top;
  21. transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;
  22. z-index: 1;
  23. /* The following properties should allow the themes with trasparent toolbars to work */
  24. /*background-color: transparent !important;
  25. background-repeat: no-repeat,no-repeat,var(--lwt-background-tiling);
  26. --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));
  27. background-position: top left,top left,var(--lwt-background-alignment,top left);
  28. background-position-y:top,top,var(--uc-bg-y),var(--uc-bg-y),var(--uc-bg-y);
  29. background-image: var(--toolbar-bgimage), linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image,var(--lwt-additional-images)) !important;*/
  30. }
  31.  
  32. #PlacesToolbarItems > .bookmark-item,
  33. #OtherBookmarks,
  34. #PersonalToolbar > #import-button{
  35. padding-block: var(--uc-bm-padding) !important;
  36. }
  37.  
  38. #nav-bar:focus-within + #PersonalToolbar{
  39. transition-delay: 100ms !important;
  40. transform: rotateX(var(--uc-autohide-toolbar-focus-rotation,0));
  41. }
  42.  
  43. #navigator-toolbox:hover > #PersonalToolbar{
  44. transition-delay: 100ms !important;
  45. transform: rotateX(var(--uc-autohide-toolbar-hover-rotation,0));
  46. }
  47.  
  48. #navigator-toolbox:hover > #nav-bar:focus-within + #PersonalToolbar {
  49. transform: rotateX(0);
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement