Commit 3886244e authored by Yue Li's avatar Yue Li Committed by Commit Bot

Update specs for Assistant opt-in flow screens

Some spacing updates and move the voice match animation to the middle.

Bug: 994462
Test: Manual test
Change-Id: Id81f555cdfd6d620138831c426ba8ae6eb77e8c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761647
Commit-Queue: Yue Li <updowndota@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688706}
parent 195ff384
...@@ -19,9 +19,15 @@ ...@@ -19,9 +19,15 @@
color: #757575; color: #757575;
} }
#voice-match-video-container {
flex-grow: 1;
}
#voice-match-video { #voice-match-video {
padding-top: 100px; left: 50%;
text-align: center; position: relative;
top: 50%;
transform: translate(-50%, -50%);
} }
#already-setup-video-container { #already-setup-video-container {
...@@ -32,12 +38,6 @@ ...@@ -32,12 +38,6 @@
height: 450px; height: 450px;
} }
#already-setup-img {
display: block;
margin: auto;
padding-top: 80px;
}
#intro-container, #intro-container,
#recording-container, #recording-container,
#already-setup-container { #already-setup-container {
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
.intro #intro-container, .intro #intro-container,
.already-setup #already-setup-container { .already-setup #already-setup-container {
display: block; display: flex;
flex-direction: column;
} }
.recording #title-completed, .recording #title-completed,
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<div class="content" id="no-dsp-message" <div class="content" id="no-dsp-message"
i18n-content="assistantVoiceMatchNoDspMessage"> i18n-content="assistantVoiceMatchNoDspMessage">
</div> </div>
<div id="voice-match-video"> <div id="voice-match-video-container">
<video muted autoplay loop> <video id="voice-match-video" muted autoplay loop>
<source src="voice_laptop_1x.webm" type="video/webm"> <source src="voice_laptop_1x.webm" type="video/webm">
</video> </video>
</div> </div>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
padding-top: 4px; padding-top: 4px;
} }
.content[popupStyle] { #description {
padding: 4px 0 16px 0; padding: 4px 0 16px 0;
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<template is="dom-if" if="[[expandStyle]]"> <template is="dom-if" if="[[expandStyle]]">
<cr-expand-button expanded="{{expanded_}}"> <cr-expand-button expanded="{{expanded_}}">
<div id="container" class="flex layout horizontal" <div id="container" class="flex layout horizontal"
popupStyle$="[[popupStyle]]"> expandStyle$="[[expandStyle]]">
<div class="icon"> <div class="icon">
<webview class="icon-view" src="[[iconSrc]]" tabindex="-1"> <webview class="icon-view" src="[[iconSrc]]" tabindex="-1">
</webview> </webview>
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
<div class="sub-title"> <div class="sub-title">
<content select=".zippy-title"></content> <content select=".zippy-title"></content>
</div> </div>
<div class="content" toggleStyle$="[[toggleStyle]]" <div class="content">
popupStyle$="[[popupStyle]]">
<content select=".zippy-description, .learn-more-link"></content> <content select=".zippy-description, .learn-more-link"></content>
</div> </div>
</div> </div>
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
</template> </template>
<template is="dom-if" if="[[!expandStyle]]"> <template is="dom-if" if="[[!expandStyle]]">
<div id="container" class="flex layout horizontal" <div id="container" class="flex layout horizontal"
popupStyle$="[[popupStyle]]"> expandStyle$="[[expandStyle]]">
<div class="icon"> <div class="icon">
<webview class="icon-view" src="[[iconSrc]]" tabindex="-1"></webview> <webview class="icon-view" src="[[iconSrc]]" tabindex="-1"></webview>
</div> </div>
...@@ -45,8 +44,7 @@ ...@@ -45,8 +44,7 @@
<div class="sub-title"> <div class="sub-title">
<content select=".zippy-title"></content> <content select=".zippy-title"></content>
</div> </div>
<div class="content" toggleStyle$="[[toggleStyle]]" <div id="description" class="content">
popupStyle$="[[popupStyle]]">
<content select=".zippy-description, .learn-more-link"></content> <content select=".zippy-description, .learn-more-link"></content>
</div> </div>
</div> </div>
......
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