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

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: closure 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 min-width: 500px;
21 width: 100%;
22 }
23
24 #time-gap-separator {
25 -webkit-border-start: 1px solid #888;
26 -webkit-margin-start: 77px;
27 height: 15px;
28 }
29
30 #date-accessed {
31 @apply(--layout-center);
32 @apply(--layout-horizontal);
33 -webkit-padding-start: 20px;
34 background: #fafafa;
35 border-bottom: 1px solid rgba(0, 0, 0, 0.14);
36 border-radius: 2px 2px 0 0;
37 color: #333;
38 font-size: 14px;
39 font-weight: 500;
40 height: 48px;
41 }
42
43 #history-item-list {
44 padding: 8px 0;
45 }
46 </style>
47
48 <div id="main-container">
49 <div id="date-accessed">[[historyDate]]</div>
50 <div id="history-item-list">
51 <template is="dom-repeat" items="{{historyItems}}"
52 as="historyItem">
53 <history-item time-accessed_="[[historyItem.dateTimeOfDay]]"
54 website-title_="[[historyItem.title]]"
55 website-domain_="[[historyItem.domain]]"
56 website-url_="[[historyItem.url]]"
57 starred="[[historyItem.starred]]"
58 selected="{{historyItem.selected}}"
59 timestamp_="[[historyItem.time]]">
60 </history-item>
61 <template is="dom-if"
62 if="[[needsTimeGap_(index, historyItems.length)]]">
63 <div id="time-gap-separator"></div>
64 </template>
65 </template>
66 </div>
67 </div>
68 </template>
69 <script src="chrome://history/history_card.js"></script>
70 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/resources/md_history/history_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698