Advertisement
Guest User

Untitled

a guest
Dec 1st, 2021
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.22 KB | None | 0 0
  1. /* Make tabs and navbar appear side-by-side tabs on right */
  2. /* Use page_action_buttons_on_hover.css to hide page-action-buttons to save more space for the address */
  3. /* Toolbars will be shown normally if window width goes below the value below */
  4. @media screen and (min-width: 1100px){
  5.     /* Modify these to change relative widths or default height */
  6.     #navigator-toolbox{
  7.         --uc-navigationbar-width: 34vw;
  8.         --uc-toolbar-height: 32px;
  9.         /*remove single line between page and url/tabbar */
  10.          border-bottom: 0px!important;
  11.     }
  12.     /* prevent urlbar overflow on narrow windows */
  13.     /* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */
  14.     @media screen and (max-width: 1560px){
  15.         #urlbar-container{ min-width:unset !important }
  16.     }
  17.  
  18.     #TabsToolbar{ margin-left: var(--uc-navigationbar-width); }
  19.     #tabbrowser-tabs{ --tab-min-height: var(--uc-toolbar-height) !important; }
  20.  
  21.     /* This isn't useful when tabs start in the middle of the window */
  22.     .titlebar-placeholder[type="pre-tabs"],
  23.     .titlebar-spacer[type="pre-tabs"]{ display: none }
  24.  
  25.     #navigator-toolbox > #nav-bar{
  26.         margin-right:calc(100vw - var(--uc-navigationbar-width));
  27.         margin-top: calc(0px - var(--uc-toolbar-height));
  28.     }
  29.  
  30.     /* Rules specific to window controls on right layout */
  31.     @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  32.         .titlebar-buttonbox-container{ position: fixed; display: block; left: 0px; z-index: 3; }
  33.         :root[tabsintitlebar="true"] #nav-bar{ padding-left: 96px !important; padding-right: 0px !important; }
  34.     }
  35.  
  36.     /* Hide dropdown placeholder */
  37.     #urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
  38. }
  39. /* Fix customization view */
  40. #customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
  41.  
  42. /*--------------------------------------------------------------------------------------------------*/
  43. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_scrollbuttons.css made available under Mozilla Public License v. 2.0
  44. See the above repository for updates as well as full license text. */
  45.  
  46. /* This should hide tabs scrollbuttons in a manner that preserves the ability to move tab strip when reordering tabs */
  47.  
  48. #tabbrowser-tabs:not([movingtab]){ --uc-scroll-visibility: hidden }
  49. #tabbrowser-tabs[overflow]{ --uc-scrollbox-margin: -28px }
  50.  
  51. #scrollbutton-up{ position: relative;z-index: 1 }
  52.  
  53. #scrollbutton-up,
  54. #scrollbutton-down,
  55. #scrollbutton-up ~ spacer{
  56.   visibility: var(--uc-scroll-visibility,visible);
  57. }
  58. .scrollbox-clip{ margin-inline: var(--uc-scrollbox-margin,0); }
  59. #tabbrowser-tabs[overflow][positionpinnedtabs] .tabbrowser-tab[pinned]{
  60.   border-left: 28px solid transparent !important;
  61.   clip-path: padding-box
  62. }
  63.  
  64. /*------------------------------------------------------------------------------------------------------*/
  65. /* my own stuff*/
  66.  
  67.  
  68.  
  69. /*fix tabheight screwing up top bar */
  70. :root {
  71.     --tab-block-margin: 0px!important;
  72. }
  73. /*Scrollbars*/
  74. :-moz-any(#content,#appcontent) browser{
  75.     margin-right:-14px!important;
  76.     overflow-y:scroll;
  77. }
  78.  
  79. /*Hide Close Button until hovered*/
  80. .tabbrowser-tab .tab-close-button{
  81.   display:none;
  82. }
  83. .tabbrowser-tab:not([pinned]):hover .tab-close-button{
  84.   display:-moz-box !important;
  85. }
  86.  
  87. /*Location of buttons for 1 bar setup*/
  88. #main-window[sizemode="maximized"] #downloads-button, #home-button,
  89. #main-window[sizemode="maximized"] #PanelUI-button,
  90. #main-window[sizemode="maximized"] #nav-bar-overflow-button { position: relative !important; }
  91.  
  92. /*hide a bunch of useless information*/
  93. #userContext-indicator,
  94. #userContext-label,
  95. #pageActionButton,
  96. .urlbar-history-dropmarker,
  97. #context-sendimage,
  98. #context-inspect-a11y,
  99. #context-sendvideo,
  100. #context-sendaudio,
  101. #context-navigation,
  102. #context-selectall,
  103. #context-savepage,
  104. #context-inspect,
  105. #context-sendpagetodevice,
  106. #_testpilot-containers-menuitem-0,
  107. #PanelUI-menu-button,
  108. #context-sep-navigation {
  109.     display:none !important;
  110. }
  111.  
  112. /*New tab no flash of white burning my eyes*/
  113. .browserContainer { background-color: black !important; }
  114. #main-window,
  115. browser[type="content-primary"],
  116. browser[type="content"],
  117. tabbrowser#content,
  118. #content,
  119. browser[type="content"] > html
  120. {
  121.     background: #323234 !important;
  122. }
  123.  
  124. /* full height proton tabs */
  125. .tab-background {
  126.     --tab-border-radius: 0;
  127.     --proton-tab-block-margin: 0;
  128. }
  129.  
  130. /* fxx containercolor missing because of full height tabs*/
  131. #tabbrowser-tabs .tab-background {border-top: solid 2px var(--identity-icon-color, #ccc) !important;}
  132.  
  133. /* pinned tabs separator remove*/
  134. #tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] {
  135.     margin-inline-start: 0 !important;
  136. }
  137.  
  138. /* ensure reload is topmost in tabmenu */
  139. #tabContextMenu #context_reloadTab, #tabContextMenu #context_reloadSelectedTabs {
  140.     -moz-box-ordinal-group: 0 !important;
  141. }
  142.  
  143. /* fix tabs resizing on overflow */
  144. #scrollbutton-up, #scrollbutton-down {
  145.     border-top-width: 0 !important;
  146.     border-bottom-width: 0 !important;
  147. }
  148.  
  149. /* Apply dimmed background for inactive tabs */
  150. .tabbrowser-tab:hover>.tab-stack>.tab-background:not([selected], [multiselected]) {
  151.     background-color: color-mix(in srgb, currentColor 8%, transparent);
  152. }
  153. .tabbrowser-tab>.tab-stack>.tab-background:not([selected], [multiselected]) {
  154.     background-color: color-mix(in srgb, currentColor 4%, transparent);
  155. }
  156.  
  157. /* hide collapse indicator in bookmark menu */
  158. .sidebar-placesTreechildren::-moz-tree-twisty{ width: 0 !important; }
  159.  
  160. /* status panel white on black to be less distracting*/
  161. #statuspanel-label,
  162. statuspanel[type="overLink"] #statuspanel-label,
  163. statuspanel[type="status"] #statuspanel-label[value^="Looking"],
  164. statuspanel[type="status"] #statuspanel-label[value^="Connect"],
  165. statuspanel[type="status"] #statuspanel-label[value^="Waiting"],
  166. statuspanel[type="status"] #statuspanel-label[value^="Transfer"]{
  167.   background-color: #111 !important;
  168.   color: #fff !important;
  169. }
  170.  
  171. /* Hide back button only when disabled */
  172. #back-button[disabled="true"] {display: none !important}
  173.  
  174. /* Hide forward button only when disabled */
  175. #forward-button[disabled="true"] {display: none !important}
  176.  
  177. /*hide bookmark star*/
  178. #star-button-box {display: none !important}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement