| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/cr/ui/focus_row.html"> | 2 <link rel="import" href="chrome://resources/html/cr/ui/focus_row.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://resources/html/icon.html"> | 6 <link rel="import" href="chrome://resources/html/icon.html"> |
| 7 <link rel="import" href="chrome://resources/html/util.html"> | 7 <link rel="import" href="chrome://resources/html/util.html"> |
| 8 <link rel="import" href="chrome://history/browser_service.html"> | 8 <link rel="import" href="chrome://history/browser_service.html"> |
| 9 <link rel="import" href="chrome://history/constants.html"> | 9 <link rel="import" href="chrome://history/constants.html"> |
| 10 <link rel="import" href="chrome://history/searched_label.html"> | 10 <link rel="import" href="chrome://history/searched_label.html"> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 background: none; | 26 background: none; |
| 27 border: none; | 27 border: none; |
| 28 outline: none; | 28 outline: none; |
| 29 padding: 0; | 29 padding: 0; |
| 30 } | 30 } |
| 31 | 31 |
| 32 :host(:not([embedded])) #main-container { | 32 :host(:not([embedded])) #main-container { |
| 33 position: relative; | 33 position: relative; |
| 34 } | 34 } |
| 35 | 35 |
| 36 :host(:not([embedded])) #sizing-container { | |
| 37 @apply(--card-sizing); | |
| 38 } | |
| 39 | |
| 40 :host([is-card-end]) #main-container { | 36 :host([is-card-end]) #main-container { |
| 41 margin-bottom: var(--card-padding-between); | 37 margin-bottom: var(--card-padding-between); |
| 42 } | 38 } |
| 43 | 39 |
| 44 :host([is-card-start][is-card-end]) #main-container { | 40 :host([is-card-start][is-card-end]) #main-container { |
| 45 border-radius: 2px; | 41 border-radius: 2px; |
| 46 } | 42 } |
| 47 | 43 |
| 48 #date-accessed { | 44 #date-accessed { |
| 49 display: none; | 45 display: none; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 196 |
| 201 :host([is-card-end]) #background { | 197 :host([is-card-end]) #background { |
| 202 border-radius: 0 0 2px 2px; | 198 border-radius: 0 0 2px 2px; |
| 203 } | 199 } |
| 204 | 200 |
| 205 :host([is-card-start][is-card-end]) #background { | 201 :host([is-card-start][is-card-end]) #background { |
| 206 border-radius: 2px; | 202 border-radius: 2px; |
| 207 } | 203 } |
| 208 </style> | 204 </style> |
| 209 | 205 |
| 210 <div id="sizing-container"> | 206 <div id="main-container"> |
| 211 <div id="main-container"> | 207 <div id="background-clip"> |
| 212 <div id="background-clip"> | 208 <div id="background"></div> |
| 213 <div id="background"></div> | 209 </div> |
| 210 <div id="date-accessed" class="card-title"> |
| 211 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] |
| 212 </div> |
| 213 <div id="item-container"> |
| 214 <button is="paper-icon-button-light" id="checkbox" |
| 215 on-mousedown="onCheckboxMousedown_" |
| 216 on-click="onCheckboxSelected_" |
| 217 disabled="[[selectionNotAllowed_()]]" |
| 218 role="checkbox" |
| 219 aria-checked$="[[getAriaChecked_(selected)]]" |
| 220 aria-label$="[[getEntrySummary_(item)]]"> |
| 221 <div id="checkmark"></div> |
| 222 </button> |
| 223 <span id="time-accessed">[[item.readableTimestamp]]</span> |
| 224 <div class="website-icon" id="icon"></div> |
| 225 <div id="title-and-domain"> |
| 226 <a href="[[item.url]]" id="title" class="website-title" |
| 227 title="[[item.title]]" on-click="onLinkClick_" |
| 228 on-contextmenu="onLinkRightClick_"> |
| 229 <history-searched-label title="[[item.title]]" |
| 230 search-term="[[searchTerm]]"></history-searched-label> |
| 231 </a> |
| 232 <span id="domain">[[item.domain]]</span> |
| 214 </div> | 233 </div> |
| 215 <div id="date-accessed" class="card-title"> | 234 <div id="star-container"> |
| 216 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] | 235 <template is="dom-if" if="[[item.starred]]"> |
| 236 <button is="paper-icon-button-light" id="bookmark-star" |
| 237 title="$i18n{removeBookmark}" on-click="onRemoveBookmarkTap_"> |
| 238 <iron-icon icon="cr:star"></iron-icon> |
| 239 </button> |
| 240 </template> |
| 217 </div> | 241 </div> |
| 218 <div id="item-container"> | 242 <button is="paper-icon-button-light" id="menu-button" |
| 219 <button is="paper-icon-button-light" id="checkbox" | 243 class="more-vert-button" title="$i18n{moreActionsButton}" |
| 220 on-mousedown="onCheckboxMousedown_" | 244 on-click="onMenuButtonTap_"> |
| 221 on-click="onCheckboxSelected_" | 245 <div></div> |
| 222 disabled="[[selectionNotAllowed_()]]" | 246 <div></div> |
| 223 role="checkbox" | 247 <div></div> |
| 224 aria-checked$="[[getAriaChecked_(selected)]]" | 248 </button> |
| 225 aria-label$="[[getEntrySummary_(item)]]"> | |
| 226 <div id="checkmark"></div> | |
| 227 </button> | |
| 228 <span id="time-accessed">[[item.readableTimestamp]]</span> | |
| 229 <div class="website-icon" id="icon"></div> | |
| 230 <div id="title-and-domain"> | |
| 231 <a href="[[item.url]]" id="title" class="website-title" | |
| 232 title="[[item.title]]" on-click="onLinkClick_" | |
| 233 on-contextmenu="onLinkRightClick_"> | |
| 234 <history-searched-label title="[[item.title]]" | |
| 235 search-term="[[searchTerm]]"></history-searched-label> | |
| 236 </a> | |
| 237 <span id="domain">[[item.domain]]</span> | |
| 238 </div> | |
| 239 <div id="star-container"> | |
| 240 <template is="dom-if" if="[[item.starred]]"> | |
| 241 <button is="paper-icon-button-light" id="bookmark-star" | |
| 242 title="$i18n{removeBookmark}" on-click="onRemoveBookmarkTap_"> | |
| 243 <iron-icon icon="cr:star"></iron-icon> | |
| 244 </button> | |
| 245 </template> | |
| 246 </div> | |
| 247 <button is="paper-icon-button-light" id="menu-button" | |
| 248 class="more-vert-button" title="$i18n{moreActionsButton}" | |
| 249 on-click="onMenuButtonTap_"> | |
| 250 <div></div> | |
| 251 <div></div> | |
| 252 <div></div> | |
| 253 </button> | |
| 254 </div> | |
| 255 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> | |
| 256 </div> | 249 </div> |
| 250 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> |
| 257 </div> | 251 </div> |
| 258 </template> | 252 </template> |
| 259 <script src="chrome://history/history_item.js"></script> | 253 <script src="chrome://history/history_item.js"></script> |
| 260 </dom-module> | 254 </dom-module> |
| OLD | NEW |