| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 5 <link rel="import" href="/settings_shared_css.html"> | 5 <link rel="import" href="/settings_shared_css.html"> |
| 6 | 6 |
| 7 <dom-module id="settings-user-list"> | 7 <dom-module id="settings-user-list"> |
| 8 <template> | 8 <template> |
| 9 <style include="settings-shared"> | 9 <style include="settings-shared"> |
| 10 .soft-border { | 10 .soft-border { |
| 11 border: 1px solid #c4c4c4; | 11 border: 1px solid #c4c4c4; |
| 12 border-radius: 2px; | 12 border-radius: 2px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .user { | 15 .user { |
| 16 -webkit-padding-end: 8px; | 16 -webkit-padding-end: 8px; |
| 17 -webkit-padding-start: 20px; | 17 -webkit-padding-start: 20px; |
| 18 font-size: 0.75em; | 18 font-size: 0.75em; |
| 19 height: 34px; | 19 height: 34px; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .user:hover { | |
| 23 background-color: #f0f0f0; | |
| 24 } | |
| 25 | |
| 26 .user-list { | 22 .user-list { |
| 27 border: 1px solid gray; | 23 border: 1px solid gray; |
| 28 height: 160px; | 24 height: 160px; |
| 29 overflow-y: auto; | 25 overflow-y: auto; |
| 30 padding: 10px 0; | 26 padding: 10px 0; |
| 31 } | 27 } |
| 32 </style> | 28 </style> |
| 33 <div class="user-list soft-border"> | 29 <div class="user-list soft-border"> |
| 34 <template is="dom-repeat" items="[[users]]"> | 30 <template is="dom-repeat" items="[[users]]"> |
| 35 <div class="user layout horizontal justified"> | 31 <div class="user layout horizontal justified"> |
| 36 <div class="layout vertical center-justified">[[item.email]]</div> | 32 <div class="layout vertical center-justified">[[item.email]]</div> |
| 37 <div class="close-button" | 33 <div class="close-button" |
| 38 hidden$="[[shouldHideCloseButton_(disabled, item.isOwner)]]"> | 34 hidden$="[[shouldHideCloseButton_(disabled, item.isOwner)]]"> |
| 39 <paper-icon-button icon="cr:clear" class="clear-icon" | 35 <paper-icon-button icon="cr:clear" class="clear-icon" |
| 40 on-tap="removeUser_"> | 36 on-tap="removeUser_"> |
| 41 </paper-icon-button> | 37 </paper-icon-button> |
| 42 </div> | 38 </div> |
| 43 </div> | 39 </div> |
| 44 </template> | 40 </template> |
| 45 </div> | 41 </div> |
| 46 </template> | 42 </template> |
| 47 <script src="user_list.js"></script> | 43 <script src="user_list.js"></script> |
| 48 </dom-module> | 44 </dom-module> |
| OLD | NEW |