| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h
tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h
tml"> |
| 5 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html"> | 6 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html"> |
| 6 <link rel="import" href="chrome://history/shared_style.html"> | 7 <link rel="import" href="chrome://history/shared_style.html"> |
| 7 <link rel="import" href="chrome://history/synced_device_card.html"> | 8 <link rel="import" href="chrome://history/synced_device_card.html"> |
| 8 | 9 |
| 9 <dom-module id="history-synced-device-manager"> | 10 <dom-module id="history-synced-device-manager"> |
| 10 <style include="shared-style"></style> | 11 <style include="shared-style"></style> |
| 11 <template> | 12 <template> |
| 12 <style> | 13 <style> |
| 13 :host { | 14 :host { |
| 14 display: block; | 15 display: block; |
| 15 overflow: auto; | 16 overflow: auto; |
| 16 } | 17 } |
| 17 | 18 |
| 18 #container { | 19 #illustration { |
| 20 background: -webkit-image-set( |
| 21 url(chrome://history/images/100/sign_in_promo.png) 1x, |
| 22 url(chrome://history/images/200/sign_in_promo.png) 2x) |
| 23 no-repeat center center; |
| 24 height: 222px; |
| 25 margin-top: 100px; |
| 26 width: 594px; |
| 27 } |
| 28 |
| 29 #no-synced-tabs { |
| 30 height: 100%; |
| 31 } |
| 32 |
| 33 #sign-in-guide { |
| 34 align-items: center; |
| 35 display: flex; |
| 36 flex-direction: column; |
| 37 justify-content: center; |
| 38 text-align: center; |
| 39 } |
| 40 |
| 41 #sign-in-promo { |
| 42 color: #333; |
| 43 font-size: 28px; |
| 44 margin-top: 40px; |
| 45 } |
| 46 |
| 47 #sign-in-promo-desc { |
| 48 color: #848484; |
| 49 font-size: 16px; |
| 50 margin-top: 10px; |
| 51 } |
| 52 |
| 53 #sign-in-button { |
| 54 background-color: var(--google-blue-500); |
| 55 color: white; |
| 56 font-size: 14px; |
| 57 margin-top: 24px; |
| 58 } |
| 59 |
| 60 #synced-device-list { |
| 19 padding-top: var(--first-card-padding-top); | 61 padding-top: var(--first-card-padding-top); |
| 20 } | 62 } |
| 21 </style> | 63 </style> |
| 22 <div id="container"> | 64 <div id="synced-device-list" hidden="[[!syncedDevices_.length]]"> |
| 23 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice"> | 65 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice"> |
| 24 <history-synced-device-card device="[[syncedDevice.device]]" | 66 <history-synced-device-card device="[[syncedDevice.device]]" |
| 25 last-update-time="[[syncedDevice.lastUpdateTime]]" | 67 last-update-time="[[syncedDevice.lastUpdateTime]]" |
| 26 tabs="[[syncedDevice.tabs]]" | 68 tabs="[[syncedDevice.tabs]]" |
| 27 separator-indexes="[[syncedDevice.separatorIndexes]]" | 69 separator-indexes="[[syncedDevice.separatorIndexes]]" |
| 28 searched-term="[[searchedTerm]]"> | 70 searched-term="[[searchedTerm]]"> |
| 29 </history-synced-device-card> | 71 </history-synced-device-card> |
| 30 </template> | 72 </template> |
| 31 </div> | 73 </div> |
| 74 <div id="no-synced-tabs" class="centered-message" |
| 75 hidden="[[!showNoSyncedMessage(signInState_, syncedDevices_.length)]]"> |
| 76 [[noSyncedTabsMessage(fetchingSyncedTabs_)]] |
| 77 </div> |
| 78 <div id="sign-in-guide" hidden$="[[signInState_]]"> |
| 79 <div id="illustration"></div> |
| 80 <div id="sign-in-promo">$i18n{signInPromo}</div> |
| 81 <div id="sign-in-promo-desc">$i18n{signInPromoDesc}</div> |
| 82 <paper-button id="sign-in-button" on-tap="onSignInTap_"> |
| 83 $i18n{signInButton} |
| 84 </paper-button> |
| 85 </div> |
| 32 </template> | 86 </template> |
| 33 <script src="chrome://history/synced_device_manager.js"></script> | 87 <script src="chrome://history/synced_device_manager.js"></script> |
| 34 </dom-module> | 88 </dom-module> |
| OLD | NEW |