Bug 1695022 - Address bar result list titles are misaligned by 1px. r=harry,ntim

Differential Revision: https://phabricator.services.mozilla.com/D107568
This commit is contained in:
Marco Bonardo 2021-03-09 17:39:13 +00:00
Родитель 6fc115d39f
Коммит 44dda25d4e
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -6,7 +6,6 @@
%filter substitution
%define urlbarViewPadding 4px
%define urlbarViewIconMarginEnd (var(--urlbar-icon-padding) + var(--identity-box-margin-inline))
%define urlbarViewFaviconWidth 16px
%include ../shared/urlbar/dynamicResults.inc.css
@ -262,7 +261,7 @@
.urlbarView-favicon {
width: @urlbarViewFaviconWidth@;
height: @urlbarViewFaviconWidth@;
margin-inline-end: calc(@urlbarViewIconMarginEnd@);
margin-inline-end: calc(var(--urlbar-icon-padding) + var(--identity-box-margin-inline));
background-repeat: no-repeat;
background-size: contain;
object-fit: contain;
@ -270,6 +269,13 @@
-moz-context-properties: fill, fill-opacity;
}
@supports not -moz-bool-pref("browser.proton.urlbar.enabled") {
.urlbarView-favicon {
/* 2px is from identity-block.inc.css */
margin-inline-end: calc(var(--urlbar-icon-padding) / 2 + var(--identity-box-margin-inline) + 2px);
}
} /*** END !proton ***/
.urlbarView-row[type=tip] > .urlbarView-row-inner > .urlbarView-favicon {
width: 24px;
height: 24px;