Commit e5069744 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Update OOBE fonts

Bug: 1000606
Change-Id: I35cb734412924fa0a315063c5ca80556f6bb40fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863094
Commit-Queue: Denis Kuznetsov <antrim@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706962}
parent e3ef7477
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
:root { :root {
color: #333; color: #333;
font: 13px Roboto, sans-serif;
font-weight: 400; /* roboto-regular */
} }
#app-downloading-video-container { #app-downloading-video-container {
......
...@@ -4,17 +4,11 @@ ...@@ -4,17 +4,11 @@
a { a {
color: var(--google-blue-500); color: var(--google-blue-500);
font-family: 'Roboto';
font-size: 13px;
font-weight: 400;
text-decoration: none; text-decoration: none;
} }
p { p {
color: rgba(0, 0, 0, 0.54); color: rgba(0, 0, 0, 0.54);
font-family: 'Roboto';
font-size: 13px;
font-weight: 400;
line-height: 16px; line-height: 16px;
margin: 0; margin: 0;
padding: 0; padding: 0;
......
...@@ -18,5 +18,4 @@ ...@@ -18,5 +18,4 @@
.language-selection-title { .language-selection-title {
color: rgba(0, 0, 0, 0.87); color: rgba(0, 0, 0, 0.87);
font: 13px Roboto, sans-serif;
} }
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
box-shadow: 0 2px 10px rgba(0,0,0,0.18); box-shadow: 0 2px 10px rgba(0,0,0,0.18);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
font-family: var(--oobe-title-font-family);
height: 208px; height: 208px;
min-height: 0; min-height: 0;
position: relative; position: relative;
width: 312px; width: 312px;
@apply --oobe-default-font;
} }
:host([highlight]) { :host([highlight]) {
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#title { #title {
color: rgb(32, 33, 36); color: rgb(32, 33, 36);
font-family: var(--oobe-header-font-family);
font-size: 18sp; font-size: 18sp;
line-height: 24px; line-height: 24px;
} }
...@@ -14,14 +14,13 @@ gaia-card div.gaia-body-text p { ...@@ -14,14 +14,13 @@ gaia-card div.gaia-body-text p {
} }
gaia-card p.enterprise-info { gaia-card p.enterprise-info {
@apply --oobe-default-font;
color: white; color: white;
font-size: 15px;
margin: 8px 0 0 0; margin: 8px 0 0 0;
} }
gaia-card h1.welcome-message { gaia-card h1.welcome-message {
color: white; color: white;
font-size: 20px;
font-weight: normal;
margin-bottom: 0; margin-bottom: 0;
@apply --oobe-header-font;
} }
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
.marketing-option { .marketing-option {
border-top: var(--marketing-opt-in-dialog-list-item-border); border-top: var(--marketing-opt-in-dialog-list-item-border);
color: var(--google-grey-900); color: var(--google-grey-900);
font-size: 13px;
line-height: 20px; line-height: 20px;
min-height: 48px; min-height: 48px;
} }
......
...@@ -22,7 +22,6 @@ oobe-dialog [slot='subtitle'] { ...@@ -22,7 +22,6 @@ oobe-dialog [slot='subtitle'] {
.encryption-subtitle { .encryption-subtitle {
color: --google-grey-600; color: --google-grey-600;
font: 13px Roboto, sans-serif;
padding-bottom: 9px; padding-bottom: 9px;
padding-top: 9px; padding-top: 9px;
} }
......
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
* found in the LICENSE file. */ * found in the LICENSE file. */
:host { :host {
--title-font-size: 28px;
--title-font-distance-to-baseline: 7px; --title-font-distance-to-baseline: 7px;
--subtitle-font-size: 13px; --subtitle-font-size: --oobe-default-font-size;
--subtitle-font-distance-to-baseline: 3px; --subtitle-font-distance-to-baseline: 3px;
--subtitle-line-height: 18px; --subtitle-line-height: 18px;
--offline-gaia-dialog-width: 768px; --offline-gaia-dialog-width: 768px;
font-family: var(--oobe-default-font-family); @apply --oobe-default-font;
} }
#header-container { #header-container {
...@@ -28,10 +27,8 @@ ...@@ -28,10 +27,8 @@
} }
#oobe-title ::slotted(h1) { #oobe-title ::slotted(h1) {
color: var(--google-grey-900); color: var(--oobe-header-text-color);
font-family: var(--oobe-title-font-family); @apply --oobe-header-font;
font-size: var(--title-font-size);
font-weight: normal;
margin: 0; margin: 0;
} }
...@@ -40,8 +37,7 @@ ...@@ -40,8 +37,7 @@
} }
#oobe-subtitle ::slotted(*) { #oobe-subtitle ::slotted(*) {
color: var(--google-grey-700); color: var(--oobe-subheader-text-color);
font-size: var(--subtitle-font-size);
line-height: var(--subtitle-line-height); line-height: var(--subtitle-line-height);
/* margin 12px = 32 - line-height /* margin 12px = 32 - line-height
- 5 (line height - font size) - 5 (line height - font size)
......
...@@ -59,7 +59,7 @@ cr-toggle { ...@@ -59,7 +59,7 @@ cr-toggle {
.password-row div { .password-row div {
color: rgb(66, 133, 244); color: rgb(66, 133, 244);
font: 24px Roboto; font-size: 24px;
margin-top: 82px; margin-top: 82px;
} }
......
...@@ -5,5 +5,26 @@ ...@@ -5,5 +5,26 @@
:host { :host {
--oobe-button-font-family: "Google Sans", Roboto, sans-serif; --oobe-button-font-family: "Google Sans", Roboto, sans-serif;
--oobe-default-font-family: Roboto, sans-serif; --oobe-default-font-family: Roboto, sans-serif;
--oobe-title-font-family: "Google Sans", Roboto, sans-serif; --oobe-header-font-family: "Google Sans", Roboto, sans-serif;
--oobe-header-font-size: 28px;
--oobe-default-font-size: 13px;
--oobe-default-font-weight: 400; /* regular */
--oobe-header-font-weight: 400; /* regular */
--oobe-header-text-color: var(--google-grey-900);
--oobe-subheader-text-color: var(--google-grey-700);
--oobe-default-font: {
font-family: var(--oobe-default-font-family);
font-size: var(--oobe-default-font-size);
font-weight: var(--oobe-default-font-weight);
};
--oobe-header-font: {
font-family: var(--oobe-header-font-family);
font-size: var(--oobe-header-font-size);
font-weight: var(--oobe-default-font-weight);
};
} }
...@@ -19,7 +19,6 @@ a { ...@@ -19,7 +19,6 @@ a {
} }
#tpmFirmwareUpdate { #tpmFirmwareUpdate {
font: 13px Roboto, sans-serif;
margin-bottom: 20px; margin-bottom: 20px;
margin-inline-start: 20px; margin-inline-start: 20px;
margin-top: 23px; /* = 36 - font size */ margin-top: 23px; /* = 36 - font size */
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
} }
.reset-popup-content-area { .reset-popup-content-area {
@apply --oobe-default-font;
color: rgba(0, 0, 0, .54); color: rgba(0, 0, 0, .54);
font: 13px Roboto, sans-serif;
line-height: 20px; line-height: 20px;
padding: 0 20px 20.5px; padding: 0 20px 20.5px;
} }
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
:host .text { :host .text {
color: #333; color: #333;
font: 13px Roboto, sans-serif;
line-height: 18px; line-height: 18px;
} }
......
...@@ -5,12 +5,10 @@ ...@@ -5,12 +5,10 @@
#title { #title {
align-self: center; align-self: center;
color: var(--google-grey-900); color: var(--oobe-header-text-color);
font-family: var(--oobe-button-font-family);
font-size: 28px;
font-weight: 400; /* regular */
margin: 0; margin: 0;
user-select: none; user-select: none;
@apply --oobe-header-font;
} }
.welcome-illustration { .welcome-illustration {
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
:root { :root {
color: #333; color: #333;
font: 13px Roboto, sans-serif;
font-weight: 400; /* roboto-regular */
} }
.overview-list-item { .overview-list-item {
...@@ -83,6 +81,5 @@ cr-radio-button { ...@@ -83,6 +81,5 @@ cr-radio-button {
#syncConsentMakeChromeSyncOptionsDialog .sync-option-subtitle { #syncConsentMakeChromeSyncOptionsDialog .sync-option-subtitle {
color: rgba(0, 0, 0, 0.54); color: rgba(0, 0, 0, 0.54);
font: 13px Roboto, sans-serif;
padding-inline-start: 8px; padding-inline-start: 8px;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment