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

Side by Side Diff: chrome/browser/resources/ntp4/new_tab_theme.css

Issue 16610002: High DPI support for themes: Raw images for NTP attribution and background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 html { 5 html {
6 background-attachment: fixed; 6 background-attachment: fixed;
7 background-color: $2; /* COLOR_NTP_BACKGROUND */ 7 background-color: $2; /* COLOR_NTP_BACKGROUND */
8 background-image: -webkit-image-set( 8 background-image: -webkit-image-set(
9 url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1) 1x); 9 url(chrome://theme/IDR_THEME_NTP_BACKGROUND@1x?$1) 1x,
10 url(chrome://theme/IDR_THEME_NTP_BACKGROUND@2x?$1) 2x);
10 background-position: $3; 11 background-position: $3;
11 background-repeat: $5; 12 background-repeat: $5;
12 } 13 }
13 14
15 #attribution-img {
16 content: -webkit-image-set(
17 url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION@1x?$1) 1x,
18 url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION@2x?$1) 2x);
19 }
20
14 html[bookmarkbarattached='true'] { 21 html[bookmarkbarattached='true'] {
15 background-position: $4; 22 background-position: $4;
16 } 23 }
17 24
18 body { 25 body {
19 color: $8; /* COLOR_NTP_TEXT */ 26 color: $8; /* COLOR_NTP_TEXT */
20 height: 100%; 27 height: 100%;
21 overflow: auto; 28 overflow: auto;
22 } 29 }
23 30
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 108 }
102 109
103 .thumbnail-wrapper { 110 .thumbnail-wrapper {
104 /* This shows through at the (rounded) thumbnail's corners. */ 111 /* This shows through at the (rounded) thumbnail's corners. */
105 background-color: $11; /* COLOR_NTP_SECTION_BORDER */ 112 background-color: $11; /* COLOR_NTP_SECTION_BORDER */
106 } 113 }
107 114
108 .filler .thumbnail { 115 .filler .thumbnail {
109 border-color: $2; /* COLOR_NTP_BACKGROUND */ 116 border-color: $2; /* COLOR_NTP_BACKGROUND */
110 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698