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

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

Issue 1220793010: [ui/base;css] adding string template expression replacement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for incognito window Created 5 years, 5 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
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: ${colorBackground}; /* COLOR_NTP_BACKGROUND */
Dan Beam 2015/07/14 17:14:35 are these comments now helpful? they just seem re
dschuyler 2015/07/14 21:05:30 Done.
8 background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1); 8 background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?${themeId});
9 background-position: $3; 9 background-position: ${backgroundBarDetached};
10 background-repeat: $5; 10 background-repeat: ${backgroundTiling};
11 } 11 }
12 12
13 #attribution-img { 13 #attribution-img {
14 content: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?$1); 14 content: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?${themeId});
15 } 15 }
16 16
17 html[bookmarkbarattached='true'] { 17 html[bookmarkbarattached='true'] {
18 background-position: $4; 18 background-position: ${backgroundBarAttached};
19 } 19 }
20 20
21 body { 21 body {
22 color: $8; /* COLOR_NTP_TEXT */ 22 color: ${colorTextCall}; /* COLOR_NTP_TEXT */
23 height: 100%; 23 height: 100%;
24 overflow: auto; 24 overflow: auto;
25 } 25 }
26 26
27 #attribution, 27 #attribution,
28 [is='action-link'] { 28 [is='action-link'] {
29 color: $21; /* COLOR_NTP_TEXT_LIGHT */ 29 color: ${colorTextLight}; /* COLOR_NTP_TEXT_LIGHT */
30 } 30 }
31 31
32 [is='action-link']:active { 32 [is='action-link']:active {
33 color: $8; /* COLOR_NTP_TEXT */ 33 color: ${colorTextCall}; /* COLOR_NTP_TEXT */
34 } 34 }
35 35
36 .page-switcher { 36 .page-switcher {
37 color: rgba($23, 0.5); /* COLOR_NTP_TEXT */ 37 color: rgba(${colorText}, 0.5); /* COLOR_NTP_TEXT */
38 } 38 }
39 39
40 .page-switcher:hover, 40 .page-switcher:hover,
41 .page-switcher:focus, 41 .page-switcher:focus,
42 .page-switcher.drag-target { 42 .page-switcher.drag-target {
43 background-color: rgba($23, 0.06); /* COLOR_NTP_TEXT */ 43 background-color: rgba(${colorText}, 0.06); /* COLOR_NTP_TEXT */
44 } 44 }
45 45
46 /* Only change the background to a gradient when a promo is showing. */ 46 /* Only change the background to a gradient when a promo is showing. */
47 .showing-login-area #page-switcher-end:hover, 47 .showing-login-area #page-switcher-end:hover,
48 .showing-login-area #page-switcher-end:focus, 48 .showing-login-area #page-switcher-end:focus,
49 .showing-login-area #page-switcher-end.drag-target { 49 .showing-login-area #page-switcher-end.drag-target {
50 background: 50 background: linear-gradient(top,
51 -webkit-linear-gradient(top, rgba($23, 0) 0, 51 rgba(${colorText}, 0) 0,
52 rgba($23, .01) 60px, 52 rgba(${colorText}, .01) 60px,
53 rgba($23, .06) 183px); /* COLOR_NTP_TEXT */ 53 rgba(${colorText}, .06) 183px); /* COLOR_NTP_TEXT */
54 } 54 }
55 55
56 .tile-page-scrollbar { 56 .tile-page-scrollbar {
57 background-color: $21; /* COLOR_NTP_TEXT_LIGHT */ 57 background-color: ${colorTextLight}; /* COLOR_NTP_TEXT_LIGHT */
58 } 58 }
59 59
60 /* Footer *********************************************************************/ 60 /* Footer *********************************************************************/
61 61
62 #footer-border { 62 #footer-border {
63 background: -webkit-linear-gradient(left, 63 background: linear-gradient(left,
64 rgba($22, 0.2), /* COLOR_NTP_SECTION_BORDER */ 64 rgba(${colorSectionBorder}, 0.2), /* COLOR_NTP_SECTION_BORDER */
65 rgba($22, 0.3) 20%, /* COLOR_NTP_SECTION_BORDER */ 65 rgba(${colorSectionBorder}, 0.3) 20%, /* COLOR_NTP_SECTION_BORDER */
66 rgba($22, 0.3) 80%, /* COLOR_NTP_SECTION_BORDER */ 66 rgba(${colorSectionBorder}, 0.3) 80%, /* COLOR_NTP_SECTION_BORDER */
67 rgba($22, 0.2)); /* COLOR_NTP_SECTION_BORDER */ 67 rgba(${colorSectionBorder}, 0.2)); /* COLOR_NTP_SECTION_BORDER */
68 } 68 }
69 69
70 .dot input:focus { 70 .dot input:focus {
71 background-color: $2; /* COLOR_NTP_BACKGROUND */ 71 background-color: ${colorBackground}; /* COLOR_NTP_BACKGROUND */
72 } 72 }
73 73
74 .bare-minimum #footer { 74 .bare-minimum #footer {
75 color: $8; /* COLOR_NTP_TEXT */ 75 color: ${colorTextCall}; /* COLOR_NTP_TEXT */
76 } 76 }
77 77
78 .bare-minimum .disclosure-triangle { 78 .bare-minimum .disclosure-triangle {
79 background-color: $8; /* COLOR_NTP_TEXT */ 79 background-color: ${colorTextCall}; /* COLOR_NTP_TEXT */
80 } 80 }
81 81
82 .bare-minimum .footer-menu-button:hover, 82 .bare-minimum .footer-menu-button:hover,
83 .bare-minimum .footer-menu-button[menu-shown], 83 .bare-minimum .footer-menu-button[menu-shown],
84 .bare-minimum #chrome-web-store-link:hover { 84 .bare-minimum #chrome-web-store-link:hover {
85 color: rgba($23, 0.85); /* COLOR_NTP_TEXT */ 85 color: rgba(${colorText}, 0.85); /* COLOR_NTP_TEXT */
86 } 86 }
87 87
88 .bare-minimum .footer-menu-button:hover .disclosure-triangle, 88 .bare-minimum .footer-menu-button:hover .disclosure-triangle,
89 .bare-minimum .footer-menu-button[menu-shown] .disclosure-triangle { 89 .bare-minimum .footer-menu-button[menu-shown] .disclosure-triangle {
90 background-color: rgba($23, 0.85); /* COLOR_NTP_TEXT */ 90 background-color: rgba(${colorText}, 0.85); /* COLOR_NTP_TEXT */
91 } 91 }
92 92
93 .thumbnail-wrapper { 93 .thumbnail-wrapper {
94 /* This shows through at the (rounded) thumbnail's corners. */ 94 /* This shows through at the (rounded) thumbnail's corners. */
95 background-color: $11; /* COLOR_NTP_SECTION_BORDER */ 95 background-color: ${colorSectionBorder}; /* COLOR_NTP_SECTION_BORDER */
96 } 96 }
97 97
98 .filler .thumbnail { 98 .filler .thumbnail {
99 border-color: $2; /* COLOR_NTP_BACKGROUND */ 99 border-color: ${colorBackground}; /* COLOR_NTP_BACKGROUND */
100 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698