From 719e6d1d6c247eded85ed97f72439927bc6123f2 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 18 Feb 2011 21:02:34 +0900 Subject: [PATCH] use highlighted background for "titlechanged" pinned tabs in "Sidebar" theme (fix for https://github.com/piroor/treestyletab/issues/49 ) --- skin/classic/treestyletab/sidebar/base.css | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/skin/classic/treestyletab/sidebar/base.css b/skin/classic/treestyletab/sidebar/base.css index e7ccfbd3..720973e3 100644 --- a/skin/classic/treestyletab/sidebar/base.css +++ b/skin/classic/treestyletab/sidebar/base.css @@ -50,7 +50,6 @@ tabbrowser[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tab { -moz-appearance: none !important; - background: transparent !important; -moz-border-top-colors: none !important; -moz-border-bottom-colors: none !important; -moz-border-right-colors: none !important; @@ -68,7 +67,12 @@ tabbrowser[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] border-top: 1px solid transparent !important; } .tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] - .tabbrowser-tab[pinned="true"] { + :-moz-any(.tabbrowser-tab:not([pinned]), + .tabbrowser-tab[pinned]:not([titlechanged])) { + background: transparent !important; +} +.tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] + .tabbrowser-tab[pinned] { padding: 2px 2px 3px !important; line-height: 1 !important; } @@ -76,6 +80,9 @@ tabbrowser[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] { border-top: 1px solid #94A1C0 !important; +} +.tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] + .tabbrowser-tab[selected="true"] { background: -moz-linear-gradient(top, #A0B0CF, #7386AB) repeat-x !important; } @@ -340,14 +347,16 @@ tabbrowser[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] /* for Mac OS X, Firefox 4 */ .tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] - :-moz-any(.tab-content:not([selected="true"]), + :-moz-any(.tab-content:not([selected="true"]):not([pinned]), + .tab-content:not([selected="true"])[pinned]:not([titlechanged]), .tab-content[selected="true"]) { border: 0 none !important; background: transparent !important; } .tabbrowser-tabs[treestyletab-style~="sidebar"][treestyletab-mode="vertical"] :-moz-any(.tab-background-start:not([selected="true"]), - .tab-background-middle:not([selected="true"]), + .tab-background-middle:not([selected="true"]):not([pinned]), + .tab-background-middle:not([selected="true"])[pinned]:not([titlechanged]), .tab-background-end:not([selected="true"]), .tab-background-start[selected="true"], .tab-background-middle[selected="true"],