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

Unified Diff: chrome/browser/resources/ntp4/apps_page.css

Issue 7602017: ntp4: respect non-default apps promo logo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync'd against crx-less app change Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/apps_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.css
diff --git a/chrome/browser/resources/ntp4/apps_page.css b/chrome/browser/resources/ntp4/apps_page.css
index 7f4847a1212e5bc18973d9f8384c75e65ec47cfa..8591d71ec298dafd79bf252ad74406b36a0a1821 100644
--- a/chrome/browser/resources/ntp4/apps_page.css
+++ b/chrome/browser/resources/ntp4/apps_page.css
@@ -26,15 +26,19 @@
white-space: nowrap;
}
-.app-contents > img {
+.app-img-container {
cursor: pointer;
- display: block;
margin-left: auto;
margin-right: auto;
/* -webkit-mask-image set by JavaScript to the image source */
-webkit-mask-size: 100% 100%;
}
+.app-img-container > * {
+ height: 100%;
+ width: 100%;
+}
+
.app-icon-div {
/* TODO(gbillock): find a better style for this div. Better border color? */
border: 1px solid gray;
@@ -68,6 +72,22 @@
display: none;
}
+.tile:only-of-type > .has-promo .app-img-container > .apps-promo-logo {
+ display: block;
+}
+
+.apps-promo-logo {
+ display: none;
+}
+
+.tile:only-of-type > .has-promo .app-img-container > img:first-child {
+ display: none;
+}
+
+.app-img-container > img:first-child {
+ display: block;
+}
+
/* TODO(estade): animation? */
.tile:only-of-type > .has-promo > .apps-promo-extras {
display: block;
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/apps_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698