cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/2] git commit: working on making mobile first design
Date Tue, 04 Feb 2014 01:00:37 GMT
Updated Branches:
  refs/heads/refactor 40e075c25 -> abb68e049


working on making mobile first design


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/6be1989a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/6be1989a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/6be1989a

Branch: refs/heads/refactor
Commit: 6be1989a2ba6a64ceb03fa5a7b0e5c1c8dd40a8b
Parents: 40e075c
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Feb 3 14:25:46 2014 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Feb 3 14:25:46 2014 -0800

----------------------------------------------------------------------
 app.js                               |  2 +-
 attachments/css/header.less          | 13 +++++--------
 attachments/css/layout.less          | 20 ++++++++++++++++++++
 attachments/css/pages/home.less      |  2 +-
 attachments/css/styles.css           | 29 ++++++++++++++++++++++-------
 attachments/index.html               |  5 +++--
 attachments/js/controllers/home.js   |  4 ++--
 attachments/partials/views/home.html | 16 +++++++++-------
 push.sh                              |  2 +-
 9 files changed, 64 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/app.js
----------------------------------------------------------------------
diff --git a/app.js b/app.js
index 4ebf2b6..114bc25 100644
--- a/app.js
+++ b/app.js
@@ -55,7 +55,7 @@ function packageSearch (doc) {
         d = d.toLowerCase();
         while (d.indexOf('.') !== -1) d = d.replace('.', '');
         while (d.indexOf('\n') !== -1) d = d.replace('\n', '');
-        while (d.indexOf('\r') !== -1) d = d.replace('\n', '');
+        while (d.indexOf('\r') !== -1) d = d.replace('\r', '');
         while (d.indexOf('`') !== -1) d = d.replace('`', '');
         while (d.indexOf('_') !== -1) d = d.replace('_', '');
         while (d.indexOf('"') !== -1) d = d.replace('"', '');

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/css/header.less
----------------------------------------------------------------------
diff --git a/attachments/css/header.less b/attachments/css/header.less
index 4c55ca2..aafd422 100644
--- a/attachments/css/header.less
+++ b/attachments/css/header.less
@@ -5,7 +5,7 @@
     color: @header-font-color;
 
     border-bottom: 3px solid rgba(0,0,0,0.1);
-    height: 90px;
+    height: 50px;
     padding: 10px;
     position: relative;
     text-align: left;
@@ -15,15 +15,12 @@
         width: 100%;
     }
 
