Advertisement
Guest User

Untitled

a guest
Mar 9th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. /*** Proton Tabs Tweaks ***/
  2.  
  3. /* Adjust tab corner shape, optionally remove space below tabs */
  4.  
  5. #tabbrowser-tabs {
  6. --user-tab-rounding: 6px;
  7. }
  8.  
  9. .tab-background {
  10. border-radius: var(--user-tab-rounding) var(--user-tab-rounding) 0px 0px !important;
  11. margin-block: 1px 0 !important;
  12. }
  13. #scrollbutton-up, #scrollbutton-down { /* 6/10/2021 */
  14. border-top-width: 1px !important;
  15. border-bottom-width: 0 !important;
  16. }
  17. /* Container color bar visibility */
  18. .tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
  19. margin: 1.5px max(calc(var(--user-tab-rounding) - 3px), 0px) !important;
  20. }
  21.  
  22. /* Override Normal Density height to Compact Density height only for tabs */
  23.  
  24. #TabsToolbar, #tabbrowser-tabs {
  25. --tab-min-height: 31px !important;
  26. }
  27. /* Tweak for covering a line at the bottom of the active tab on some themes 8/11/2021 */
  28. #main-window[sizemode="normal"] #toolbar-menubar[autohide="true"] + #TabsToolbar,
  29. #main-window[sizemode="normal"] #toolbar-menubar[autohide="true"] + #TabsToolbar #tabbrowser-tabs {
  30. --tab-min-height: 30px !important;
  31. }
  32. #scrollbutton-up,
  33. #scrollbutton-down {
  34. border-top-width: 0 !important;
  35. border-bottom-width: 0 !important;
  36. }
  37.  
  38. /* [Connected Tabs] Set a max height based on min-height plus margin-block: 1px 0 */
  39. #TabsToolbar, #TabsToolbar > hbox, #TabsToolbar-customization-target, #tabbrowser-arrowscrollbox {
  40. max-height: calc(var(--tab-min-height) + 1px) !important;
  41. }
  42. /* [Connected Tabs] Adjust padding around icons on buttons to avoid crushed images */
  43. #TabsToolbar-customization-target toolbarbutton > .toolbarbutton-icon,
  44. #TabsToolbar-customization-target .toolbarbutton-text,
  45. #TabsToolbar-customization-target .toolbarbutton-badge-stack,
  46. #scrollbutton-up,#scrollbutton-down {
  47. padding-top: 7px !important;
  48. padding-bottom: 6px !important;
  49. }
  50.  
  51. /* Inactive tabs: Separator line style */
  52.  
  53. .tabbrowser-tab:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) .tab-background {
  54. border-right: 1px solid var(--lwt-background-tab-separator-color, rgba(0, 0, 0, .20)) !important;
  55. }
  56. /* For dark backgrounds */
  57. [brighttext="true"] .tabbrowser-tab:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) .tab-background {
  58. border-right: 1px solid var(--lwt-background-tab-separator-color, var(--lwt-selected-tab-background-color, rgba(255, 255, 255, .20))) !important;
  59. }
  60. .tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
  61. border-radius: 0 !important;
  62. }
  63. /* Remove padding between tabs */
  64. .tabbrowser-tab {
  65. padding-left: 0 !important;
  66. padding-right: 0 !important;
  67. }
  68.  
  69. /* Tweak Options as of 8/13/2021; Generated Tue Aug 24 2021 11:27:47 GMT+0300 (Eastern European Summer Time) */
  70.  
  71.  
  72. /* Use Normal top and bottom padding for compact */
  73. #PlacesToolbarItems .bookmark-item {
  74. padding-top: 0px !important;
  75. padding-bottom: 0px !important;
  76. }
  77.  
  78. /***Tighten up drop-down/context/popup menu spacing ***/
  79.  
  80. menupopup > menuitem, menupopup > menu {
  81. padding-block: 2px !important;
  82. }
  83. :root {
  84. --arrowpanel-menuitem-padding: 2px 8px !important;
  85. }
  86.  
  87. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  88. See the above repository for updates as well as full license text. */
  89.  
  90. /* Modify to change window drag space width */
  91. /*
  92. Use tabs_on_bottom_menubar_on_top_patch.css if you
  93. have menubar permanently enabled and want it on top
  94. */
  95.  
  96. /* IMPORTANT */
  97. /*
  98. Get window_control_placeholder_support.css
  99. Window controls will be all wrong without it.
  100. Additionally on Linux, you may need to get:
  101. linux_gtk_window_control_patch.css
  102. */
  103.  
  104. :root{ --uc-titlebar-padding: 0px; }
  105. @media (-moz-os-version: windows-win10){
  106. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  107. }
  108. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  109. #TabsToolbar > .titlebar-buttonbox-container{
  110. position: fixed;
  111. display: block;
  112. top: var(--uc-titlebar-padding,0px);
  113. right:0;
  114. height: 40px;
  115. }
  116. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  117. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  118. :root{ --uc-titlebar-padding: 0px !important }
  119. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  120. }
  121.  
  122. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  123.  
  124. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  125.  
  126. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  127.  
  128. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  129.  
  130. #titlebar{
  131. -moz-box-ordinal-group: 2;
  132. -moz-appearance: none !important;
  133. --tabs-navbar-shadow-size: 0px;
  134. }
  135.  
  136. .titlebar-placeholder,
  137. #TabsToolbar .titlebar-spacer{ display: none; }
  138. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  139. #navigator-toolbox::after{ display: none !important; }
  140.  
  141. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  142.  
  143. /* These exist only for compatibility with autohide-tabstoolbar.css */
  144. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  145. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  146.  
  147. /* 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
  148. See the above repository for updates as well as full license text. */
  149.  
  150. /* Menubar on top patch - use with tabs_on_bottom.css */
  151. /* Only really useful if menubar is ALWAYS visible */
  152.  
  153. :root{ --uc-window-control-width: 0px !important }
  154.  
  155. #navigator-toolbox{ padding-top: calc(29px + var(--uc-titlebar-padding,0px)) !important }
  156.  
  157. #toolbar-menubar{
  158. position: fixed;
  159. display: flex;
  160. top: var(--uc-titlebar-padding,0px);
  161. height: 29px;
  162. width: 100%;
  163. overflow: hidden;
  164. }
  165.  
  166. #toolbar-menubar > .titlebar-buttonbox-container{ height: 29px; order: 100; }
  167.  
  168. #toolbar-menubar > [flex]{ flex-grow: 100; }
  169. #toolbar-menubar > spacer[flex]{
  170. order: 99;
  171. flex-grow: 1;
  172. min-width: var(--uc-window-drag-space-width,20px);
  173. }
  174.  
  175. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
  176.  
  177. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  178.  
  179. /* TABS: height */*|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 26px !important;
  180. --tab-min-width: 80px !important;
  181.  
  182. #tabbrowser-tabs {
  183. width: 100vw !important;
  184. }
  185. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
  186.  
  187. .tab-background {
  188. border-radius: 8px 8px 0px 0px !important; border-image: none !important;
  189. }
  190. .tab-line {
  191. display: none;
  192. }
  193.  
  194. .tab-close-button {
  195. color: red!important;
  196. }
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement