Chromium Code Reviews| Index: chrome/browser/resources/md_history/synced_device_card.html |
| diff --git a/chrome/browser/resources/md_history/synced_device_card.html b/chrome/browser/resources/md_history/synced_device_card.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2752b868efd771d7c2125aacc7248748cfeb59a9 |
| --- /dev/null |
| +++ b/chrome/browser/resources/md_history/synced_device_card.html |
| @@ -0,0 +1,102 @@ |
| +<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html"> |
| +<link rel="import" href="chrome://resources/html/util.html"> |
| + |
| +<link rel="import" href="chrome://history/shared_style.html"> |
| +<dom-module id="synced-device-card"> |
| + <template> |
| + <style include="shared-style"></style> |
| + <style> |
| + #tab-url { |
| + -webkit-margin-end: 20px; |
| + color: #333; |
| + overflow: hidden; |
| + text-decoration: none; |
| + text-overflow: ellipsis; |
| + white-space: nowrap; |
| + } |
| + |
| + #tab-url:hover { |
| + text-decoration: underline; |
| + } |
|
calamity
2016/02/11 00:23:31
These can be shared w/ history item.
.history-ite
yingran
2016/02/11 02:06:36
Done.
|
| + |
| + .card-heading { |
| + @apply(--layout-justified); |
| + border: 0; |
| + cursor: pointer; |
| + } |
| + |
| + .website-icon { |
| + -webkit-margin-end: 16px; |
| + -webkit-margin-start: 20px; |
| + height: 16px; |
| + min-width: 16px; |
| + } |
|
calamity
2016/02/11 00:23:31
Can this be shared too?
yingran
2016/02/11 02:06:36
Done.
|
| + |
| + .item-container { |
| + @apply(--layout-center); |
| + @apply(--layout-horizontal); |
| + min-height: 40px; |
| + } |
| + |
| + #tab-item-list { |
| + padding: 8px 0; |
| + } |
| + |
| + #open-tabs { |
| + -webkit-margin-start: 20px; |
| + color: rgb(102, 136, 238); |
| + cursor: pointer; |
| + } |
| + |
| + #open-tabs:hover { |
| + text-decoration: underline; |
| + } |
| + |
| + #last-update-time { |
| + -webkit-padding-start: 0.3em; |
| + color: #969696; |
| + } |
| + |
| + #dropdown-indicator { |
| + -webkit-margin-end: 12px; |
| + max-width: 16px; |
| + } |
| + |
| + #collapse { |
| + overflow: hidden; |
| + } |
| + </style> |
| + |
| + <div id="main-container"> |
| + <div id="card-title" class="card-heading" aria-expanded$="[[cardOpen]]" |
| + aria-controls="collapse" on-tap="toggleTabCard"> |
| + <div> |
| + {{device}} |
| + <span id="last-update-time">{{lastUpdateTime}}</span> |
| + </div> |
| + <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon> |
| + </div> |
| + |
| + <iron-collapse opened="{{cardOpen}}" id="collapse"> |
| + <div id="tab-item-list"> |
| + <template is="dom-repeat" items="{{tabs}}" as="tab" id="tab-list"> |
| + <div class="item-container"> |
| + <div class="website-icon" id="icon"></div> |
| + <a href="{{tab.url}}" id="tab-url">{{tab.title}}</a> |
| + </div> |
| + </template> |
| + <div class="item-container"> |
| + <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p> |
| + </div> |
| + </div> |
| + </iron-collapse> |
| + |
| + </div> |
| + </template> |
| + <script src="chrome://history/synced_device_card.js"></script> |
| +</dom-module> |