cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject [2/4] docs commit: Fixed some plugins CSS, links, and added npmsearch credit
Date Tue, 01 Sep 2015 18:44:46 GMT
Fixed some plugins CSS, links, and added npmsearch credit


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/53f3da38
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/53f3da38
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/53f3da38

Branch: refs/heads/cordova-website
Commit: 53f3da38ea4a311f46e56e8b6fba5634993c4e8e
Parents: 46dda77
Author: riknoll <riknoll@microsoft.com>
Authored: Fri Aug 28 17:53:56 2015 -0700
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Tue Sep 1 11:43:21 2015 -0700

----------------------------------------------------------------------
 www/static/css-src/_plugins.scss  | 13 ++++++++++++-
 www/static/plugins/app.js         |  3 +++
 www/static/plugins/pluginlist.jsx | 10 +++-------
 3 files changed, 18 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/53f3da38/www/static/css-src/_plugins.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/_plugins.scss b/www/static/css-src/_plugins.scss
index f2ef372..e3f11ad 100644
--- a/www/static/css-src/_plugins.scss
+++ b/www/static/css-src/_plugins.scss
@@ -101,7 +101,7 @@
 */
 
 .plugins-results-container {
-	margin-bottom:40px;
+	margin-bottom:20px;
 	padding:0;
 }
 
@@ -116,6 +116,12 @@
 	background-color:$gray-5;
 	position: relative;
 }
+
+.plugin-results-show-more {
+	text-align: center;
+	cursor:pointer;
+}
+
 .version_and_author {
 	display: inline-block;
 }
@@ -129,6 +135,11 @@
 	cursor:pointer;
 }
 
+.plugin-search-credit {
+	margin-left: 0px;
+	margin-bottom: 5px;
+}
+
 @media (min-width: 767px) {
 	.version_and_author {
 	float:right;

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/53f3da38/www/static/plugins/app.js
----------------------------------------------------------------------
diff --git a/www/static/plugins/app.js b/www/static/plugins/app.js
index 592093f..f29f7fc 100755
--- a/www/static/plugins/app.js
+++ b/www/static/plugins/app.js
@@ -441,6 +441,9 @@ var App = React.createClass({
                     </div>
                 </div>
                 <PluginList plugins={this.state.searchResults} />
+                <div className="row plugin-search-credit">
+                    Search results powered by <a href="http://npmsearch.com/">npmsearch.com</a>
+                </div>
             </div>
         );
     }

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/53f3da38/www/static/plugins/pluginlist.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/pluginlist.jsx b/www/static/plugins/pluginlist.jsx
index 4d83a09..e8b8f94 100755
--- a/www/static/plugins/pluginlist.jsx
+++ b/www/static/plugins/pluginlist.jsx
@@ -39,19 +39,15 @@ var PluginList = React.createClass({
             var showMore = null, visiblePlugins = [];
             if (plugins.length - this.state.searchPage * PageExtensionLength > InitialPageLength)
{
                 showMore =
-                    <div className="pluginCard" onClick={this.increaseSearchResults} style={{cursor:
'pointer'}}>
-                        <div style={{ display: 'table', width:100 + '%', minHeight: 5
+ 'rem'}}>
-                            <div style={{ display: 'table-cell', verticalAlign: 'middle'}}>
-                                <div style={{textAlign: 'center'}}>Show More</div>
-                            </div>
-                        </div>
+                    <div className="plugin-results-show-more" onClick={this.increaseSearchResults}>
+                        Show More
                     </div>;
             }
 
             if (plugins.length === 0) {
                 return (
                     <div className="container plugins-results-container">
-                            No plugins found. Learn how to <a href="http://cordova.apache.org/docs/en/edge/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">create
one</a>
+                            No plugins found. Learn how to <a href="{{site.baseurl}}/docs/en/edge/guide/hybrid/plugins/index.html">create
one</a>
                     </div>
                 );
             } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message