-    .wrap {
-        padding: 20px 0;
-    }
 
     a {
         .transition( color );
         color: @header-font-color;
         display: inline-block;
-        padding: 6px 0;
+        padding: 0;
         position: relative;
 
         &:hover {
@@ -49,11 +46,11 @@
     }
 
     .top-project-text {
-      font-size: 12px;
+      font-size: 16px;
     }
 
     .top-plugins-registry-text {
-      font-size: 27px;
+      font-size: 20px;
     }
 
     .header-links {
@@ -82,4 +79,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/css/layout.less
----------------------------------------------------------------------
diff --git a/attachments/css/layout.less b/attachments/css/layout.less
index a4d8e47..5e60a4c 100644
--- a/attachments/css/layout.less
+++ b/attachments/css/layout.less
@@ -387,3 +387,23 @@ div.right{
 div.left{
   float:left;
 }
+
+.invisible--hand {
+  display: none;
+  visibility: hidden;
+}
+.visible--hand {
+  display: block;
+  visibility: visible;
+}
+
+@media only screen and (min-width: 48rem) {
+    .invisible--lap {
+      display: none;
+      visibility: hidden;
+    }
+    .visible--lap {
+      display: block;
+      visibility: visible;
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/css/pages/home.less
----------------------------------------------------------------------
diff --git a/attachments/css/pages/home.less b/attachments/css/pages/home.less
index cb2febf..bc721e4 100644
--- a/attachments/css/pages/home.less
+++ b/attachments/css/pages/home.less
@@ -121,4 +121,4 @@
 	background-color: white;
 	padding: 5px;
 	margin-top: 20px;
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/css/styles.css
----------------------------------------------------------------------
diff --git a/attachments/css/styles.css b/attachments/css/styles.css
index 6267706..81864cf 100644
--- a/attachments/css/styles.css
+++ b/attachments/css/styles.css
@@ -2715,12 +2715,30 @@ div.right {
 div.left {
   float: left;
 }
+.invisible--hand {
+  display: none;
+  visibility: hidden;
+}
+.visible--hand {
+  display: block;
+  visibility: visible;
+}
+@media only screen and (min-width: 48rem) {
+  .invisible--lap {
+    display: none;
+    visibility: hidden;
+  }
+  .visible--lap {
+    display: block;
+    visibility: visible;
+  }
+}
 /* ----- header ---- */
 #header {
   background-color: #3b4854;
   color: #ffffff;
   border-bottom: 3px solid rgba(0, 0, 0, 0.1);
-  height: 90px;
+  height: 50px;
   padding: 10px;
   position: relative;
   text-align: left;
@@ -2729,9 +2747,6 @@ div.left {
 #header .header-content {
   width: 100%;
 }
-#header .wrap {
-  padding: 20px 0;
-}
 #header a {
   -webkit-transition: color;
   -moz-transition: color;
@@ -2742,7 +2757,7 @@ div.left {
   transition: color 0.25s linear;
   color: #ffffff;
   display: inline-block;
-  padding: 6px 0;
+  padding: 0;
   position: relative;
 }
 #header a:hover {
@@ -2764,10 +2779,10 @@ div.left {
   text-transform: uppercase;
 }
 #header .top-project-text {
-  font-size: 12px;
+  font-size: 16px;
 }
 #header .top-plugins-registry-text {
-  font-size: 27px;
+  font-size: 20px;
 }
 #header .header-links {
   font-size: 18px;

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/index.html
----------------------------------------------------------------------
diff --git a/attachments/index.html b/attachments/index.html
index 1644865..9cb595c 100644
--- a/attachments/index.html
+++ b/attachments/index.html
@@ -7,7 +7,8 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="keywords" content="">
   <meta name="description" content="">
-
+  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0,
maximum-scale=1.0">
+  
   <title>Cordova Plugin Registry</title>
   <!-- <link rel="stylesheet" type="text/css" href="css/topcoat-mobile-light.min.css"
/> -->
   <!-- <link rel="stylesheet" type="text/css" href="css/grid.min.css"> -->
@@ -22,7 +23,7 @@
 
   <div id="header" class="">
     <div class="header-content row">
-      <div class="column-5--desk offset-2--desk">
+      <div class="column-5--desk column-11--hand offset-1--hand">
         <a href="/" title="Home" class="logo-link">
           <div class="registry-logo left pluggy-logo top-logo"></div>
           <div class="top-project-text">Apache Cordova</div>

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/js/controllers/home.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/home.js b/attachments/js/controllers/home.js
index 6b61ba0..e0f3272 100644
--- a/attachments/js/controllers/home.js
+++ b/attachments/js/controllers/home.js
@@ -7,8 +7,8 @@ angular.module('registry.controllers').controller('HomeController', ['$rootScope
     
     $scope.getTotalPlugins = function(){
         //console.log($scope.packageID);
-        // var apiCallUrl = '/api/_all_docs?limit=0';
-        var apiCallUrl = '/plugins.json';
+        var apiCallUrl = '/api/_all_docs?limit=0';
+        //var apiCallUrl = '/plugins.json';
 
         $http({method: 'GET', url:(apiCallUrl)}).
                 success(function(data, status, headers, config) {

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/attachments/partials/views/home.html
----------------------------------------------------------------------
diff --git a/attachments/partials/views/home.html b/attachments/partials/views/home.html
index a4fad59..4c6c4ab 100644
--- a/attachments/partials/views/home.html
+++ b/attachments/partials/views/home.html
@@ -1,18 +1,20 @@
 <div id="home-container">
 	<div class="cordova-grid-bg">
-		<div class="row discover-message-container">
-			<div class="column-4--desk offset-3--desk">
-				<h1 class="discover-message">Discover plugins for your </h1>
-				<h1 class="discover-message">Apache Cordova project.</h1>
+        <div class="row discover-message-container">
+            <!--<div class="visible--lap invisible--hand">-->
+			<div class="column-4--lap offset-1--lap">
+				<p class="discover-message">Discover plugins for your </h1>
+				<p class="discover-message">Apache Cordova project.</h1>
 			</div>
-			<div class="column-3--desk">
+			<div class="column-3--lap">
 				<div class="pluggy-logo home-pluggy"></div>
 			</div>
-			<div class="column-2--desk"></div>
+            <div class="column-2--lap"></div>
+            <!-- </div>-->
 		</div>
 
 		<div class="row grid-gradient">
-			<div class="column-10--desk offset-1--desk">
+			<div class="column-10--hand offset-1--hand">
 				<a href="/#/viewAll" class="home-browse-all">Browse all {{totalPlugins}} plugins</a>
 			</div>
 		</div>

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/6be1989a/push.sh
----------------------------------------------------------------------
diff --git a/push.sh b/push.sh
index a0c978b..266079e 100755
--- a/push.sh
+++ b/push.sh
@@ -28,4 +28,4 @@ echo $URL
 #curl -u $CREDS -X PUT $SURL/registry && \
 
 # pushing new registry
-couchapp push app.js "$SURL/registry"
+couchapp push app.js "$URL/registry"


Mime
View raw message