зеркало из https://github.com/mozilla/gecko-dev.git
Bug 382893 - "Purple "I" separator that appears on bookmark toolbar is ugly" [p=dao@mozilla.com (Dão Gottwald) ui-r=beltzner r=Mano a=blocking-firefox3+]
This commit is contained in:
Родитель
54229a92e6
Коммит
615951857c
|
@ -838,23 +838,26 @@
|
||||||
if (!ib.hasAttribute("dragging"))
|
if (!ib.hasAttribute("dragging"))
|
||||||
ib.setAttribute("dragging", "true");
|
ib.setAttribute("dragging", "true");
|
||||||
var ind = ib.firstChild;
|
var ind = ib.firstChild;
|
||||||
|
var halfInd = ind.boxObject.width / 2;
|
||||||
var direction = document.defaultView.getComputedStyle(this._self.parentNode, "").direction;
|
var direction = document.defaultView.getComputedStyle(this._self.parentNode, "").direction;
|
||||||
if (direction == "ltr") {
|
if (direction == "ltr") {
|
||||||
|
halfInd = Math.ceil(halfInd);
|
||||||
if (!this._self.childNodes.length)
|
if (!this._self.childNodes.length)
|
||||||
ind.style.marginLeft = 0 - this._self.boxObject.x - 7 + 'px'
|
ind.style.marginLeft = 0 - this._self.boxObject.x - halfInd + 'px'
|
||||||
else if (dropPoint.beforeIndex == -1)
|
else if (dropPoint.beforeIndex == -1)
|
||||||
ind.style.marginLeft = this._self.lastChild.boxObject.x +
|
ind.style.marginLeft = this._self.lastChild.boxObject.x +
|
||||||
this._self.lastChild.boxObject.width - this._self.boxObject.x - 7 + 'px';
|
this._self.lastChild.boxObject.width - this._self.boxObject.x - halfInd + 'px';
|
||||||
else
|
else
|
||||||
ind.style.marginLeft = this._self.childNodes[dropPoint.beforeIndex].boxObject.x -
|
ind.style.marginLeft = this._self.childNodes[dropPoint.beforeIndex].boxObject.x -
|
||||||
this._self.boxObject.x - 7 + 'px';
|
this._self.boxObject.x - halfInd + 'px';
|
||||||
} else {
|
} else {
|
||||||
|
halfInd = Math.floor(halfInd);
|
||||||
if (dropPoint.beforeIndex == -1 || !this._self.childNodes.length)
|
if (dropPoint.beforeIndex == -1 || !this._self.childNodes.length)
|
||||||
ind.style.marginRight = '0px';
|
ind.style.marginRight = '0px';
|
||||||
else
|
else
|
||||||
ind.style.marginRight = (this._self.childNodes[this._self.childNodes.length - 1].boxObject.x +
|
ind.style.marginRight = (this._self.childNodes[this._self.childNodes.length - 1].boxObject.x +
|
||||||
this._self.childNodes[this._self.childNodes.length - 1].boxObject.width) -
|
this._self.childNodes[this._self.childNodes.length - 1].boxObject.width) -
|
||||||
(this._self.childNodes[dropPoint.beforeIndex].boxObject.x) - 5 + 'px';
|
(this._self.childNodes[dropPoint.beforeIndex].boxObject.x) - halfInd + 'px';
|
||||||
}
|
}
|
||||||
// Clear out old folder information
|
// Clear out old folder information
|
||||||
this._clearOverFolder();
|
this._clearOverFolder();
|
||||||
|
|
|
@ -179,18 +179,17 @@ menuitem.bookmark-item {
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-drop-indicator {
|
.toolbar-drop-indicator {
|
||||||
height: 16px;
|
width: 9px;
|
||||||
width: 5px;
|
height: 18px;
|
||||||
margin-bottom: -8px;
|
margin-bottom: -6px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: url("chrome://browser/skin/places/toolbarDropMarker.png") 50% 50% no-repeat;
|
background: url("chrome://browser/skin/places/toolbarDropMarker.png") 50% 50% no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-drop-indicator-bar {
|
.toolbar-drop-indicator-bar {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
height: 16px;
|
height: 18px;
|
||||||
margin-bottom: -16px;
|
margin-bottom: -18px;
|
||||||
margin-left: 4px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Двоичные данные
browser/themes/gnomestripe/browser/places/toolbarDropMarker.png
Двоичные данные
browser/themes/gnomestripe/browser/places/toolbarDropMarker.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 174 B После Ширина: | Высота: | Размер: 269 B |
|
@ -1561,18 +1561,17 @@ tabpanels.plain {
|
||||||
|
|
||||||
/* Personal toolbar */
|
/* Personal toolbar */
|
||||||
.toolbar-drop-indicator {
|
.toolbar-drop-indicator {
|
||||||
height: 16px;
|
width: 9px;
|
||||||
width: 5px;
|
height: 18px;
|
||||||
margin-bottom: -8px;
|
margin-bottom: -6px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: url('chrome://browser/skin/places/toolbarDropMarker.png') 50% 50% no-repeat;
|
background: url('chrome://browser/skin/places/toolbarDropMarker.png') 50% 50% no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-drop-indicator-bar {
|
.toolbar-drop-indicator-bar {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
height: 16px;
|
height: 18px;
|
||||||
margin-bottom: -16px;
|
margin-bottom: -18px;
|
||||||
margin-left: 4px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Двоичные данные
browser/themes/pinstripe/browser/places/toolbarDropMarker.png
Двоичные данные
browser/themes/pinstripe/browser/places/toolbarDropMarker.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 174 B После Ширина: | Высота: | Размер: 269 B |
|
@ -1604,18 +1604,17 @@ toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-text {
|
||||||
|
|
||||||
/* Personal toolbar */
|
/* Personal toolbar */
|
||||||
.toolbar-drop-indicator {
|
.toolbar-drop-indicator {
|
||||||
height: 16px;
|
width: 9px;
|
||||||
width: 5px;
|
height: 18px;
|
||||||
margin-bottom: -8px;
|
margin-bottom: -6px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: url("chrome://browser/skin/places/toolbarDropMarker.png") 50% 50% no-repeat;
|
background: url("chrome://browser/skin/places/toolbarDropMarker.png") 50% 50% no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-drop-indicator-bar {
|
.toolbar-drop-indicator-bar {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
height: 16px;
|
height: 18px;
|
||||||
margin-bottom: -16px;
|
margin-bottom: -18px;
|
||||||
margin-left: 4px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Двоичные данные
browser/themes/winstripe/browser/places/toolbarDropMarker.png
Двоичные данные
browser/themes/winstripe/browser/places/toolbarDropMarker.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 174 B После Ширина: | Высота: | Размер: 269 B |
Загрузка…
Ссылка в новой задаче