Advertisement
Guest User

Untitled

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