Last active
November 18, 2022 04:50
-
-
Save nathandaven/93f52bdc881a6e7cc621e097404b0d01 to your computer and use it in GitHub Desktop.
TabCenterReborn.css - Updated for Firefox 107
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Tab Center Reborn - Custom CSS | |
| Updated 11/17/22 due to Firefox 107 breakage | |
| */ | |
| /* Overwrite some colors */ | |
| :root { | |
| --tab-separator: transparent; | |
| --tab-selected-line: transparent; | |
| --tablist-separator: #cccccc; | |
| --input-text: rgb(76, 76, 76); | |
| --icons: rgb(76, 76, 76); | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --background: rgb(40, 40, 40); | |
| --icons: rgb(251, 251, 254); | |
| --tab-separator: transparent; | |
| --tab-active-background: rgb(87, 143, 58); | |
| --tab-active-text: rgb(251, 251, 251); | |
| --tab-text: #fbfbfe; | |
| --toolbar-background: rgb(43, 42, 51); | |
| --toolbar-text: rgb(251, 251, 254); | |
| --input-background: rgb(28, 27, 34); | |
| --input-border: transparent; | |
| --input-background-focus: rgb(66, 65, 77); | |
| --input-selected-text: rgb(251, 251, 254); | |
| --input-text: rgb(251, 251, 254); | |
| --input-text-focus: rgb(251, 251, 254); | |
| --identity-color-toolbar: rgb(251, 251, 254); | |
| --tablist-separator: #333333; | |
| } | |
| } | |
| /* Move topmenu to bottom */ | |
| #topmenu { | |
| order: 2; | |
| background: transparent; | |
| border: none; | |
| } | |
| #newtab { | |
| margin-left: 6px; | |
| } | |
| #settings { | |
| margin-right: 2px; | |
| /* HIDING SETTINGS MENU */ | |
| display: none; | |
| } | |
| /* Hide filterbox */ | |
| #filterbox-icon, | |
| #filterbox-input { | |
| display: none; | |
| } | |
| /* Right-align settings icon */ | |
| #settings { | |
| margin-left: auto; | |
| } | |
| #tablist-wrapper { | |
| height: auto; | |
| margin-top: 4px; | |
| margin-bottom: 4px; | |
| padding-bottom: 8px; | |
| border-bottom: 1px solid var(--tablist-separator); | |
| margin-left: 0px; | |
| padding-left: 2px; | |
| padding-right: 4px; | |
| } | |
| #tablist-wrapper .tab-title-wrapper { | |
| visibility: hidden; | |
| transition: all 0.1s ease; | |
| } | |
| #newtab { | |
| flex-grow: 1; | |
| margin-right: 0px; | |
| margin-left: -2px; | |
| padding-left: 9px; | |
| height: 36px; | |
| } | |
| .tab, | |
| .tab.active { | |
| border-radius: 4px; | |
| border-bottom: none !important; | |
| margin: 1px 0; | |
| transition: max-width 12s ease; | |
| } | |
| body:not(:hover) .tab { | |
| max-width: 34px; | |
| } | |
| #pinnedtablist:not(.compact) .tab, | |
| #tablist .tab { | |
| padding: 0; | |
| } | |
| #pinnedtablist:not(.compact) .tab { | |
| padding-left: 6px; | |
| } | |
| /* Show more when hovering over the sidebar */ | |
| body:hover #tablist-wrapper .tab-title-wrapper { | |
| visibility: visible; | |
| } | |
| body #newtab::after { | |
| content: "New tab"; | |
| visibility: hidden; | |
| margin-left: 10px; | |
| padding-right: 10px; | |
| transition: all 0.1s ease; | |
| } | |
| body:hover #newtab::after { | |
| visibility: visible; | |
| } | |
| body:hover #pinnedtablist:not(.compact) .tab { | |
| padding-left: 0; | |
| } | |
| /* Move container indicators to left */ | |
| .tab { | |
| overflow: visible; | |
| } | |
| #tablist .tab[data-identity-color] .tab-context { | |
| box-shadow: none !important; | |
| } | |
| /* container color tag */ | |
| #tablist .tab[data-identity-color] .tab-context::before { | |
| content: ""; | |
| position: absolute; | |
| top: 6px; | |
| left: 0px; | |
| bottom: 6px; | |
| width: 2px; | |
| border-radius: 0 5px 5px 0; | |
| background: var(--identity-color); | |
| transition: inset 0.1s; | |
| } | |
| #tablist .tab.active[data-identity-color] .tab-context::before { | |
| top: 1px; | |
| bottom: 1px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment