dotfiles/firefox/userChrome.css
2025-07-05 07:45:19 -05:00

56 lines
1.5 KiB
CSS

/* userChrome.css */
/*
<profile>/user.js ->
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
<profile>/chrome/userChrome.css
*/
/* disable various context menu elements */
/* src: browser/base/content/browser-context-inc */
#context-searchselect { display: none !important; }
#context-sendaudio { display:none !important; }
#context-sendimage { display:none !important; }
#context-sendlink { display:none !important; }
#context-sendlinktodevice { display:none !important; }
#context-sendpage { display:none !important; }
#context-sendpagetodevice { display:none !important; }
#context-sendvideo { display:none !important; }
#frame-sep { display: none !important;}
/* horizontal tabs tweaks */
/* floating -> anchored to bottom */
.tab-background{
border-radius: 1px 1px 0px 0px !important;
margin-bottom: 0px !important;
}
/* increase inactive tab contrast */
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background{
background-color: color-mix(in srgb, currentColor 5%, transparent);
}
/* add highlight line to top of selected tab */
.tab-background[selected]::before,
.tabbrowser-tab:hover > stack > .tab-background::before{
display: -moz-box;
height: 2px;
content: "";
}
.tab-stack:hover > .tab-background::before{
background-color: inherit;
}
.tab-stack > .tab-background[selected]::before{
background-color: highlight;
background-image: linear-gradient(var(--tab-line-color),var(--tab-line-color));
}
/* hamburger menu item spacing */
:root{
--arrowpanel-menuitem-padding: 4px 8px !important;
}