| OLD | NEW |
| 1 <link rel="import" href="/import_supervised_user.html"> | 1 <link rel="import" href="/import_supervised_user.html"> |
| 2 <link rel="import" href="/profile_browser_proxy.html"> | 2 <link rel="import" href="/profile_browser_proxy.html"> |
| 3 <link rel="import" href="/shared_styles.html"> | 3 <link rel="import" href="/shared_styles.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 5 <link rel="import" href="chrome://resources/html/action_link.html"> | 6 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 6 <link rel="import" href="chrome://resources/html/cr.html"> | 7 <link rel="import" href="chrome://resources/html/cr.html"> |
| 7 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 8 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 8 <link rel="import" href="chrome://resources/html/polymer.html"> | 9 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 9 <link rel="import" href="chrome://resources/html/util.html"> | 10 <link rel="import" href="chrome://resources/html/util.html"> |
| 10 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 11 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> | 12 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 font-size: inherit; | 81 font-size: inherit; |
| 81 }; | 82 }; |
| 82 } | 83 } |
| 83 | 84 |
| 84 #nameInput { | 85 #nameInput { |
| 85 margin-bottom: 24px; | 86 margin-bottom: 24px; |
| 86 margin-top: 32px; | 87 margin-top: 32px; |
| 87 width: 300px; | 88 width: 300px; |
| 88 } | 89 } |
| 89 | 90 |
| 90 #icons { | |
| 91 display: flex; | |
| 92 flex-wrap: wrap; | |
| 93 margin: -12px; | |
| 94 } | |
| 95 | |
| 96 #icons paper-button { | |
| 97 --paper-button: { | |
| 98 background: var(--paper-grey-300); | |
| 99 }; | |
| 100 --paper-button-flat-keyboard-focus: { | |
| 101 background: var(--paper-grey-400); | |
| 102 }; | |
| 103 border: var(--user-manager-separator-line); | |
| 104 margin: 12px; | |
| 105 min-width: 0; | |
| 106 padding: 6px 4px; | |
| 107 } | |
| 108 | |
| 109 #icons paper-button[active] { | |
| 110 border-color: var(--google-blue-500); | |
| 111 } | |
| 112 | |
| 113 paper-checkbox { | 91 paper-checkbox { |
| 114 --paper-checkbox-checked-color: var(--google-blue-500); | 92 --paper-checkbox-checked-color: var(--google-blue-500); |
| 115 --paper-checkbox-label-spacing: 16px; | 93 --paper-checkbox-label-spacing: 16px; |
| 116 --paper-checkbox-size: 16px; | 94 --paper-checkbox-size: 16px; |
| 117 --paper-checkbox-unchecked-color: var(--paper-grey-600); | 95 --paper-checkbox-unchecked-color: var(--paper-grey-600); |
| 118 margin-top: 24px; | 96 margin-top: 24px; |
| 119 } | 97 } |
| 120 | 98 |
| 121 #supervised-user-container { | 99 #supervised-user-container { |
| 122 -webkit-padding-start: 32px; | 100 -webkit-padding-start: 32px; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 </style> | 151 </style> |
| 174 <div id="message-container" visible$="[[isMessageVisble_]]"> | 152 <div id="message-container" visible$="[[isMessageVisble_]]"> |
| 175 <iron-icon icon="cr:warning"></iron-icon> | 153 <iron-icon icon="cr:warning"></iron-icon> |
| 176 <span id="message" inner-h-t-m-l="[[message_]]"></span> | 154 <span id="message" inner-h-t-m-l="[[message_]]"></span> |
| 177 </div> | 155 </div> |
| 178 <div class="container"> | 156 <div class="container"> |
| 179 <div id="title-bar">$i18n{createProfileTitle}</div> | 157 <div id="title-bar">$i18n{createProfileTitle}</div> |
| 180 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" | 158 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" |
| 181 no-label-float auto-validate> | 159 no-label-float auto-validate> |
| 182 </paper-input> | 160 </paper-input> |
| 183 <div id="icons"> | 161 <cr-profile-avatar-selector avatars="[[availableIcons_]]" |
| 184 <template is="dom-repeat" items="[[availableIcons_]]"> | 162 selected-avatar-url="{{profileIconUrl_}}"> |
| 185 <paper-button toggles on-tap="onIconTap_" | 163 </cr-profile-avatar-selector> |
| 186 data-icon-url$="[[item.url]]" | |
| 187 active="[[isActiveIcon_(item.url, profileIconUrl_)]]"> | |
| 188 <img src="[[item.url]]" alt="[[item.label]]"> | |
| 189 </paper-button> | |
| 190 </template> | |
| 191 </div> | |
| 192 <paper-checkbox checked="{{isSupervised_}}"> | 164 <paper-checkbox checked="{{isSupervised_}}"> |
| 193 $i18n{manageProfilesSupervisedSignedInLabel} | 165 $i18n{manageProfilesSupervisedSignedInLabel} |
| 194 </paper-checkbox> | 166 </paper-checkbox> |
| 195 <div id="supervised-user-container"> | 167 <div id="supervised-user-container"> |
| 196 <div id="learn-more" > | 168 <div id="learn-more" > |
| 197 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> | 169 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> |
| 198 </div> | 170 </div> |
| 199 <template is="dom-if" if="[[isSupervised_]]"> | 171 <template is="dom-if" if="[[isSupervised_]]"> |
| 200 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> | 172 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> |
| 201 <paper-dropdown-menu label="$i18n{selectAnAccount}" no-label-float> | 173 <paper-dropdown-menu label="$i18n{selectAnAccount}" no-label-float> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 230 <paper-button id="save" class="action primary" on-tap="onSaveTap_" | 202 <paper-button id="save" class="action primary" on-tap="onSaveTap_" |
| 231 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> | 203 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> |
| 232 $i18n{createProfileConfirm} | 204 $i18n{createProfileConfirm} |
| 233 </paper-button> | 205 </paper-button> |
| 234 </div> | 206 </div> |
| 235 <import-supervised-user id="importUserPopup"></import-supervised-user> | 207 <import-supervised-user id="importUserPopup"></import-supervised-user> |
| 236 </div> | 208 </div> |
| 237 </template> | 209 </template> |
| 238 <script src="create_profile.js"></script> | 210 <script src="create_profile.js"></script> |
| 239 </dom-module> | 211 </dom-module> |
| OLD | NEW |