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

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

Issue 1574063003: MD History: Add basic material design history cards and history items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replaced with correct file names and links Created 4 years, 11 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-flex-layout/iron-f lex-layout.html">
tsergeant 2016/01/25 00:12:43 Nit: Move this up above paper-styles
yingran 2016/01/27 00:30:34 Done.
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 24px;
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