Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE4B5DC11 for ; Fri, 31 Aug 2012 21:30:23 +0000 (UTC) Received: (qmail 33998 invoked by uid 500); 31 Aug 2012 21:30:23 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 33963 invoked by uid 500); 31 Aug 2012 21:30:23 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 33868 invoked by uid 99); 31 Aug 2012 21:30:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 21:30:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3380122E45; Fri, 31 Aug 2012 21:30:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [4/5] [CB-1338] Update www/ Application Message-Id: <20120831213023.3380122E45@tyr.zones.apache.org> Date: Fri, 31 Aug 2012 21:30:23 +0000 (UTC) http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/6deee4ff/bin/templates/project/www/css/index.css ---------------------------------------------------------------------- diff --git a/bin/templates/project/www/css/index.css b/bin/templates/project/www/css/index.css index ffb7ba8..f1f9d76 100644 --- a/bin/templates/project/www/css/index.css +++ b/bin/templates/project/www/css/index.css @@ -16,11 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -html, -body { - height:100%; - font-size:12px; - width:100%; +* { + -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ + -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ + -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ + -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ } body { @@ -37,30 +37,35 @@ body { ); background-attachment:fixed; font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; + font-size:12px; + height:100%; + margin:0px; + padding:0px; text-transform:uppercase; + width:100%; } -/* portrait layout for the app (default) */ +/* Portrait layout (default) */ .app { - background:url(../img/logo.png) no-repeat; - position:absolute; + background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ + position:absolute; /* position in the center of the screen */ left:50%; top:50%; - margin:-120px 0 0 -110px; /* shift container to top-left by half its width and height */ - background-position:center top; - height:100px; /* add enough room for text */ - padding:180px 0px 0px 0px; /* background-image height - image's shadow */ + height:50px; /* text area height */ + width:225px; /* text area width */ text-align:center; + padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ + margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ + /* offset horizontal: half of text area width */ } -/* lanscape layout for the app (when wide enough) */ -@media screen and (min-aspect-ratio: 1/1) and (min-width:445px) { +/* Landscape layout (with min-width) */ +@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { .app { background-position:left center; - height:140px; /* height + padding = background image size */ - padding-left:170px; /* background width */ - padding-top:60px; /* vertically center the text to background image */ - margin:-90px 0 0 -200px; /* shift container to top left by half its width and height */ + padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ + margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ + /* offset horizontal: half of image width and text area width */ } } @@ -73,21 +78,22 @@ h1 { text-align:center; } -.status { - background-color:#333333; +.event { border-radius:4px; -webkit-border-radius:4px; color:#FFFFFF; font-size:12px; - margin:0px 20px; - padding:2px 20px; + margin:0px 30px; + padding:2px 0px; } -.status.complete { - background-color:#4B946A; +.event.listening { + background-color:#333333; + display:block; } -.hide { +.event.received { + background-color:#4B946A; display:none; } http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/6deee4ff/bin/templates/project/www/img/logo.png ---------------------------------------------------------------------- diff --git a/bin/templates/project/www/img/logo.png b/bin/templates/project/www/img/logo.png index e8169cf..9519e7d 100644 Binary files a/bin/templates/project/www/img/logo.png and b/bin/templates/project/www/img/logo.png differ http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/6deee4ff/bin/templates/project/www/index.html ---------------------------------------------------------------------- diff --git a/bin/templates/project/www/index.html b/bin/templates/project/www/index.html index 92b21e3..a0d5550 100644 --- a/bin/templates/project/www/index.html +++ b/bin/templates/project/www/index.html @@ -21,19 +21,19 @@ - + Hello World

Apache Cordova

-
- - +
- +