pinned tabのためのコードをライブラリに移動
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6746 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d7ad4dae1c
commit
4516ace58d
@ -4,7 +4,7 @@
|
|||||||
Usage:
|
Usage:
|
||||||
<?xul-overlay href="tabFx2Compatible.xul"?>
|
<?xul-overlay href="tabFx2Compatible.xul"?>
|
||||||
|
|
||||||
lisence: The MIT License, Copyright (c) 2009 SHIMODA "Piro" Hiroshi
|
lisence: The MIT License, Copyright (c) 2009-2010 SHIMODA "Piro" Hiroshi
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
||||||
original:
|
original:
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
||||||
@ -14,75 +14,81 @@
|
|||||||
|
|
||||||
@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="6"]
|
:root[tabFx2Compatible="7"]
|
||||||
.tabbrowser-tab {
|
.tabbrowser-tab {
|
||||||
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab) !important;
|
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabFx2Compatible="6"]:not([tabFx2Compatible-flags~="png-throbber"])
|
:root[tabFx2Compatible="7"]:not([tabFx2Compatible-flags~="png-throbber"])
|
||||||
.tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy] > 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="6"][tabFx2Compatible-flags~="png-throbber"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="png-throbber"]
|
||||||
.tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
|
||||||
list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
|
list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"]
|
||||||
.tabbrowser-tab .tab-icon-image {
|
.tabbrowser-tab .tab-icon-image {
|
||||||
list-style-image: url("chrome://global/skin/tree/item.png");
|
list-style-image: url("chrome://global/skin/tree/item.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="mac"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="mac"]
|
||||||
.tabbrowser-tab:not(:hover):not([selected="true"]) .tab-icon-image {
|
.tabbrowser-tab:not(:hover):not([selected="true"]) .tab-icon-image {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy] > hbox > stack > .tab-icon-image {
|
||||||
list-style-image: url("chrome://browser/skin/tabbrowser/progress.png") !important;
|
list-style-image: url("chrome://browser/skin/tabbrowser/progress.png") !important;
|
||||||
-moz-image-region: rect(0, 16px, 16px, 0);
|
-moz-image-region: rect(0, 16px, 16px, 0);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][stalled] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][stalled] > hbox > stack > .tab-icon-image {
|
||||||
list-style-image: url("chrome://browser/skin/tabbrowser/progress-pulsing.png") !important;
|
list-style-image: url("chrome://browser/skin/tabbrowser/progress-pulsing.png") !important;
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="1"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="1"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 32px, 16px, 16px);
|
-moz-image-region: rect(0, 32px, 16px, 16px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="2"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="2"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 48px, 16px, 32px);
|
-moz-image-region: rect(0, 48px, 16px, 32px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="3"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="3"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 64px, 16px, 48px);
|
-moz-image-region: rect(0, 64px, 16px, 48px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="4"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="4"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 80px, 16px, 64px);
|
-moz-image-region: rect(0, 80px, 16px, 64px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="5"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="5"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 96px, 16px, 80px);
|
-moz-image-region: rect(0, 96px, 16px, 80px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="6"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="6"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 112px, 16px, 96px);
|
-moz-image-region: rect(0, 112px, 16px, 96px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="7"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="7"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 128px, 16px, 112px);
|
-moz-image-region: rect(0, 128px, 16px, 112px);
|
||||||
}
|
}
|
||||||
:root[tabFx2Compatible="6"][tabFx2Compatible-flags~="pie"]
|
:root[tabFx2Compatible="7"][tabFx2Compatible-flags~="pie"]
|
||||||
.tabbrowser-tab[busy][progress="8"] > hbox > stack > .tab-icon-image {
|
.tabbrowser-tab[busy][progress="8"] > hbox > stack > .tab-icon-image {
|
||||||
-moz-image-region: rect(0, 144px, 16px, 128px);
|
-moz-image-region: rect(0, 144px, 16px, 128px);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabFx2Compatible="6"]
|
:root[tabFx2Compatible="7"]
|
||||||
.tabbrowser-tab[selected="true"]:focus > hbox > .tab-text {
|
.tabbrowser-tab[selected="true"]:focus > hbox > .tab-text {
|
||||||
border: 1px dotted -moz-DialogText;
|
border: 1px dotted -moz-DialogText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
:root[tabFx2Compatible="7"]
|
||||||
|
.tabbrowser-tab[pinned="true"] .tab-text {
|
||||||
|
visibility: collapse !important;
|
||||||
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Usage:
|
Usage:
|
||||||
<?xul-overlay href="tabFx2Compatible.xul"?>
|
<?xul-overlay href="tabFx2Compatible.xul"?>
|
||||||
|
|
||||||
lisence: The MIT License, Copyright (c) 2009 SHIMODA "Piro" Hiroshi
|
lisence: The MIT License, Copyright (c) 2009-2010 SHIMODA "Piro" Hiroshi
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
||||||
original:
|
original:
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Usage:
|
Usage:
|
||||||
<?xul-overlay href="tabFx2Compatible.xul"?>
|
<?xul-overlay href="tabFx2Compatible.xul"?>
|
||||||
|
|
||||||
lisence: The MIT License, Copyright (c) 2009 SHIMODA "Piro" Hiroshi
|
lisence: The MIT License, Copyright (c) 2009-2010 SHIMODA "Piro" Hiroshi
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
|
||||||
original:
|
original:
|
||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/tabFx2Compatible.xul
|
||||||
@ -19,7 +19,7 @@
|
|||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.addEventListener('DOMContentLoaded', function() {
|
||||||
window.removeEventListener('DOMContentLoaded', arguments.callee, true);
|
window.removeEventListener('DOMContentLoaded', arguments.callee, true);
|
||||||
|
|
||||||
const currentRevision = 6;
|
const currentRevision = 7;
|
||||||
|
|
||||||
var b = document.getElementById('content');
|
var b = document.getElementById('content');
|
||||||
if (!b || b.localName != 'tabbrowser') return;
|
if (!b || b.localName != 'tabbrowser') return;
|
||||||
|
@ -87,9 +87,6 @@ tabbrowser[treestyletab-mode="vertical"] .tabs-stack > *:first-child + * > hbox:
|
|||||||
width: 24px !important;
|
width: 24px !important;
|
||||||
height: 24px !important;
|
height: 24px !important;
|
||||||
}
|
}
|
||||||
.tabbrowser-tab[pinned="true"] .tab-text {
|
|
||||||
visibility: collapse !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#TabsToolbar {
|
#TabsToolbar {
|
||||||
-moz-binding: url(treestyletab.xml#tabs-toolbar);
|
-moz-binding: url(treestyletab.xml#tabs-toolbar);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user