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 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 :host(:not([embedded])) #sizing-container { | 36 :host(:not([embedded])) #sizing-container { |
37 @apply(--card-sizing); | 37 @apply(--card-sizing); |
38 } | 38 } |
39 | 39 |
40 :host([is-card-end]) #main-container { | 40 :host([is-card-end]) #main-container { |
41 margin-bottom: var(--card-padding-between); | 41 margin-bottom: var(--card-padding-between); |
42 } | 42 } |
43 | 43 |
44 :host([is-card-start][is-card-end]) #main-container { | 44 :host([is-card-start]) #main-container { |
45 border-radius: 2px; | |
46 } | 45 } |
47 | 46 |
48 #date-accessed { | 47 #date-accessed { |
49 display: none; | 48 display: none; |
50 } | 49 } |
51 | 50 |
52 :host([is-card-start]) #date-accessed { | 51 :host([is-card-start]) #date-accessed { |
53 display: block; | 52 display: block; |
54 } | 53 } |
55 | 54 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 155 |
157 #time-gap-separator { | 156 #time-gap-separator { |
158 -webkit-border-start: 1px solid #888; | 157 -webkit-border-start: 1px solid #888; |
159 -webkit-margin-start: 77px; | 158 -webkit-margin-start: 77px; |
160 height: 15px; | 159 height: 15px; |
161 } | 160 } |
162 | 161 |
163 #background-clip { | 162 #background-clip { |
164 /* Prevent artifacts when zoomed by overlapping the next item. */ | 163 /* Prevent artifacts when zoomed by overlapping the next item. */ |
165 bottom: -0.4px; | 164 bottom: -0.4px; |
166 clip: rect(auto 999px auto -5px); /* Clip the top and bottom edges. */ | |
167 left: 0; | 165 left: 0; |
168 position: absolute; | 166 position: absolute; |
169 right: 0; | 167 right: 0; |
170 top: 0; | 168 top: 0; |
171 z-index: -1; | 169 z-index: -1; |
172 } | 170 } |
173 | 171 |
174 :host([is-card-end]) #background-clip { | 172 :host([is-card-end]) #background-clip { |
175 bottom: 0; | 173 bottom: 0; |
176 clip: rect(auto 999px 500px -5px); /* Clip the top edge. */ | |
177 } | 174 } |
178 | 175 |
179 #background { | 176 #background { |
180 @apply(--shadow-elevation-2dp); | 177 z-index: -1; |
181 background: #fff; | 178 background: #fff; |
182 bottom: 0; | 179 bottom: 0; |
183 left: 0; | 180 left: -7px; |
184 position: absolute; | 181 position: absolute; |
185 right: 0; | 182 right: -7px; |
186 top: 0; | 183 top: 0; |
| 184 |
| 185 border-image-source: url('/images/100/shadow_border.png'); |
| 186 border-image-repeat: strech; |
| 187 border-style: solid; |
| 188 border-image-slice: 30; |
| 189 border-width: 0 20px 0px 20px; |
| 190 background: #fff; |
| 191 } |
| 192 |
| 193 :host([is-card-start]) #background { |
| 194 border-width: 20px 20px 0px 20px; |
| 195 top: -7px; |
| 196 } |
| 197 |
| 198 :host([is-card-end]) #background { |
| 199 border-width: 0 20px 20px 20px; |
| 200 bottom: -7px; |
187 } | 201 } |
188 | 202 |
189 :host([embedded]) #background { | 203 :host([embedded]) #background { |
190 display: none; | 204 display: none; |
191 } | 205 } |
192 | 206 |
193 :host(:not([is-card-start])) #background { | |
194 top: -5px; /* Draw the box shadow up the full edge of the background. */ | |
195 } | |
196 | |
197 :host([is-card-start]) #background { | |
198 border-radius: 2px 2px 0 0; | |
199 } | |
200 | |
201 :host([is-card-end]) #background { | |
202 border-radius: 0 0 2px 2px; | |
203 } | |
204 | |
205 :host([is-card-start][is-card-end]) #background { | |
206 border-radius: 2px; | |
207 } | |
208 </style> | 207 </style> |
209 | 208 |
210 <div id="sizing-container"> | 209 <div id="sizing-container"> |
211 <div id="main-container"> | 210 <div id="main-container"> |
212 <div id="background-clip"> | 211 <div id="background"></div> |
213 <div id="background"></div> | |
214 </div> | |
215 <div id="date-accessed" class="card-title"> | 212 <div id="date-accessed" class="card-title"> |
216 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] | 213 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] |
217 </div> | 214 </div> |
218 <div id="item-container"> | 215 <div id="item-container"> |
219 <button is="paper-icon-button-light" id="checkbox" | 216 <button is="paper-icon-button-light" id="checkbox" |
220 on-mousedown="onCheckboxMousedown_" | 217 on-mousedown="onCheckboxMousedown_" |
221 on-click="onCheckboxSelected_" | 218 on-click="onCheckboxSelected_" |
222 disabled="[[selectionNotAllowed_()]]" | 219 disabled="[[selectionNotAllowed_()]]" |
223 role="checkbox" | 220 role="checkbox" |
224 aria-checked$="[[getAriaChecked_(selected)]]" | 221 aria-checked$="[[getAriaChecked_(selected)]]" |
(...skipping 26 matching lines...) Expand all Loading... |
251 <div></div> | 248 <div></div> |
252 <div></div> | 249 <div></div> |
253 </button> | 250 </button> |
254 </div> | 251 </div> |
255 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> | 252 <div id="time-gap-separator" hidden="[[!hasTimeGap]]"></div> |
256 </div> | 253 </div> |
257 </div> | 254 </div> |
258 </template> | 255 </template> |
259 <script src="chrome://history/history_item.js"></script> | 256 <script src="chrome://history/history_item.js"></script> |
260 </dom-module> | 257 </dom-module> |
OLD | NEW |