| OLD | NEW |
| 1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 7 | 7 |
| 8 <!-- | 8 <!-- |
| 9 Simple OOBE card which should be used for OOBE UI elements. | 9 Simple OOBE card which should be used for OOBE UI elements. |
| 10 It has blue header and grey footer. | 10 It has blue header and grey footer. |
| 11 | 11 |
| 12 Example: | 12 Example: |
| 13 <oobe-dialog> | 13 <oobe-dialog> |
| 14 <iron-icon ... class="oobe-icon"> | 14 <iron-icon ... class="oobe-icon"> |
| 15 <div class="header flex vertical layout end-justified start"> | 15 <div class="header flex vertical layout end-justified start"> |
| 16 ... | 16 ... |
| 17 </div> | 17 </div> |
| 18 <oobe-input-form class="footer" ...> | 18 <oobe-input-form class="footer" ...> |
| 19 </oobe-input-form> | 19 </oobe-input-form> |
| 20 <oobe-text-button class="footer" label="OK" ...> |
| 21 </oobe-text-button> |
| 20 </oobe-dialog> | 22 </oobe-dialog> |
| 21 | 23 |
| 22 Add class |header| to all which you want to go inside the header. Similar | 24 Add class |header| to all which you want to go inside the header. Similar |
| 23 with clases |footer| and |oobe-icon|. | 25 with clases |footer| and |oobe-icon|. |
| 24 --> | 26 --> |
| 25 <dom-module name="oobe-dialog"> | 27 <dom-module name="oobe-dialog"> |
| 26 <link rel="stylesheet" href="oobe_dialog.css"> | 28 <link rel="stylesheet" href="oobe_dialog.css"> |
| 27 <template> | 29 <template> |
| 28 <div class="oobe-header vertical layout relative"> | 30 <div class="oobe-header vertical layout relative"> |
| 29 <div class="header-container flex vertical layout relative"> | 31 <div class="header-container flex vertical layout relative"> |
| 30 <div class="oobe-icon-div"> | 32 <div class="oobe-icon-div"> |
| 31 <content select=".oobe-icon"></content> | 33 <content select=".oobe-icon"></content> |
| 32 </div> | 34 </div> |
| 33 <content select=".header"></content> | 35 <content select=".header"></content> |
| 34 </div> | 36 </div> |
| 35 </div> | 37 </div> |
| 36 <div class="oobe-footer flex vertical layout"> | 38 <div class="oobe-footer flex vertical layout"> |
| 37 <div class="footer-container flex vertical layout"> | 39 <div class="footer-container flex vertical layout"> |
| 38 <content select=".footer"></content> | 40 <content select=".footer"></content> |
| 39 </div> | 41 </div> |
| 40 <div id="bottom-overlay" class="overlay"></div> | |
| 41 </div> | 42 </div> |
| 42 <div id="full-overlay" class="overlay"></div> | 43 <template is="dom-if" if="[[hasButtons]]"> |
| 44 <div id="oobe-bottom" class="layout horizontal end-justified"> |
| 45 <content select=".bottom-buttons"></content> |
| 46 </div> |
| 47 </template> |
| 43 </template> | 48 </template> |
| 44 </dom-module> | 49 </dom-module> |
| 45 | 50 |
| OLD | NEW |