| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 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"> | 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"> | 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"> | 4 <link rel="import" href="chrome://history/history_item.html"> |
| 5 | 5 |
| 6 <link rel="import" href="chrome://history/shared_style.html"> |
| 6 <dom-module id="history-card"> | 7 <dom-module id="history-card"> |
| 7 <template> | 8 <template> |
| 9 <style include="shared-style"></style> |
| 8 <style> | 10 <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 { | 11 #time-gap-separator { |
| 25 -webkit-border-start: 1px solid #888; | 12 -webkit-border-start: 1px solid #888; |
| 26 -webkit-margin-start: 77px; | 13 -webkit-margin-start: 77px; |
| 27 height: 15px; | 14 height: 15px; |
| 28 } | 15 } |
| 29 | 16 |
| 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 { | 17 #history-item-list { |
| 44 padding: 8px 0; | 18 padding: 8px 0; |
| 45 } | 19 } |
| 46 </style> | 20 </style> |
| 47 | 21 |
| 48 <div id="main-container"> | 22 <div id="main-container"> |
| 49 <div id="date-accessed">[[historyDate]]</div> | 23 <div id="card-title">[[historyDate]]</div> |
| 50 <div id="history-item-list"> | 24 <div id="history-item-list"> |
| 51 <template is="dom-repeat" items="{{historyItems}}" | 25 <template is="dom-repeat" items="{{historyItems}}" |
| 52 as="historyItem"> | 26 as="historyItem"> |
| 53 <history-item time-accessed_="[[historyItem.dateTimeOfDay]]" | 27 <history-item time-accessed_="[[historyItem.dateTimeOfDay]]" |
| 54 website-title_="[[historyItem.title]]" | 28 website-title_="[[historyItem.title]]" |
| 55 website-domain_="[[historyItem.domain]]" | 29 website-domain_="[[historyItem.domain]]" |
| 56 website-url_="[[historyItem.url]]" | 30 website-url_="[[historyItem.url]]" |
| 57 starred="[[historyItem.starred]]" | 31 starred="[[historyItem.starred]]" |
| 58 selected="{{historyItem.selected}}" | 32 selected="{{historyItem.selected}}" |
| 59 timestamp_="[[historyItem.time]]"> | 33 timestamp_="[[historyItem.time]]"> |
| 60 </history-item> | 34 </history-item> |
| 61 <template is="dom-if" | 35 <template is="dom-if" |
| 62 if="[[needsTimeGap_(index, historyItems.length)]]"> | 36 if="[[needsTimeGap_(index, historyItems.length)]]"> |
| 63 <div id="time-gap-separator"></div> | 37 <div id="time-gap-separator"></div> |
| 64 </template> | 38 </template> |
| 65 </template> | 39 </template> |
| 66 </div> | 40 </div> |
| 67 </div> | 41 </div> |
| 68 </template> | 42 </template> |
| 69 <script src="chrome://history/history_card.js"></script> | 43 <script src="chrome://history/history_card.js"></script> |
| 70 </dom-module> | 44 </dom-module> |
| OLD | NEW |