OLD | NEW |
---|---|
1 <link rel="import" href="chrome://md-user-manager/import_supervised_user.html"> | 1 <link rel="import" href="chrome://md-user-manager/import_supervised_user.html"> |
2 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> | 2 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> |
3 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | 3 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> |
4 <link rel="import" href="chrome://resources/html/action_link.html"> | 4 <link rel="import" href="chrome://resources/html/action_link.html"> |
5 <link rel="import" href="chrome://resources/html/cr.html"> | 5 <link rel="import" href="chrome://resources/html/cr.html"> |
6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
7 <link rel="import" href="chrome://resources/html/polymer.html"> | 7 <link rel="import" href="chrome://resources/html/polymer.html"> |
8 <link rel="import" href="chrome://resources/html/util.html"> | 8 <link rel="import" href="chrome://resources/html/util.html"> |
9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> |
11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> | 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> |
13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> | 13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> |
14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> |
15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> | 15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> |
16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> | 16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> |
17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html"> | 17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html"> |
18 | 18 |
19 <dom-module id="create-profile"> | 19 <dom-module id="create-profile"> |
20 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | |
21 <template> | 20 <template> |
22 <style include="shared-styles"> | 21 <style include="shared-styles"> |
23 .container { | 22 .container { |
24 color: var(--paper-grey-800); | 23 color: var(--main-text-color); |
25 margin: 0 auto; | 24 width: var(--page-width); |
26 width: 624px; | |
27 } | 25 } |
28 | 26 |
29 #message-container { | 27 #message-container { |
30 background-color: var(--google-red-700); | 28 background-color: var(--google-red-700); |
31 color: white; | 29 color: white; |
32 left: 0; | 30 left: 0; |
33 overflow: hidden; | 31 overflow: hidden; |
34 padding: 10px 16px; | 32 padding: 10px 16px; |
35 position: absolute; | 33 position: absolute; |
36 right: 0; | 34 right: 0; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 border-color: var(--google-blue-500); | 88 border-color: var(--google-blue-500); |
91 } | 89 } |
92 | 90 |
93 #icons paper-button:focus:not([active]) { | 91 #icons paper-button:focus:not([active]) { |
94 outline: 1px dotted #666; | 92 outline: 1px dotted #666; |
95 } | 93 } |
96 | 94 |
97 paper-checkbox { | 95 paper-checkbox { |
98 --paper-checkbox-label-spacing: 16px; | 96 --paper-checkbox-label-spacing: 16px; |
99 --paper-checkbox-size: 20px; | 97 --paper-checkbox-size: 20px; |
100 --primary-text-color: var(--paper-grey-800); | 98 --primary-text-color: var(--main-text-color); |
101 margin-top: 24px; | 99 margin-top: 24px; |
102 } | 100 } |
103 | 101 |
104 #supervised-user-container { | 102 #supervised-user-container { |
105 -webkit-padding-start: 36px; | 103 -webkit-padding-start: 36px; |
106 } | 104 } |
107 | 105 |
108 #supervised-user-container #learn-more { | 106 #supervised-user-container #learn-more { |
109 line-height: 20px; | 107 line-height: 20px; |
110 } | 108 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 display: flex; | 140 display: flex; |
143 position: absolute; | 141 position: absolute; |
144 right: 16px; | 142 right: 16px; |
145 } | 143 } |
146 | 144 |
147 :host-context([dir='rtl']) #actions { | 145 :host-context([dir='rtl']) #actions { |
148 left: 16px; | 146 left: 16px; |
149 right: auto; | 147 right: auto; |
150 } | 148 } |
151 | 149 |
152 #actions paper-button { | |
153 border-radius: 2px; | |
154 font-weight: 500; | |
155 line-height: 32px; | |
156 margin: 0; | |
157 min-width: 52px; | |
158 padding: 0 16px; | |
159 } | |
160 | |
161 #actions paper-spinner { | 150 #actions paper-spinner { |
162 align-self: center; | 151 align-self: center; |
163 height: 20px; | 152 height: 20px; |
164 width: 20px; | 153 width: 20px; |
165 } | 154 } |
166 | |
167 #actions #cancel { | |
168 color: var(--paper-grey-600); | |
169 } | |
170 | |
171 #actions #save { | |
172 -webkit-margin-start: 8px; | |
173 background: var(--google-blue-500); | |
174 color: white; | |
175 } | |
176 | |
177 #actions #save[disabled] { | |
178 background: rgba(66, 133, 244, .5); | |
179 } | |
180 </style> | 155 </style> |
181 <div id="message-container" hidden="[[!message_]]"> | 156 <div id="message-container" hidden="[[!message_]]"> |
182 <iron-icon icon="warning"></iron-icon> | 157 <iron-icon icon="warning"></iron-icon> |
183 <span id="message" inner-h-t-m-l="[[message_]]"></span> | 158 <span id="message" inner-h-t-m-l="[[message_]]"></span> |
184 </div> | 159 </div> |
185 <div class="container"> | 160 <div class="container"> |
186 <div id="title-bar" i18n-content="createProfileTitle"></div> | 161 <div id="title-bar" i18n-content="createProfileTitle"></div> |
187 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" | 162 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" |
188 no-label-float auto-validate> | 163 no-label-float auto-validate> |
189 </paper-input> | 164 </paper-input> |
190 <div id="icons"> | 165 <div id="icons"> |
191 <div id="wrapper"> | 166 <div id="wrapper"> |
192 <template is="dom-repeat" items="[[availableIconUrls_]]"> | 167 <template is="dom-repeat" items="[[availableIconUrls_]]"> |
dpapad
2016/05/03 17:48:58
Indentation seems off here. Is the "wrapper" neede
| |
193 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" | 168 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" |
194 active="[[isActiveIcon_(item, profileIconUrl_)]]"> | 169 active="[[isActiveIcon_(item, profileIconUrl_)]]"> |
195 <img src="[[item]]"> | 170 <img src="[[item]]"> |
196 </paper-button> | 171 </paper-button> |
197 </template> | 172 </template> |
198 </div> | 173 </div> |
199 </div> | 174 </div> |
200 <paper-checkbox checked="{{isSupervised_}}"> | 175 <paper-checkbox checked="{{isSupervised_}}"> |
201 [[i18n('manageProfilesSupervisedSignedInLabel')]] | 176 [[i18n('manageProfilesSupervisedSignedInLabel')]] |
202 </paper-checkbox> | 177 </paper-checkbox> |
(...skipping 24 matching lines...) Expand all Loading... | |
227 </a> | 202 </a> |
228 </template> | 203 </template> |
229 <div id="sign-in-howto-message" | 204 <div id="sign-in-howto-message" |
230 hidden="[[isSignedIn_(signedInUsers_)]]" | 205 hidden="[[isSignedIn_(signedInUsers_)]]" |
231 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> | 206 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> |
232 </div> | 207 </div> |
233 </template> | 208 </template> |
234 </div> | 209 </div> |
235 <div id="actions"> | 210 <div id="actions"> |
236 <paper-spinner active="[[createInProgress_]]"></paper-spinner> | 211 <paper-spinner active="[[createInProgress_]]"></paper-spinner> |
237 <paper-button id="cancel" on-tap="onCancelTap_" i18n-content="cancel"> | 212 <paper-button id="cancel" class="action secondary" i18n-content="cancel" |
213 on-tap="onCancelTap_"> | |
238 </paper-button> | 214 </paper-button> |
239 <paper-button id="save" on-tap="onSaveTap_" | 215 <paper-button id="save" class="action primary" on-tap="onSaveTap_" |
240 i18n-content="createProfileConfirm" | 216 i18n-content="createProfileConfirm" |
241 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> | 217 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> |
242 </paper-button> | 218 </paper-button> |
243 </div> | 219 </div> |
244 <import-supervised-user id="importUserPopup"></import-supervised-user> | 220 <import-supervised-user id="importUserPopup"></import-supervised-user> |
245 </div> | 221 </div> |
246 </template> | 222 </template> |
247 <script src="chrome://md-user-manager/create_profile.js"></script> | 223 <script src="chrome://md-user-manager/create_profile.js"></script> |
248 </dom-module> | 224 </dom-module> |
OLD | NEW |