syncbehind

userchrome.css

Sep 26th, 2023
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.76 KB | None | 0 0
  1.  
  2. /* Add rounded bezel to browser elements */
  3.  
  4. browser {
  5.  
  6.   border-radius: 10px !important;
  7.  
  8.   margin: 5px !important;
  9.  
  10. }
  11.  
  12.  
  13. /* hides the native tabs */
  14.  
  15. #TabsToolbar {
  16.  
  17.   visibility: collapse;
  18.  
  19. }
  20.  
  21.  
  22.  
  23.  
  24.  
  25. /* remove sidebar header */
  26.  
  27. #sidebar-header {
  28.  
  29.   display: none;
  30.  
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37. /* Makes the window draggable from urlbar when urlbar is not focused. This means you can't click the urlbar text to activate it normally. But right-click works to activate urlbar. */
  38.  
  39.  
  40.  
  41. .urlbar-input-box,#urlbar-input,#urlbar-scheme,#urlbar-container{
  42.  
  43.   -moz-window-dragging: drag;
  44.  
  45.   cursor: default;
  46.  
  47. }
  48.  
  49. #urlbar-input-container > box,
  50.  
  51. #page-action-buttons,
  52.  
  53. #urlbar-container:focus-within,
  54.  
  55. #urlbar-container:focus-within :is(.urlbar-input-box,#urlbar-input,#urlbar-scheme,#urlbar-container){
  56.  
  57.   -moz-window-dragging: no-drag;
  58.  
  59.   cursor: auto;
  60.  
  61. }
  62.  
  63.  
  64.  
  65.  
  66.  
  67. /* Show sidebar only when the cursor is over it  */
  68.  
  69. /* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
  70.  
  71.  
  72.  
  73. #sidebar-box{
  74.  
  75.   --sidebar-width: 60px !important;
  76.  
  77.   --sidebar-hover-width: 300px;
  78.  
  79.   --autohide-sidebar-delay: 200ms;
  80.  
  81.   position: relative;
  82.  
  83.   min-width: var(--sidebar-width) !important;
  84.  
  85.   width: var(--sidebar-width) !important;
  86.  
  87.   max-width: var(--sidebar-width) !important;
  88.  
  89.   z-index:1;
  90.  
  91. }
  92.  
  93.  
  94.  
  95. #sidebar-splitter {
  96.  
  97.   display: none
  98.  
  99. }
  100.  
  101. #sidebar-box > #sidebar {
  102.  
  103.   transition: min-width .25s cubic-bezier(.83, 0, .17, 1) var(--autohide-sidebar-delay) !important;
  104.   min-width: var(--sidebar-width) !important;
  105.  
  106. }
  107.  
  108.  
  109.  
  110. #sidebar-box:hover > #sidebar{
  111.  
  112.   min-width: var(--sidebar-hover-width) !important;
  113.  
  114.   transition-delay: var(--autohide-sidebar-delay) !important;
  115.  
  116. }
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
Advertisement
Add Comment
Please, Sign In to add comment