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..3ea1cf7dec4b0d32e8136baad89a087012699fa5 |
| --- /dev/null |
| +++ b/chrome/browser/resources/md_history/synced_device_card.html |
| @@ -0,0 +1,109 @@ |
| +<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="history-synced-device-card"> |
| + <template> |
| + <style include="shared-style"></style> |
| + <style> |
| + :host { |
| + @apply(--layout-center); |
| + @apply(--layout-vertical); |
| + padding: 0 24px 20px 24px; |
|
Dan Beam
2016/03/10 18:57:15
padding: 0 24px 20px;
calamity
2016/03/14 02:29:39
Done.
|
| + } |
| + |
| + #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; |
| + } |
| + |
| + #open-tabs:hover { |
| + text-decoration: underline; |
| + } |
| + |
| + #last-update-time { |
| + color: #969696; |
| + } |
| + |
| + #dropdown-indicator { |
| + -webkit-margin-end: 12px; |
| + max-width: 16px; |
| + } |
| + |
| + #collapse { |
| + overflow: hidden; |
| + } |
| + |
| + #history-item-container { |
| + background: #fff; |
| + border: 1px solid var(--card-border-color); |
| + border-bottom-width: 2px; |
| + max-width: var(--card-max-width); |
| + min-width: var(--card-min-width); |
| + width: 100%; |
| + } |
| + |
| + #item-container { |
| + @apply(--layout-center); |
| + @apply(--layout-horizontal); |
| + min-height: 40px; |
| + } |
| + |
| + #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="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]]"> |
| + [[tab.title]] |
| + </a> |
| + </div> |
| + <template is="dom-if" if="[[tab.needsWindowSeparator]]"> |
| + <div id="window-separator"></div> |
| + </template> |
| + </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> |