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

Unified Diff: chrome/browser/resources/ntp/apps.css

Issue 6825052: Update the web store promo to be clearer and configurable at run-time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix URL. Created 9 years, 8 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
Index: chrome/browser/resources/ntp/apps.css
diff --git a/chrome/browser/resources/ntp/apps.css b/chrome/browser/resources/ntp/apps.css
index bbd5b38755702bcc76bbd6e1823d29c7b75ebc9c..de1ee223264c9c83fcd3b3d5bd5471b97fb4f6b3 100644
--- a/chrome/browser/resources/ntp/apps.css
+++ b/chrome/browser/resources/ntp/apps.css
@@ -142,21 +142,21 @@ menu > button.default {
}
html.apps-promo-visible #apps-promo {
- display: block;
+ background: url('chrome://theme/IDR_WEBSTORE_ICON') no-repeat;
+ height: 125px;
+ padding-left: 125px;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-padding-start Any time you see left and r
jstritar 2011/04/13 19:52:27 Done. Thanks for catching that. Also, didn't know
+ display: table-cell;
+ vertical-align: text-bottom;
}
-#apps-promo > h3 {
- font-size: 16px;
- margin-top: 1em;
- margin-bottom: 0.25em;
-}
-
-#apps-promo-text1 {
- margin-top: 0;
+#apps-promo-heading {
+ font-size: 115%;
+ font-weight: bold;
+ margin-bottom: 5px;
+ margin-left: 3px;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-margin-start
jstritar 2011/04/13 19:52:27 Done.
}
#apps-promo-hide {
- float: right;
-webkit-appearance: none;
-webkit-transition: opacity .15s;
background-color: transparent;
@@ -165,27 +165,13 @@ html.apps-promo-visible #apps-promo {
font-family: inherit;
font-size: 90%;
text-decoration: underline;
+ margin-top: 2px;
}
html[dir=rtl] #apps-promo-hide {
float: left;
}
-html.apps-promo-visible .app.web-store-entry {
- position: absolute;
- left: 100%;
- top: 0;
- -webkit-margin-start: 22px;
-}
-
-html.apps-promo-visible[dir=rtl] .app.web-store-entry {
- right: 100%;
-}
-
-html.apps-promo-visible .app.web-store-entry a {
- font-weight: bold;
-}
-
/*
We position the web store entry all by its lonesome in the top of the rightmost
column when there is at least one full row of apps. Note that this is similar,
@@ -201,3 +187,60 @@ never set .loner while the promo is running.
html[dir=rtl] .app.web-store-entry.loner {
right: 100%;
}
+
+/* g-button CSS styles */
arv (Not doing code reviews) 2011/04/13 17:17:59 I have no idea what this is? Is this some shared c
+@media screen, projection {
+ g-button-basic * {
+ margin: 0;
+ padding: 0;
+ }
+
+ .g-button-basic {
+ direction: ltr;
+ line-height: 1.2;
+ width: 20em;
+ max-width: 795px;
+ background-color: #cadef4;
+ border: 1px solid #ccc;
+ padding: 15px;
+ text-align: center;
+ overflow: visible;
+ }
+
+ .g-button-basic div {
+ font-size: 1.3em;
+ background: url('g-button-chocobo-basic-1.png') no-repeat;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-border-image FTW. You can do this fancy bu
+ background-color: #5679a5;
+ }
+
+ .g-button-basic div span span a {
+ display: block;
+ color: #fff!important;
+ /* @noflip */ background: url('g-button-chocobo-basic-2.png') no-repeat right bottom;
arv (Not doing code reviews) 2011/04/13 17:17:59 remove GSS annotations?
jstritar 2011/04/13 19:52:27 Done.
+ /* @noflip */ padding: 8px 18px 13px 13px;
+ text-decoration: none;
+ font-weight: bold;
+ height: 1%;
arv (Not doing code reviews) 2011/04/13 17:17:59 ws
+ }
+
+ .g-button-basic div span {
+ display: block;
+ /* @noflip */ background: url('g-button-chocobo-basic-1.png') no-repeat right -400px;
+ height: 1%;
+ }
+
+ .g-button-basic p {
+ text-align: center;
+ margin: 10px 0 0;
+ }
+
+ .g-button-basic {
+ padding: 0;
+ background: none;
+ border: 0;
+ }
+
+ .g-button-basic div span span {
+ /* @noflip */ background: url('g-button-chocobo-basic-1.png') no-repeat left bottom;
arv (Not doing code reviews) 2011/04/13 17:17:59 This will duplicate the data due to inlining. Can
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698