dawnvoid

userchrome.css

Jan 16th, 2022 (edited)
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.11 KB | None | 0 0
  1. /*
  2.     dawnvoid.neocities.org
  3.     This is my userchrome.css for firefox.
  4. */
  5.  
  6. /*
  7.     This stuff at the top is to stop the window buttons (x, minimize, maximize) from looking funky when using a custom windows theme.
  8. */
  9. .titlebar-button{
  10.     background-color: transparent !important;
  11.     stroke: currentColor !important;
  12. }
  13. .titlebar-button:hover{ background-color: hsla(0,0%,100%,.32) !important }
  14. .titlebar-close:hover{ background-color: hsl(355,86%,49%) !important }
  15. .titlebar-close{ list-style-image: url(chrome://browser/skin/window-controls/close.svg) !important }
  16. .titlebar-min{ list-style-image: url(chrome://browser/skin/window-controls/minimize.svg) !important }
  17. .titlebar-max{ list-style-image: url(chrome://browser/skin/window-controls/maximize.svg) !important }
  18. .titlebar-restore{ list-style-image: url(chrome://browser/skin/window-controls/restore.svg) !important }
  19.  
  20. /*
  21.     This stuff is for hiding the tabs at the top. I'm using the Sidebery extension for vertical tabs, so I don't need horizontal ones.
  22. */
  23. /* #titlebar { visibility: collapse !important; } */
  24. /* #TabsToolbar { display: none; } */
  25. #tabbrowser-tabs { display: none; }
  26. #sidebar-header { display: none; }
  27. /* #sidebar-splitter { display: none; } */
  28.  
  29. /*
  30.     The following is from <https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#hide-horizontal-tabs-at-the-top-of-the-window-1349-1672-2147>
  31.  
  32. */
  33. /* Hide tabs */
  34. /* #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
  35.     opacity: 0;
  36.     pointer-events: none;
  37. }
  38. #main-window:not([tabsintitlebar="true"]) #TabsToolbar {
  39.     visibility: collapse !important;
  40. } */
  41.  
  42. /* Adding empty space for buttons */
  43. #nav-bar {
  44.     margin-right:140px;
  45. }
  46.  
  47. /* 15px for dragging whole window by mouse*/
  48. #titlebar {
  49.     appearance: none !important;
  50.     height: 15px;
  51. }
  52.  
  53. /* Fix for main menu calling by Alt button */
  54. #titlebar > #toolbar-menubar {
  55.     margin-top: 10px;
  56. }
  57.  
  58. /* Move minimize/restore/close buttons to empty space */
  59. #TabsToolbar > .titlebar-buttonbox-container {
  60.     display: block;
  61.     position: absolute;
  62.     top: 17px;
  63.     right: 1px;
  64. }
Add Comment
Please, Sign In to add comment