| OLD | NEW |
| (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> | |
| OLD | NEW |