avenged110

userChrome.css

Aug 30th, 2020
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.59 KB | None | 0 0
  1. /*** BEGIN: Override URL bar enlargement ***/
  2.   :root { --mbarstyler-top-bar-display: none; }
  3.   :root #urlbar { --urlbar-toolbar-height: 32.00px !important; }
  4.  
  5.   /* Compute new position, width, and padding */
  6.   #urlbar[breakout][breakout-extend] {
  7.     top: 5px !important;
  8.     left: 0px !important;
  9.     width: 100% !important;
  10.     padding: 0px !important;}
  11.  
  12.   /* for alternate UI density settings */
  13.   [uidensity="compact"] #urlbar[breakout][breakout-extend] {
  14.     top: 3px !important;}
  15.  
  16.   [uidensity="touch"] #urlbar[breakout][breakout-extend] {
  17.     top: 4px !important;}
  18.  
  19.   /* Prevent shift of URL bar contents */
  20.   #urlbar[breakout][breakout-extend] > #urlbar-input-container {
  21.     height: var(--urlbar-height) !important;
  22.     padding: 0 !important;}
  23.  
  24.   /* Do not animate */
  25.   #urlbar[breakout][breakout-extend] > #urlbar-background {
  26.     animation: none !important;;}
  27.  
  28.   /* Remove shadows */
  29.   #urlbar[breakout][breakout-extend] > #urlbar-background {
  30.     box-shadow: none !important;}
  31.  
  32.   /* Top "Blue Bar" Display */
  33.   .urlbarView-row:first-of-type {
  34.     display: none !important;}
  35.  
  36.   /* Subtle border between results */
  37.   .urlbarView-row:not(:last-of-type) {
  38.     border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;}
  39. /*** END: Override URL bar enlargement ***/
  40.  
  41. /*** BEGIN: Theme toolbar buttons ***/
  42.   :root {--toolbarbutton-outer-padding: 2px !important;}
  43.  
  44.   .toolbarbutton-1:not(:hover) {
  45.     border: 1px solid #A7A7A7 !important;
  46.     border-radius: 5px !important;
  47.     margin: 0px !important;
  48.     transform: scale(.84,.82) !important;
  49.     background-image: linear-gradient(to top,#E4E4E4,#DADADA);}
  50.  
  51.   .toolbarbutton-1:hover {
  52.     border: 1px solid #A7A7A7 !important;
  53.     border-radius: 5px !important;
  54.     margin: 0px !important;
  55.     transform: scale(.84,.82) !important;
  56.     background-image: linear-gradient(to top,#E4E4E4,#DADADA);}
  57. /*** END: Theme toolbar buttons ***/
  58.  
  59. /* Very dirty fix for nav bar edge margins */
  60. #back-button {margin-left: 5px !important;}
  61. #tab-list-single_codefisher_org-browser-action {margin-right: 5px !important;}
  62.  
  63. /* Remove 'new tab' button */
  64. #new-tab-button,
  65. #tabs-newtab-button {display: none !important;}
  66.  
  67. #tabs-newtab-button:hover > .toolbarbutton-icon
  68. {display: none !important;}
  69.  
  70. /* Remove blue animation on tab on page load complete */
  71. .tab-loading-burst {display: none !important;}
  72.  
  73. /* Remove 'three dots' button in urlbar */
  74. #pageActionSeparator,
  75. #pageActionButton {display: none !important;}
  76.  
  77. /* Remove menu popover */
  78. #PanelUI-menu-button {display: none !important;}
  79.  
  80. /* Remove line on top of tabs */
  81. .tab-line {display: none !important;}
  82.  
  83. /* Set custom 'new tab' favicon (icon must be in chrome folder) */
  84. .tabbrowser-tab[label^="New Tab"] .tab-icon-image {
  85.     list-style-image: none !important;
  86.     width: 0 !important;
  87.     padding-left: 16px !important;
  88.     background: url("default_favicon.png") !important;
  89.     background-size: 16px 16px !important;
  90.     background-repeat: no-repeat !important;}
  91.  
  92. /* Fix forward/back/etc. contextual menu items */
  93. #context-navigation {-moz-box-orient: vertical !important;}
  94. #context-navigation > menuitem > .menu-iconic-left {display: none !important;}
  95. #context-navigation > menuitem {
  96.   padding-inline-start: 20px !important;
  97.   -moz-box-pack: start !important;}
  98. #context-navigation > menuitem::before {content: attr(aria-label) !important;}
  99.  
  100. /* Hide contextual menu items */
  101. #context_pinTab, #context_closeTabsToTheEnd,
  102. #context_closeOtherTabs, #context_selectAllTabs,
  103. #context-searchselect {display: none !important;}
  104.  
  105. #context_closeTabOptions > label,
  106. #context_closeTabOptions > hbox {
  107.   display: none !important;}
  108.  
  109. /* Increase top and bottom nav bar margins */
  110. #nav-bar {
  111.    padding-top: 5px !important;
  112.    padding-bottom: 5px !important;}
  113.  
  114. /* Add gradient to nav bar */
  115. .browser-toolbar:not(.titlebar-color) {
  116.   background: #E9E9E9 !important;
  117.   background-image: linear-gradient(to top,#D3D3D3,#EDEDED) !important;}
  118.  
  119. /* Show tab close button on hover */
  120. .tabbrowser-tab:not(:hover) .tab-close-button {display: none !important;}
  121. .tabbrowser-tab:not([pinned]):hover .tab-close-button {display: block !important;}
  122.  
  123. /* Make tab close buttons smaller */
  124. .tabbrowser-tab:hover .tab-close-button {
  125.  width: 15px !important;
  126.  height: 15px !important;}
  127.  
  128. /* Move favicons and close buttons closer to the edges of tabs */
  129. .tab-icon-image[selected="true"] {margin-left: -4px !important;}
  130. .tab-icon-image:not([selected="true"]) {margin-left: -5px !important;}
  131. .tab-close-button {margin-right: -5px !important;}
  132.  
  133. /* Hide tab overflow scroll buttons */
  134. #scrollbutton-up {display: none !important;}
  135. #scrollbutton-down {display: none !important;}
  136.  
  137. /* Remove 'show all tabs' button */
  138. #tabbrowser-tabs ~ #alltabs-button {display: none !important;}
  139.  
  140. /* Hide screenshot and favicon in bookmark editor */
  141. #editBookmarkPanelImage,
  142. #editBookmarkPanelFaviconContainer {display: none !important;}
  143. #editBookmarkPanelRows {padding-top: 2px !important;}
  144.  
  145. /* Turn tab text black and bold */
  146. #TabsToolbar .tabbrowser-tab:not([selected="true"]) {color: black !important;}
  147. #TabsToolbar .tabbrowser-tab[selected="true"] {color: #3C3C3C !important;}
  148.  
  149. #TabsToolbar .tabbrowser-tab .tab-content:not([selected="true"]) {
  150.   font-weight: 800 !important;
  151.   text-shadow: 1px 1px #BBBBBB !important;}
  152.  
  153. #TabsToolbar .tabbrowser-tab .tab-content[selected="true"] {
  154.   font-weight: 800 !important;
  155.   text-shadow: 1px 1px #E2E2E2 !important;}
  156.  
  157. /*** BEGIN: Restore CTR tabs ***/
  158.   /* Selected tab: Outer (dark) border */
  159.   .tabbrowser-tab[selected="true"] {
  160.     border-left: 1px solid var(--tabs-border-color) !important;
  161.     border-right: 1px solid var(--tabs-border-color) !important;
  162.     border-bottom: 1px solid #9D9E9F !important;
  163.     border-bottom-left-radius: 4px !important;
  164.     border-bottom-right-radius: 4px !important;}
  165.  
  166.   /* Selected tab: Inner (light) border */
  167.   .tab-background[selected="true"] {
  168.     background-image: linear-gradient(to top,#CECECE,#D3D3D3) !important;
  169.     border-top: 1px solid #D3D3D3 !important;
  170.     border-left: 1px solid #D9D9D9 !important;
  171.     border-right: 1px solid #D9D9D9 !important;
  172.     border-bottom: 1px solid #D9D9D9 !important;
  173.     border-bottom-left-radius: 4px !important;
  174.     border-bottom-right-radius: 4px !important;
  175.     margin-right: -1px !important;}
  176.  
  177.   /* Unselected tabs: Outer (dark) border */
  178.   .tabbrowser-tab:not([selected="true"]):not(:hover) {
  179.     border-top: 1px solid #7D8185 !important;
  180.     border-left: 1px solid var(--tabs-border-color) !important;
  181.     border-right: 1px solid var(--tabs-border-color) !important;
  182.     border-bottom: 1px solid #88898A !important;
  183.     border-bottom-left-radius: 4px !important;
  184.     border-bottom-right-radius: 4px !important;}
  185.  
  186.   /* Unselected tabs: Inner (light) border */
  187.   .tab-content:not([selected="true"]):not(:hover) {
  188.     background-image: linear-gradient(to top,#A5A5A5,#959595);
  189.     border-left: 1px solid #A8A8A8 !important;
  190.     border-right: 1px solid #A8A8A8 !important;
  191.     border-bottom: 1px solid #BBBBBB !important;
  192.     border-bottom-left-radius: 4px !important;
  193.     border-bottom-right-radius: 4px !important;
  194.     margin-right: -1px !important;}
  195.  
  196.   /* Hover unselected tabs: Outer (dark) border */
  197.   .tabbrowser-tab:not([selected="true"]):hover {
  198.     border-top: 1px solid #7D8185 !important;
  199.     border-left: 1px solid var(--tabs-border-color) !important;
  200.     border-right: 1px solid var(--tabs-border-color) !important;
  201.     border-bottom: 1px solid #88898A !important;
  202.     border-bottom-left-radius: 4px !important;
  203.     border-bottom-right-radius: 4px !important;}
  204.  
  205.   /* Hover unselected tabs: Inner (light) border */
  206.   .tab-content:not([selected="true"]):hover {
  207.     background-image: linear-gradient(to top,#B6B6B6,#ADADAD);
  208.     border-left: 1px solid #A8A8A8 !important;
  209.     border-right: 1px solid #A8A8A8 !important;
  210.     border-bottom: 1px solid #BBBBBB !important;
  211.     border-bottom-left-radius: 4px !important;
  212.     border-bottom-right-radius: 4px !important;
  213.     margin-right: -1px !important;}
  214.  
  215.   /* Hide default tab separators and borders */
  216.   .tabbrowser-tab::after, .tabbrowser-tab::before {
  217.     opacity: 0 !important;
  218.     border-image: unset !important;
  219.     border-image-slice: unset !important;
  220.     width: unset !important;}
  221.  
  222.   /* Change background 'underneath' the tabs */
  223.   #TabsToolbar-customization-target {
  224.     background-color: #A1A1A1 !important;
  225.     border-bottom: 1px solid var(--tabs-border-color) !important;}
  226.  
  227.   /* Remove excess line on bottom of tab bar */
  228.   #navigator-toolbox {border-bottom: unset !important;}
  229. /*** END: Restore CTR tabs ***/
  230.  
  231. /*** BEGIN: Tab on bottom ***/
  232.   #navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar) {
  233.     -moz-box-ordinal-group:10}
  234.   #TabsToolbar {-moz-box-ordinal-group:1000 !important;}
  235.  
  236.   #TabsToolbar {
  237.     position: absolute !important;
  238.     bottom: 0 !important;
  239.     width: 100vw !important;
  240.     display: block !important;}
  241.  
  242.   #tabbrowser-tabs {
  243.     top: 300 !important;
  244.     width: 100vw !important;}
  245.  
  246.   #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {
  247.     padding-bottom: calc(1px + var(--tab-min-height_tnot)) !important;}
  248.  
  249.   /* Tab height */
  250.   :root {
  251.     --tab-toolbar-navbar-overlap: 0px !important;
  252.     --tab-min-height: 28px !important; /* adjust to suit your needs */
  253.     --tab-min-height_tnot: 28px;}
  254.  
  255.   :root #tabbrowser-tabs {
  256.     --tab-min-height: 28px !important; /* needs to be the same as above */
  257.     --tab-min-width: 90px !important;}
  258.  
  259.   #TabsToolbar {
  260.     height: var(--tab-min-height) !important;
  261.     margin-bottom: 1px !important;}
  262. /*** END: Tabs on bottom ***/
  263.  
  264.  
  265.  
Advertisement
Add Comment
Please, Sign In to add comment