Advertisement
Guest User

Untitled

a guest
Jan 12th, 2022
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1.  
  2.  
  3. /*** Change right-click tab -> reload tab to be first context menu entry (for both single tab and multiple tab selections) ***/
  4. #tabContextMenu #context_reloadTab, #tabContextMenu #context_reloadSelectedTabs {
  5. -moz-box-ordinal-group: 0 !important;
  6. }
  7.  
  8.  
  9.  
  10. /*** Remove print selection (right-click context) ***/
  11. #context-print-selection { display:none!important;}
  12.  
  13.  
  14.  
  15.  
  16.  
  17. /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
  18. menupopup > menuitem, menupopup > menu {
  19. padding-block: 1px !important;
  20. }
  21. :root {
  22. --arrowpanel-menuitem-padding: 1px 2px !important;
  23. }
  24.  
  25. /*** Added to remove extra bookmark spacing after sept 2021 update: https://www.reddit.com/r/FirefoxCSS/comments/pmrp83/latest_update_has_messed_up_bookmark_spacing/ ***/
  26. #PlacesToolbar menuitem {
  27. min-height: 0px !important;
  28. }
  29.  
  30.  
  31.  
  32. /*
  33. FF96 UPDATE
  34. references: https://gist.github.com/tung/439935f55cc83af20defd7867ec89c82; , https://www.reddit.com/r/FirefoxCSS/comments/s1jdr5/firefox_tabbar_completely_messed_up_after_v96/
  35. */
  36. /* remove radius from buttons and tabs */
  37. *|*:root {
  38. --toolbarbutton-border-radius: 0 !important;
  39. --tab-border-radius: 0px !important;
  40. --toolbarbutton-outer-padding: 0 !important;
  41. --toolbarbutton-inner-padding: 8px !important;
  42. --toolbar-start-end-padding: 0 !important;
  43. }
  44.  
  45. /* remove margin from tabs */
  46. .tab-background {
  47. margin-block: 0 !important;
  48. }
  49.  
  50. /* remove padding between tabs */
  51. .tabbrowser-tab {
  52. padding-inline: 0 !important;
  53. }
  54.  
  55. /* add vertical line between tabs */
  56. .tabbrowser-tab:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) .tab-background {
  57. border-right: 1px solid var(--lwt-background-tab-separator-color, rgba(0, 0, 0, 0.2)) !important;
  58. }
  59.  
  60. /* fix for when titlebar gets taller when there are many tabs */
  61. #tabbrowser-arrowscrollbox {
  62. height: var(--tab-min-height);
  63. }
  64.  
  65. /* force tabs to 30px height (added this because they're bit too short when the above fix is applied by itself) */
  66. #tabbrowser-tabs {
  67. height: 30px !important;
  68. }
  69. /*
  70. END OF FF96 UPDATE
  71. */
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  82. See the above repository for updates as well as full license text. */
  83.  
  84.  
  85. :root{ --uc-titlebar-padding: 0px; }
  86. @media (-moz-os-version: windows-win10){
  87. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  88. }
  89. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  90. #TabsToolbar > .titlebar-buttonbox-container{
  91. position: fixed;
  92. display: block;
  93. top: var(--uc-titlebar-padding,0px);
  94. right:0;
  95. height: 40px;
  96. }
  97. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  98. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  99. :root{ --uc-titlebar-padding: 0px !important }
  100. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  101. }
  102.  
  103. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  104.  
  105. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  106.  
  107. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  108.  
  109. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  110.  
  111. #titlebar{
  112. -moz-box-ordinal-group: 2;
  113. -moz-appearance: none !important;
  114. --tabs-navbar-shadow-size: 0px;
  115. }
  116.  
  117. .titlebar-placeholder,
  118. #TabsToolbar .titlebar-spacer{ display: none; }
  119. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  120. #navigator-toolbox::after{ display: none !important; }
  121.  
  122. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  123.  
  124. /* These exist only for compatibility with autohide-tabstoolbar.css */
  125. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  126. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  127.  
  128. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_menubar_on_top_patch.css made available under Mozilla Public License v. 2.0
  129. See the above repository for updates as well as full license text. */
  130.  
  131. /* Menubar on top patch - use with tabs_on_bottom.css */
  132. /* Only really useful if menubar is ALWAYS visible */
  133.  
  134. :root{ --uc-window-control-width: 0px !important }
  135.  
  136. #navigator-toolbox{ padding-top: calc(20px + var(--uc-titlebar-padding,0px)) !important }
  137.  
  138. #toolbar-menubar{
  139. position: fixed;
  140. display: flex;
  141. top: var(--uc-titlebar-padding,0px);
  142. height: 29px;
  143. width: 100%;
  144. overflow: hidden;
  145. }
  146.  
  147. #toolbar-menubar > .titlebar-buttonbox-container{ height: 29px; order: 100; }
  148.  
  149. #toolbar-menubar > [flex]{ flex-grow: 100; }
  150. #toolbar-menubar > spacer[flex]{
  151. order: 99;
  152. flex-grow: 1;
  153. min-width: var(--uc-window-drag-space-width,20px);
  154. }
  155.  
  156. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
  157.  
  158. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  159.  
  160. /* TABS: height adjustment and fix other layout issues */*|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 24px !important;
  161. --tab-min-width: 80px !important;
  162.  
  163. #tabbrowser-tabs {
  164. width: 100vw !important;
  165. }
  166. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
  167.  
  168. .tab-background {
  169. border-radius: 8px 8px 0px 0px !important; border-image: none !important;
  170. }
  171. .tab-line {
  172. display: none;
  173. }
  174.  
  175. .tab-close-button {
  176. color: red!important;
  177. }
  178.  
  179.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement