aboutsummaryrefslogtreecommitdiff
path: root/chrome/tabs/hide.css
blob: db685344966b25589b007ea357de0c3531b8a487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * Hiding the tab bar.
 *
 * Works best with Tree Style Tab addon:
 * https://github.com/piroor/treestyletab
 */

/**
 * Hide horizontal tabs at the top of the window #1349, #1672, #2147
 * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#hide-horizontal-tabs-at-the-top-of-the-window-1349-1672-2147
 */

/*
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
  opacity: 0;
  pointer-events: none;
}
*/

/**
 * Always hide the tab bar.
 */
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
  visibility: collapse !important;
}

/**
 * Only hide horizontal tabs if Tree Style Tabs sidebar is visible
 * Only works in Firefox if layout.css.has-selector.enabled is set to true in about:config.
 * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#only-hide-horizontal-tabs-if-tree-style-tabs-sidebar-is-visible
 */
/*
html#main-window body:has(#sidebar-box[sidebarcommand=treestyletab_piro_sakura_ne_jp-sidebar-action][checked=true]:not([hidden=true])) #TabsToolbar {
  visibility: collapse !important;
}
*/
/*#main-window body:has(#browser vbox[id="sidebar-box"][hidden=false]) #TabsToolbar {/*
  visibility: collapse !important;
}
*/