Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: chrome/browser/resources/md_history/synced_device_card.html

Issue 1729263005: MD History: Display synced tabs history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdh_shared_styles
Patch Set: address_comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
7 <link rel="import" href="chrome://resources/html/util.html">
8 <link rel="import" href="chrome://history/shared_style.html">
9
10 <dom-module id="history-synced-device-card">
11 <template>
12 <style include="shared-style"></style>
13 <style>
14 :host {
15 @apply(--layout-center);
16 @apply(--layout-vertical);
17 padding: 0 24px 20px;
18 }
19
20 #card-heading {
21 @apply(--layout-justified);
22 cursor: pointer;
23 }
24
25 #icon {
26 -webkit-margin-start: 20px;
27 }
28
29 #tab-item-list {
30 padding: 8px 0;
31 }
32
33 #open-tabs {
34 -webkit-margin-start: 20px;
35 color: rgb(102, 136, 238);
36 cursor: pointer;
37 }
38
39 #open-tabs:hover {
40 text-decoration: underline;
41 }
42
43 #last-update-time {
44 color: #969696;
45 }
46
47 #dropdown-indicator {
48 -webkit-margin-end: 12px;
49 max-width: 16px;
50 }
51
52 #collapse {
53 overflow: hidden;
54 }
55
56 #history-item-container {
57 background: #fff;
58 border: 1px solid var(--card-border-color);
59 border-bottom-width: 2px;
60 max-width: var(--card-max-width);
61 min-width: var(--card-min-width);
62 width: 100%;
63 }
64
65 #item-container {
66 @apply(--layout-center);
67 @apply(--layout-horizontal);
68 min-height: 40px;
69 }
70
71 #window-separator {
72 background-color: var(--card-border-color);
73 height: 1px;
74 margin: 5px auto;
75 width: 80%;
76 }
77 </style>
78 <div id="history-item-container">
79 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen_]]"
80 aria-controls="collapse" on-tap="toggleTabCard">
81 <div>
82 [[device]]
83 <span id="last-update-time">[[lastUpdateTime]]</span>
84 </div>
85 <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon>
86 </div>
87
88 <iron-collapse opened="{{cardOpen_}}" id="collapse">
89 <div id="tab-item-list">
90 <template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list">
91 <div id="item-container">
92 <div id="icon" class="website-icon"></div>
93 <a href="[[tab.url]]" class="website-title" title="[[tab.title]]">
94 [[tab.title]]
95 </a>
96 </div>
97 <template is="dom-if" if="[[tab.needsWindowSeparator]]">
98 <div id="window-separator"></div>
99 </template>
100 </template>
101 <div class="item-container">
102 <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p>
103 </div>
104 </div>
105 </iron-collapse>
106 </div>
107 </template>
108 <script src="chrome://history/synced_device_card.js"></script>
109 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.js ('k') | chrome/browser/resources/md_history/synced_device_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698