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

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: add tests Created 4 years, 10 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="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 24px;
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 -webkit-padding-start: 0.3em;
45 color: #969696;
46 }
47
48 #dropdown-indicator {
49 -webkit-margin-end: 12px;
50 max-width: 16px;
51 }
52
53 #collapse {
54 overflow: hidden;
55 }
56
57 #history-item-container {
58 background: #fff;
59 border: 1px solid var(--card-border-color);
60 border-bottom-width: 2px;
61 max-width: var(--card-max-width);
62 min-width: var(--card-min-width);
63 width: 100%;
64 }
65
66 #item-container {
67 @apply(--layout-center);
68 @apply(--layout-horizontal);
69 min-height: 40px;
70 }
71
72 #windowSeparator {
tsergeant 2016/03/01 03:58:23 Nit: #window-separator
calamity 2016/03/08 02:46:51 Done.
73 background-color: var(--card-border-color);
74 height: 1px;
75 margin: 5px auto;
76 width: 80%;
77 }
78 </style>
79 <div id="history-item-container">
80 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen]]"
81 aria-controls="collapse" on-tap="toggleTabCard">
82 <div>
83 {{device}}
84 <span id="last-update-time">{{lastUpdateTime}}</span>
85 </div>
86 <iron-icon icon="expand-less" id="dropdown-indicator"></iron-icon>
87 </div>
88
89 <iron-collapse opened="{{cardOpen}}" id="collapse">
90 <div id="tab-item-list">
91 <template is="dom-repeat" items="{{tabs}}" as="tab" id="tab-list">
92 <div id="item-container">
93 <div id="icon" class="website-icon"></div>
94 <a href="{{tab.url}}" class="website-title" title="{{tab.title}}">
95 {{tab.title}}
96 </a>
97 </div>
98 <template is="dom-if" if="{{tab.needsWindowSeparator}}">
99 <div id="windowSeparator"></div>
100 </template>
101 </template>
102 <div class="item-container">
103 <p on-tap="openAllTabs_" id="open-tabs" i18n-content="openAll"></p>
104 </div>
105 </div>
106 </iron-collapse>
107 </div>
108 </template>
109 <script src="chrome://history/synced_device_card.js"></script>
110 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698