Guest User

Untitled

a guest
Aug 6th, 2021
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. /*=============================================================================*
  2. * ONELINE PROTON *
  3. * *
  4. * description : An oneline userChrome.css theme for Firefox, which aims to *
  5. * keep the Proton experience. *
  6. * compatibility : Firefox 89+ *
  7. * repository : https://github.com/lr-tech/OnelineProton/ *
  8. * *
  9. * THANKS FOR USING MY USERCHROME! <3 *
  10. *============================================================================*/
  11.  
  12.  
  13. /* S E T T I N G S */
  14.  
  15. :root {
  16. --navbarWidth : 360px; /* Set width of navbar. Use px or vw. */
  17. --animationSpeed : 0.1s;
  18. }
  19.  
  20.  
  21. /* H I D I N G E L E M E N T S */
  22. /* Comment or uncomment depending of what elements you want to hide */
  23.  
  24. /* Back button */
  25. /* #back-button { display: none !important } */
  26.  
  27. /* Hide back button only when disabled */
  28. #back-button[disabled="true"] { display: none !important }
  29.  
  30. /* Forward button */
  31. /* #forward-button { display: none !important } */
  32.  
  33. /* Hide forward button only when disabled */
  34. #forward-button[disabled="true"] { display: none !important }
  35.  
  36. /* "Shield" icon */
  37. #tracking-protection-icon-container { display: none !important }
  38.  
  39. /* Site information button */
  40. #identity-box { display: none !important }
  41.  
  42. /* This is the "Search with" indicator on the urlbar */
  43. /* #urlbar-search-mode-indicator { display: none !important } */
  44.  
  45. /* Zoom button */
  46. /* #urlbar-zoom-button { display: none !important } */
  47.  
  48. /* Page action (right three dash button) */
  49. /* #pageActionButton { display: none !important } */
  50.  
  51. /* These are the buttons on the right of the urlbar */
  52. /* #page-action-buttons { display: none !important } */
  53.  
  54. /* #urlbar-label-box { display: none !important } */
  55.  
  56. /* This one is the hamburger menu! */
  57. /* CAUTION: if you hide this some popups may be bugged */
  58. /* #PanelUI-button { display: none !important } */
  59.  
  60. /* Tab close button */
  61. /* .tab-close-button { display: none !important } */
  62.  
  63.  
  64. /*============================================================================*/
  65.  
  66.  
  67. /* Oneline tweak */
  68.  
  69. #TabsToolbar {
  70. margin-left : var(--navbarWidth) !important;
  71. }
  72.  
  73. .titlebar-spacer {
  74. display : none !important;
  75. }
  76.  
  77. #nav-bar {
  78. margin-right : calc(100vw - var(--navbarWidth)) !important;
  79. box-shadow : none !important;
  80. }
  81.  
  82. #nav-bar:not(:hover):not(:focus-within) {
  83. background : none !important;
  84. }
  85.  
  86. #urlbar-container {
  87. min-width : 0px !important;
  88. }
  89.  
  90. :root[uidensity="compact"] #nav-bar {
  91. margin-top : -37px !important;
  92. height : 37px !important;
  93. }
  94.  
  95. :root:not([uidensity="compact"]):not([uidensity="touch"]) #nav-bar {
  96. margin-top : -44px !important;
  97. height : 44px !important;
  98. }
  99.  
  100. :root[uidensity="touch"] #nav-bar {
  101. margin-top : -49px !important;
  102. height : 49px !important;
  103. }
  104.  
  105. #urlbar-background {
  106. border : none !important;
  107. }
  108.  
  109. #urlbar:not(:hover):not([breakout][breakout-extend]) > #urlbar-background {
  110. box-shadow : none !important;
  111. background : none !important;
  112. }
  113.  
  114.  
  115. /* Hide urlbar elements when not active */
  116.  
  117. .urlbar-icon, #userContext-indicator, #userContext-label {
  118. fill : transparent !important;
  119. background : transparent !important;
  120. color : transparent !important;
  121. }
  122.  
  123. #urlbar:hover .urlbar-icon,
  124. #urlbar:active .urlbar-icon,
  125. #urlbar[focused] .urlbar-icon {
  126. fill : var(--toolbar-color) !important;
  127. }
  128.  
  129.  
  130. /* animations */
  131. toolbarbutton,
  132. .toolbarbutton-icon,
  133. .subviewbutton,
  134. #urlbar-background,
  135. .urlbar-icon,
  136. #userContext-indicator,
  137. #userContext-label,
  138. .urlbar-input-box,
  139. #identity-box,
  140. #tracking-protection-icon-container,
  141. [anonid=urlbar-go-button],
  142. .urlbar-icon-wrapper,
  143. #tracking-protection-icon,
  144. #identity-box image,
  145. stack,
  146. vbox,
  147. tab:not(:active) .tab-background,
  148. tab:not([beforeselected-visible])::after,
  149. tab[visuallyselected] .tab-background::before,
  150. tab[visuallyselected] .tab-background::before,
  151. .tab-close-button {
  152. transition : var(--animationSpeed) !important;
  153. }
  154.  
  155. #nav-bar:focus-within {
  156. z-index : 2 !important;
  157. margin-right : 10vw !important;
  158. transition : ease-out calc(var(--animationSpeed) * 2) !important;
  159. }
Advertisement
Add Comment
Please, Sign In to add comment