Bug 1678793 - Resize Firefox logo according to spec. r=prathiksha

Differential Revision: https://phabricator.services.mozilla.com/D101387
This commit is contained in:
Erica Wright 2021-01-11 21:10:31 +00:00
Родитель b8c6ef7b92
Коммит c6ebec4b86
4 изменённых файлов: 35 добавлений и 31 удалений

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

@ -13,13 +13,13 @@ $glyph-forward: url('chrome://browser/skin/forward.svg');
} }
.logo-and-wordmark { .logo-and-wordmark {
$logo-size: 96px; $logo-size: 82px;
$wordmark-size: 172px; $wordmark-size: 134px;
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 49px; margin-bottom: 48px;
.logo { .logo {
background: url('chrome://branding/content/about-logo.png') no-repeat center; background: url('chrome://branding/content/about-logo.png') no-repeat center;
@ -39,7 +39,7 @@ $glyph-forward: url('chrome://browser/skin/forward.svg');
display: inline-block; display: inline-block;
fill: var(--newtab-search-wordmark-color); fill: var(--newtab-search-wordmark-color);
height: $logo-size; height: $logo-size;
margin-inline-start: 15px; margin-inline-start: 16px;
width: $wordmark-size; width: $wordmark-size;
} }
@ -57,6 +57,7 @@ $glyph-forward: url('chrome://browser/skin/forward.svg');
background-size: $wordmark-small-size; background-size: $wordmark-small-size;
height: $logo-size-small; height: $logo-size-small;
width: $wordmark-small-size; width: $wordmark-small-size;
margin-inline-start: 12px;
} }
} }
} }

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

@ -1255,25 +1255,25 @@ main {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 49px; } margin-bottom: 48px; }
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background: url("chrome://branding/content/about-logo.png") no-repeat center; background: url("chrome://branding/content/about-logo.png") no-repeat center;
background-size: 96px; background-size: 82px;
display: inline-block; display: inline-block;
height: 96px; height: 82px;
width: 96px; } width: 82px; }
@media (min-resolution: 2x) { @media (min-resolution: 2x) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-image: url("chrome://branding/content/about-logo@2x.png"); } } background-image: url("chrome://branding/content/about-logo@2x.png"); } }
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center; background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
background-size: 172px; background-size: 134px;
-moz-context-properties: fill; -moz-context-properties: fill;
display: inline-block; display: inline-block;
fill: var(--newtab-search-wordmark-color); fill: var(--newtab-search-wordmark-color);
height: 96px; height: 82px;
margin-inline-start: 15px; margin-inline-start: 16px;
width: 172px; } width: 134px; }
@media (max-width: 609px) { @media (max-width: 609px) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-size: 64px; background-size: 64px;
@ -1282,7 +1282,8 @@ main {
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background-size: 100px; background-size: 100px;
height: 64px; height: 64px;
width: 100px; } } width: 100px;
margin-inline-start: 12px; } }
.search-wrapper .search-inner-wrapper { .search-wrapper .search-inner-wrapper {
cursor: default; cursor: default;
display: flex; display: flex;

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

@ -1258,25 +1258,25 @@ main {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 49px; } margin-bottom: 48px; }
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background: url("chrome://branding/content/about-logo.png") no-repeat center; background: url("chrome://branding/content/about-logo.png") no-repeat center;
background-size: 96px; background-size: 82px;
display: inline-block; display: inline-block;
height: 96px; height: 82px;
width: 96px; } width: 82px; }
@media (min-resolution: 2x) { @media (min-resolution: 2x) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-image: url("chrome://branding/content/about-logo@2x.png"); } } background-image: url("chrome://branding/content/about-logo@2x.png"); } }
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center; background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
background-size: 172px; background-size: 134px;
-moz-context-properties: fill; -moz-context-properties: fill;
display: inline-block; display: inline-block;
fill: var(--newtab-search-wordmark-color); fill: var(--newtab-search-wordmark-color);
height: 96px; height: 82px;
margin-inline-start: 15px; margin-inline-start: 16px;
width: 172px; } width: 134px; }
@media (max-width: 609px) { @media (max-width: 609px) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-size: 64px; background-size: 64px;
@ -1285,7 +1285,8 @@ main {
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background-size: 100px; background-size: 100px;
height: 64px; height: 64px;
width: 100px; } } width: 100px;
margin-inline-start: 12px; } }
.search-wrapper .search-inner-wrapper { .search-wrapper .search-inner-wrapper {
cursor: default; cursor: default;
display: flex; display: flex;

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

@ -1255,25 +1255,25 @@ main {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 49px; } margin-bottom: 48px; }
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background: url("chrome://branding/content/about-logo.png") no-repeat center; background: url("chrome://branding/content/about-logo.png") no-repeat center;
background-size: 96px; background-size: 82px;
display: inline-block; display: inline-block;
height: 96px; height: 82px;
width: 96px; } width: 82px; }
@media (min-resolution: 2x) { @media (min-resolution: 2x) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-image: url("chrome://branding/content/about-logo@2x.png"); } } background-image: url("chrome://branding/content/about-logo@2x.png"); } }
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center; background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
background-size: 172px; background-size: 134px;
-moz-context-properties: fill; -moz-context-properties: fill;
display: inline-block; display: inline-block;
fill: var(--newtab-search-wordmark-color); fill: var(--newtab-search-wordmark-color);
height: 96px; height: 82px;
margin-inline-start: 15px; margin-inline-start: 16px;
width: 172px; } width: 134px; }
@media (max-width: 609px) { @media (max-width: 609px) {
.search-wrapper .logo-and-wordmark .logo { .search-wrapper .logo-and-wordmark .logo {
background-size: 64px; background-size: 64px;
@ -1282,7 +1282,8 @@ main {
.search-wrapper .logo-and-wordmark .wordmark { .search-wrapper .logo-and-wordmark .wordmark {
background-size: 100px; background-size: 100px;
height: 64px; height: 64px;
width: 100px; } } width: 100px;
margin-inline-start: 12px; } }
.search-wrapper .search-inner-wrapper { .search-wrapper .search-inner-wrapper {
cursor: default; cursor: default;
display: flex; display: flex;