搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Get userChrome.css to only activate customisations when the sidebar is displaying Tree Style Tab.

  • 无回复
  • 1 人有此问题
  • 13 次查看
more options

Since I have the Tree Style Tab extension, I put this code in my userChrome.css to remove the tab strip on the top: ```

/* Hide tab strip but keep space for window buttons */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
    opacity: 0;
    pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
    visibility: collapse !important;
}
.tab {
    margin-left: 1px;
    margin-right: 1px;
}
:root {
    --tab-toolbar-navbar-overlap: 0px !important; /* fix for full screen mode */
    --tab-min-height: 25px !important;
}
:root #tabbrowser-tabs {
    --tab-min-height: 25px !important;
}
#TabsToolbar {
    height: var(--tab-min-height) !important;
}
@media (prefers-color-scheme: dark) {
    #TabsToolbar {
        background-color: #2B2A33 !important;
    }
}
@media (prefers-color-scheme: light) {
    #TabsToolbar {
        background-color: #F9F9FB !important;
    }
}
#TabsToolbar[inFullscreen="true"] { /* Do not display window buttons space in full screen */
    display:none!important;
}

``` Is there any way to make this block of code to only be activated when the sidebar is on Tree Style Tab? Something like the `#TabsToolbar[inFullscreen="true"]`. Because I can't navigate through tabs if the sidebar is on (for example) bookmarks, or switched off.

Since I have the Tree Style Tab extension, I put this code in my userChrome.css to remove the tab strip on the top: ``` <pre><nowiki>/* Hide tab strip but keep space for window buttons */ #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { opacity: 0; pointer-events: none; } #main-window:not([tabsintitlebar="true"]) #TabsToolbar { visibility: collapse !important; } .tab { margin-left: 1px; margin-right: 1px; } :root { --tab-toolbar-navbar-overlap: 0px !important; /* fix for full screen mode */ --tab-min-height: 25px !important; } :root #tabbrowser-tabs { --tab-min-height: 25px !important; } #TabsToolbar { height: var(--tab-min-height) !important; } @media (prefers-color-scheme: dark) { #TabsToolbar { background-color: #2B2A33 !important; } } @media (prefers-color-scheme: light) { #TabsToolbar { background-color: #F9F9FB !important; } } #TabsToolbar[inFullscreen="true"] { /* Do not display window buttons space in full screen */ display:none!important; }</nowiki></pre><br> ``` Is there any way to make this block of code to only be activated when the sidebar is on Tree Style Tab? Something like the `#TabsToolbar[inFullscreen="true"]`. Because I can't navigate through tabs if the sidebar is on (for example) bookmarks, or switched off.

由cor-el于修改