Commit 8868e9a2 authored by Jordy Greenblatt's avatar Jordy Greenblatt Committed by Commit Bot

[CrOS MultiDevice] Setup Flow UI Styling (cont.)

Under the hood:
  -Pulled styling imports into multidevice_setup_shared_css

Visible
  -Unified default text specs
  -Placed button bar at the bottom of the page
  -Implemented some (not all) padding between elements in start setup
page

Bug: 878646, 878644, 878643
Change-Id: I53d97060d139bcadd9594866f9342040fa386e80
Reviewed-on: https://chromium-review.googlesource.com/1232473Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Jordy Greenblatt <jordynass@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592304}
parent 1b1a92f8
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="multidevice_setup_shared_css.html">
<!-- TODO(jordynass): Implement OOBE style and make the visible style dependent <!-- TODO(jordynass): Implement OOBE style and make the visible style dependent
on the MultiDeviceSetup.uiMode property. --> on the MultiDeviceSetup.uiMode property. -->
<dom-module id="button-bar"> <dom-module id="button-bar">
<template> <template>
<style include="iron-flex paper-button-style cr-shared-style"> <style include="multidevice-setup-shared">
:host { :host {
@apply(--layout-end-justified); @apply(--layout-end-justified);
@apply(--layout-horizontal); @apply(--layout-horizontal);
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.html">
<link rel="import" href="button_bar.html"> <link rel="import" href="button_bar.html">
<link rel="import" href="fake_mojo_service.html"> <link rel="import" href="fake_mojo_service.html">
<link rel="import" href="i18n_setup.html"> <link rel="import" href="i18n_setup.html">
<link rel="import" href="mojo_api_behavior.html"> <link rel="import" href="mojo_api_behavior.html">
<link rel="import" href="multidevice_setup_shared_css.html">
<link rel="import" href="password_page.html"> <link rel="import" href="password_page.html">
<link rel="import" href="setup_failed_page.html"> <link rel="import" href="setup_failed_page.html">
<link rel="import" href="setup_succeeded_page.html"> <link rel="import" href="setup_succeeded_page.html">
...@@ -15,15 +15,12 @@ ...@@ -15,15 +15,12 @@
<dom-module id="multidevice-setup"> <dom-module id="multidevice-setup">
<template> <template>
<style> <style include="multidevice-setup-shared">
:host { :host {
@apply(--layout-vertical); @apply(--layout-vertical);
@apply(--layout-start-justified); box-sizing: border-box;
padding: 60px 32px 32px 32px; height: 100%;
} padding: 60px 64px 32px 64px;
button-bar {
margin-top: 40px;
} }
</style> </style>
<iron-pages attr-for-selected="is" <iron-pages attr-for-selected="is"
...@@ -41,6 +38,7 @@ ...@@ -41,6 +38,7 @@
selected-device-id="{{selectedDeviceId_}}"> selected-device-id="{{selectedDeviceId_}}">
</start-setup-page> </start-setup-page>
</iron-pages> </iron-pages>
<div class="flex"></div>
<button-bar forward-button-text="[[visiblePage_.forwardButtonText]]" <button-bar forward-button-text="[[visiblePage_.forwardButtonText]]"
forward-button-disabled="[[forwardButtonDisabled_]]" forward-button-disabled="[[forwardButtonDisabled_]]"
backward-button-text="[[visiblePage_.backwardButtonText]]"> backward-button-text="[[visiblePage_.backwardButtonText]]">
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/md_select_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
<dom-module id="multidevice-setup-shared"> <dom-module id="multidevice-setup-shared">
<template> <template>
<style> <style include="iron-flex paper-button-style cr-shared-style md-select">
.page-content-text {
color: var(--google-grey-700);
font-family: Roboto-Regular, Roboto, sans-serif;
font-size: 13px;
line-height: 1.4;
}
a { a {
color: var(--google-blue-600); color: var(--google-blue-600);
text-decoration: none; text-decoration: none;
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
<link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html"> <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="multidevice_setup_shared_css.html">
<link rel="import" href="ui_page.html"> <link rel="import" href="ui_page.html">
<link rel="import" href="ui_page_container_behavior.html"> <link rel="import" href="ui_page_container_behavior.html">
<dom-module id="password-page"> <dom-module id="password-page">
<template> <template>
<style> <style include="multidevice-setup-shared">
#user-info-container { #user-info-container {
@apply(--layout-horizontal); @apply(--layout-horizontal);
border: 1px solid rgb(95, 99, 104); border: 1px solid rgb(95, 99, 104);
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="multidevice_setup_browser_proxy.html"> <link rel="import" href="multidevice_setup_browser_proxy.html">
<link rel="import" href="multidevice_setup_shared_css.html">
<link rel="import" href="ui_page.html"> <link rel="import" href="ui_page.html">
<link rel="import" href="ui_page_container_behavior.html"> <link rel="import" href="ui_page_container_behavior.html">
<dom-module id="setup-succeeded-page"> <dom-module id="setup-succeeded-page">
<template> <template>
<style include="iron-flex"> <style include="multidevice-setup-shared">
#page-icon-container { #page-icon-container {
@apply(--layout-horizontal); @apply(--layout-horizontal);
@apply(--layout-center-justified); @apply(--layout-center-justified);
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/html/md_select_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="icons.html"> <link rel="import" href="icons.html">
<link rel="import" href="multidevice_setup_shared_css.html"> <link rel="import" href="multidevice_setup_shared_css.html">
...@@ -11,13 +9,13 @@ ...@@ -11,13 +9,13 @@
<dom-module id="start-setup-page"> <dom-module id="start-setup-page">
<template> <template>
<style include="iron-flex multidevice-setup-shared md-select"> <style include="multidevice-setup-shared">
#selector-and-details-container { #selector-and-details-container {
@apply(--layout-horizontal); @apply(--layout-horizontal);
color: rgb(33, 33, 36); }
font-family: Roboto-Regular, Roboto, sans-serif;
font-size: 13px; #deviceDropdown {
padding: 8px 8px 8px 0; margin-top: 16px;
} }
#page-icon-container { #page-icon-container {
...@@ -29,7 +27,7 @@ ...@@ -29,7 +27,7 @@
background-image: -webkit-image-set(url(start_setup_icon_1x.png) 1x, background-image: -webkit-image-set(url(start_setup_icon_1x.png) 1x,
url(start_setup_icon_2x.png) 2x); url(start_setup_icon_2x.png) 2x);
height: 116px; height: 116px;
margin-top: 20px; margin-top: 10px;
width: 320px; width: 320px;
} }
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="icons.html"> <link rel="import" href="icons.html">
<link rel="import" href="multidevice_setup_shared_css.html"> <link rel="import" href="multidevice_setup_shared_css.html">
<dom-module id="ui-page"> <dom-module id="ui-page">
<template> <template>
<style include="iron-flex iron-flex-alignment multidevice-setup-shared"> <style include="multidevice-setup-shared">
#ui-page-container {
padding-left: 32px;
padding-right: 32px;
}
iron-icon { iron-icon {
--iron-icon-width: 32px; --iron-icon-width: 32px;
--iron-icon-height: 32px; --iron-icon-height: 32px;
...@@ -22,6 +16,7 @@ ...@@ -22,6 +16,7 @@
color: rgb(32, 33, 36); color: rgb(32, 33, 36);
font-family: 'Google Sans'; font-family: 'Google Sans';
font-size: 28px; font-size: 28px;
line-height: 28px;
margin: 0; margin: 0;
padding-top: 36px; padding-top: 36px;
} }
...@@ -29,16 +24,18 @@ ...@@ -29,16 +24,18 @@
#message-container { #message-container {
padding-top: 16px; padding-top: 16px;
} }
#additional-content-container {
padding-top: 48px;
}
</style> </style>
<div id="ui-page-container"> <iron-icon icon="[[computeIconIdentifier_(iconName)]]"></iron-icon>
<iron-icon icon="[[computeIconIdentifier_(iconName)]]"></iron-icon> <h1>[[headerText]]</h1>
<h1>[[headerText]]</h1> <div id="message-container">
<div id="message-container" class="page-content-text"> <slot name="message"></slot>
<slot name="message"></slot> </div>
</div> <div id="additional-content-container">
<div id="additional-content-container" class="page-content-text"> <slot name="additional-content"></slot>
<slot name="additional-content"></slot>
</div>
</div> </div>
</template> </template>
<script src="ui_page.js"></script> <script src="ui_page.js"></script>
......
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