зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1575645 - Fix Megabar vertical centering. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D42945 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1adddd1ce8
Коммит
24c8d32c36
|
@ -866,6 +866,7 @@ class UrlbarInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.textbox.style.setProperty("--urlbar-width", px(inputRect.width));
|
this.textbox.style.setProperty("--urlbar-width", px(inputRect.width));
|
||||||
|
this.textbox.style.setProperty("--urlbar-height", px(inputRect.height));
|
||||||
|
|
||||||
let toolbarHeight = getBoundsWithoutFlushing(
|
let toolbarHeight = getBoundsWithoutFlushing(
|
||||||
this.textbox.closest("toolbar")
|
this.textbox.closest("toolbar")
|
||||||
|
|
|
@ -92,18 +92,15 @@
|
||||||
margin-top: -@urlbarBreakoutVerticalExtend@;
|
margin-top: -@urlbarBreakoutVerticalExtend@;
|
||||||
margin-inline-start: -@urlbarBreakoutHorizontalExtend@;
|
margin-inline-start: -@urlbarBreakoutHorizontalExtend@;
|
||||||
width: calc(var(--urlbar-width) + 2 * @urlbarBreakoutHorizontalExtend@);
|
width: calc(var(--urlbar-width) + 2 * @urlbarBreakoutHorizontalExtend@);
|
||||||
min-height: calc(var(--urlbar-toolbar-height) + 2 * @urlbarBreakoutVerticalExtend@);
|
|
||||||
padding: calc(3px + @urlbarBreakoutVerticalExtend@) 0;
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar[breakout][open="true"] {
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#urlbar[breakout] > #urlbar-input-container {
|
#urlbar[breakout] > #urlbar-input-container {
|
||||||
padding-inline: @urlbarBreakoutHorizontalExtend@;
|
box-sizing: padding-box;
|
||||||
|
height: calc(var(--urlbar-toolbar-height) + 2 * @urlbarBreakoutVerticalExtend@ - 2px /* urlbar border */);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-block: calc(@urlbarBreakoutVerticalExtend@ + (var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2);
|
||||||
|
padding-inline: @urlbarBreakoutHorizontalExtend@;
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar:not(.hidden-focus):-moz-lwtheme[focused="true"],
|
#urlbar:not(.hidden-focus):-moz-lwtheme[focused="true"],
|
||||||
|
|
Загрузка…
Ссылка в новой задаче