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.
This commit is contained in:
Piro / YUKI Hiroshi 2014-01-30 02:19:59 +09:00
parent 728f16434a
commit 61a06e4a74

View File

@ -276,6 +276,14 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc
* it includes #TabsToolbar in its subqueries. * it includes #TabsToolbar in its subqueries.
*/ */
@media all and (-moz-windows-compositor) { /* for winstripe */ @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"] #navigator-toolbox[tabsontop="true"]
> .treestyletab-tabbar-toolbar:not(#toolbar-menubar), > .treestyletab-tabbar-toolbar:not(#toolbar-menubar),
#navigator-toolbox[tabsontop="true"] #navigator-toolbox[tabsontop="true"]
@ -285,6 +293,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc
#navigator-toolbox[tabsontop="true"] #navigator-toolbox[tabsontop="true"]
> .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):-moz-lwtheme, > .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 #navigator-toolbox
> #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"]
+ .treestyletab-tabbar-toolbar[tabsontop="true"]:last-child, + .treestyletab-tabbar-toolbar[tabsontop="true"]:last-child,
@ -297,6 +311,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc
#navigator-toolbox #navigator-toolbox
> #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"]
+ .treestyletab-tabbar-toolbar[tabsontop="false"]:not(:last-child), + .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 #navigator-toolbox
> #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"]
+ .treestyletab-tabbar-toolbar-ready[tabsontop="true"]:last-child, + .treestyletab-tabbar-toolbar-ready[tabsontop="true"]:last-child,
@ -315,6 +335,12 @@ tabs.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-invert-sc
#navigator-toolbox #navigator-toolbox
> .treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):-moz-lwtheme, > .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 #navigator-toolbox
> #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"] > #nav-bar + #customToolbars + #PersonalToolbar[collapsed="true"]
+ #TabsToolbar[tabsontop="true"]:last-child, + #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 */ @media not all and (-moz-windows-compositor) { /* for winstripe */
#TabsToolbar[tabsontop=true]:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme), #TabsToolbar:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme),
#navigator-toolbox[tabsontop=false] #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), > 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) { > toolbar.treestyletab-tabbar-toolbar-ready:not(#toolbar-menubar):not(:-moz-lwtheme):-moz-system-metric(windows-default-theme) {
-moz-binding: url(treestyletab.xml#toolbar-drag); -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,
.treestyletab-tabbar-toolbar-ready, .treestyletab-tabbar-toolbar-ready,
/* for gnomestripe */ /* for gnomestripe */
#TabsToolbar.treestyletab-tabbar-toolbar[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-ready[tabsontop="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 */ /* for pinstripe */
toolbar.treestyletab-tabbar-toolbar:not([nowindowdrag="true"]), toolbar.treestyletab-tabbar-toolbar:not([nowindowdrag="true"]),
toolbar.treestyletab-tabbar-toolbar-ready:not([nowindowdrag="true"]), toolbar.treestyletab-tabbar-toolbar-ready:not([nowindowdrag="true"]),