Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/browser/resources/local_ntp/most_visited_single.css

Issue 1029583003: [Icons NTP] Make Fast Local NTP render largeIconUrl instead of thumbnail, if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A bit of renaming to reduce ambiguity. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/local_ntp/most_visited_single.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright 2015 The Chromium Authors. All rights reserved. 1 /* Copyright 2015 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 body { 5 body {
6 -webkit-user-select: none; 6 -webkit-user-select: none;
7 background: none transparent; 7 background: none transparent;
8 color: #323232; 8 color: #323232;
9 margin: 0; 9 margin: 0;
10 overflow: hidden; 10 overflow: hidden;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 cursor: pointer; 144 cursor: pointer;
145 display: block; 145 display: block;
146 height: 94px; 146 height: 94px;
147 left: 3px; 147 left: 3px;
148 overflow: hidden; 148 overflow: hidden;
149 position: absolute; 149 position: absolute;
150 top: 31px; 150 top: 31px;
151 width: 148px; 151 width: 148px;
152 } 152 }
153 153
154 .mv-thumb img { 154 .mv-thumb img.thumbnail {
155 height: auto; 155 height: auto;
156 min-height: 100%; 156 min-height: 100%;
157 width: 100%; 157 width: 100%;
158 } 158 }
159 159
160 .mv-thumb.failed-img { 160 .mv-thumb img.large-icon {
161 height: 48px;
162 left: 50%;
163 margin-left: -24px;
164 margin-top: -24px;
165 position: absolute;
166 top: 50%;
167 width: 48px;
168 }
169
170 .mv-thumb.failed-img,
171 .mv-thumb.large-icon-outer {
161 background-color: #fff; 172 background-color: #fff;
162 height: 94px; 173 height: 94px;
163 width: 148px; 174 width: 148px;
164 } 175 }
165 176
166 /* 177 /*
167 We use ::after without content to provide an aditional element on top of 178 We use ::after without content to provide an aditional element on top of
168 the thumbnail. 179 the thumbnail.
169 */ 180 */
170 .mv-thumb.failed-img::after { 181 .mv-thumb.failed-img::after {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 background-image: -webkit-image-set( 264 background-image: -webkit-image-set(
254 url(chrome-search://local-ntp/images/ntp_default_favicon.png) 1x, 265 url(chrome-search://local-ntp/images/ntp_default_favicon.png) 1x,
255 url(chrome-search://local-ntp/images/ntp_default_favicon.png@2x) 2x); 266 url(chrome-search://local-ntp/images/ntp_default_favicon.png@2x) 2x);
256 background-repeat: no-repeat; 267 background-repeat: no-repeat;
257 background-size: 16px 16px; 268 background-size: 16px 16px;
258 } 269 }
259 270
260 .mv-favicon.failed-favicon img { 271 .mv-favicon.failed-favicon img {
261 display: none; 272 display: none;
262 } 273 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/local_ntp/most_visited_single.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698