From c9038bc86e2abfbe125e0ff4958a97e286df84df Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 10 Feb 2012 15:41:23 +0900 Subject: [PATCH] in horizontal tab bar, no need to put place holder margin for the twisty about tabs without children --- content/treestyletab/treestyletab.css | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 2b791c77..a0d33515 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -4,17 +4,22 @@ /* twisty in tabs */ .treestyletab-twisty, -.tabbrowser-tabs[treestyletab-twisty-style="none"] - .treestyletab-twisty, .tabbrowser-tabs:not([treestyletab-allow-subtree-collapse="true"]) .treestyletab-twisty { visibility: hidden; } -.tabbrowser-tabs[treestyletab-allow-subtree-collapse="true"]:not([treestyletab-twisty-style="none"]) +.tabbrowser-tabs[treestyletab-mode="vertical"][treestyletab-allow-subtree-collapse="true"]:not([treestyletab-twisty-style="none"]) + .tabbrowser-tab[treestyletab-children][treestyletab-allow-subtree-collapse="true"] + .treestyletab-twisty, +.tabbrowser-tabs[treestyletab-mode="horizontal"][treestyletab-allow-subtree-collapse="true"]:not([treestyletab-twisty-style="none"]) .tabbrowser-tab[treestyletab-children][treestyletab-allow-subtree-collapse="true"] .treestyletab-twisty { visibility: visible; } +.tabbrowser-tabs[treestyletab-twisty-style="none"] + .treestyletab-twisty, +.tabbrowser-tabs[treestyletab-mode="horizontal"] + .treestyletab-twisty, .tabbrowser-tab[pinned="true"] .treestyletab-twisty { visibility: collapse; @@ -420,9 +425,9 @@ toolbar.treestyletab-tabbar-toolbar-ready:not([nowindowdrag="true"]), /* separating of groups */ /* horizontal tab bar */ -.tabbrowser-tabs:not([treestyletab-mode="vertical"]) +.tabbrowser-tabs[treestyletab-mode="horizontal"] .tabbrowser-tab:not([treestyletab-nest="0"]) + .tabbrowser-tab[treestyletab-nest="0"], -.tabbrowser-tabs:not([treestyletab-mode="vertical"]) +.tabbrowser-tabs[treestyletab-mode="horizontal"] .tabbrowser-tab[treestyletab-nest="0"] + .tabbrowser-tab[treestyletab-nest="0"][treestyletab-children] { margin-left: 0.8em !important; }