| <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| <link rel="import" href="chrome://resources/html/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-flex-layout/iron-flex-layout.html"> |
| <link rel="import" href="chrome://resources/html/icon.html"> |
| <link rel="import" href="chrome://history/searched_label.html"> |
| <link rel="import" href="chrome://history/shared_style.html"> |
| |
| <dom-module id="history-synced-device-card"> |
| <template> |
| <style include="shared-style"> |
| :host { |
| @apply(--card-sizing); |
| display: block; |
| padding-bottom: var(--card-padding-between); |
| } |
| |
| #card-heading { |
| @apply(--layout-justified); |
| cursor: pointer; |
| } |
| |
| #icon { |
| -webkit-margin-start: 20px; |
| } |
| |
| #tab-item-list { |
| padding: 8px 0; |
| } |
| |
| #open-tabs { |
| -webkit-margin-start: 20px; |
| color: rgb(102, 136, 238); |
| cursor: pointer; |
| } |
| |
| #last-update-time { |
| color: var(--secondary-text-color); |
| } |
| |
| #dropdown-indicator { |
| -webkit-margin-end: 12px; |
| color: var(--secondary-text-color); |
| height: 20px; |
| width: 20px; |
| } |
| |
| #collapse { |
| border-bottom: 1px solid var(--card-border-color); |
| overflow: hidden; |
| } |
| |
| #history-item-container { |
| background: #fff; |
| border: 1px solid var(--card-border-color); |
| border-radius: 2px; |
| } |
| |
| #item-container { |
| @apply(--layout-center); |
| @apply(--layout-horizontal); |
| min-height: var(--item-height); |
| } |
| |
| #window-separator { |
| background-color: var(--card-border-color); |
| height: 1px; |
| margin: 5px auto; |
| width: 80%; |
| } |
| </style> |
| <div id="history-item-container"> |
| <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen_]]" |
| aria-controls="collapse" on-tap="toggleTabCard"> |
| <div> |
| [[device]] |
| <span id="last-update-time">[[lastUpdateTime]]</span> |
| </div> |
| <iron-icon icon="cr: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 id="item-container"> |
| <div id="icon" class="website-icon"></div> |
| <a href="[[tab.url]]" class="website-title" title="[[tab.title]]"> |
| <history-searched-label title="[[tab.title]]" |
| search-term="[[searchTerm]]"></history-searched-label> |
| </a> |
| </div> |
| <div id="window-separator" |
| hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]"> |
| </div> |
| </template> |
| <div class="item-container"> |
| <p on-tap="openAllTabs_" id="open-tabs">$i18n{openAll}</p> |
| </div> |
| </div> |
| </iron-collapse> |
| </div> |
| </template> |
| <script src="chrome://history/synced_device_card.js"></script> |
| </dom-module> |