Guest User

Firefox userChrome

a guest
Oct 11th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.40 KB | None | 0 0
  1. /* Fron https://old.reddit.com/r/unixporn/comments/dglm9f/sway_borderlessseamless_get_out_of_my_way_firefox/ */
  2.  
  3.  
  4. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  5.  
  6. :root:not([customizing]) #nav-bar toolbarbutton
  7.  {
  8.     margin-left: -28px !important;
  9.     opacity: 0 !important;
  10.     transform: scale(.85, .85) !important;
  11.     pointer-events: none !important;
  12.     transition: all 100ms var(--animation-easing-function) !important;
  13. }
  14.  
  15. :root:not([customizing]) :hover > #nav-bar toolbarbutton,
  16. :root:not([customizing]) #navigator-toolbox:focus-within #nav-bar toolbarbutton,
  17. :root:not([customizing]) :hover > #titlebar toolbarbutton {
  18.     transform: scale(1, 1) !important;
  19. opacity:1 !important;
  20. margin-left:0 !important;
  21. pointer-events: auto !important;
  22. }
  23.  
  24. #nav-bar {
  25.     height: 0px;
  26.     opacity: 0;
  27.     overflow: hidden;
  28. }
  29.  
  30. /* #nav-bar:hover, */
  31. #nav-bar:focus-within {
  32.     height: auto;
  33.     opacity: 1;
  34.     overflow: visible;
  35. }
  36.  
  37. #navigator-toolbox::after {
  38.     border-bottom: 0px !important;
  39. }
  40.  
  41. /* don't show the blue border around the url bar when focused */
  42. #urlbar, .searchbar-textbox {
  43.   font-size: 12pt !important;
  44.   border: none !important;
  45.   box-shadow: none !important;
  46. }
  47.  
  48. /* hide the one pixel top border for tabs */
  49. .tab-background {
  50.        border-top: none !important;
  51. }
  52.  
  53. /* no blue line on top of the focused tab */
  54. #tabbrowser-tabs {
  55.        --tab-line-color: -moz-win-accentcolor !important;
  56.        --tab-loading-fill: -moz-win-accentcolor !important;
  57. box-shadow: none !important;
  58. }
  59.  
  60.  
  61. /* hide tabs entirely if there's only one */
  62. /*
  63. #tabbrowser-tabs, #tabbrowser-tabs arrowscrollbox { min-height: 0 !important; }
  64. #tabbrowser-tabs tab { height: var(--tab-min-height); }
  65. #tabbrowser-tabs tab:first-child:last-child { display: none !important; }
  66. */
  67.  
  68. /* hide tab bar if only one tab */
  69. tab:only-of-type {
  70.     display:none;
  71. }
  72.  
  73. /* unset the tab bar min-height */
  74. #tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
  75.     min-height: initial !important;
  76. }
  77.  
  78. /* set the height on the tabs instead */
  79. tab {
  80.     line-height: 32px; height: 32px;
  81. }
  82.  
  83. /* hide new tab button so tab-bar can collapse */
  84. .tabs-newtab-button {
  85.     display: none;
  86. }
  87.  
  88. /* ...but show it on tab-bar hover */
  89. #tabbrowser-tabs:hover .tabs-newtab-button {
  90.     display: block;
  91. }
Add Comment
Please, Sign In to add comment