зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378560 - The order of items in the url bar should be (from right-to-left) bookmarks, page action menu. r=Gijs
MozReview-Commit-ID: 8StaNxrvryT --HG-- extra : rebase_source : 2f60d8ce8cb1deb514ca1cf281dfa898cd4c1873
This commit is contained in:
Родитель
4752caa33a
Коммит
d4a9e6a184
|
@ -666,6 +666,7 @@ html|input.urlbar-input[textoverflow]:not([focused]) {
|
||||||
|
|
||||||
#urlbar[pageproxystate="invalid"] > #page-action-buttons > .urlbar-icon,
|
#urlbar[pageproxystate="invalid"] > #page-action-buttons > .urlbar-icon,
|
||||||
#urlbar[pageproxystate="invalid"] > #page-action-buttons > .urlbar-icon-wrapper > .urlbar-icon,
|
#urlbar[pageproxystate="invalid"] > #page-action-buttons > .urlbar-icon-wrapper > .urlbar-icon,
|
||||||
|
#urlbar[pageproxystate="invalid"] > #page-action-buttons > #pageActionSeparator,
|
||||||
.urlbar-go-button[pageproxystate="valid"],
|
.urlbar-go-button[pageproxystate="valid"],
|
||||||
.urlbar-go-button:not([parentfocused="true"]),
|
.urlbar-go-button:not([parentfocused="true"]),
|
||||||
#urlbar[pageproxystate="invalid"] > #identity-box > #blocked-permissions-container,
|
#urlbar[pageproxystate="invalid"] > #identity-box > #blocked-permissions-container,
|
||||||
|
|
|
@ -856,6 +856,10 @@
|
||||||
<label id="extension" class="urlbar-display urlbar-display-extension" value="&urlbar.extension.label;"/>
|
<label id="extension" class="urlbar-display urlbar-display-extension" value="&urlbar.extension.label;"/>
|
||||||
</box>
|
</box>
|
||||||
<hbox id="page-action-buttons">
|
<hbox id="page-action-buttons">
|
||||||
|
<hbox id="userContext-icons" hidden="true">
|
||||||
|
<label id="userContext-label"/>
|
||||||
|
<image id="userContext-indicator"/>
|
||||||
|
</hbox>
|
||||||
<image id="page-report-button"
|
<image id="page-report-button"
|
||||||
class="urlbar-icon"
|
class="urlbar-icon"
|
||||||
hidden="true"
|
hidden="true"
|
||||||
|
@ -869,6 +873,7 @@
|
||||||
onclick="FullZoom.reset();"
|
onclick="FullZoom.reset();"
|
||||||
tooltip="dynamic-shortcut-tooltip"
|
tooltip="dynamic-shortcut-tooltip"
|
||||||
hidden="true"/>
|
hidden="true"/>
|
||||||
|
<box id="pageActionSeparator"/>
|
||||||
<image id="pageActionButton"
|
<image id="pageActionButton"
|
||||||
class="urlbar-icon"
|
class="urlbar-icon"
|
||||||
tooltiptext="&pageActionButton.tooltip;"
|
tooltiptext="&pageActionButton.tooltip;"
|
||||||
|
@ -888,10 +893,6 @@
|
||||||
</hbox>
|
</hbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox id="userContext-icons" hidden="true">
|
|
||||||
<label id="userContext-label"/>
|
|
||||||
<image id="userContext-indicator"/>
|
|
||||||
</hbox>
|
|
||||||
</textbox>
|
</textbox>
|
||||||
</toolbaritem>
|
</toolbaritem>
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#userContext-label {
|
#userContext-label {
|
||||||
|
margin-inline-start: 0;
|
||||||
margin-inline-end: 3px;
|
margin-inline-end: 3px;
|
||||||
color: var(--identity-tab-color);
|
color: var(--identity-tab-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,6 +133,41 @@
|
||||||
margin-inline-end: 3px;
|
margin-inline-end: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pageActionSeparator {
|
||||||
|
/* This draws the separator the same way that #urlbar-display-box draws its
|
||||||
|
left and right borders, which end up looking like separators. It might not
|
||||||
|
be the best way in this case, but it makes sure that all these vertical
|
||||||
|
lines in the urlbar look the same: same height, vertical position, etc. */
|
||||||
|
border-inline-start: 1px solid var(--urlbar-separator-color);
|
||||||
|
border-image: linear-gradient(transparent 15%, var(--urlbar-separator-color) 15%, var(--urlbar-separator-color) 85%, transparent 85%);
|
||||||
|
border-image-slice: 1;
|
||||||
|
width: 1px;
|
||||||
|
min-height: 30px;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[uidensity=compact] #pageActionSeparator {
|
||||||
|
min-height: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[uidensity=touch] #pageActionSeparator {
|
||||||
|
min-height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:not(#pageActionSeparator):not([hidden]) ~ #pageActionSeparator {
|
||||||
|
/* Show the separator between the page actions and other elements when at
|
||||||
|
least of the latter is shown. */
|
||||||
|
visibility: visible;
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#userContext-icons,
|
||||||
|
#urlbar-zoom-button {
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.urlbar-icon {
|
.urlbar-icon {
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
/* 16x16 icon with border-box sizing */
|
/* 16x16 icon with border-box sizing */
|
||||||
|
@ -242,7 +277,6 @@
|
||||||
/* Zoom button */
|
/* Zoom button */
|
||||||
|
|
||||||
#urlbar-zoom-button {
|
#urlbar-zoom-button {
|
||||||
margin: 0 3px;
|
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче