зеркало из https://github.com/mozilla/pjs.git
Bug 376912 - Mac Classic tabbrowser looks bad. Changes in navigator.css, tabbrowser.xml and tabbrowser.css (win version) originally by Neil. r=Mnyromyr, sr=jag.
This commit is contained in:
Родитель
9d9ba5138d
Коммит
b0e72da55b
|
@ -15,7 +15,7 @@ tabbrowser {
|
|||
}
|
||||
|
||||
.tabbrowser-tabs > .tabbrowser-tab {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
|
||||
-moz-binding: url("chrome://navigator/content/tabbrowser.xml#tabbrowser-tab");
|
||||
}
|
||||
|
||||
.tabs-closebutton-box > .tabs-closebutton {
|
||||
|
|
|
@ -2171,27 +2171,54 @@
|
|||
</handlers>
|
||||
</binding>
|
||||
|
||||
<binding id="tabbrowser-tabs"
|
||||
<binding id="tabbrowser-tabs"
|
||||
extends="chrome://global/content/bindings/tabbox.xml#tabs">
|
||||
<resources>
|
||||
<stylesheet src="chrome://navigator/skin/tabbrowser.css"/>
|
||||
</resources>
|
||||
|
||||
<content>
|
||||
<xul:stack>
|
||||
<xul:spacer class="tabs-left"/>
|
||||
<xul:toolbarbutton ondblclick="event.stopPropagation();" class="tabs-newbutton" xbl:inherits="oncommand=onnewtab,tooltiptext=tooltiptextnew"/>
|
||||
</xul:stack>
|
||||
<xul:hbox flex="1" style="min-width: 1px; overflow: -moz-hidden-unscrollable;">
|
||||
<children/>
|
||||
<xul:spacer class="tabs-right" flex="1"/>
|
||||
</xul:hbox>
|
||||
<xul:stack>
|
||||
<xul:spacer class="tabs-right"/>
|
||||
<xul:hbox class="tabs-closebutton-box" align="center" pack="end">
|
||||
<xul:toolbarbutton ondblclick="event.stopPropagation();" class="tabs-closebutton close-button" xbl:inherits="disabled=disableclose,oncommand=onclosetab"/>
|
||||
</xul:hbox>
|
||||
<xul:stack flex="1" class="tabs-stack">
|
||||
<xul:vbox>
|
||||
<xul:spacer flex="1"/>
|
||||
<xul:hbox class="tabs-bottom" align="center"/>
|
||||
</xul:vbox>
|
||||
<xul:vbox>
|
||||
<xul:hbox>
|
||||
<xul:stack>
|
||||
<xul:spacer class="tabs-left"/>
|
||||
<xul:toolbarbutton class="tabs-newbutton" xbl:inherits="oncommand=onnewtab,tooltiptext=tooltiptextnew"/>
|
||||
</xul:stack>
|
||||
<xul:hbox flex="1" style="min-width: 1px; overflow: -moz-hidden-unscrollable;">
|
||||
<children/>
|
||||
<xul:spacer class="tabs-right" flex="1"/>
|
||||
</xul:hbox>
|
||||
<xul:stack>
|
||||
<xul:spacer class="tabs-right"/>
|
||||
<xul:hbox class="tabs-closebutton-box" align="center" pack="end">
|
||||
<xul:toolbarbutton class="tabs-closebutton close-button" xbl:inherits="disabled=disableclose,oncommand=onclosetab"/>
|
||||
</xul:hbox>
|
||||
</xul:stack>
|
||||
</xul:hbox>
|
||||
<xul:spacer class="tabs-bottom-spacer"/>
|
||||
</xul:vbox>
|
||||
</xul:stack>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="tabbrowser-tab"
|
||||
extends="chrome://global/content/bindings/tabbox.xml#tab">
|
||||
<resources>
|
||||
<stylesheet src="chrome://navigator/skin/tabbrowser.css"/>
|
||||
</resources>
|
||||
|
||||
<content>
|
||||
<xul:spacer class="tab-image-left" xbl:inherits="selected"/>
|
||||
<xul:hbox flex="1" class="tab-image-middle" align="center" xbl:inherits="selected">
|
||||
<xul:image class="tab-icon" xbl:inherits="src=image,validate"/>
|
||||
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" crop="right" class="tab-text"/>
|
||||
</xul:hbox>
|
||||
<xul:spacer class="tab-image-right" xbl:inherits="selected"/>
|
||||
</content>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
|
|
@ -543,7 +543,11 @@ classic.jar:
|
|||
skin/classic/navigator/navigator.css (navigator/navigator.css)
|
||||
skin/classic/navigator/linkToolbar.css (navigator/linkToolbar.css)
|
||||
skin/classic/navigator/pageInfo.css (navigator/pageInfo.css)
|
||||
skin/classic/navigator/tabbrowser.css (navigator/tabbrowser.css)
|
||||
#ifdef XP_MACOSX
|
||||
skin/classic/navigator/tabbrowser.css (navigator/mac/tabbrowser.css)
|
||||
#else
|
||||
skin/classic/navigator/tabbrowser.css (navigator/win/tabbrowser.css)
|
||||
#endif
|
||||
skin/classic/navigator/btn1/first.gif (navigator/btn1/first.gif)
|
||||
skin/classic/navigator/btn1/first-disabled.gif (navigator/btn1/first-disabled.gif)
|
||||
skin/classic/navigator/btn1/first-hover.gif (navigator/btn1/first-hover.gif)
|
||||
|
|
|
@ -1,85 +0,0 @@
|
|||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.tabbrowser-strip {
|
||||
padding-bottom: 3px;
|
||||
border-bottom: 2px solid;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
tabpanels {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
.tabbrowser-tabs {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.tabs-left,
|
||||
.tabs-right {
|
||||
width: 3px;
|
||||
}
|
||||
|
||||
.tabs-bottom {
|
||||
-moz-appearance: tabpanels;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.tabs-stack {
|
||||
border-bottom: 1px solid;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
}
|
||||
|
||||
.tabs-bottom-spacer {
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
margin-top: 1px;
|
||||
margin-right: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
tab {
|
||||
list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.png");
|
||||
}
|
||||
|
||||
tab[busy] {
|
||||
list-style-image: url("chrome://communicator/skin/icons/loading.gif");
|
||||
}
|
||||
|
||||
/* ::::: close button ::::: */
|
||||
|
||||
.tabs-closebutton {
|
||||
margin: 3px;
|
||||
list-style-image: url("chrome://communicator/skin/icons/close-button.gif");
|
||||
}
|
||||
|
||||
.tabs-closebutton > .toolbarbutton-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tabs-newbutton {
|
||||
margin: 0px;
|
||||
list-style-image: url("chrome://navigator/skin/icons/tab-new.gif");
|
||||
}
|
||||
|
||||
.tab-drop-indicator-bar {
|
||||
height: 11px;
|
||||
margin-top: -11px;
|
||||
margin-left: -8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab-drop-indicator {
|
||||
height: 11px;
|
||||
width: 11px;
|
||||
margin-bottom: -5px;
|
||||
position: relative;
|
||||
list-style-image: url('chrome://navigator/skin/icons/tab-drag-indicator.gif');
|
||||
}
|
||||
|
||||
tooltip[tabpreview="true"] {
|
||||
max-width: none;
|
||||
}
|
|
@ -1,85 +0,0 @@
|
|||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.tabbrowser-strip {
|
||||
padding-bottom: 3px;
|
||||
border-bottom: 2px solid;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
tabpanels {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
.tabbrowser-tabs {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.tabs-left,
|
||||
.tabs-right {
|
||||
width: 3px;
|
||||
}
|
||||
|
||||
.tabs-bottom {
|
||||
-moz-appearance: tabpanels;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.tabs-stack {
|
||||
border-bottom: 1px solid;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
}
|
||||
|
||||
.tabs-bottom-spacer {
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
margin-top: 1px;
|
||||
margin-right: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
tab {
|
||||
list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.png");
|
||||
}
|
||||
|
||||
tab[busy] {
|
||||
list-style-image: url("chrome://communicator/skin/icons/loading.gif");
|
||||
}
|
||||
|
||||
/* ::::: close button ::::: */
|
||||
|
||||
.tabs-closebutton {
|
||||
margin: 3px;
|
||||
list-style-image: url("chrome://communicator/skin/icons/close-button.gif");
|
||||
}
|
||||
|
||||
.tabs-closebutton > .toolbarbutton-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tabs-newbutton {
|
||||
margin: 0px;
|
||||
list-style-image: url("chrome://navigator/skin/icons/tab-new.gif");
|
||||
}
|
||||
|
||||
.tab-drop-indicator-bar {
|
||||
height: 11px;
|
||||
margin-top: -11px;
|
||||
margin-left: -8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab-drop-indicator {
|
||||
height: 11px;
|
||||
width: 11px;
|
||||
margin-bottom: -5px;
|
||||
position: relative;
|
||||
list-style-image: url('chrome://navigator/skin/icons/tab-drag-indicator.gif');
|
||||
}
|
||||
|
||||
tooltip[tabpreview="true"] {
|
||||
max-width: none;
|
||||
}
|
Загрузка…
Ссылка в новой задаче