Commit b883542f authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

oobe-dialog: Modify title and subtitle paddings

according to specs

Bug: 1017117, 1017173
Change-Id: I1301d9fe730ba63234367f812175d02cc0def1ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876349
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarDenis Kuznetsov <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709395}
parent 3c5165be
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
} }
#oobe-title { #oobe-title {
min-height: calc(64px + var(--title-font-distance-to-baseline)); padding-top: 20px;
} }
#oobe-title ::slotted(h1) { #oobe-title ::slotted(h1) {
...@@ -33,18 +33,13 @@ ...@@ -33,18 +33,13 @@
} }
#oobe-subtitle { #oobe-subtitle {
min-height: calc(64px - var(--title-font-distance-to-baseline)); padding-top: 8px;
} }
#oobe-subtitle ::slotted(*) { #oobe-subtitle ::slotted(*) {
color: var(--oobe-subheader-text-color); color: var(--oobe-subheader-text-color);
line-height: var(--subtitle-line-height); line-height: var(--subtitle-line-height);
/* margin 12px = 32 - line-height margin: 0;
- 5 (line height - font size)
+ 3 (distance to baseline 13px) */
margin: calc(32px - var(--subtitle-line-height)
- (var(--subtitle-line-height) - var(--subtitle-font-size))
+ var(--subtitle-font-distance-to-baseline)) 0 0 0;
} }
#oobe-progress ::slotted(paper-progress) { #oobe-progress ::slotted(paper-progress) {
...@@ -56,7 +51,12 @@ ...@@ -56,7 +51,12 @@
#footer-container { #footer-container {
overflow-y: auto; overflow-y: auto;
padding: 0 var(--oobe-dialog-content-padding); padding-bottom: 0;
padding-inline-end: var(--oobe-dialog-content-padding);
padding-inline-start: var(--oobe-dialog-content-padding);
/* TODO(https://crbug.com/1017173) Make it adaptive. */
padding-top: 20px;
} }
#footer-container[noFooterPadding] { #footer-container[noFooterPadding] {
......
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