| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 #date-accessed { | 44 #date-accessed { |
| 45 display: none; | 45 display: none; |
| 46 } | 46 } |
| 47 | 47 |
| 48 :host([is-card-start]) #date-accessed { | 48 :host([is-card-start]) #date-accessed { |
| 49 display: block; | 49 display: block; |
| 50 } | 50 } |
| 51 | 51 |
| 52 #item-container { | 52 #item-container { |
| 53 -webkit-padding-start: 10px; |
| 53 align-items: center; | 54 align-items: center; |
| 54 display: flex; | 55 display: flex; |
| 55 min-height: var(--item-height); | 56 min-height: var(--item-height); |
| 56 pointer-events: auto; | 57 pointer-events: auto; |
| 57 } | 58 } |
| 58 | 59 |
| 59 :host([is-card-start]) #item-container { | 60 :host([is-card-start]) #item-container { |
| 60 padding-top: var(--card-first-last-item-padding); | 61 padding-top: var(--card-first-last-item-padding); |
| 61 } | 62 } |
| 62 | 63 |
| 63 :host([is-card-end]) #item-container { | 64 :host([is-card-end]) #item-container { |
| 64 padding-bottom: var(--card-first-last-item-padding); | 65 padding-bottom: var(--card-first-last-item-padding); |
| 65 } | 66 } |
| 66 | 67 |
| 67 #title-and-domain { | 68 #title-and-domain { |
| 68 align-items: center; | 69 align-items: center; |
| 69 display: flex; | 70 display: flex; |
| 70 flex: 1; | 71 flex: 1; |
| 71 height: var(--item-height); | 72 height: var(--item-height); |
| 72 overflow: hidden; | 73 overflow: hidden; |
| 73 } | 74 } |
| 74 | 75 |
| 75 #checkbox { | 76 #checkbox { |
| 76 -webkit-margin-end: 6px; | |
| 77 -webkit-margin-start: 10px; | |
| 78 height: 40px; | 77 height: 40px; |
| 79 width: 40px; | 78 width: 40px; |
| 80 } | 79 } |
| 81 | 80 |
| 82 :host([selected]) #checkbox { | 81 :host([selected]) #checkbox { |
| 83 color: var(--interactive-color); | 82 color: var(--interactive-color); |
| 84 } | 83 } |
| 85 | 84 |
| 86 #checkmark { | 85 #checkmark { |
| 87 border: 2px solid var(--secondary-text-color); | 86 border: 2px solid var(--secondary-text-color); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 113 } | 112 } |
| 114 | 113 |
| 115 :host([selected]) #checkmark::after { | 114 :host([selected]) #checkmark::after { |
| 116 border-color: white; | 115 border-color: white; |
| 117 transform: scale(1) rotate(45deg); | 116 transform: scale(1) rotate(45deg); |
| 118 /* Only animate when showing checkmark. */ | 117 /* Only animate when showing checkmark. */ |
| 119 transition: transform 140ms ease-out; | 118 transition: transform 140ms ease-out; |
| 120 } | 119 } |
| 121 | 120 |
| 122 #time-accessed { | 121 #time-accessed { |
| 122 -webkit-margin-start: 6px; |
| 123 color: var(--history-item-time-color); | 123 color: var(--history-item-time-color); |
| 124 min-width: 96px; | 124 min-width: 96px; |
| 125 } | 125 } |
| 126 | 126 |
| 127 #domain { | 127 #domain { |
| 128 -webkit-margin-start: 16px; | 128 -webkit-margin-start: 16px; |
| 129 color: var(--secondary-text-color); | 129 color: var(--secondary-text-color); |
| 130 flex-shrink: 0; | 130 flex-shrink: 0; |
| 131 } | 131 } |
| 132 | 132 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 <div id="background-clip"> | 204 <div id="background-clip"> |
| 205 <div id="background"></div> | 205 <div id="background"></div> |
| 206 </div> | 206 </div> |
| 207 <div id="date-accessed" class="card-title"> | 207 <div id="date-accessed" class="card-title"> |
| 208 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] | 208 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] |
| 209 </div> | 209 </div> |
| 210 <div id="item-container" | 210 <div id="item-container" |
| 211 on-mousedown="onItemMousedown_" | 211 on-mousedown="onItemMousedown_" |
| 212 on-click="onItemClick_"> | 212 on-click="onItemClick_"> |
| 213 <button is="paper-icon-button-light" id="checkbox" | 213 <button is="paper-icon-button-light" id="checkbox" |
| 214 disabled="[[selectionNotAllowed_()]]" | 214 hidden="[[selectionNotAllowed_]]" |
| 215 role="checkbox" | 215 role="checkbox" |
| 216 aria-checked$="[[getAriaChecked_(selected)]]" | 216 aria-checked$="[[getAriaChecked_(selected)]]" |
| 217 aria-label$="[[getEntrySummary_(item)]]"> | 217 aria-label$="[[getEntrySummary_(item)]]"> |
| 218 <div id="checkmark"></div> | 218 <div id="checkmark"></div> |
| 219 </button> | 219 </button> |
| 220 <span id="time-accessed" on-mouseover="addTimeTitle_"> | 220 <span id="time-accessed" on-mouseover="addTimeTitle_"> |
| 221 [[item.readableTimestamp]] | 221 [[item.readableTimestamp]] |
| 222 </span> | 222 </span> |
| 223 <div class="website-icon" id="icon"></div> | 223 <div class="website-icon" id="icon"></div> |
| 224 <div id="title-and-domain"> | 224 <div id="title-and-domain"> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 244 <div></div> | 244 <div></div> |
| 245 <div></div> | 245 <div></div> |
| 246 <div></div> | 246 <div></div> |
| 247 </button> | 247 </button> |
| 248 </div> | 248 </div> |
| 249 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> | 249 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> |
| 250 </div> | 250 </div> |
| 251 </template> | 251 </template> |
| 252 <script src="chrome://history/history_item.js"></script> | 252 <script src="chrome://history/history_item.js"></script> |
| 253 </dom-module> | 253 </dom-module> |
| OLD | NEW |