Commit 6ab1c120 authored by huangs's avatar huangs Committed by Commit Bot

[FRE] Fix margin regression.

https://codereview.chromium.org/2750673006 sets margin to 0 for <body>
in chrome://welcome to prevent vertical scroll bar from always showing,
but as a result, makes text look poor when window is shrunken. This CL
augments the old fix with padding and box-sizing, to solve both
problems.

Bug: 778202
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I9480799be706e58fb27884f178b2652094a39394
Reviewed-on: https://chromium-review.googlesource.com/996856Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarSamuel Huang <huangs@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549229}
parent 6b53a1d4
......@@ -4,6 +4,7 @@
body {
align-items: center;
box-sizing: border-box;
color: var(--paper-grey-900);
display: flex;
flex-direction: column;
......@@ -11,6 +12,7 @@ body {
justify-content: center;
margin: 0;
min-height: 100vh;
padding: 8px;
}
@keyframes slideUpContent {
......
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