Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* REDUCE FINDBAR HEIGHT START */
- .browserContainer > findbar {
- padding-block: 0px !important;
- }
- .findbar-textbox {
- min-width: 18em !important;
- width: 22em !important;
- }
- /* REDUCE FINDBAR HEIGHT END */
- /* BOOKMARK BAR HEIGHT START - DOESN'T DO ANYTHING NOW, 22px IS DEFAULT */
- #PersonalToolbar.browser-toolbar.chromeclass-directories.instant.customization-target {
- height: 22px !important;
- }
- /* BOOKMARK BAR HEIGHT END */
- /* REMOVE NEW TAB AND SHARE FROM TAB CONTEXT MENU START */
- #context_openANewTab, menuitem.share-tab-url-item {
- display: none !important;
- }
- #context_openANewTab + menuseparator {
- display: none !important;
- }
- /* REMOVE NEW TAB AND SHARE FROM TAB CONTEXT MENU END */
- /* DISABLE TAB BAR DIMMING START */
- #TabsToolbar:-moz-window-inactive {
- opacity: 1 !important;
- color: rgba(255, 255, 255, 0.6) !important;
- }
- .tabbrowser-tab:-moz-window-inactive:is([selected], [multiselected]) {
- color: rgba(0, 0, 0, 0.6) !important;
- }
- /* DISABLE TAB BAR DIMMING END */
- /* PROTON TABS */
- /*@media not(-moz-bool-pref: "sidebar.verticalTabs") { */
- :root {
- /* --tab-min-height: 32px !important; #not needed since v134.0 */
- --tab-block-margin: 0px !important;
- }
- #TabsToolbar {
- color: white !important;
- background: #202340 !important;
- }
- #tabbrowser-tabs .tab-background {
- margin-block: unset !important;
- border-radius: unset !important;
- }
- .tabbrowser-tab {
- padding-inline: 0px !important;
- }
- .tabbrowser-tab:hover {
- background: linear-gradient(#5f6175 2px, transparent 0), radial-gradient(circle at 17px, #f9f9fa 0px, transparent 15px) !important;
- }
- /* } ### @media not(-moz-bool-pref: "sidebar.verticalTabs")
- doesn't seem to disable the code just for vertical tabs,
- but for normal tabs as well */
- /* moves context-line (container indicator) to the bottom - no longer works in v113+ */
- /* .tab-context-line {
- -moz-box-ordinal-group: 2;
- margin-inline: 10px !important;
- } */
- /* Move container color bar to bottom of tab */
- .tab-context-line {
- margin: var(--tab-min-height) 4px 0 4px !important;
- }
- /* PINNED TAB START IHAVENOIDEAWHATIMDOINGHERE */
- /* minimum 34px needed for some notification dots, 36px is optimal to see the full dot */
- /*.tabbrowser-tab[pinned] {
- min-height: 36px !important;
- }*/
- .tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected]) {
- background-position: center bottom 1px !important;
- }
- .tab-background:is([selected], [multiselected]){
- box-shadow: none !important;
- }
- /* ACTIVE TAB START */
- /* .tabbrowser-tab[selected="true"] {
- /* font-style: italic !important;
- /* color: orange !important;
- /* background-color: #333866 !important;
- /* background-color: #f9f9fa !important;
- /* background-image: linear-gradient(-135deg, rgb(204,0,0) 6px, transparent 0) !important;
- } */
- /* Blue line on active tab start */
- .tab-background[selected] {
- background-color: var(--toolbar-bgcolor) !important;
- background-image: linear-gradient(#0a84ff 2px, transparent 0) !important;
- }
- /* Blue line on active tab end */
- /* ACTIVE TAB END */
- /* UNLOADED TAB BG COLOR START */
- .tabbrowser-tab[pending="true"] {
- font-style: italic !important;
- /* color: orange !important; */
- background-color: #333866 !important;
- /* background-image: linear-gradient(-135deg, rgba(204,0,0, 0.6) 6px, transparent 0) !important; */
- }
- /* UNLOADED TAB BG COLOR END */
- /* FAVICON BG COLOR START *
- .tabbrowser-tab:not([selected="true"]):not([pending="true"]):not([pinned]){
- background-image: radial-gradient(circle at 16px, #f9f9fa 1px, transparent 16px);
- }
- /* FAVICON BG COLOR END */
- /* New tab button color */
- #new-tab-button, #alltabs-button {
- fill: currentColor !important;
- }
- /* hide favicon when audio is playing (like FF 135) *
- #tabbrowser-tabs:is([orient="vertical"][expanded], [orient="horizontal"]) .tabbrowser-tab:not([pinned]):not([crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
- .tab-audio-button {
- display: flex !important;
- justify-self: flex-start !important;
- align-self: center !important;
- }
- .tab-icon-stack > :not(.tab-icon-overlay)
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at right top, black 8px, transparent 9px) !important;
- mask-size: 16px 16px !important;
- mask-position: center center !important;
- mask-repeat: no-repeat !important;
- mask-composite: exclude !important;
- mask-mode: alpha !important;
- :root:-moz-locale-dir(rtl) &
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at left top, black 8px, transparent 9px) !important;
- }
- }
- }
- /* Remove unwanted extra tab width when audio is playing *
- .tabbrowser-tab {
- &:is([muted], [soundplaying], [activemedia-blocked]) {
- #tabbrowser-tabs[orient="horizontal"] &:not([pinned]) {
- min-width: max(var(--tab-min-width-pref, var(--tab-min-width))) !important;
- }
- }
- }*/
- /* -------------------- Media Icons -------------------- */
- /* Pinned Tabs */
- .tabbrowser-tab[pinned]:not([crashed])
- {
- .tab-icon-overlay
- {
- background-color: transparent !important;
- background-image: none !important;
- fill: currentColor !important;
- border-radius: 50px !important;
- top: -8px !important;
- inset-inline-end: -8px !important;
- &:hover
- {
- background-color: color-mix(in srgb, currentColor 15%, transparent) !important;
- }
- &:hover:active
- {
- background-color: color-mix(in srgb, currentColor 30%, transparent) !important;
- }
- }
- &:where([soundplaying], [muted], [activemedia-blocked]) .tab-icon-stack > :not(.tab-icon-overlay)
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at right top, black 8px, transparent 9px) !important;
- mask-size: 16px 16px !important;
- mask-position: center center !important;
- mask-repeat: no-repeat !important;
- mask-composite: exclude !important;
- mask-mode: alpha !important;
- :root:-moz-locale-dir(rtl) &
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at left top, black 8px, transparent 9px) !important;
- }
- }
- }
- /* Regular Tabs */
- .tabbrowser-tab:not([pinned], [crashed])
- {
- .tab-audio-button
- {
- position: relative !important;
- transform: translate(-1px, 1px);
- margin-inline-end: 8px !important;
- --icon-size-default: 10px !important;
- --button-size-icon-small: 16px !important;
- --button-min-height-small: 16px !important;
- --button-background-color-ghost: transparent !important;
- --button-background-color-ghost-hover: color-mix(in srgb, currentColor 15%, transparent) !important;
- --button-background-color-ghost-active: color-mix(in srgb, currentColor 30%, transparent) !important;
- --button-border-radius: 50px !important;
- --button-text-color-ghost: currentColor !important;
- --button-text-color-ghost-hover: currentColor !important;
- --button-text-color-ghost-active: currentColor !important;
- --button-icon-fill: currentColor !important;
- --button-text-color: currentColor !important;
- --button-border: none !important;
- --button-icon-stroke: none !important;
- transform: translate(-1px, 2px);
- }
- &:where([busy], [image], [sharing], [pictureinpicture]) .tab-audio-button
- {
- top: -8px !important;
- inset-inline-end: -8px !important;
- }
- &:where([soundplaying], [muted], [activemedia-blocked])
- {
- .tab-audio-button
- {
- display: flex !important;
- justify-self: flex-start !important;
- align-self: center !important;
- }
- .tab-icon-stack > :not(.tab-icon-overlay)
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at right top, black 8px, transparent 9px) !important;
- mask-size: 16px 16px !important;
- mask-position: center center !important;
- mask-repeat: no-repeat !important;
- mask-composite: exclude !important;
- mask-mode: alpha !important;
- :root:-moz-locale-dir(rtl) &
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at left top, black 8px, transparent 9px) !important;
- }
- }
- }
- }
- .tabbrowser-tab:not([pinned])
- {
- --tab-min-width: inherit !important;
- &[fadein]
- {
- min-width: var(--tab-min-width) !important;
- }
- .tab-icon-stack > *
- {
- margin-inline-end: 8px !important;
- }
- .tab-content
- {
- display: grid !important;
- grid-template-rows: auto !important;
- grid-template-columns: auto minmax(0px, 100%) auto !important;
- .tab-icon-stack,
- .tab-audio-button
- {
- grid-area: 1 / 1 / auto / auto !important;
- }
- }
- }
- /* ---------- Picture-In-Picture ---------- */
- .tabbrowser-tab[pictureinpicture]:not([crashed], [busy])
- {
- .tab-icon-stack::before
- {
- content: "";
- display: block;
- position: absolute;
- width: 16px;
- height: 16px;
- background-color: currentColor;
- mask-size: 16px 16px;
- mask-position: center center;
- mask-repeat: no-repeat;
- mask-mode: alpha;
- :root:-moz-locale-dir(rtl) &
- {
- transform: rotateY(180deg);
- }
- }
- .tab-icon-stack > :not(.tab-icon-overlay)
- {
- position: relative !important;
- padding: 2px !important;
- inset-inline-start: 8px !important;
- top: 8px !important;
- mask-image: none !important;
- box-sizing: border-box !important;
- z-index: 1 !important;
- }
- &:not([soundplaying], [muted], [activemedia-blocked]) .tab-icon-stack::before
- {
- mask-image: linear-gradient(to bottom, black, black), linear-gradient(to bottom, black, black), url("chrome://global/skin/media/picture-in-picture-open.svg");
- mask-size: 8px 8px, 8px 8px, 16px 16px;
- mask-position: right bottom, right bottom, center center;
- mask-repeat: no-repeat;
- mask-composite: exclude, add;
- }
- &:is([soundplaying], [muted], [activemedia-blocked]) .tab-icon-stack::before
- {
- mask-image: linear-gradient(to bottom, black, black), linear-gradient(to bottom, black, black), url("chrome://global/skin/media/picture-in-picture-open.svg");
- mask-size: 8px 16px, 8px 16px, 16px 16px;
- mask-position: right bottom, right bottom, center center;
- mask-repeat: no-repeat;
- mask-composite: exclude, add;
- }
- }
- /* -------------------- Tab Text -------------------- */
- .tab-label-container
- {
- height: auto !important;
- font-size: clamp(0px, 1em, 16px) !important;
- mask-image: none !important;
- }
- .tab-label
- {
- width: 100% !important;
- height: auto !important;
- line-height: normal !important;
- overflow: hidden !important;
- white-space: nowrap !important;
- text-overflow: ellipsis !important;
- margin-block: 0px !important;
- }
- .tab-secondary-label
- {
- display: none !important;
- }
- /* -------------------- Media Icons (Backup option) -------------------- */
- /* Regular Tabs */
- /*
- .tabbrowser-tab:not([pinned], [crashed])
- {
- .tab-icon-overlay
- {
- background-color: currentColor !important;
- border-radius: 50px !important;
- top: 0px !important;
- inset-inline-end: 0px !important;
- mask-image: var(--mask-overlay-background, none), var(--mask-overlay-image, none) !important;
- mask-size: 16px 16px, 12px 12px !important;
- mask-position: center center !important;
- mask-repeat: no-repeat !important;
- mask-mode: alpha !important;
- &:hover
- {
- --mask-overlay-background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.15));
- }
- &:hover:active
- {
- --mask-overlay-background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.3));
- }
- }
- &[soundplaying] .tab-icon-overlay
- {
- --mask-overlay-image: url("chrome://browser/skin/tabbrowser/tab-audio-playing-small.svg");
- }
- &[muted] .tab-icon-overlay
- {
- --mask-overlay-image: url("chrome://browser/skin/tabbrowser/tab-audio-muted-small.svg");
- }
- &[activemedia-blocked] .tab-icon-overlay
- {
- --mask-overlay-image: url("chrome://browser/skin/tabbrowser/tab-audio-blocked-circle-12.svg");
- }
- &:where([busy], [image], [sharing], [pictureinpicture]) .tab-icon-overlay
- {
- top: -8px !important;
- inset-inline-end: -8px !important;
- }
- &:where([soundplaying], [muted], [activemedia-blocked])
- {
- .tab-icon-stack > :not(.tab-icon-overlay)
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at right top, black 8px, transparent 9px) !important;
- mask-size: 16px 16px !important;
- mask-position: center center !important;
- mask-repeat: no-repeat !important;
- mask-composite: exclude !important;
- mask-mode: alpha !important;
- :root:-moz-locale-dir(rtl) &
- {
- mask-image: linear-gradient(to bottom, black, black), radial-gradient(circle at left top, black 8px, transparent 9px) !important;
- }
- }
- .tab-icon-overlay
- {
- display: revert !important;
- }
- }
- }
- .tabbrowser-tab:not([pinned])
- {
- --tab-min-width: inherit !important;
- &[fadein]
- {
- min-width: var(--tab-min-width) !important;
- }
- .tab-icon-stack > *
- {
- margin-inline-end: 8px !important;
- }
- .tab-audio-button
- {
- display: none !important;
- }
- }
- */
- /* -------------------- Media Icons End -------------------- */
- /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
- menupopup > menuitem, menupopup > menu {
- padding-block: 2px !important;
- }
- :root {
- --arrowpanel-menuitem-padding: 1px 2px !important; /* wtf is this? */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement