Advertisement
avenged110

userChrome.css (09.10.20)

Sep 10th, 2020 (edited)
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 19.36 KB | None | 0 0
  1. /*** BEGIN: Override URL bar enlargement ***/
  2.   :root {--mbarstyler-top-bar-display: none !important;}
  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;} /* Downward shift on click (3 = no movement) */
  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.   /* Top "blue bar" display */
  29.   .urlbarView-row:first-of-type {
  30.     display: none !important;}
  31.  
  32.   /* Subtle border between results */
  33.   .urlbarView-row:not(:last-of-type) {
  34.     border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;}
  35.  
  36.   /* Fix unintentional gap above top/below bottom results */
  37.   #urlbar-results {margin-top: -4px !important;}
  38.   #urlbar-results {margin-bottom: -2px !important;}
  39. /*** END: Override URL bar enlargement ***/
  40.  
  41. /*** BEGIN: Theme toolbar buttons ***/
  42.   :root {--toolbarbutton-outer-padding: 2px !important;}
  43.   .toolbarbutton-1 {--toolbarbutton-hover-background: none !important;}
  44.  
  45.   .toolbarbutton-1 > .toolbarbutton-icon,
  46.   .toolbarbutton-1 > stack {
  47.     box-shadow: inset 0 0 0 1px #7D7D7D !important;
  48.     /* box-shadow: horizontal offset, vertical offset, blur, spread */
  49.     border-radius: 5px !important;
  50.     margin: 0px !important;
  51.     transform: scale(.9,.9) !important;
  52.     background-image: linear-gradient(to top,#BDBDBD,#F5F5F5) !important;}
  53.  
  54.   .toolbarbutton-1:active > .toolbarbutton-icon,
  55.   .toolbarbutton-1:active > stack {
  56.     background-image: linear-gradient(to top,#D3D3D3,#A1A1A1) !important;}
  57.  
  58.   .toolbarbutton-1 > .toolbarbutton-animatable-box {
  59.     transform: scale(.9,.9) !important;}
  60.  
  61.   /* Force-fix opaque states */
  62.   .toolbarbutton-1:-moz-window-inactive {opacity: 0.5 !important;}
  63.   .toolbarbutton-1[disabled="true"] {opacity: 0.4 !important;}
  64.  
  65.   /* Fix disabled buttons being "clickable" */
  66.   .toolbarbutton-1:active[disabled="true"] > .toolbarbutton-icon,
  67.   .toolbarbutton-1:active[disabled="true"] > stack {
  68.     background-image: linear-gradient(to top,#BDBDBD,#F5F5F5) !important;}
  69.  
  70.   /* (Semi-unrelated) Add tiny inner shadow to URL bar */
  71.   #urlbar-background {box-shadow: inset 0 0 1px 1px #E5E5E5 !important;}
  72. /*** END: Theme toolbar buttons ***/
  73.  
  74. /*** BEGIN: Force single-line display of URL bar results ***/
  75.   .urlbarView-results[wrap] > .urlbarView-row > .urlbarView-row-inner {
  76.     flex-wrap: nowrap !important;}
  77.  
  78.   .urlbarView-results[wrap] > .urlbarView-row >
  79.   .urlbarView-row-inner > .urlbarView-no-wrap {
  80.     max-width:calc(70% - 2 * (16px + (6px + 2px))) !important;
  81.     flex-basis: auto !important;
  82.     padding-right: 0px !important;}
  83.  
  84.   .urlbarView-results[wrap] > .urlbarView-row[has-url] >
  85.   .urlbarView-row-inner > .urlbarView-url {
  86.     margin-top: 0px !important;}
  87.  
  88.   .urlbarView-results[wrap] > .urlbarView-row[has-url] >
  89.   .urlbarView-row-inner > .urlbarView-url:-moz-locale-dir(ltr) {
  90.     padding-left: 0px !important;}
  91.  
  92.   .urlbarView-results[wrap] > .urlbarView-row[has-url] >
  93.   .urlbarView-row-inner > .urlbarView-url:-moz-locale-dir(rtl) {
  94.     padding-right: 0px !important;}
  95.  
  96.   .urlbarView[actionoverride] .urlbarView-results[wrap] >
  97.   .urlbarView-row[has-url] > .urlbarView-row-inner >
  98.   .urlbarView-no-wrap > .urlbarView-title-separator,
  99.   .urlbarView-results[wrap] > .urlbarView-row[has-url]:not([type$=tab]) >
  100.   .urlbarView-row-inner > .urlbarView-no-wrap > .urlbarView-title-separator,
  101.   .urlbarView-results[wrap] >
  102.   .urlbarView-row[type=remotetab]:-moz-any(:hover, [selected]) >
  103.   .urlbarView-row-inner > .urlbarView-no-wrap > .urlbarView-title-separator {
  104.     display: inline !important;}
  105. /*** END: Force single-line display of URL bar results ***/
  106.  
  107. /* URL bar "glow" on focus */
  108. #urlbar[focused] > #urlbar-background {border: 2px solid #738499 !important;}
  109. #urlbar-background:not(:-moz-window-inactive) {
  110.   border: 1px solid #7D7D7D !important;}
  111.  
  112. /* Very dirty fix for nav bar edge margins */
  113. #back-button {margin-left: 5px !important;}
  114. #tab-list-single_codefisher_org-browser-action {margin-right: 5px !important;}
  115.  
  116. /* Remove 'new tab' button */
  117. #new-tab-button, #tabs-newtab-button {display: none !important;}
  118. #tabs-newtab-button:hover > .toolbarbutton-icon {display: none !important;}
  119.  
  120. /* Remove blue animation on tab on page load complete */
  121. .tab-loading-burst {display: none !important;}
  122.  
  123. /* Remove 'three dots' button in URL bar */
  124. #pageActionSeparator, #pageActionButton {display: none !important;}
  125.  
  126. /* Remove 'arrow' button on query in URL bar */
  127. #urlbar-go-button {display: none !important;}
  128.  
  129. /* Remove menu popover */
  130. #PanelUI-menu-button {display: none !important;}
  131.  
  132. /* Remove line on top of tabs */
  133. .tab-line {display: none !important;}
  134.  
  135. /* Set custom 'new tab' favicon (icon must be in chrome folder) */
  136. .tabbrowser-tab[label^="New Tab"] .tab-icon-image {
  137.   list-style-image: none !important;
  138.   width: 0 !important;
  139.   padding-left: 16px !important;
  140.   background: url("default_favicon.png") !important;
  141.   background-size: 16px 16px !important;
  142.   background-repeat: no-repeat !important;}
  143.  
  144. /* Fix forward/back/etc. contextual menu items */
  145. #context-navigation {-moz-box-orient: vertical !important;}
  146. #context-navigation > menuitem > .menu-iconic-left {display: none !important;}
  147. #context-navigation > menuitem {
  148.   padding-inline-start: 20px !important;
  149.   -moz-box-pack: start !important;}
  150. #context-navigation > menuitem::before {content: attr(aria-label) !important;}
  151.  
  152. /* Hide contextual menu items */
  153. #context_pinTab, #context_closeTabsToTheEnd,
  154. #context_closeOtherTabs, #context_selectAllTabs,
  155. #context-searchselect {display: none !important;}
  156.  
  157. #context_closeTabOptions > label,
  158. #context_closeTabOptions > hbox {display: none !important;}
  159.  
  160. /* Increase top and bottom nav bar margins */
  161. #nav-bar {
  162.   padding-top: 5px !important;
  163.   padding-bottom: 5px !important;}
  164.  
  165. /* Add gradient to nav bar */
  166. .browser-toolbar:not(.titlebar-color) {
  167.   background: #E9E9E9 !important;
  168.   background-image: linear-gradient(to top,#D3D3D3,#EDEDED) !important;}
  169.  
  170. /*** BEGIN: Modify tab close button style ***/
  171.   /* Show tab close button on hover */
  172.   .tabbrowser-tab:not(:hover) .tab-close-button {display: none !important;}
  173.   .tabbrowser-tab:not([pinned]):hover .tab-close-button {
  174.     display: block !important;}
  175.  
  176.   /* Make close button smaller */
  177.   .tabbrowser-tab:hover .tab-close-button {
  178.     width: 15px !important;
  179.     height: 15px !important;}
  180.  
  181.   /* Set custom close button icons */
  182.   .tabbrowser-tab:hover .tab-close-button:not(:hover) {
  183.     list-style-image: url("close.png") !important;
  184.     fill: transparent !important;
  185.     background-color: transparent !important;}
  186.  
  187.   .tabbrowser-tab:hover .tab-close-button:hover {
  188.     list-style-image: url("close-hover.png") !important;
  189.     fill: transparent !important;
  190.     background-color: transparent !important;}
  191.  
  192.   .tabbrowser-tab:hover .tab-close-button:active {
  193.     list-style-image: url("close-pressed.png") !important;
  194.     fill: transparent !important;
  195.     background-color: transparent !important;}
  196.  
  197.   /* Move close button (and favicon) closer to tab edge */
  198.   .tab-icon-image[selected="true"] {
  199.     margin-left: -4px !important;
  200.     margin-right: 4px !important;}
  201.  
  202.   .tab-icon-image:not([selected="true"]) {
  203.     margin-left: -5px !important;
  204.     margin-right: 4px !important;}
  205.  
  206.   .tab-close-button {margin-right: -5px !important;}
  207. /*** END: Modify tab close button style ***/
  208.  
  209. /*** BEGIN: Move audio icon to left, replacing favicon ***/
  210.   /* Sound: playing / Tab: selected / Icon: un-muted */
  211.   .tabbrowser-tab[soundplaying="true"][selected="true"] .tab-icon-sound {
  212.     -moz-box-ordinal-group: 0 !important;
  213.     margin: 1px 4px 0px -4px !important;
  214.     /* margin: top, right, bottom, left */
  215.     border-radius: 50% !important;
  216.     display: block !important;
  217.     fill: black !important;}
  218.  
  219.   /* Sound: not playing / Tab: selected / Icon: muted */
  220.   .tabbrowser-tab:not([soundplaying="true"])[selected="true"]
  221.   .tab-icon-sound[muted="true"] {
  222.     -moz-box-ordinal-group: 0 !important;
  223.     margin: 1px 4px 0px -4px !important;
  224.     /* margin: top, right, bottom, left */
  225.     border-radius: 50% !important;
  226.     display: block !important;
  227.     fill: black !important;}
  228.  
  229.   /* Sound: playing / Tab: not selected / Icon: un-muted */
  230.   .tabbrowser-tab[soundplaying="true"]:not([selected="true"]) .tab-icon-sound {
  231.     -moz-box-ordinal-group: 0 !important;
  232.     margin: 1px 4px 0px -5px !important;
  233.     /* margin: top, right, bottom, left */
  234.     border-radius: 50% !important;
  235.     display: block !important;
  236.     fill: black !important;}
  237.  
  238.   /* Sound: not playing / Tab: not selected / Icon: muted */
  239.   .tabbrowser-tab:not([soundplaying="true"]):not([selected="true"])
  240.   .tab-icon-sound[muted="true"] {
  241.     -moz-box-ordinal-group: 0 !important;
  242.     margin: 1px 4px 0px -5px !important;
  243.     /* margin: top, right, bottom, left */
  244.     border-radius: 50% !important;
  245.     display: block !important;
  246.     fill: black !important;}
  247.  
  248.   /* Hide favicon when sound is playing */
  249.   .tabbrowser-tab[soundplaying="true"] .tab-icon-image,
  250.   .tabbrowser-tab[soundplaying="true"] .tab-throbber {
  251.     display: none !important;}
  252.  
  253.   /* Hide favicon when sound is muted */
  254.   .tabbrowser-tab[muted="true"] .tab-icon-image,
  255.   .tabbrowser-tab[muted="true"] .tab-throbber {
  256.     display: none !important;}
  257.  
  258.   /* (Unnecessary) Bundled adjustment for pinned tabs */
  259.   .tabbrowser-tab[pinned][soundplaying="true"] .tab-icon-image {
  260.     display: block !important;}
  261.  
  262.   /* Remove any change to the icon on hover */
  263.   .tab-icon-sound:hover {
  264.     /* background-color: #76D6FF !important; */
  265.     fill: black !important;
  266.     opacity: 0.8 !important;}
  267.  
  268.   /* Adjust speaker icon opacity when window is out-of-focus */
  269.   .tab-icon-sound:-moz-window-inactive {opacity: 0.6 !important;}
  270.   .tab-icon-sound[muted="true"]:-moz-window-inactive {opacity: 0.6 !important;}
  271.  
  272.   .tab-close-button {-moz-box-ordinal-group: 2 !important;}
  273. /*** END: Move audio icon to left, replacing favicon ***/
  274.  
  275. /*** BEGIN: Replace back/forward/reload button icons ***/
  276.   #back-button {
  277.     list-style-image: url("back.png") !important;
  278.     fill: transparent !important;
  279.     background-color: transparent !important;}
  280.  
  281.   #back-button:active:not([disabled="true"]) {
  282.     list-style-image: url("back2.png") !important;
  283.     fill: transparent !important;
  284.     background-color: transparent !important;}
  285.  
  286.   #forward-button {
  287.     list-style-image: url("forward.png") !important;
  288.     fill: transparent !important;
  289.     background-color: transparent !important;}
  290.  
  291.   #forward-button:active:not([disabled="true"]) {
  292.     list-style-image: url("forward2.png") !important;
  293.     fill: transparent !important;
  294.     background-color: transparent !important;}
  295.  
  296.   #reload-button {
  297.     list-style-image: url("reload.png") !important;
  298.     fill: transparent !important;
  299.     background-color: transparent !important;}
  300.  
  301.   #reload-button:active:not([disabled="true"]) {
  302.     list-style-image: url("reload2.png") !important;
  303.     fill: transparent !important;
  304.     background-color: transparent !important;}
  305.  
  306.   #stop-button {
  307.     list-style-image: url("stop.png") !important;
  308.     fill: transparent !important;
  309.     background-color: transparent !important;}
  310.  
  311.   #stop-button:active:not([disabled="true"]) {
  312.     list-style-image: url("stop2.png") !important;
  313.     fill: transparent !important;
  314.     background-color: transparent !important;}
  315.  
  316.   /* Attempt to eliminate refresh button animation */
  317.   .toolbarbutton-animatable-box > .toolbarbutton-animatable-image {
  318.     transform: none !important;
  319.     animation-duration: 0ms !important;}
  320. /*** END: Replace back/forward/reload button icons ***/
  321.  
  322. /*** BEGIN: Change tab loading icons and adjust left-margins ***/
  323.   .tab-throbber::before {
  324.     fill: transparent !important;
  325.     opacity: 1 !important;}
  326.  
  327.   .tab-throbber[selected="true"] {
  328.     margin-left: -4px !important;
  329.     margin-right: 4px !important;
  330.     background: url("loader.gif") !important;
  331.     background-size: 16px 16px !important;
  332.     background-repeat: no-repeat !important;}
  333.  
  334.  .tab-icon-pending[selected="true"] {
  335.     margin-left: -4px !important;
  336.     margin-right: 4px !important;
  337.     background: url("default_favicon.png") !important;
  338.     background-size: 16px 16px !important;
  339.     background-repeat: no-repeat !important;}
  340.  
  341.   .tab-throbber:not([selected="true"]) {
  342.     margin-left: -5px !important;
  343.     margin-right: 4px !important;
  344.     background: url("loader.gif") !important;
  345.     background-size: 16px 16px !important;
  346.     background-repeat: no-repeat !important;}
  347.  
  348.   .tab-icon-pending:not([selected="true"]) {
  349.     margin-left: -5px !important;
  350.     margin-right: 4px !important;
  351.     background: url("default_favicon.png") !important;
  352.     background-size: 16px 16px !important;
  353.     background-repeat: no-repeat !important;}
  354. /*** END: Change tab loading icons and adjust left-margins ***/
  355.  
  356. /* Hide tab overflow scroll buttons */
  357. #scrollbutton-up {display: none !important;}
  358. #scrollbutton-down {display: none !important;}
  359.  
  360. /* Hide overflow shadows on tab bar */
  361. spacer[part="overflow-start-indicator"],
  362. spacer[part="overflow-end-indicator"] {display: none !important;}
  363.  
  364. /* Remove 'show all tabs' button */
  365. #tabbrowser-tabs ~ #alltabs-button {display: none !important;}
  366.  
  367. /* Hide screenshot and favicon in bookmark editor */
  368. #editBookmarkPanelImage,
  369. #editBookmarkPanelFaviconContainer {display: none !important;}
  370. #editBookmarkPanelRows {padding-top: 2px !important;}
  371.  
  372. /* Turn tab text black and bold */
  373. #TabsToolbar .tabbrowser-tab:not([selected="true"]) {color: black !important;}
  374. #TabsToolbar .tabbrowser-tab[selected="true"] {color: #3C3C3C !important;}
  375.  
  376. #TabsToolbar .tabbrowser-tab .tab-content:not([selected="true"]) {
  377.   font-weight: 800 !important;
  378.   text-shadow: 1px 1px #BBBBBB !important;}
  379.  
  380. #TabsToolbar .tabbrowser-tab .tab-content[selected="true"] {
  381.   font-weight: 800 !important;
  382.   text-shadow: 1px 1px #E2E2E2 !important;}
  383.  
  384. /*** BEGIN: Restore CTR-style tabs ***/
  385.   /* Selected tab: Outer (dark) border */
  386.   .tabbrowser-tab[selected="true"] {
  387.     border-left: 1px solid var(--tabs-border-color) !important;
  388.     border-right: 1px solid var(--tabs-border-color) !important;
  389.     border-bottom: 1px solid #9D9E9F !important;
  390.     border-bottom-left-radius: 4px !important;
  391.     border-bottom-right-radius: 4px !important;}
  392.  
  393.   /* Selected tab: Inner (light) border */
  394.   .tab-background[selected="true"] {
  395.     background-image: linear-gradient(to top,#CECECE,#D3D3D3) !important;
  396.     border-top: 1px solid #D3D3D3 !important;
  397.     border-left: 1px solid #D9D9D9 !important;
  398.     border-right: 1px solid #D9D9D9 !important;
  399.     border-bottom: 1px solid #D9D9D9 !important;
  400.     border-bottom-left-radius: 4px !important;
  401.     border-bottom-right-radius: 4px !important;
  402.     margin-right: -1px !important;}
  403.  
  404.   /* Unselected tabs: Outer (dark) border */
  405.   .tabbrowser-tab:not([selected="true"]):not(:hover) {
  406.     border-top: 1px solid #7D8185 !important;
  407.     border-left: 1px solid var(--tabs-border-color) !important;
  408.     border-right: 1px solid var(--tabs-border-color) !important;
  409.     border-bottom: 1px solid #88898A !important;
  410.     border-bottom-left-radius: 4px !important;
  411.     border-bottom-right-radius: 4px !important;}
  412.  
  413.   /* Unselected tabs: Inner (light) border */
  414.   .tab-content:not([selected="true"]):not(:hover) {
  415.     background-image: linear-gradient(to top,#A5A5A5,#959595) !important;
  416.     border-left: 1px solid #A8A8A8 !important;
  417.     border-right: 1px solid #A8A8A8 !important;
  418.     border-bottom: 1px solid #BBBBBB !important;
  419.     border-bottom-left-radius: 4px !important;
  420.     border-bottom-right-radius: 4px !important;
  421.     margin-right: -1px !important;}
  422.  
  423.   /* Hover unselected tabs: Outer (dark) border */
  424.   .tabbrowser-tab:not([selected="true"]):hover {
  425.     border-top: 1px solid #7D8185 !important;
  426.     border-left: 1px solid var(--tabs-border-color) !important;
  427.     border-right: 1px solid var(--tabs-border-color) !important;
  428.     border-bottom: 1px solid #88898A !important;
  429.     border-bottom-left-radius: 4px !important;
  430.     border-bottom-right-radius: 4px !important;}
  431.  
  432.   /* Hover unselected tabs: Inner (light) border */
  433.   .tab-content:not([selected="true"]):hover {
  434.     /* To highlight on hover, use gradient: #B6B6B6,#ADADAD */
  435.     background-image: linear-gradient(to top,#A5A5A5,#959595) !important;
  436.     border-left: 1px solid #A8A8A8 !important;
  437.     border-right: 1px solid #A8A8A8 !important;
  438.     border-bottom: 1px solid #BBBBBB !important;
  439.     border-bottom-left-radius: 4px !important;
  440.     border-bottom-right-radius: 4px !important;
  441.     margin-right: -1px !important;}
  442.  
  443.   /* Hide default tab separators and borders */
  444.   .tabbrowser-tab::after, .tabbrowser-tab::before {
  445.     opacity: 0 !important;
  446.     border-image: unset !important;
  447.     border-image-slice: unset !important;
  448.     width: unset !important;}
  449.  
  450.   /* Change background 'underneath' the tabs */
  451.   #TabsToolbar-customization-target {
  452.     background-color: #A1A1A1 !important;
  453.     border-bottom: 1px solid var(--tabs-border-color) !important;}
  454.  
  455.   /* Remove excess line on bottom of tab bar */
  456.   #navigator-toolbox {border-bottom: unset !important;}
  457. /*** END: Restore CTR-style tabs ***/
  458.  
  459. /*** BEGIN: Tabs on bottom ***/
  460.   #navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar) {
  461.     -moz-box-ordinal-group: 10 !important;}
  462.   #TabsToolbar {-moz-box-ordinal-group: 1000 !important;}
  463.  
  464.   #TabsToolbar {
  465.     position: absolute !important;
  466.     bottom: 0 !important;
  467.     width: 100vw !important;
  468.     display: block !important;}
  469.  
  470.   #tabbrowser-tabs {
  471.     top: 300 !important;
  472.     width: 100vw !important;}
  473.  
  474.   #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {
  475.     padding-bottom: calc(1px + var(--tab-min-height_tnot)) !important;}
  476.  
  477.   /* Tab height */
  478.   :root {
  479.     --tab-toolbar-navbar-overlap: 0px !important;
  480.     --tab-min-height: 26px !important; /* adjust to suit your needs */
  481.     --tab-min-height_tnot: 26px !important;}
  482.  
  483.   :root #tabbrowser-tabs {
  484.     --tab-min-height: 26px !important; /* needs to be the same as above */
  485.     --tab-min-width: 90px !important;}
  486.  
  487.   #TabsToolbar {
  488.     height: var(--tab-min-height) !important;
  489.     margin-bottom: 1px !important;}
  490. /*** END: Tabs on bottom ***/
  491.  
  492. /*** BEGIN: Bring back contextual menu shadow ***/
  493.   #main-menubar > menu > menupopup, menupopup {
  494.     border: none !important;
  495.     margin: -1px 0px 0px -10px !important;}
  496.  
  497.   #main-menubar > menu > menupopup, menupopup {
  498.     background-color: transparent !important;
  499.     -moz-appearance: none !important;}
  500.  
  501.   .menupopup-arrowscrollbox {
  502.     margin-left: 9px !important;
  503.     margin-right: 9px !important;
  504.     margin-top: 2px !important;
  505.     margin-bottom: 16px !important;
  506.     border: 1px solid #C4C4C4 !important;
  507.     border-radius: 5px !important;
  508.     box-shadow: 0px 7px 8px 1px rgba(0,0,0,0.2) !important;
  509.     background-color: Menu !important;}
  510. /*** END: Bring back contextual menu shadow ***/
  511.  
  512.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement