| 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/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <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/iron-flex-layout/iron-f
lex-layout.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-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 8 <link rel="import" href="chrome://resources/html/icon.html"> | 8 <link rel="import" href="chrome://resources/html/icon.html"> |
| 9 <link rel="import" href="chrome://resources/html/util.html"> | 9 <link rel="import" href="chrome://resources/html/util.html"> |
| 10 <link rel="import" href="chrome://history/browser_service.html"> | 10 <link rel="import" href="chrome://history/browser_service.html"> |
| 11 <link rel="import" href="chrome://history/constants.html"> | 11 <link rel="import" href="chrome://history/constants.html"> |
| 12 <link rel="import" href="chrome://history/searched_label.html"> | 12 <link rel="import" href="chrome://history/searched_label.html"> |
| 13 <link rel="import" href="chrome://history/shared_style.html"> | 13 <link rel="import" href="chrome://history/shared_style.html"> |
| 14 | 14 |
| 15 <dom-module id="history-item"> | 15 <dom-module id="history-item"> |
| 16 <template> | 16 <template> |
| 17 <style include="shared-style"> | 17 <style include="shared-style"> |
| 18 :host { | 18 :host { |
| 19 display: block; | 19 display: block; |
| 20 } | 20 } |
| 21 | 21 |
| 22 :host(:not([embedded])) #main-container { | 22 :host(:not([embedded])) #main-container { |
| 23 background: #fff; | 23 position: relative; |
| 24 border-color: var(--card-border-color); | |
| 25 border-style: solid; | |
| 26 border-width: 0 1px; | |
| 27 } | 24 } |
| 28 | 25 |
| 29 :host(:not([embedded])) #sizing-container { | 26 :host(:not([embedded])) #sizing-container { |
| 30 @apply(--card-sizing); | 27 @apply(--card-sizing); |
| 31 } | 28 } |
| 32 | 29 |
| 33 :host([is-first-item]) #main-container { | 30 :host([is-first-item]) #main-container { |
| 34 margin-top: var(--first-card-padding-top); | 31 margin-top: var(--first-card-padding-top); |
| 35 } | 32 } |
| 36 | 33 |
| 37 :host([is-card-start]) #main-container { | |
| 38 border-radius: 2px 2px 0 0; | |
| 39 border-top-width: 1px; | |
| 40 } | |
| 41 | |
| 42 :host([is-card-end]) #main-container { | 34 :host([is-card-end]) #main-container { |
| 43 border-bottom-width: 2px; | |
| 44 border-radius: 0 0 2px 2px; | |
| 45 margin-bottom: var(--card-padding-between); | 35 margin-bottom: var(--card-padding-between); |
| 46 } | 36 } |
| 47 | 37 |
| 48 :host([is-card-start][is-card-end]) #main-container { | 38 :host([is-card-start][is-card-end]) #main-container { |
| 49 border-radius: 2px; | 39 border-radius: 2px; |
| 50 } | 40 } |
| 51 | 41 |
| 52 #date-accessed { | 42 #date-accessed { |
| 53 display: none; | 43 display: none; |
| 54 } | 44 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 119 |
| 130 :host([starred]) #bookmark-star { | 120 :host([starred]) #bookmark-star { |
| 131 visibility: visible; | 121 visibility: visible; |
| 132 } | 122 } |
| 133 | 123 |
| 134 #time-gap-separator { | 124 #time-gap-separator { |
| 135 -webkit-border-start: 1px solid #888; | 125 -webkit-border-start: 1px solid #888; |
| 136 -webkit-margin-start: 77px; | 126 -webkit-margin-start: 77px; |
| 137 height: 15px; | 127 height: 15px; |
| 138 } | 128 } |
| 129 |
| 130 #background { |
| 131 background: #fff; |
| 132 bottom: -1px; /* Prevents shadow artifacts when zoomed */ |
| 133 left: 0; |
| 134 position: absolute; |
| 135 right: 0; |
| 136 top: 0; |
| 137 z-index: -1; |
| 138 } |
| 139 |
| 140 :host([embedded]) #background { |
| 141 display: none; |
| 142 } |
| 143 |
| 144 :host([is-card-start]) #background { |
| 145 border-radius: 2px 2px 0 0; |
| 146 } |
| 147 |
| 148 :host([is-card-end]) #background { |
| 149 border-radius: 0 0 2px 2px; |
| 150 bottom: 0; |
| 151 } |
| 139 </style> | 152 </style> |
| 140 | 153 |
| 141 <div id="sizing-container"> | 154 <div id="sizing-container"> |
| 142 <div id="main-container"> | 155 <div id="main-container"> |
| 156 <div id="background"></div> |
| 143 <div id="date-accessed" class="card-title"> | 157 <div id="date-accessed" class="card-title"> |
| 144 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] | 158 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] |
| 145 </div> | 159 </div> |
| 146 <div id="item-container"> | 160 <div id="item-container"> |
| 147 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" | 161 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" |
| 148 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> | 162 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> |
| 149 </paper-checkbox> | 163 </paper-checkbox> |
| 150 <span id="time-accessed">[[item.readableTimestamp]]</span> | 164 <span id="time-accessed">[[item.readableTimestamp]]</span> |
| 151 <div class="website-icon" id="icon"></div> | 165 <div class="website-icon" id="icon"></div> |
| 152 <div id="title-and-domain"> | 166 <div id="title-and-domain"> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 166 </button> | 180 </button> |
| 167 </div> | 181 </div> |
| 168 <template is="dom-if" if="[[hasTimeGap]]"> | 182 <template is="dom-if" if="[[hasTimeGap]]"> |
| 169 <div id="time-gap-separator"></div> | 183 <div id="time-gap-separator"></div> |
| 170 </template> | 184 </template> |
| 171 </div> | 185 </div> |
| 172 </div> | 186 </div> |
| 173 </template> | 187 </template> |
| 174 <script src="chrome://history/history_item.js"></script> | 188 <script src="chrome://history/history_item.js"></script> |
| 175 </dom-module> | 189 </dom-module> |
| OLD | NEW |