Advertisement
Guest User

ag.proton + URL bar

a guest
Jun 10th, 2021
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.79 KB | None | 0 0
  1. /*
  2. C O N F I G
  3. */
  4.  
  5.  
  6. :root {
  7.  
  8.     --bar-bg:        #303035;
  9.     --tab-active-bg: #404045;
  10.  
  11. }
  12.  
  13.  
  14.  
  15.  
  16.  
  17. /*
  18. G E N E R A L
  19. */
  20.  
  21.  
  22. window,
  23. #main-window,
  24. #toolbar-menubar,
  25. #TabsToolbar,
  26. #PersonalToolbar,
  27. #navigator-toolbox,
  28. #sidebar-box,
  29. #nav-bar {
  30.  
  31.     background-color: var(--bar-bg) !important;
  32.     -moz-appearance: none !important;
  33.     background-image: none !important;
  34.     border: none !important;
  35.     box-shadow: none !important;
  36.  
  37. }
  38.  
  39.  
  40. #tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] { margin-inline-start: 0 !important; }
  41.  
  42.  
  43. #TabsToolbar { margin-top: -1px !important; margin-bottom: 1px !important; margin-left: 25vw !important; }
  44.  
  45.  
  46.  
  47.  
  48.  
  49. /*
  50. T A B S
  51. */
  52.  
  53. :root {
  54.  
  55.     --tabs-border: transparent !important;
  56.     --toolbox-border-bottom-color: transparent !important;
  57.  
  58. }
  59.  
  60.  
  61. #navigator-toolbox { border: 0px !important; }
  62.  
  63.  
  64. /* Tab Background */
  65. .tabbrowser-tab[selected] > .tab-stack > .tab-background { background: var(--tab-active-bg) !important; }
  66. .tabbrowser-tab:not([selected]) > .tab-stack > .tab-background { background: transparent !important; }
  67.  
  68.  
  69. /* Adaptive Tab Width */
  70. .tabbrowser-tab[selected][fadein]:not([pinned]) { min-width: 205px !important; }
  71. .tabbrowser-tab[fadein]:not([selected]):not([pinned]) { min-width: 115px !important; max-width: 145px !important; }
  72.  
  73.  
  74. /* Show Close Button on active Tab and Mouseover */
  75. #TabsToolbar .tabbrowser-tab[selected=true]:not([pinned]) .close-icon { display: -moz-box !important; }
  76. #TabsToolbar .tabbrowser-tab:not([selected="true"]):not([pinned]):hover .close-icon{ display: -moz-box !important; }
  77.  
  78.  
  79.  
  80.  
  81.  
  82. /*
  83. B U T T O N S
  84. */
  85.  
  86.  
  87. /* This one is the forward button  */
  88. #forward-button { display: none !important; }
  89.  
  90.  
  91. /* This one is the back button  */
  92. #back-button { display: none !important; }
  93.  
  94.  
  95. /* This one is the spacer between tabs and border  */
  96. .titlebar-spacer { display: none !important; }
  97.  
  98.  
  99. /* This one is the "shield" icon  */
  100. #tracking-protection-icon-container { display: none !important; }
  101.  
  102.  
  103. /* This one is the hamburger menu!  */
  104. #PanelUI-button { display: none !important; }
  105.  
  106.  
  107. /* This one removes the close button  */
  108. .tabbrowser-tab:not([pinned]) .tab-close-button { display: none !important; }
  109.  
  110.  
  111. /* Removing the zoom button  */
  112. #urlbar-zoom-button { display: none !important; }
  113.  
  114.  
  115. /* Page action (right three dash button)  */
  116. #pageActionButton { display: none !important; }
  117.  
  118.  
  119.  
  120.  
  121.  
  122. /*
  123. N A V B A R
  124. */
  125.  
  126.  
  127. #navigator-toolbox::after { border: 0px !important; }
  128.  
  129.  
  130. #nav-bar {
  131.  
  132.    
  133.     margin-top: -42px !important; margin-right: 75vw !important; margin-bottom: -1px !important;
  134.  
  135.     box-shadow: none !important;
  136.     border: none !important; border-top-width: 0px !important; border-bottom-width: 0px !important;
  137.  
  138. }
  139.  
  140.  
  141.  
  142.  
  143.  
  144. /*
  145. U R L - B A R
  146. */
  147.  
  148.  
  149. #urlbar, #urlbar * { box-shadow: none !important; }
  150.  
  151.  
  152. #urlbar[breakout] {
  153.  
  154.     top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2 - 1px) !important; left: 0 !important;
  155.  
  156.     margin-inline-start: 0px !important;
  157.     width: 100% !important;
  158.  
  159. }
  160.  
  161.  
  162. @-moz-document url(chrome://browser/content/browser.xhtml) {
  163.     #urlbar[breakout][breakout-extend] > #urlbar-background {
  164.         animation-name: none !important;
  165.         box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  166.     }
  167. }
  168.  
  169.  
  170. #urlbar[breakout]:not([open]) { bottom: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important; }
  171.  
  172.  
  173. #urlbar[breakout-extend] {
  174.  
  175.     top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
  176.     left: calc((var(--urlbar-toolbar-width) - var(--urlbar-width)) / 2) !important;
  177.    
  178.     width: 100% !important;
  179.  
  180. }
  181.  
  182.  
  183. #urlbar[breakout-extend] #urlbar-input-container {
  184.  
  185.     padding: 0px !important;
  186.     height: calc(var(--tab-min-height) - 3px) !important;
  187.  
  188. }
  189.  
  190.  
  191. #urlbar-input-container {
  192.  
  193.     padding: 0 !important;
  194.     height: 100% !important;
  195.  
  196. }
  197.  
  198. #identity-box { display: none; }
  199.  
  200.  
  201. .urlbarView-row { padding: 0px !important; }
  202.  
  203.  
  204. #searchbar {
  205.  
  206.     border: none !important;
  207.     background: var(--bf-bg) !important;
  208.  
  209. }
  210.  
  211.  
  212. .searchbar-textbox {
  213.  
  214.     font-weight: 700 !important;
  215.     color: var(--bf-focus-fg) !important;
  216.  
  217. }
  218.  
  219.  
  220. #urlbar-container { min-width: 150px !important; }
  221.  
  222.  
  223. #urlbar {
  224.  
  225.     box-shadow: none !important;
  226.     border: none !important;
  227.  
  228. }
  229.  
  230.  
  231. #page-action-buttons { display: none !important; }
  232.  
  233.  
  234. .urlbarView {
  235.  
  236.     margin: 0px !important;
  237.     width: 100% !important;
  238.  
  239. }
  240.  
  241.  
  242. #urlbar-label-box, #urlbar-search-mode-indicator { display: none !important; }
  243.  
  244.  
  245. #urlbar-background {
  246.  
  247.     border: transparent !important;
  248.     background-color: var(--bar-bg) !important;
  249.    
  250.     animation: inherit !important;
  251.  
  252. }
  253.  
  254.  
  255. .tab-context-line{ bottom: 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement