Advertisement
Corvust

userchrome

Oct 27th, 2019
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.37 KB | None | 0 0
  1. /* Declaring variables */
  2. :root {
  3.     --ActiveColour: rgba(16,16,16);
  4.     --InactiveColour: rgba(32,32,32);
  5. }
  6.  
  7. /* ================================================================= */
  8.  
  9. /* Clears the window theme colour */
  10. #main-window {
  11.     background-color: transparent !important;
  12. }
  13.  
  14. /* Changes colour of URL bar, nav bar, and curent tab*/
  15. #urlbar,
  16. #nav-bar,
  17. .tab-background[selected="true"] {
  18.     background: var(--ActiveColour) !important;
  19. }
  20.  
  21. /* Changes colour of !current tab and the window buttons */
  22. #TabsToolbar,
  23. .tab-background:not([selected=true]),
  24. .titlebar-min, .titlebar-max, .titlebar-close {
  25.     background: var(--InactiveColour) !important;
  26. }
  27.  
  28. /* ================================================================= */
  29.  
  30. /* Removes title bar spaceer */
  31. .titlebar-spacer[type="pre-tabs"], .titlebar-spacer[type="post-tabs"]{
  32.     width: 10px !important;
  33. }
  34.  
  35. /* Remove border between tabs */
  36. .tabbrowser-tab::after,
  37. .tabbrowser-tab::before {
  38.     border-left: none !important;
  39. }
  40.  
  41. /* Remove stripe on current tab */
  42. .tab-line[selected="true"] {
  43.     display:none !important;
  44. }
  45.  
  46. /* Remove tab hover effect */
  47. .tabbrowser-tab:not([selected]) .tab-line {
  48.     display: none;
  49. }
  50.  
  51. /* Remove space between tabs and min/max/close buttons */
  52. #TabsToolbar {
  53.     margin-right: 0px !important;
  54. }
  55.  
  56. /* Remove navbar bottom line */
  57. #navigator-toolbox {
  58.     border: none !important;
  59. }
  60. #navigator-toolbox::after {
  61.     border: none !important;
  62. }
  63.  
  64. /* Remove border from url bar*/
  65. #urlbar {
  66.     border-width: 0px !important;
  67. }
  68.  
  69. /* Removing various buttons on the url bar */
  70.  
  71. .urlbar-icon {
  72.     display: none;
  73. }
  74.  
  75. #identity-box,
  76. #tracking-protection-icon-container {
  77.     display: none;
  78. }
  79.  
  80. /* Align url to center of bar */
  81. #urlbar-input {
  82.     text-align: center !important;
  83. }
  84.  
  85. /* ================================================================= */
  86.  
  87. /* Resize the back button */
  88. #back-button>.toolbarbutton-icon {
  89.     transform: scale(1.30) !important;
  90. }
  91.  
  92. /* Remove background from back / forward button*/
  93. #back-button:not(:hover), #back-button:not(:hover) > .toolbarbutton-icon,
  94. #forward-button:not(:hover), #forward-button:not(:hover) > .toolbarbutton-icon {
  95.     background: none !important;
  96. }
  97.  
  98. /* Remove background from back / forward button*/
  99. #back-button:hover, #back-button:hover > .toolbarbutton-icon,
  100. #forward-button:hover, #forward-button:hover > .toolbarbutton-icon {
  101.     background: none !important;
  102. }
  103.  
  104. /* ================================================================= */
  105.  
  106. /* Make tab close buttons appear on tab hover, replacing the tab icon */
  107. .tabbrowser-tab .tab-close-button {
  108.     -moz-box-ordinal-group: 0 !important;
  109.     margin: 2px 2px 0px 0px !important;
  110. }
  111.  
  112. .tabbrowser-tab .tab-close-button {
  113.   display: none !important;
  114. }
  115.  
  116. .tabbrowser-tab:not([pinned="true"]):hover .tab-icon-image,
  117. .tabbrowser-tab:not([pinned="true"]):hover .tab-throbber {
  118.     display: none;
  119. }
  120.  
  121. .tabbrowser-tab:not([pinned="true"]):hover .tab-close-button {
  122.     display: -moz-box !important;
  123. }
  124.  
  125. /* ================================================================= */
  126.  
  127. #nav-bar {
  128.     min-height: 0 !important;
  129.     max-height: 0 !important;
  130.     height: 0 !important;
  131.     --moz-transform: scaleY(0) !important;
  132.     transform: scaleY(0) !important;
  133.     transition: all 0.1s ease !important;
  134. }
  135.  
  136. #titlebar:hover~#nav-bar,
  137. #nav-bar:hover,
  138. #nav-bar:focus-within {
  139.     --moz-transform: scale(1) !important;
  140.     transform: scale(1) !important;
  141.     max-height: 36px !important;
  142.     height: 36px !important;
  143.     min-height: 36px !important;
  144. }
  145.  
  146. /* ================================================================= */
  147.  
  148. /* Remove " - Visit" or " - Search with" bar in the drop-down */
  149. #PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
  150. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
  151. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
  152. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"],
  153. #urlbar-results #urlbarView-row-0 {
  154.     display:none !important;
  155. }
  156. /* Hide line for searching sld.tld below "Visit" Line */
  157. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"] +
  158. richlistitem[actiontype="searchengine"] {
  159.     display:none !important;
  160. }
  161. #PopupAutoCompleteRichResult .autocomplete-richlistbox,
  162. #urlbarView-results, #urlbar-results {
  163.     padding-top: 0 !important;
  164.     padding-bottom: 0 !important;
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement