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

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

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Address reviewer's comments 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/iron-flex-layout/iron-f lex-layout.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
4 <link rel="import" href="chrome://history/history_item.html">
5
6 <dom-module id="history-card">
7 <template>
8 <style>
9 :host {
10 @apply(--layout-center);
11 @apply(--layout-vertical);
12 padding: 0 24px 20px;
13 }
14
15 #main-container {
16 @apply(--shadow-elevation-2dp);
17 background: #fff;
18 border-radius: 2px;
19 max-width: 960px;
20 width: 100%;
21 }
22
23 #time-gap-separator {
24 -webkit-border-start: 1px solid #888;
25 -webkit-margin-start: 77px;
26 height: 15px;
27 }
28
29 #date-accessed {
30 @apply(--layout-center);
31 @apply(--layout-horizontal);
32 -webkit-padding-start: 20px;
33 background: #fafafa;
34 border-bottom: 1px solid rgba(0, 0, 0, 0.14);
35 border-radius: 2px 2px 0 0;
36 color: #333;
37 font-size: 14px;
38 font-weight: 500;
39 height: 48px;
40 }
41
42 #history-item-list {
43 padding: 8px 0;
44 }
45 </style>
46
47 <div id="main-container">
48 <div id="date-accessed">[[historyDate]]</div>
49 <div id="history-item-list">
50 <template is="dom-repeat" items="[[historyItems]]"
51 as="historyItem">
52 <history-item time-accessed_="[[historyItem.dateTimeOfDay]]"
53 website-title_="[[historyItem.title]]"
54 website-domain_="[[historyItem.domain]]"
55 website-url_="[[historyItem.url]]"
56 starred="[[historyItem.starred]]"
57 selected="{{historyItem.selected}}"
58 timestamp_="[[historyItem.time]]">
59 </history-item>
60 <template is="dom-if" if="[[needsTimeGap_(index, historyItem)]]">
61 <div id="time-gap-separator"></div>
62 </template>
63 </template>
64 </div>
65 </div>
66 </template>
67 <script src="chrome://history/history_card.js"></script>
68 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698