Commit 0516f805 authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[webui][ntp] Align doodle at bottom if boxed

Implements the latest UX spec for boxed doodles. See crbug/1032312 for
details.

Bug: 688960
Change-Id: I03898db33822a19412d88c33414644a470e28c1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261722
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: default avatarEsmael Elmoslimany <aee@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781984}
parent fde36b0b
<style include="cr-hidden-style"> <style include="cr-hidden-style">
:host { :host {
--ntp-logo-height: 230px; --ntp-logo-height: 230px;
--ntp-logo-vertical-box-padding: 16px;
display: inline-block; display: inline-block;
flex-shrink: 0; flex-shrink: 0;
min-height: var(--ntp-logo-height); min-height: var(--ntp-logo-height);
...@@ -32,6 +31,10 @@ ...@@ -32,6 +31,10 @@
justify-content: center; justify-content: center;
} }
:host([doodle-boxed_]) #doodle {
justify-content: flex-end;
}
#imageDoodle { #imageDoodle {
cursor: pointer; cursor: pointer;
outline: none; outline: none;
...@@ -40,7 +43,8 @@ ...@@ -40,7 +43,8 @@
:host([doodle-boxed_]) #imageDoodle { :host([doodle-boxed_]) #imageDoodle {
background-color: var(--ntp-logo-box-color); background-color: var(--ntp-logo-box-color);
border-radius: 20px; border-radius: 20px;
padding: var(--ntp-logo-vertical-box-padding) 24px; margin-bottom: 30px;
padding: 16px 24px;
} }
:host-context(.focus-outline-visible) #imageDoodle:focus { :host-context(.focus-outline-visible) #imageDoodle:focus {
...@@ -60,8 +64,7 @@ ...@@ -60,8 +64,7 @@
} }
:host([doodle-boxed_]) #image { :host([doodle-boxed_]) #image {
max-height: calc( max-height: 160px;
var(--ntp-logo-height) - 2 * var(--ntp-logo-vertical-box-padding));
} }
#animation { #animation {
......
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