diff --git a/chrome.manifest b/chrome.manifest index f74e4497..64e1b8af 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -18,4 +18,4 @@ locale treestyletab ru-RU jar:chrome/treestyletab.jar!/locale/ru-RU/treestyletab skin treestyletab classic/1.0 jar:chrome/treestyletab.jar!/skin/classic/treestyletab/ style chrome://browser/content/browser.xul chrome://treestyletab/skin/treestyletab-3.1.css appversion>=3.1b3pre -#override chrome://treestyletab/skin/metal/tab.css chrome://treestyletab/skin/metal/tab-3.5.css appversion>=3.5b4pre +override chrome://treestyletab/skin/metal/tab.css chrome://treestyletab/skin/metal/tab-3.5.css appversion>=3.5b4pre diff --git a/skin/classic/treestyletab/metal.css b/skin/classic/treestyletab/metal.css index 5afd59ce..dd506791 100644 --- a/skin/classic/treestyletab/metal.css +++ b/skin/classic/treestyletab/metal.css @@ -1,5 +1,3 @@ -@import url("chrome://treestyletab/skin/metal/tab.css"); - @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @@ -17,11 +15,6 @@ tabbrowser[treestyletab-style="metal"][treestyletab-tabbar-position="bottom"] } -tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tabs * { - width: 100% !important; -} - tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] .tabs-stack { background:#797979 url("metal/shadow-active-l.png") repeat-y top right !important; @@ -87,10 +80,26 @@ tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style][treestyletab-m position: relative; margin: 0 6px 0 -6px; } +tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style="retro"][treestyletab-mode="vertical"] + .treestyletab-twisty-container { + margin: 0; +} +tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style="retro"][treestyletab-mode="vertical"]:not([treestyletab-appearance-inverted="true"]) + .tabbrowser-tab .tab-icon { + margin-left: -6px !important; +} tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] .treestyletab-twisty-container { margin: 0 -12px 0 12px; } +tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style="retro"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .treestyletab-twisty-container { + margin: 0 -6px 0 6px; +} +tabbrowser[treestyletab-style="metal"][treestyletab-twisty-style="retro"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tabbrowser-tab .tab-icon { + margin-right: -6px !important; +} tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] diff --git a/skin/classic/treestyletab/metal/tab-3.5.css b/skin/classic/treestyletab/metal/tab-3.5.css index a35e04eb..b93fe8ea 100644 --- a/skin/classic/treestyletab/metal/tab-3.5.css +++ b/skin/classic/treestyletab/metal/tab-3.5.css @@ -12,10 +12,11 @@ tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] border: 2px solid transparent !important; color: black !important; height: auto !important; + max-height: none !important; min-height: 10px !important; - margin-top: 0 !important; + margin-top: -2px !important; margin-right: 0; - margin-bottom: 0 !important; + margin-bottom: -2px !important; margin-left: 0; padding: 0 !important; -moz-border-top-colors: transparent transparent !important; @@ -26,71 +27,186 @@ tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] } tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab .tab-image-left, + .tab-image-left, tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab .tab-image-middle, + .tab-image-middle, tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab .tab-image-right { + .tab-close-button, +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-right { + margin: 0 !important; +} + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-middle > .tab-icon, +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-middle > .tab-text, +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-middle > * { margin-top: -8px !important; margin-bottom: -8px !important; } tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab .tab-close-button { + .tab-close-button > * { margin-top: -9px !important; margin-bottom: -7px !important; } +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"]:not([treestyletab-appearance-inverted="true"]) + .tabbrowser-tab:not([treestyletab-drop-position="self"]) { + border-right: 0 none !important; + -moz-border-right-colors: none !important; +} +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tabbrowser-tab:not([treestyletab-drop-position="self"]) { + border-left: 0 none !important; + -moz-border-left-colors: none !important; +} +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"]:not([treestyletab-appearance-inverted="true"]) + .tabbrowser-tab:not([treestyletab-drop-position="self"]) .tab-image-right, +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tabbrowser-tab:not([treestyletab-drop-position="self"]) .tab-image-left { + padding-right: 2px !important; +} + + + +/* background, left */ + tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab, -tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab:hover { - -moz-border-image: url("fullsize-active-l.png") 10 10 10 10 / 10px !important; + .tab-image-left { + -moz-border-image: url("fullsize-active-l.png") 10 / 10px 0 10px 10px; } :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab, + .tab-image-left { + -moz-border-image: url("fullsize-inactive-l.png") 10 / 10px 0 10px 10px; +} + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-middle, +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-close-button { + -moz-border-image: url("fullsize-active-l.png") 10 / 10px 0 10px 0; +} :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab:hover { - -moz-border-image: url("fullsize-inactive-l.png") 10 10 10 10 / 10px !important; + .tab-image-middle, +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-close-button { + -moz-border-image: url("fullsize-inactive-l.png") 10 / 10px 0 10px 0; +} + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-right { + -moz-border-image: url("fullsize-active-l.png") 10 / 10px 10px 10px 0; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-right { + -moz-border-image: url("fullsize-inactive-l.png") 10 / 10px 10px 10px 0; +} + + + +/* background, right */ + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-left { + -moz-border-image: url("fullsize-active-r.png") 10 / 10px 0 10px 10px; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-left { + -moz-border-image: url("fullsize-inactive-r.png") 10 / 10px 0 10px 10px; } tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab, + .tab-image-middle, tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab:hover { - -moz-border-image: url("fullsize-active-r.png") 10 10 10 10 / 10px !important; + .tab-close-button { + -moz-border-image: url("fullsize-active-r.png") 10 / 10px 0 10px 0; } :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab, + .tab-image-middle, :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab:hover { - -moz-border-image: url("fullsize-inactive-r.png") 10 10 10 10 / 10px !important; + .tab-close-button { + -moz-border-image: url("fullsize-inactive-r.png") 10 / 10px 0 10px 0; } +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-right { + -moz-border-image: url("fullsize-active-r.png") 10 / 10px 10px 10px 0; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-right { + -moz-border-image: url("fullsize-inactive-r.png") 10 / 10px 10px 10px 0; +} + + + +/* foreground, left */ tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab[selected="true"], + .tab-image-left[selected="true"] { + -moz-border-image: url("fullsize-active-selected-l.png") 10 / 10px 0 10px 10px; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-left[selected="true"] { + -moz-border-image: url("fullsize-inactive-selected-l.png") 10 / 10px 0 10px 10px; +} + tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab[selected="true"]:hover { - -moz-border-image: url("fullsize-active-selected-l.png") 10 10 10 10 / 10px !important; + .tab-image-middle[selected="true"], +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + [selected="true"] .tab-close-button { + -moz-border-image: url("fullsize-active-selected-l.png") 10 / 10px 0 10px 0; } :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab[selected="true"], + .tab-image-middle[selected="true"], :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] - .tabbrowser-tab[selected="true"]:hover { - -moz-border-image: url("fullsize-inactive-selected-l.png") 10 10 10 10 / 10px !important; + [selected="true"] .tab-close-button { + -moz-border-image: url("fullsize-inactive-selected-l.png") 10 / 10px 0 10px 0; +} + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-right[selected="true"] { + -moz-border-image: url("fullsize-active-selected-l.png") 10 / 10px 10px 10px 0; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"] + .tab-image-right[selected="true"] { + -moz-border-image: url("fullsize-inactive-selected-l.png") 10 / 10px 10px 10px 0; +} + + + +/* foreground, right */ + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-left[selected="true"] { + -moz-border-image: url("fullsize-active-selected-r.png") 10 / 10px 0 10px 10px; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-left[selected="true"] { + -moz-border-image: url("fullsize-inactive-selected-r.png") 10 / 10px 0 10px 10px; } tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab[selected="true"], + .tab-image-middle[selected="true"], tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab[selected="true"]:hover { - -moz-border-image: url("fullsize-active-selected-r.png") 10 10 10 10 / 10px !important; + [selected="true"] .tab-close-button { + -moz-border-image: url("fullsize-active-selected-r.png") 10 / 10px 0 10px 0; } :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab[selected="true"], + .tab-image-middle[selected="true"], :root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] - .tabbrowser-tab[selected="true"]:hover { - -moz-border-image: url("fullsize-inactive-selected-r.png") 10 10 10 10 / 10px !important; + [selected="true"] .tab-close-button { + -moz-border-image: url("fullsize-inactive-selected-r.png") 10 / 10px 0 10px 0; +} + +tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-right[selected="true"] { + -moz-border-image: url("fullsize-active-selected-r.png") 10 / 10px 10px 10px 0; +} +:root:not([active="true"]) tabbrowser[treestyletab-style="metal"][treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] + .tab-image-right[selected="true"] { + -moz-border-image: url("fullsize-inactive-selected-r.png") 10 / 10px 10px 10px 0; } diff --git a/skin/classic/treestyletab/treestyletab.css b/skin/classic/treestyletab/treestyletab.css index b72a87ea..6fd87b53 100644 --- a/skin/classic/treestyletab/treestyletab.css +++ b/skin/classic/treestyletab/treestyletab.css @@ -1,5 +1,6 @@ @import url("chrome://treestyletab/skin/square.css"); @import url("chrome://treestyletab/skin/metal.css"); +@import url("chrome://treestyletab/skin/metal/tab.css"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");