incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [20/48] git commit: [app] Reduce image size and update css.
Date Wed, 01 Aug 2012 16:39:08 GMT
[app] Reduce image size and update css.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/commit/1dfc8d1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/tree/1dfc8d1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/diff/1dfc8d1d

Branch: refs/heads/master
Commit: 1dfc8d1d7c2c2ed012f62231cb2a65782628daf4
Parents: 491cd99
Author: Michael Brooks <michael@michaelbrooks.ca>
Authored: Mon Jul 16 22:06:06 2012 -0700
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Mon Jul 16 22:06:06 2012 -0700

----------------------------------------------------------------------
 www/css/index.css         |   10 +++++-----
 www/img/cordova-small.png |  Bin 26318 -> 19932 bytes
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/blob/1dfc8d1d/www/css/index.css
----------------------------------------------------------------------
diff --git a/www/css/index.css b/www/css/index.css
index 7a441b3..a53f5ab 100644
--- a/www/css/index.css
+++ b/www/css/index.css
@@ -30,7 +30,6 @@ body {
     background-image:url(../img/cordova-small.png);
     background-repeat:no-repeat;
     margin:0px auto;
-    padding-left:210px;
     width:275px;
 }
 
@@ -78,8 +77,8 @@ h1 {
 @media screen and (max-aspect-ratio: 1/1) {
     .app {
         background-position:center top;
-        height:100px; /* adds enough room for text */
-        padding:225px 0px 0px 0px;
+        height:100px;              /* adds enough room for text */
+        padding:180px 0px 0px 0px; /* background height - shadow offset */
     }
 }
 
@@ -87,8 +86,9 @@ h1 {
 @media screen and (min-aspect-ratio: 1/1) {
     .app {
         background-position:left center;
-        height:165px;     /* height + padding = background image size */
-        padding-top:80px;
+        height:140px;       /* height + padding = background image size */
+        padding-left:170px; /* background width */
+        padding-top:60px;   /* center the text */
     }
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/blob/1dfc8d1d/www/img/cordova-small.png
----------------------------------------------------------------------
diff --git a/www/img/cordova-small.png b/www/img/cordova-small.png
index a7240b5..e8169cf 100644
Binary files a/www/img/cordova-small.png and b/www/img/cordova-small.png differ


Mime
View raw message