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" | |
21 href="chrome://md-user-manager/create_profile.css"> | |
22 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 20 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
23 <template> | 21 <template> |
24 <style include="shared-styles"></style> | 22 <style include="shared-styles"> |
| 23 .container { |
| 24 color: var(--paper-grey-800); |
| 25 margin: 0 auto; |
| 26 width: 624px; |
| 27 } |
| 28 |
| 29 #message-container { |
| 30 background-color: var(--google-red-700); |
| 31 color: white; |
| 32 left: 0; |
| 33 overflow: hidden; |
| 34 padding: 10px 16px; |
| 35 position: absolute; |
| 36 right: 0; |
| 37 top: 0; |
| 38 } |
| 39 |
| 40 #message-container iron-icon { |
| 41 --iron-icon-height: 20px; |
| 42 --iron-icon-width: 20px; |
| 43 } |
| 44 |
| 45 #message-container #message { |
| 46 -webkit-margin-start: 16px; |
| 47 } |
| 48 |
| 49 #message-container #supervised-user-import-existing { |
| 50 color: inherit; |
| 51 text-decoration: underline; |
| 52 } |
| 53 |
| 54 #title-bar { |
| 55 border-bottom: 1px solid rgba(0, 0, 0, .12); |
| 56 font-size: 16px; |
| 57 font-weight: 500; |
| 58 padding: 104px 0 16px; |
| 59 } |
| 60 |
| 61 #nameInput, |
| 62 paper-dropdown-menu { |
| 63 --paper-input-container: { |
| 64 padding: 0; |
| 65 }; |
| 66 --paper-input-container-input: { |
| 67 color: inherit; |
| 68 font-size: inherit; |
| 69 }; |
| 70 } |
| 71 |
| 72 #nameInput { |
| 73 margin-bottom: 24px; |
| 74 margin-top: 32px; |
| 75 width: 300px; |
| 76 } |
| 77 |
| 78 paper-dropdown-menu { |
| 79 margin-top: 12px; |
| 80 width: 200px; |
| 81 } |
| 82 |
| 83 paper-menu { |
| 84 --paper-menu: { |
| 85 color: inherit; |
| 86 padding: 0; |
| 87 }; |
| 88 --paper-menu-selected-item: { |
| 89 font-weight: normal; |
| 90 } |
| 91 } |
| 92 |
| 93 paper-menu paper-item { |
| 94 font-size: inherit; |
| 95 min-height: 40px; |
| 96 } |
| 97 |
| 98 #icons #wrapper { |
| 99 display: flex; |
| 100 flex-wrap: wrap; |
| 101 margin: -12px; |
| 102 } |
| 103 |
| 104 #icons paper-button { |
| 105 background: var(--paper-grey-300); |
| 106 border: 1px solid rgba(0, 0, 0, .12); |
| 107 margin: 12px; |
| 108 min-width: 0; |
| 109 padding: 6px 4px; |
| 110 } |
| 111 |
| 112 #icons paper-button[active] { |
| 113 border-color: var(--google-blue-500); |
| 114 } |
| 115 |
| 116 #icons paper-button:focus:not([active]) { |
| 117 outline: 1px dotted #666; |
| 118 } |
| 119 |
| 120 #supervised-user-container { |
| 121 margin-top: 24px; |
| 122 } |
| 123 |
| 124 #supervised-user-container paper-checkbox { |
| 125 --paper-checkbox-label-spacing: 16px; |
| 126 --paper-checkbox-size: 20px; |
| 127 } |
| 128 |
| 129 #supervised-user-container #learn-more-accounts { |
| 130 -webkit-margin-start: 36px; |
| 131 } |
| 132 |
| 133 #supervised-user-container #learn-more { |
| 134 display: block; |
| 135 line-height: 20px; |
| 136 } |
| 137 |
| 138 #supervised-user-container #import-user { |
| 139 -webkit-margin-start: 16px; |
| 140 } |
| 141 |
| 142 #actions { |
| 143 bottom: 16px; |
| 144 display: flex; |
| 145 position: absolute; |
| 146 right: 16px; |
| 147 } |
| 148 |
| 149 :host-context([dir='rtl']) #actions { |
| 150 left: 16px; |
| 151 right: auto; |
| 152 } |
| 153 |
| 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 { |
| 164 align-self: center; |
| 165 height: 20px; |
| 166 width: 20px; |
| 167 } |
| 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> |
25 <div id="message-container" hidden="[[!message_]]"> | 183 <div id="message-container" hidden="[[!message_]]"> |
26 <iron-icon icon="warning"></iron-icon> | 184 <iron-icon icon="warning"></iron-icon> |
27 <span id="message" inner-h-t-m-l="[[message_]]"></span> | 185 <span id="message" inner-h-t-m-l="[[message_]]"></span> |
28 </div> | 186 </div> |
29 <div class="container"> | 187 <div class="container"> |
30 <div id="title-bar" i18n-content="createProfileTitle"></div> | 188 <div id="title-bar" i18n-content="createProfileTitle"></div> |
31 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" | 189 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" |
32 no-label-float auto-validate> | 190 no-label-float auto-validate> |
33 </paper-input> | 191 </paper-input> |
34 <div id="icons"> | 192 <div id="icons"> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 <paper-button id="save" on-tap="onSaveTap_" | 239 <paper-button id="save" on-tap="onSaveTap_" |
82 i18n-content="createProfileConfirm" | 240 i18n-content="createProfileConfirm" |
83 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> | 241 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> |
84 </paper-button> | 242 </paper-button> |
85 </div> | 243 </div> |
86 <import-supervised-user id="importUserPopup"></import-supervised-user> | 244 <import-supervised-user id="importUserPopup"></import-supervised-user> |
87 </div> | 245 </div> |
88 </template> | 246 </template> |
89 <script src="chrome://md-user-manager/create_profile.js"></script> | 247 <script src="chrome://md-user-manager/create_profile.js"></script> |
90 </dom-module> | 248 </dom-module> |
OLD | NEW |