OLD | NEW |
1 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> | 1 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> |
2 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | 2 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> |
3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 4 <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/paper-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
6 | 6 |
7 <dom-module id="control-bar"> | 7 <dom-module id="control-bar"> |
8 <!-- TODO(mahmadi): this format is deprecated. Change to the new | |
9 "shared styles" format. --> | |
10 <link rel="import" type="css" href="chrome://md-user-manager/control_bar.css"> | |
11 <template> | 8 <template> |
12 <style include="shared-styles"></style> | 9 <style include="shared-styles"> |
| 10 #container { |
| 11 padding-bottom: 12px; |
| 12 padding-top: 12px; |
| 13 } |
| 14 |
| 15 paper-button { |
| 16 border-radius: 2px; |
| 17 color: var(--paper-grey-600); |
| 18 font-weight: 500; |
| 19 line-height: 32px; |
| 20 margin: 0; |
| 21 min-width: 52px; |
| 22 padding: 0 16px; |
| 23 } |
| 24 |
| 25 #addUser { |
| 26 margin: 0 8px; |
| 27 } |
| 28 |
| 29 #logo { |
| 30 content: -webkit-image-set( |
| 31 url(../../../app/theme/default_100_percent/%DISTRIBUTION%/product_lo
go_name_48.png) 1x, |
| 32 url(../../../app/theme/default_200_percent/%DISTRIBUTION%/product_lo
go_name_48.png) 2x); |
| 33 height: 18px; |
| 34 left: 24px; |
| 35 position: absolute; |
| 36 top: 19px; |
| 37 } |
| 38 |
| 39 :host-context([dir='rtl']) #logo { |
| 40 left: auto; |
| 41 right: 24px; |
| 42 } |
| 43 </style> |
13 <div id="container" class="layout horizontal end-justified"> | 44 <div id="container" class="layout horizontal end-justified"> |
14 <div id="logo"></div> | 45 <div id="logo"></div> |
15 <paper-button id="launchGuest" on-tap="onLaunchGuestTap_" | 46 <paper-button id="launchGuest" on-tap="onLaunchGuestTap_" |
16 i18n-content="browseAsGuest" hidden="[[!showGuest]]"></paper-button> | 47 i18n-content="browseAsGuest" hidden="[[!showGuest]]"></paper-button> |
17 <paper-button id="addUser" on-tap="onAddUserTap_" | 48 <paper-button id="addUser" on-tap="onAddUserTap_" |
18 i18n-content="addUser" hidden="[[!showAddPerson]]"></paper-button> | 49 i18n-content="addUser" hidden="[[!showAddPerson]]"></paper-button> |
19 </div> | 50 </div> |
20 </template> | 51 </template> |
21 <script src="chrome://md-user-manager/control_bar.js"></script> | 52 <script src="chrome://md-user-manager/control_bar.js"></script> |
22 </dom-module> | 53 </dom-module> |
OLD | NEW |