Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Tree Style Tabs w/ auto-hide tweaks FF 04/24 */
- /* - - - userChrome.css - - - */
- #titlebar {
- appearance: none !important;
- height: 0px;
- }
- #titlebar > #toolbar-menubar {
- margin-top: 0px;
- }
- #TabsToolbar {
- min-width: 0 !important;
- min-height: 0 !important;
- }
- #TabsToolbar > .titlebar-buttonbox-container {
- display: block;
- position: absolute;
- top: 12px;
- left: 0px;
- }
- #sidebar-header {
- visibility: collapse !important;
- }
- /* Sidebar sliding auto-reveal */
- /* Sidebar min and max width removal */
- #sidebar {
- max-width: none !important;
- min-width: 0px !important;
- }
- /* Hide splitter */
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter {
- display: none !important;
- }
- /* Hide sidebar header */
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
- visibility: collapse;
- }
- /* Shrink sidebar until hovered */
- :root {
- --thin-tab-width: 30px;
- --wide-tab-width: 300px;
- }
- #sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
- min-width: var(--wide-tab-width) !important;
- max-width: none !important;
- }
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
- overflow: hidden !important;
- position: relative !important;
- transition: all 300ms !important;
- /*transition: all 0ms 0s !important;*/
- min-width: var(--thin-tab-width) !important;
- max-width: var(--thin-tab-width) !important;
- z-index: 2;
- }
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover,
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar {
- /*transition-delay: 0s !important;*/
- transition: all 300ms !important;
- min-width: var(--wide-tab-width) !important;
- max-width: var(--wide-tab-width) !important;
- z-index: 1;
- }
- #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
- margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
- }
- /* - - - tree style tabs preferences "extra rules" - - - */
- /* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */
- #tabbar {
- border: 0;
- scrollbar-width: none;
- overflow: scroll !important;
- margin-top: 0 !important;
- }
- /* Include 'reveal' animation ... stagers by level */
- #tabbar .tab {
- transition: 0.1s margin-top, 0.2s 0.1s margin-left, 0.2s 0.1s visibility;
- }
- /* delay transitions on open */
- #tabbar:not(:hover) .tab {
- transition-delay: 0s;
- margin-left: 0;
- }
- /* animate twisty reveal */
- #tabbar .tab .twisty {
- transition: 0.2s margin;
- }
- /* general tabs */
- .tab {
- background-color: transparent;
- }
- .tab,
- .tab.pinned {
- height: 2.8em;
- }
- /* Push tab labels slightly to the right so they're completely hidden in collapsed state, but still look fine while expanded. */
- .tab .label {
- margin-left: 1em;
- }
- /* fix closebox */
- .tab .closebox {
- margin-left: 0;
- }
- .tab .counter {
- margin-left: auto;
- display: inline-block !important;
- }
- /* Hide .twisty and adjust margins so favicons have 7px on left. */
- #tabbar:not(:hover) .tab .twisty {
- visibility: hidden;
- margin-left: -12px;
- transition-delay: 0s;
- }
- /* hide closebox unless needed */
- .tab:not(:hover) .closebox {
- visibility: hidden;
- }
- /* Hide sound playing/muted button. */
- .sound-button {
- margin-left: 0;
- display: inline-block;
- visibility: collapse;
- }
- .tab.audible .sound-button {
- visibility: visible;
- margin-left: 0.25em;
- }
- .tab:not([data-child-ids]) .counter {
- /* visibility: hidden; */
- }
- tab-item:not(.subtree-collapsed) .counter {
- visibility: hidden;
- }
- /* Hide 'new tab' button. */
- .newtab-button {
- display: none;
- }
- /* active tab */
- .tab.active {
- background-color: rgba(255, 255, 255, 0.05) !important;
- box-shadow: inset 3px 0 0 #ffffff99 !important;
- }
- .tab:hover,
- .tab.active:hover {
- background-color: inherit;
- }
- .tab.active .label {
- font-weight: bold;
- color: #f4f4f4 !important;
- }
- .tab .label,
- .tab.active .label {
- border-bottom: 1px solid transparent;
- }
- .tab:hover .label,
- .tab.active:hover .label {
- border-bottom: 1px dotted;
- min-width: 0 !important;
- flex-shrink: 1 !important;
- flex-grow: unset !important;
- }
- /* pending / unloaded tabs */
- .tab.discarded {
- background-color: #1d1d1d;
- }
- .tab.discarded .label {
- color: #efefefCC !important;
- }
- .tab.discarded:hover .label {
- color: #efefef !important;
- }
- /* Adjust style for tab that has sound playing. */
- .tab.sound-playing .favicon::after,
- .tab.muted .favicon::after {
- content: '🔊';
- z-index: var(--favicon-base-z-index);
- position: absolute;
- font-size: 0.5em;
- bottom: -0.35em;
- right: -0.7em;
- }
- /* Adjust style for tab that is muted. */
- .tab.muted .favicon::after {
- content: '🔇';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement