summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/new_tab_theme.css
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 00:01:39 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 00:01:39 +0000
commit13cbec67339b2a7577f193a5c64e8a7d53ca2c9b (patch)
tree1a4ffe8be2b24670f33db0bca77b417d4de20d6d /chrome/browser/resources/new_tab_theme.css
parent3aa12530b0f3fe0ff15b017cfe8b6e0e76019532 (diff)
downloadchromium_src-13cbec67339b2a7577f193a5c64e8a7d53ca2c9b.zip
chromium_src-13cbec67339b2a7577f193a5c64e8a7d53ca2c9b.tar.gz
chromium_src-13cbec67339b2a7577f193a5c64e8a7d53ca2c9b.tar.bz2
Make NTP look good with themes.
BUG=52913 TEST=Visual inspection. Review URL: http://codereview.chromium.org/3340005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/new_tab_theme.css')
-rw-r--r--chrome/browser/resources/new_tab_theme.css63
1 files changed, 25 insertions, 38 deletions
diff --git a/chrome/browser/resources/new_tab_theme.css b/chrome/browser/resources/new_tab_theme.css
index 790516a..8c60877 100644
--- a/chrome/browser/resources/new_tab_theme.css
+++ b/chrome/browser/resources/new_tab_theme.css
@@ -1,11 +1,22 @@
-html {
- background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1);
+html,
+#top-spacer,
+.miniview,
+.section > h2 .mask,
+.section > h2 .settings-wrapper,
+.section > h2 span {
+ background-attachment: fixed;
background-color: $2; /* COLOR_NTP_BACKGROUND */
+ background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1);
background-position: $3;
background-repeat: $5;
}
-html[bookmarkbarattached='true'] {
+html[bookmarkbarattached='true'],
+html[bookmarkbarattached='true'] #top-spacer,
+html[bookmarkbarattached='true'] .miniview,
+html[bookmarkbarattached='true'] .section > h2 .mask,
+html[bookmarkbarattached='true'] .section > h2 .settings-wrapper,
+html[bookmarkbarattached='true'] .section > h2 span {
background-position: $4;
}
@@ -69,12 +80,12 @@ body {
color: $8; /* COLOR_NTP_TEXT */
}
-.miniview > span > span {
+.miniview > span {
color: $$6; /* COLOR_NTP_LINK_UNDERLINE */
text-decoration: underline;
}
-.miniview > span > span > .item {
+.miniview > span > .item {
color: $9; /* COLOR_NTP_LINK */
text-decoration: none;
}
@@ -99,48 +110,28 @@ body {
color: $$6; /* COLOR_NTP_LINK_UNDERLINE */
}
-.section > h2 {
- background-color: $2; /* COLOR_NTP_BACKGROUND */
- color: $$8; /* COLOR_NTP_SECTION_HEADER_TEXT */
-}
-
-.section:not(.hidden) > h2 {
- background-color: transparent;
- background-image:
- -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($2)),
- -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($$$1));
+.section:not(.hidden) > h2 > .mask {
color: $$9;
}
-.section:not(.hidden) + .section > h2 {
- background-color: transparent;
- background-image:
- -webkit-gradient(linear, 0% 0%, 0% 100%, from($$$1), to($2)),
- -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($2));
-}
-
-.section.hidden:not([noexpand]) > h2:hover {
+.section.hidden:not([noexpand]) > h2:hover > .mask {
color: $$9;
}
-.section > h2 > span {
- background: $2; /* COLOR_NTP_BACKGROUND */
-}
-
-.section > h2 > .back {
+.section > h2 .back {
background-image:
-webkit-gradient(radial, 50% -1753, 1750, 50% -1753, 1770,
- from($$$2), to($$$1));
- border-top: 1px solid $$$2; /* COLOR_NTP_SECTION_HEADER_RULE */
+ from($$$1), to($$$3));
+ border-top: 1px solid $$$1; /* COLOR_NTP_SECTION_HEADER_RULE */
}
-.section.hidden > h2 > .back {
+.section.hidden > h2 .back {
background: none;
- border-color-top: $$$3; /* COLOR_NTP_SECTION_HEADER_RULE_LIGHT */
+ border-color-top: $$$2; /* COLOR_NTP_SECTION_HEADER_RULE_LIGHT */
}
-.section.hidden:hover > h2 > .back {
- border-color-top: $$$2; /* COLOR_NTP_SECTION_HEADER_RULE */
+.section.hidden:hover > h2 .back {
+ border-color-top: $$$1; /* COLOR_NTP_SECTION_HEADER_RULE */
}
.section > h2 > .settings {
@@ -148,10 +139,6 @@ body {
border-color: $2; /* COLOR_NTP_BACKGROUND */
}
-.section > .miniview {
- background: $2; /* COLOR_NTP_BACKGROUND */
-}
-
#apps-section .app a {
color: $8; /* COLOR_NTP_TEXT */
}