Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. /* Oneliner */
  2. #nav-bar {
  3. margin-top: -34px !important;
  4. margin-right: 138px;
  5. margin-right: calc(100vw - 35px) !important;
  6. position: relative;
  7. border-top: none !important;
  8. max-height: 34px;
  9. background-color: black !important;
  10. transition: margin-right 0.2s cubic-bezier(0.77, 0, 0.175, 1) !important;
  11. z-index: 10 !important;
  12. }
  13.  
  14. #nav-bar:focus-within, #nav-bar:hover {
  15. margin-right: 138px !important; /* browser controls */
  16. margin-left: 0vw !important;
  17. visibility: visible;
  18. }
  19.  
  20. #urlbar-container {
  21. margin-left: -10px;
  22. }
  23.  
  24. #nav-bar #urlbar-container {
  25. margin-left: 0px;
  26. }
  27.  
  28. #PanelUI-button, #nav-bar-overflow-button {
  29. display: none !important;;
  30. }
  31.  
  32. #nav-bar:focus-within #PanelUI-button {
  33. display: inherit !important;;
  34. }
  35.  
  36. #nav-bar:focus-within #nav-bar-overflow-button {
  37. display: inherit !important;;
  38. }
  39.  
  40. /* Keep toolbar open after opening */
  41. toolbarbutton[open="true"] {
  42. display: revert !important;;
  43. }
  44.  
  45. #TabsToolbar {
  46. margin-left: 35px !important;
  47. z-index: 2;
  48. }
  49.  
  50. .titlebar-spacer {
  51. display: none;
  52. }
  53.  
  54.  
  55.  
  56. /* Navigation bar */
  57.  
  58. /* Make it more minimalistic */
  59. #urlbar,
  60. #urlbar:hover, .searchbar-textbox:hover {
  61. box-shadow: 0 0 0 !important;
  62. border: 0 solid transparent !important;
  63. }
  64.  
  65. #urlbar-container {
  66. background: var(--toolbar-bgcolor) !important;
  67. }
  68.  
  69. #urlbar,
  70. .searchbar-textbox,
  71. #urlbar:hover,
  72. .searchbar-textbox:hover {
  73. background: var(--toolbar-bgcolor) !important;
  74. color: var(--toolbar-color) !important;
  75. font-size: 1.1em !important;
  76. border-radius: 0 !important;
  77. outline: none !important;
  78. box-shadow: 0 0 0;
  79. border: 0 solid transparent !important;
  80. -moz-appearance: none;
  81. margin: 0px 0px !important;
  82. }
  83.  
  84. /* Hide search icon */
  85. #identity-box[pageproxystate="invalid"] > #identity-icon {
  86. display: none;
  87. }
  88.  
  89. /* Hide tracking by default */
  90. #tracking-protection-icon-container {
  91. display: none !important;
  92. }
  93.  
  94. #nav-bar:focus-within #tracking-protection-icon-container {
  95. display: -moz-box !important;
  96. position: inherit;
  97. }
  98.  
  99. #tracking-protection-icon-container[open="true"] {
  100. display: -moz-box !important;
  101. position: inherit;
  102. }
  103.  
  104. #PanelUI-button {
  105. margin: 0 !important;
  106. border: none !important;
  107. }
  108.  
  109. /* Tab */
  110.  
  111. /* Always be gray */
  112. .tab-background {
  113. background-image: linear-gradient(var(--lwt-selected-tab-background-color, transparent), var(--lwt-selected-tab-background-color, transparent)), linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)), var(--lwt-header-image, none);
  114. }
  115.  
  116. .tabbrowser-tab {
  117. z-index: 2 !important;
  118. position: relative;
  119. }
  120.  
  121. /* ## Buttons */
  122.  
  123. /* Default */
  124. :root {
  125. --toolbarbutton-border-radius: 0px !important;
  126.  
  127. /* Disable hover color*/
  128. /* --toolbarbutton-hover-background: transparent !important; */
  129. }
  130.  
  131. .toolbarbutton-badge-stack {
  132. background-color: transparent !important;
  133. }
  134.  
  135. toolbarbutton:hover {
  136. background-color: var(--toolbarbutton-hover-background) !important;;
  137. }
  138.  
  139. /* Only show download button is there is something to download */
  140. #downloads-button {
  141. display: none;
  142. }
  143.  
  144. #downloads-button[attention="success"], #downloads-button[progress="true"] {
  145. display: inherit;
  146. }
  147.  
  148. #forward-button {
  149. display: none;
  150. }
  151.  
  152. /* Hide reload button and */
  153.  
  154.  
  155. /* ### Back button*/
  156. #back-button {
  157. border-radius: 0 !important;
  158. }
  159.  
  160. #back-button .toolbarbutton-icon {
  161. margin-left: -2px !important;
  162. margin-right: -2px !important;
  163. border-radius: 0 !important;
  164. background-color: transparent !important;;
  165. border: none !important;
  166. }
  167.  
  168. /* Hide back button if there is no previous page */
  169. #back-button[disabled=true] .toolbarbutton-icon {
  170. visibility: hidden !important;
  171. }
  172.  
  173.  
  174. #nav-bar .webextension-browser-action {
  175. background-color: var(--toolbar-bgcolor);
  176. }
  177.  
  178. #downloads-button, #nav-bar-overflow-button, #PanelUI-button, #nav-bar {
  179. background-color: var(--toolbar-bgcolor);
  180. }
  181.  
  182. /* # Tab Styling */
  183.  
  184. /* Remove border between tabs */
  185. .tabbrowser-tab::after, .tabbrowser-tab::before {
  186. border: none !important;;
  187. }
  188.  
  189. /* Only show close on hover */
  190. .tab-close-button {
  191. display: none;
  192. }
  193.  
  194. tab:hover .tab-close-button {
  195. display: inherit;
  196. }
  197.  
  198. tab[selected="true"] .tab-close-button {
  199. display: inherit;
  200. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement