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-listbox/paper-lis
tbox.html"> | 16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
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 28 matching lines...) Expand all Loading... |
65 font-size: inherit; | 63 font-size: inherit; |
66 }; | 64 }; |
67 } | 65 } |
68 | 66 |
69 #nameInput { | 67 #nameInput { |
70 margin-bottom: 24px; | 68 margin-bottom: 24px; |
71 margin-top: 32px; | 69 margin-top: 32px; |
72 width: 300px; | 70 width: 300px; |
73 } | 71 } |
74 | 72 |
75 #icons #wrapper { | 73 #icons { |
76 display: flex; | 74 display: flex; |
77 flex-wrap: wrap; | 75 flex-wrap: wrap; |
78 margin: -12px; | 76 margin: -12px; |
79 } | 77 } |
80 | 78 |
81 #icons paper-button { | 79 #icons paper-button { |
82 background: var(--paper-grey-300); | 80 background: var(--paper-grey-300); |
83 border: 1px solid rgba(0, 0, 0, .12); | 81 border: 1px solid rgba(0, 0, 0, .12); |
84 margin: 12px; | 82 margin: 12px; |
85 min-width: 0; | 83 min-width: 0; |
86 padding: 6px 4px; | 84 padding: 6px 4px; |
87 } | 85 } |
88 | 86 |
89 #icons paper-button[active] { | 87 #icons paper-button[active] { |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 display: flex; | 142 display: flex; |
145 position: absolute; | 143 position: absolute; |
146 right: 16px; | 144 right: 16px; |
147 } | 145 } |
148 | 146 |
149 :host-context([dir='rtl']) #actions { | 147 :host-context([dir='rtl']) #actions { |
150 left: 16px; | 148 left: 16px; |
151 right: auto; | 149 right: auto; |
152 } | 150 } |
153 | 151 |
154 #actions paper-button { | |
155 border-radius: 2px; | |
156 font-weight: 500; | |
157 line-height: 32px; | |
158 margin: 0; | |
159 min-width: 52px; | |
160 padding: 0 16px; | |
161 } | |
162 | |
163 #actions paper-spinner { | 152 #actions paper-spinner { |
164 align-self: center; | 153 align-self: center; |
165 height: 20px; | 154 height: 20px; |
166 width: 20px; | 155 width: 20px; |
167 } | 156 } |
168 | |
169 #actions #cancel { | |
170 color: var(--paper-grey-600); | |
171 } | |
172 | |
173 #actions #save { | |
174 -webkit-margin-start: 8px; | |
175 background: var(--google-blue-500); | |
176 color: white; | |
177 } | |
178 | |
179 #actions #save[disabled] { | |
180 background: rgba(66, 133, 244, .5); | |
181 } | |
182 </style> | 157 </style> |
183 <div id="message-container" hidden="[[!message_]]"> | 158 <div id="message-container" hidden="[[!message_]]"> |
184 <iron-icon icon="warning"></iron-icon> | 159 <iron-icon icon="warning"></iron-icon> |
185 <span id="message" inner-h-t-m-l="[[message_]]"></span> | 160 <span id="message" inner-h-t-m-l="[[message_]]"></span> |
186 </div> | 161 </div> |
187 <div class="container"> | 162 <div class="container"> |
188 <div id="title-bar" i18n-content="createProfileTitle"></div> | 163 <div id="title-bar" i18n-content="createProfileTitle"></div> |
189 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" | 164 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" |
190 no-label-float auto-validate> | 165 no-label-float auto-validate> |
191 </paper-input> | 166 </paper-input> |
192 <div id="icons"> | 167 <div id="icons"> |
193 <div id="wrapper"> | |
194 <template is="dom-repeat" items="[[availableIconUrls_]]"> | 168 <template is="dom-repeat" items="[[availableIconUrls_]]"> |
195 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" | 169 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" |
196 active="[[isActiveIcon_(item, profileIconUrl_)]]"> | 170 active="[[isActiveIcon_(item, profileIconUrl_)]]"> |
197 <img src="[[item]]"> | 171 <img src="[[item]]"> |
198 </paper-button> | 172 </paper-button> |
199 </template> | 173 </template> |
200 </div> | |
201 </div> | 174 </div> |
202 <paper-checkbox checked="{{isSupervised_}}"> | 175 <paper-checkbox checked="{{isSupervised_}}"> |
203 [[i18n('manageProfilesSupervisedSignedInLabel')]] | 176 [[i18n('manageProfilesSupervisedSignedInLabel')]] |
204 </paper-checkbox> | 177 </paper-checkbox> |
205 <div id="supervised-user-container"> | 178 <div id="supervised-user-container"> |
206 <div id="learn-more" > | 179 <div id="learn-more" > |
207 <a is="action-link" on-tap="onLearnMoreTap_">[[i18n('learnMore')]]</a> | 180 <a is="action-link" on-tap="onLearnMoreTap_">[[i18n('learnMore')]]</a> |
208 <div> | 181 <div> |
209 <template is="dom-if" if="[[isSupervised_]]"> | 182 <template is="dom-if" if="[[isSupervised_]]"> |
210 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> | 183 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> |
(...skipping 18 matching lines...) Expand all Loading... |
229 </a> | 202 </a> |
230 </template> | 203 </template> |
231 <div id="sign-in-howto-message" | 204 <div id="sign-in-howto-message" |
232 hidden="[[isSignedIn_(signedInUsers_)]]" | 205 hidden="[[isSignedIn_(signedInUsers_)]]" |
233 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> | 206 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> |
234 </div> | 207 </div> |
235 </template> | 208 </template> |
236 </div> | 209 </div> |
237 <div id="actions"> | 210 <div id="actions"> |
238 <paper-spinner active="[[createInProgress_]]"></paper-spinner> | 211 <paper-spinner active="[[createInProgress_]]"></paper-spinner> |
239 <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_"> |
240 </paper-button> | 214 </paper-button> |
241 <paper-button id="save" on-tap="onSaveTap_" | 215 <paper-button id="save" class="action primary" on-tap="onSaveTap_" |
242 i18n-content="createProfileConfirm" | 216 i18n-content="createProfileConfirm" |
243 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> | 217 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> |
244 </paper-button> | 218 </paper-button> |
245 </div> | 219 </div> |
246 <import-supervised-user id="importUserPopup"></import-supervised-user> | 220 <import-supervised-user id="importUserPopup"></import-supervised-user> |
247 </div> | 221 </div> |
248 </template> | 222 </template> |
249 <script src="chrome://md-user-manager/create_profile.js"></script> | 223 <script src="chrome://md-user-manager/create_profile.js"></script> |
250 </dom-module> | 224 </dom-module> |
OLD | NEW |