git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3872 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-03-24 15:05:24 +00:00
parent d8ee414efe
commit 0efbedf2c6
3 changed files with 4 additions and 29 deletions

View File

@ -1,20 +1,14 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root[tabFx2Compatible="2"] .tabbrowser-tab { :root[tabFx2Compatible="1"] .tabbrowser-tab {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab) !important; -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab) !important;
} }
:root[tabFx2Compatible="2"][tabFx2Compatible-whole="true"] .tabbrowser-tab { :root[tabFx2Compatible="1"] .tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-whole) !important;
}
:root[tabFx2Compatible="2"] .tabbrowser-tab[busy] > hbox > stack > .tab-icon-image,
:root[tabFx2Compatible="2"] .tabbrowser-tab[busy] > hbox > hbox > stack > .tab-icon-image {
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important; list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important;
opacity: 0.6; opacity: 0.6;
} }
:root[tabFx2Compatible="2"] .tabbrowser-tab[selected="true"]:focus > hbox > .tab-text, :root[tabFx2Compatible="1"] .tabbrowser-tab[selected="true"]:focus > hbox > .tab-text {
:root[tabFx2Compatible="2"] .tabbrowser-tab[selected="true"]:focus > hbox > hbox > .tab-text {
border: 1px dotted -moz-DialogText; border: 1px dotted -moz-DialogText;
} }

View File

@ -29,23 +29,4 @@
</content> </content>
</binding> </binding>
<binding id="tabbrowser-tab-whole"
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
<content chromedir="&locale.dir;"
closetabtext="&closeTab.label;">
<xul:hbox class="tab-image-whole" flex="1" xbl:inherits="selected">
<xul:hbox class="tab-image-left" xbl:inherits="selected"/>
<xul:hbox flex="1" class="tab-image-middle" align="center" xbl:inherits="selected">
<xul:stack class="tab-icon">
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image"/>
<xul:image class="tab-extra-status"/>
</xul:stack>
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text"/>
</xul:hbox>
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button"/>
<xul:hbox class="tab-image-right" xbl:inherits="selected"/>
</xul:hbox>
</content>
</binding>
</bindings> </bindings>

View File

@ -6,7 +6,7 @@
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {
window.removeEventListener('DOMContentLoaded', arguments.callee, true); window.removeEventListener('DOMContentLoaded', arguments.callee, true);
const currentRevision = 2; const currentRevision = 1;
var b = document.getElementById('content'); var b = document.getElementById('content');
if (!b || b.localName != 'tabbrowser') return; if (!b || b.localName != 'tabbrowser') return;