Advertisement
ffcss

my_userChrome.css

Jan 19th, 2023
1,160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 20.82 KB | Source Code | 0 0
  1. /************************************************************************************************/
  2. /* Remove white flash before page load */
  3. #browser vbox#appcontent tabbrowser, #content, #tabbrowser-tabpanels,
  4. browser[type=content-primary],browser[type=content] > html {
  5.     background: #1D1B19 !important
  6. }
  7. /************************************************************************************************/
  8. /*-------------------- return transparent url bar and makes selecting text white with black background for easy view--------------------*/
  9.  
  10.  
  11. :-moz-any(#urlbar-background, #urlbar-input-container,.urlbarView-body-inner, #searchbar, .searchbar-textbox) {
  12.   background-color: transparent !important;
  13.   color: #595959 !important;
  14. }
  15.  
  16. :-moz-any(#urlbar, #searchbar, .searchbar-textbox) ::-moz-selection {
  17.   background: black !important;
  18.   color: white !important;
  19. }
  20.  
  21. #identity-icon{
  22.   opacity: 1 !important;
  23. }
  24.  
  25. /************************************************************************************************/
  26. #titlebar {margin-bottom: -4px !important;}
  27. #titlebar{ -moz-appearance: none !important; }
  28. /************************************************************************************************/
  29. .tab-background[selected],
  30. .browser-toolbar{ background: transparent !important }
  31. /************************************************************************************************/
  32. .tabbrowser-tab:not([selected]) .tab-content{
  33.     color: #363636 !important;
  34. }
  35. .tabbrowser-tab[selected] .tab-label { color: #dcdcdc !important; }
  36. /************************************************************************************************/
  37. #navigator-toolbox{ margin-top: -1px !important }
  38. /************************************************************************************************/
  39. /*--------------------------- hide tracking protection icon --------------------------*/
  40. #tracking-protection-icon-container{ display:none;}
  41. /************************************************************************************************/
  42.  
  43. /* TABS: height */
  44.  
  45. #TabsToolbar {
  46.   height: var(--tab-min-height) !important;
  47.   margin-top: 1px !important;
  48.   margin-bottom: 0px !important;
  49.   box-shadow: ThreeDShadow 0 -1px inset, -moz-dialog 0 0.5px !important; /* omit */
  50.   background-color: var(--toolbar-bgcolor) !important;
  51.   color: var(--toolbar-color) !important;
  52. }
  53.  
  54.  
  55. :root { --tab-min-height: 20px !important; }
  56.  
  57. .tabbrowser-tab {
  58.     height: var(--tab-min-height) !important;
  59. }
  60.  
  61. /***********************************************************************************************/
  62. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_scrollbuttons.css made available under Mozilla Public License v. 2.0
  63. See the above repository for updates as well as full license text. */
  64.  
  65. /* This should hide tabs scrollbuttons in a manner that preserves the ability to move tab strip when reordering tabs */
  66.  
  67. #tabbrowser-tabs:not([movingtab]){ --uc-scroll-visibility: hidden }
  68. #tabbrowser-tabs[overflow]{ --uc-scrollbox-margin: -28px }
  69.  
  70. #scrollbutton-up{ position: relative;z-index: 1 }
  71.  
  72. #scrollbutton-up,
  73. #scrollbutton-down,
  74. #scrollbutton-up ~ spacer{
  75.   visibility: var(--uc-scroll-visibility,visible);
  76. }
  77. .scrollbox-clip{ margin-inline: var(--uc-scrollbox-margin,0); }
  78. /***********************************************************************************************/
  79.   /** Menu - Reduce Padding ***************************************************/
  80.   :root:not([uidensity=touch]) menupopup > menuitem, menupopup > menu {
  81.     padding-block:     0.35em !important; /* Original: 0.5em */
  82.   }
  83.   :root:not([uidensity=touch]) .menu-text, .menu-iconic-text {
  84.     padding-inline-end: 0 !important; /* Original: 2px */
  85.   }
  86.   :root:not([uidensity=touch]) #context-navigation:not([hidden]) {
  87.     padding: 0 0 1px; /* Original: 0 0 4px*/
  88.   }
  89.   :root:not([uidensity=touch]) .menu-right {
  90.     margin-right: 6px !important; /* Original: 12px */
  91.   }
  92.  
  93.   :root[uidensity=compact] menupopup > menuitem, menupopup > menu {
  94.     padding-block:     0.25em !important; /* Original: 0.5em */
  95.   }
  96. }
  97. /***********************************************************************************************/
  98. /*--------------------------- layout.css.backdrop-filter.enabled -have to be set on true --------------------------*/
  99. /* Backdrop filter URLbar + glow removed */
  100.  
  101. #urlbar[breakout][breakout-extend] {
  102.     top: 0px !important;
  103.     left: 0px !important;
  104.     width: 100% !important;
  105. }
  106.  
  107. #urlbar-input-container {
  108.     border: none !important;
  109. }
  110.  
  111. #urlbar[breakout][breakout-extend] > #urlbar-input-container {
  112.     height: var(--urlbar-toolbar-height) !important;
  113.     padding-block: 0px !important;
  114.     padding-inline: 0px !important;
  115. }
  116.  
  117. #urlbar-results {
  118.     padding: 0px !important;
  119. }
  120.  
  121. .urlbarView {
  122.     margin-inline: 0px !important;
  123.     border: none !important;
  124.     width: 100% !important;
  125.     box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, .32) !important;
  126.     clip-path: inset(0px -20px -30px -20px) !important;
  127.     animation: none !important;
  128.     margin-block-start: 0px !important;
  129.     outline: none;
  130. }
  131.  
  132. .urlbarView-results {
  133.     padding-block: 0px !important;
  134. }
  135.  
  136. .urlbarView .urlbarView-row {
  137.     border-radius: 0px !important;
  138.     padding-block: 0px !important;
  139. }
  140.  
  141. .urlbarView-row-inner {
  142.     border-radius: 0px !important;
  143. }
  144.  
  145. .urlbarView-body-inner {
  146.     border: none !important;
  147. }
  148.  
  149. .urlbarView-title {
  150.     height: 18px !important;
  151. }
  152. /* choose #0C0C0DC0 for 5% black */
  153. @supports (backdrop-filter: blur(1px)) {
  154.     .urlbarView {
  155.         background: #000000 !important;
  156.         backdrop-filter: blur(28px) !important;
  157.     }
  158. }
  159. /***********************************************************************************************/
  160. /* Enables transparency/blur on the search box too */
  161. .search-one-offs, .search-panel-header, .search-panel-one-offs {
  162.     background: none !important;
  163. }
  164. /***********************************************************************************************/
  165.   /** Sound Tab - Hide Label **************************************************/
  166.   .tab-secondary-label:is([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]){
  167.     display: none !important;
  168.   }
  169.  
  170.   /* Makes the speaker icon to always appear if the tab is playing (not only on hover) */
  171.   .tab-icon-overlay:not([crashed]),
  172.   .tab-icon-overlay[pinned][crashed][selected] {
  173.     /* Position */
  174.     top: 0px !important;
  175.     inset-inline-end: 4px !important;
  176.     z-index: 1 !important;
  177.  
  178.     /* Shape */
  179.     padding: 0.2px !important;
  180.     border-radius: 3px !important;
  181.     width:  26px !important;
  182.     height: 16px !important;
  183.   }
  184.  
  185.   .tab-icon-overlay:not([sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
  186.     /* Color */
  187.     color:  lime !important;
  188.     stroke: transparent !important;
  189.     background: black !important;
  190.     fill-opacity: 0.8 !important;
  191.     opacity: 0.8 !important;
  192.   }
  193.  
  194. .tab-icon-overlay[muted] {
  195. fill: red !important;}
  196.  
  197.   .tab-icon-overlay:not([pinned], [sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
  198.     margin-inline-end: 0px !important;
  199.   }
  200. /***********************************************************************************************/
  201. /* Gray out the favicon icon on the inactive tab */
  202.         .tabbrowser-tab .tab-icon-image:not([selected=true]):not([pinned]) {
  203.         filter: grayscale(75%) !important;
  204.         }
  205. /***********************************************************************************************/
  206. /*--------------------------- change fonts and background color in print dialog window --------------------------*/
  207. @-moz-document url-prefix("chrome://global/content/print.html") {
  208.   body {
  209.     background: #474747 !important;
  210.     color: white !important;
  211.     font-size: 1.2rem;
  212.     font-family: 'Tahoma' !important;
  213.   }
  214.  
  215.   #printer-picker {
  216.  
  217.     font-family: 'Tahoma' !important;
  218.     font-size: 1.1rem !important;
  219.   }
  220.  
  221.   label, .label, #open-dialog-link {
  222.     font-family: 'Tahoma' !important;
  223.     font-size: 1.1rem !important;
  224.   }
  225.  
  226.   html|button:enabled:hover, [multiple]):enabled:hover, html|input[type="color"]:hover, xul|button:not([disabled="true"]):hover, xul|menulist:not([disabled="true"]):hover {
  227.     background-color: #474747 !important;
  228.   }
  229.  
  230.   html|select:not([size], [multiple]) {
  231.     background-color: black !important;
  232.     font-size: 1.1rem !important;
  233.     font-family: 'Tahoma' !important;
  234.   }
  235.  
  236.   html|a:hover, .text-link:hover {
  237.     color: var(--in-content-link-color-hover);
  238.     text-decoration: none !important;
  239.   }
  240.  
  241.   #button-container > button {
  242.     flex: 1 1 auto;
  243.     margin: 0;
  244.     font-family: 'Tahoma' !important;
  245.     border: 1px solid #474747 !important;
  246.   }
  247.  
  248.   * {
  249.     scrollbar-width: none !important;
  250.     scrollbar-color: rgb(27,27,27) rgb(12,12,12) !important;
  251.   }
  252.  
  253. }
  254. /***********************************************************************************************/
  255. /*-- change/dimming the brightness on print dialog window so that white pages doesn`t irritate the eyes --*/
  256. .dialogOverlay {
  257.   background-color: transparent !important;
  258. }
  259.  
  260. .printPreviewBrowser {
  261.   opacity: 0.9 !important;
  262. }
  263.  
  264. .previewStack[previewtype="primary"] {
  265.     background: black !important;
  266. }
  267. /***********************************************************************************************/
  268. #context_reloadTab,
  269. #context_shareTabURL,
  270. #context_reopenInContainer,
  271. #context-sep-sendlinktodevice,
  272. #context-sep-copylink,
  273. #context-video-saveimage,
  274. #context-copyimage-contents,
  275. #context-sendimage,
  276. #context-sendvideo,
  277. #context-sendaudio,
  278. #context-sendpagetodevice,
  279. #spell-separator,
  280. #spell-check-enabled,
  281. #spell-add-to-dictionary,
  282. #spell-undo-add-to-dictionary,
  283. #spell-add-dictionaries-main,
  284. #spell-add-dictionaries,
  285. #spell-no-suggestions,
  286. #spell-suggestions-separator,
  287. #context-openlinkprivate,
  288. #context-savelinktopocket,
  289. #context-inspect,
  290. #context-inspect-a11y,
  291. #context-selectall,
  292. #context-bookmarkpage,
  293. #context-viewimage,
  294. #context-viewvideo,
  295. #context-video-pictureinpicture,
  296. #context-openlinkintab,
  297. #context-keywordfield,
  298. #context-print-selection,
  299. #pageActionContextMenu > menuitem[data-l10n-id="page-action-remove-extension"],
  300. #customizationPanelItemContextMenu > .customize-context-removeExtension,
  301. #customizationPanelItemContextMenu > .customize-context-reportExtension,
  302. #customizationPanelItemContextMenuPin,
  303. #customizationPanelItemContextMenuUnpin,
  304. #customizationPanelItemContextMenu > .customize-context-removeFromPanel,
  305. #customizationPanelItemContextMenuUnpin + menuitem + menuseparator,
  306. #context-media-eme-separator,
  307. #context-media-eme-learnmore,
  308. #context-openlink,
  309. #context-bookmarklink,
  310. #context-take-screenshot,
  311. #context_newTab,
  312. #context_toggleMuteTab,
  313. #context_pinTab,
  314. #context_unpinTab,
  315. #context_pinSelectedTabs,
  316. #context_unpinSelectedTabs,
  317. #context_duplicateTab,
  318. #context_selectAllTabs,
  319. #context_selectAllTabs + menuseparator,
  320. #context_closeTabOptions,
  321. #context_closeTab,
  322. #context_moveTabOptions,
  323. #context_bookmarkSelectedTabs,
  324. #context_bookmarkTab { display: none !important;
  325. }
  326. /***********************************************************************************************/
  327. /* MAKES LINK PREVIEW BOTTOM LEFT DARK */
  328. #statuspanel #statuspanel-label, statuspanel .statuspanel-label {
  329.   background: black !important;
  330.   color: var(--lwt-toolbar-field-color, white) !important;
  331.   border-color: var(--panel-separator-color) !important;
  332. }
  333. /***********************************************************************************************/
  334. /*--------------------------- remove stupid fav star in url bar --------------------------*/
  335. #urlbar #star-button{
  336.   display: none !important;
  337. }
  338. /***********************************************************************************************/
  339. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  340. See the above repository for updates as well as full license text. */
  341.  
  342. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  343. #TabsToolbar > .titlebar-buttonbox-container{
  344.   position: fixed;
  345.   display: block;
  346.   top: 0px;
  347.   right:0;
  348.   height: 20px;
  349. }
  350. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  351. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  352.   .titlebar-buttonbox-container{ left:0; right: unset !important; }
  353. }
  354.  
  355. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  356.  
  357. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  358.  
  359. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  360.  
  361. #titlebar{
  362.   -moz-box-ordinal-group: 2;
  363.   -moz-appearance: none !important;
  364.   --tabs-navbar-shadow-size: 0px;
  365.   --uc-menubar-vertical-overlap: 19px; /* for hide_tabs_with_one_tab_w_window_controls.css compatibility */
  366. }
  367. /* Re-order window and tab notification boxes */
  368. #navigator-toolbox > div{ display: contents }
  369. .global-notificationbox,
  370. #tab-notification-deck{ -moz-box-ordinal-group: 2 }
  371.  
  372. #TabsToolbar .titlebar-spacer{ display: none; }
  373. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  374. #navigator-toolbox::after{ display: none !important; }
  375.  
  376. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  377. /***********************************************************************************************/
  378. /*--------------------------- change close windows popup colors --------------------------*/
  379. @-moz-document url("chrome://global/content/commonDialog.xhtml"){
  380.  
  381.   dialog#commonDialog {
  382.     background: #42414d !important;
  383.     color: #fbfbfe !important;
  384.   }
  385.  
  386.   button[label="Close tabs"] {
  387.     background: red !important;
  388.     color: #fbfbfe !important;
  389.   }
  390.  
  391.   button[label="Cancel"] {
  392.     background: black !important;
  393.     color: #fbfbfe !important;
  394.   }
  395.  
  396.   .checkbox-label {
  397.     color: #ff6b6b !important;
  398.   }
  399.  
  400. }
  401. /***********************************************************************************************/
  402. /*--------------------------- wider tabs --------------------------*/
  403. .tabbrowser-tab[fadein] {
  404.     max-width: 100vw !important;
  405. }
  406. /***********************************************************************************************/
  407. /*--------------------------- remove 1px nasty line below tabs --------------------------*/
  408. #navigator-toolbox {
  409.     border-bottom: 0 !important;
  410. }
  411. /***********************************************************************************************/
  412. .menuitem-iconic.context-menu-add-engine, .menuseparator-add-engine {
  413.     display: none !important;
  414. }
  415. /***********************************************************************************************/
  416. #back-button:not([disabled="true"]),
  417. #forward-button:not([disabled="true"]),
  418. #reload-button:not([disabled="true"]) {
  419.   filter: contrast(100);
  420. }
  421. /***********************************************************************************************/
  422. #contentAreaContextMenu .menu-text, #toolbar-context-menu .menu-text {
  423.   margin-left: -35px !important;
  424. }
  425. /***********************************************************************************************/
  426. .tabbrowser-tab:hover .tab-label-container { color: red; }
  427. /***********************************************************************************************/
  428. /* Moves View Image to the very top */
  429. menuitem[id*="view-image-context-menu-item"] { -moz-box-ordinal-group: 0 !important; }
  430.  
  431. /* Moves View Video to the very top */
  432. menuitem[id*="view-video-context-menu-item"] { -moz-box-ordinal-group: 0 !important; }
  433.  
  434. /* Moves View Audio to the very top */
  435. menuitem[id*="view-audio-context-menu-item"] { -moz-box-ordinal-group: 0 !important; }
  436. /***********************************************************************************************/
  437. .autoscroller {
  438.   --autoscroll-background-image: url("autoscroll.svg") display: none !important;
  439. }
  440. /***********************************************************************************************/
  441. .tab-close-button{ margin-inline-end: calc(0px - var(--inline-tab-padding)) !important; }
  442. /***********************************************************************************************/
  443. /* remove padding from window margin in url bar */
  444. #PanelUI-menu-button{
  445.     padding-inline-end: 0px !important;
  446. }
  447. /***********************************************************************************************/
  448. /*** Proton Tabs Tweaks ***/
  449.  
  450. /* Adjust tab corner shape, optionally remove space below tabs */
  451.  
  452. #tabbrowser-tabs {
  453.     --user-tab-rounding: 0px;
  454. }
  455.  
  456.     .tab-background {
  457.         border-radius: var(--user-tab-rounding) var(--user-tab-rounding) 0px 0px !important;
  458.         margin-block: 0.5px 0 !important;
  459.     }
  460.  
  461. /* Inactive tabs: Separator line style */
  462.  
  463.     .tab-background:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) {
  464.         border-right: 0.5px solid rgba(21, 20, 26, .20) !important;
  465.     }
  466.     /* For dark backgrounds */
  467.     [brighttext="true"] .tab-background:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) {
  468.         border-right: 0.5px solid var(--lwt-selected-tab-background-color, rgba(21, 20, 26, .20)) !important;
  469.     }
  470.     .tab-background:not([selected=true]):not([multiselected=true]) {
  471.         border-radius: 0 !important;
  472.     }
  473.     /* Remove padding between tabs */
  474.     .tabbrowser-tab {
  475.         padding-left: 0 !important;
  476.         padding-right: 0 !important;
  477.     }
  478.  
  479. :root {
  480.  --proton-tab-block-margin: 0px 0px !important;
  481. }
  482. /***********************************************************************************************/
  483. .tab-background{ border-top: 0 !important }
  484. /***********************************************************************************************/
  485. .titlebar-spacer[type="post-tabs"]{ display: none }
  486. /***********************************************************************************************/
  487. #personal-bookmarks .bookmark-item,
  488. #bookmarksMenuPopup .bookmark-item { max-width: none !important; }
  489. /***********************************************************************************************/
  490. #PlacesToolbar menupopup[placespopup="true"] {
  491.   --arrowpanel-background: Black !important;
  492.   --arrowpanel-color: White !important;
  493. }
  494. /***********************************************************************************************/
  495. #PlacesToolbarItems toolbarbutton[container="true"]:not([query="true"]) .toolbarbutton-icon,
  496. :-moz-any( #PlacesToolbarItems, #PlacesChevronPopup, #BMB_bookmarksPopup, #bookmarksMenu, #OtherBookmarksPopup ) menu[container="true"]:not([query="true"]) > .menu-iconic-left > .menu-iconic-icon {
  497.     fill: gray !important;
  498. display: none !important;
  499. }
  500. /*----------------------------------------------------------------------------------------------------------*/
  501. #alltabs-button, #new-tab-button, #scrollbutton-up, #tabs-newtab-button, #scrollbutton-down {
  502.     fill: black !important; /*color code here*/
  503. }
  504. /*----------------------------------------------------------------------------------------------------------*/
  505. #appMenu-popup {padding-left: 15px !important;}
  506. /*----------------------------------------------------------------------------------------------------------*/
  507. .sidebar-splitter {display: none !important;}
  508. /*----------------------------------------------------------------------------------------------------------*/
  509. .urlbar-input-box{
  510.   overflow: clip;
  511. }
  512. #urlbar-input{
  513.   margin-left: calc(var(--urlbar-scheme-size) * -0.76) !important;
  514. }
  515. /*----------------------------------------------------------------------------------------------------------*/
  516. :root[uidensity="compact"]{
  517.   --toolbarbutton-inner-padding: 3px !important;
  518. }
  519. /*----------------------------------------------------------------------------------------------------------*/
  520. #context-navigation{ background: transparent !important }
  521. /*----------------------------------------------------------------------------------------------------------*/
  522. /*Useless blue border on tabs fix (DO NOT TOUCH UNLESS YOU DON'T WANT THOSE LITTLE PEKSY TABS COLORED OF BLUE ON BORDERS)*/
  523. #TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon:-moz-lwtheme, .tab-background[selected]:-moz-lwtheme {
  524.     outline:none !important;
  525. }
  526. /*----------------------------------------------------------------------------------------------------------*/
  527. #PlacesToolbar menu.bookmark-item,
  528. #PlacesToolbar menuitem.bookmark-item{
  529.   padding-block: 0px !important;
  530. }
  531. /*----------------------------------- #unified-extensions-button {  display: none !important;} can be potential problem so use this-----------------------------------------------------------------------*/
  532. #unified-extensions-button{
  533.   width: 0.1px;
  534.   padding-inline: 0 !important
  535. }
  536. #unified-extensions-button > .toolbarbutton-icon{
  537.   width: 0 !important;
  538. }
  539. /*----------------------------------------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement