From 61a06e4a748d601dc51b1586742acb4b44a85da3 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Thu, 30 Jan 2014 02:19:59 +0900 Subject: [PATCH] Apply TST's custom biding for the tab bar even if there is no "tabsontop=true" attribute. An existing profile can have tabsontop=true attribute in the localstore.rdf but a new profile doesn't. --- content/treestyletab/treestyletab.css | 39 +++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 89147c22..68d5f5e2 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -276,6 +276,14 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc * it includes #TabsToolbar in its subqueries. */ @media all and (-moz-windows-compositor) { /* for winstripe */ + #navigator-toolbox + > .treestyletab-tabbar-toolbar:not(#toolbar-menubar), + #navigator-toolbox + > .treestyletab-tabbar-toolbar:not(#toolbar-menubar):-moz-lwtheme, + #navigator-toolbox + > .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar), + #navigator-toolbox + > .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):-moz-lwtheme, #navigator-toolbox[tabsontop="true"] > .treestyletab-tabbar-toolbar:not(#toolbar-menubar), #navigator-toolbox[tabsontop="true"] @@ -285,6 +293,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc #navigator-toolbox[tabsontop="true"] > .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):-moz-lwtheme, + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + .treestyletab-tabbar-toolbar:last-child, + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + .treestyletab-tabbar-toolbar:not(:last-child), #navigator-toolbox > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + .treestyletab-tabbar-toolbar[tabsontop="true"]:last-child, @@ -297,6 +311,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc #navigator-toolbox > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + .treestyletab-tabbar-toolbar[tabsontop="false"]:not(:last-child), + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + .treestyletab-tabbar-toolbar-ready:last-child, + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + .treestyletab-tabbar-toolbar-ready:not(:last-child), #navigator-toolbox > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + .treestyletab-tabbar-toolbar-ready[tabsontop="true"]:last-child, @@ -315,6 +335,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc #navigator-toolbox > .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):-moz-lwtheme, + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + #TabsToolbar:last-child, + #navigator-toolbox + > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + + #TabsToolbar:not(:last-child),heme, #navigator-toolbox > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] + #TabsToolbar[tabsontop="true"]:last-child, @@ -334,10 +360,11 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc } } @media not all and (-moz-windows-compositor) { /* for winstripe */ - #TabsToolbar[tabsontop=true]:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme), - #navigator-toolbox[tabsontop=false] + #TabsToolbar:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme), + #TabsToolbar[tabsontop="true"]:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme), + #navigator-toolbox[tabsontop="false"] > toolbar.treestyletab-tabbar-toolbar:not(#toolbar-menubar):not(:-moz-lwtheme):-moz-system-metric(windows-default-theme), - #navigator-toolbox[tabsontop=false] + #navigator-toolbox[tabsontop="false"] > toolbar.treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):not(:-moz-lwtheme):-moz-system-metric(windows-default-theme) { -moz-binding: url(treestyletab.xml#toolbar-drag); } @@ -345,8 +372,10 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc .treestyletab-tabbar-toolbar, .treestyletab-tabbar-toolbar-ready, /* for gnomestripe */ -#TabsToolbar.treestyletab-tabbar-toolbar[tabsontop="true"]:not(:-moz-lwtheme):-moz-system-metric(menubar-drag), -#TabsToolbar.treestyletab-tabbar-toolbar-ready[tabsontop="true"]:not(:-moz-lwtheme):-moz-system-metric(menubar-drag), +#TabsToolbar.treestyletab-tabbar-toolbar:not([autohide="true"]):not(:-moz-lwtheme):-moz-system-metric(menubar-drag), +#TabsToolbar.treestyletab-tabbar-toolbar:not([autohide="true"])[tabsontop="true"]:not(:-moz-lwtheme):-moz-system-metric(menubar-drag), +#TabsToolbar.treestyletab-tabbar-toolbar-ready:not([autohide="true"]):not(:-moz-lwtheme):-moz-system-metric(menubar-drag), +#TabsToolbar.treestyletab-tabbar-toolbar-ready:not([autohide="true"])[tabsontop="true"]:not(:-moz-lwtheme):-moz-system-metric(menubar-drag), /* for pinstripe */ toolbar.treestyletab-tabbar-toolbar:not([nowindowdrag="true"]), toolbar.treestyletab-tabbar-toolbar-ready:not([nowindowdrag="true"]),