Advertisement
Guest User

Autohide Sidear

a guest
Jan 28th, 2020
986
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 1 0
  1. /* Show sidebar only when the cursor is over it */
  2. /* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
  3.  
  4. #sidebar-box{
  5. --uc-sidebar-width: 0px;
  6. --uc-sidebar-hover-width: 210px;
  7. position: relative;
  8. min-width: var(--uc-sidebar-width) !important;
  9. width: var(--uc-sidebar-width) !important;
  10. max-width: var(--uc-sidebar-width) !important;
  11. z-index:1;
  12. }
  13.  
  14. #main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; }
  15.  
  16. #sidebar-splitter{ display: none }
  17.  
  18. #sidebar-header{ overflow: hidden; color: var(--chrome-color, inherit) !important}
  19.  
  20. #sidebar{
  21. transition: min-width 60ms linear !important;
  22. min-width: var(--uc-sidebar-width) !important;
  23. will-change: min-width;
  24. }
  25.  
  26. #sidebar-box:hover > #sidebar{ min-width: var(--uc-sidebar-hover-width) !important; }
  27.  
  28. .sidebar-panel{
  29. background-color: transparent !important;
  30. color: var(--newtab-text-primary-color) !important;
  31. }
  32.  
  33. .sidebar-panel #search-box{
  34. -moz-appearance: none !important;
  35. background-color: rgba(249,249,250,0.1) !important;
  36. color: inherit !important;
  37. }
  38.  
  39. /* Add sidebar divider and give it background */
  40.  
  41. #sidebar,
  42. #sidebar-header{
  43. background-color: var(--toolbar-bgcolor) !important;
  44. border-right: 1px solid #000;
  45. }
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement