Guest User

Untitled

a guest
May 20th, 2026
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/non_floating_sharp_tabs.css made available under Mozilla Public License v. 2.0
  2. See the above repository for updates as well as full license text. */
  3.  
  4. /* This style makes tabs and related items non-rounded and connects tabs to toolbars like in previous Firefox versions. */
  5.  
  6. :root[id]{
  7. --proton-tab-block-margin: 0px !important;
  8. --tab-block-margin: 0px !important;
  9. --tabs-shadow-size: 1px !important;
  10.  
  11. /* Remove next line if you want selected tab to have color other than toolbar background - then it follows your theme color */
  12. --lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
  13. }
  14.  
  15. /* Uncomment next line to force specific color for tab top line */
  16. /* #tabbrowser-tabs{ --tab-line-color: blue !important; } */
  17.  
  18. /* These next two rules set a color for border around tabs and between tabs & navigation toolbars. Set to transparent to remove the border.*/
  19. #nav-bar{
  20. /* This overrides value in compact_proton.css */
  21. box-shadow: 0 -1px 0 0 color-mix(in srgb, currentcolor 30%, transparent) !important;
  22. }
  23. .tab-background[selected]{
  24. border-inline: 1px solid color-mix(in srgb, currentcolor 30%, transparent) !important;
  25. }
  26.  
  27. #TabsToolbar{
  28. --toolbarbutton-inner-padding: 7px !important;
  29. }
  30. #navigator-toolbox:not([movingtab]) > #titlebar > #TabsToolbar{
  31. --toolbar-bgcolor: transparent;
  32. }
  33.  
  34. #TabsToolbar .toolbarbutton-1 > .toolbarbutton-badge-stack,
  35. #TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; }
  36.  
  37.  
  38.  
  39.  
  40. #scrollbutton-up,
  41. #scrollbutton-down{ border-radius: 0 !important; border-width: 0 !important; padding-inline: 3px !important; }
  42.  
  43. /* tab shaping */
  44. .tabbrowser-tab{ padding-inline: 0 !important; }
  45.  
  46. :root[uidensity="compact"] #tabbrowser-tabs[positionpinnedtabs] .tabbrowser-tab[pinned]{ min-height: calc(var(--tab-min-height) + 2px) !important; }
  47.  
  48. .tab-content[pinned]{ padding-inline: 11px !important; }
  49.  
  50. .tab-background{
  51. border-radius: 0 !important;
  52. box-shadow: none !important;
  53. }
  54.  
  55. /* Line to mark selected tab */
  56. .tab-background[selected]::before,
  57. .tabbrowser-tab:hover > stack > .tab-background::before{
  58. display: -moz-box;
  59. height: 2px;
  60. content: "";
  61. }
  62. .tab-stack:hover > .tab-background::before{
  63. background-color: inherit;
  64. }
  65. .tab-stack > .tab-background[selected]::before{
  66. background-color: highlight;
  67. background-image: linear-gradient(var(--tab-line-color),var(--tab-line-color));
  68. }
  69. /* Photon-like tab on hover animation for the top line */
  70. @keyframes tab-onhover-line-anim{ from{ margin-inline: 20px } to { margin-inline: 0 } }
  71.  
  72. .tab-stack:hover > .tab-background::before{ animation: tab-onhover-line-anim 160ms }
  73.  
  74. /* Disable animation for selected and pinned tabs */
  75. .tabbrowser-tab:is([pinned],[selected]) > .tab-stack > .tab-background::before{ animation: none }
  76.  
  77. /* moves context-line to the bottom */
  78. .tab-context-line{ -moz-box-ordinal-group: 2; margin-inline: 10px !important; }
  79.  
  80.  
  81. /* gets rid of the space at the end of the tab bar */
  82. .titlebar-spacer[type="post-tabs"]{ display: none }
  83.  
  84.  
  85.  
  86.  
  87. /* ### ### PhotonUI Sharp Tabs, Non floating ### ### */
  88. @import "non_floating_sharp_tabs.css";
  89.  
  90. /* DISABLE URL BORDER FATNESS */
  91.  
  92. #nav-bar{ --toolbar-field-focus-border-color: transparent}
  93.  
  94.  
  95. /* This gets rid of the shadow, prevents the expansion of the URL bar*/
  96.  
  97. #urlbar:focus-within > #urlbar-background {
  98. box-shadow: none !important;
  99. border-color: -moz-accent-color !important;
  100. border-width: 1px !important;
  101. }
  102.  
  103. /*#urlbar[breakout][breakout-extend] {
  104. /* top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
  105. /* left: 0 !important;
  106. /* width: 100% !important;
  107. /*}
  108.  
  109. #urlbar[breakout][breakout-extend] > #urlbar-input-container {
  110. height: var(--urlbar-height) !important;
  111. padding-block: 0 !important;
  112. padding-inline: 0 !important;
  113. }
  114.  
  115.  
  116. /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
  117. menupopup:not(.in-menulist) > menuitem, menupopup:not(.in-menulist) > menu {
  118. padding-block: 1px !important;
  119. }
  120. :root {
  121. --arrowpanel-menuitem-padding: 1px 2px !important;
  122. }
  123.  
  124. .menu-iconic.bookmark-item,
  125. .menuitem-iconic.bookmark-item{
  126. padding-block: 4px !important;
  127. }
  128.  
  129. /* Source file https://teddit.net/r/FirefoxCSS/comments/oiycgx/restore_tab_separator_lines/h4yuli3/#c */
  130.  
  131. /* Bring back tab separator lines that were removed in Proton */
  132.  
  133. .tabbrowser-tab:not(:hover, [beforehovered], [selected], [last-visible-tab], [beforeselected-visible])::after {
  134. content: "";
  135. display: block;
  136. border-left: 1px solid currentColor;
  137. margin-block: 1px;
  138. margin-left: -1px;
  139. opacity: 0.3;
  140. }
  141.  
  142.  
  143. /* No round shapes */
  144.  
  145. * {
  146. border-radius: 0 !important;
  147. }
  148.  
  149. #alltabs-button { list-style-image: url("chrome://global/skin/icons/arrow-down-12.svg") !important; }
  150.  
  151.  
  152. /* hide favicon when audio is playing (like FF 135) */
  153. #tabbrowser-tabs:is([orient="vertical"][expanded], [orient="horizontal"]) .tabbrowser-tab:not([pinned]):not([crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
  154. .tab-content .tab-icon-image {
  155. display: none;
  156. }
  157.  
  158. .tab-audio-button {
  159. --button-size-icon-small: 18px !important;
  160. --button-min-height-small: 16px !important;
  161. margin: auto 4.5px auto -1px !important;
  162. transform: translateY(-0px);
  163. }
  164. }
  165.  
  166.  
  167.  
  168. /* prevent audio playing tabs from modifying tab width */
  169. .tabbrowser-tab {
  170. &:is([muted], [soundplaying], [activemedia-blocked]) {
  171. #tabbrowser-tabs[orient="horizontal"] &:not([pinned]) {
  172. --tab-min-width: unset !important;
  173. }
  174. }
  175. }
  176.  
  177.  
Advertisement
Add Comment
Please, Sign In to add comment