| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b4fc93d commit 15f16f7
14 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | 4 | module.exports = function (grunt) { | |
| 5 | 5 | ||
| 6 | - | ||
| 7 | - // load all grunt tasks matching the `grunt-*` pattern | ||
| 8 | 6 | require('load-grunt-config')(grunt, { | |
| 9 | 7 | configPath: require('path').resolve('tasks') | |
| 10 | 8 | }); | |
| 11 | 9 | ||
| 12 | - | ||
| 13 | - // Aliases for ease of use. | ||
| 14 | 10 | grunt.registerTask('lint', ['jshint', 'eslint']); | |
| 15 | 11 | grunt.registerTask('coverage', ['mocha_istanbul']); | |
| 16 | 12 | grunt.registerTask('mocha', ['mocha_istanbul']); | |
@@ -19,7 +15,6 @@ module.exports = function (grunt) { | |||
| 19 | 15 | grunt.registerTask('develop', ['browserify', 'themify']); | |
| 20 | 16 | grunt.registerTask('build', ['browserify', 'themify', 'uglify', 'usebanner']); | |
| 21 | 17 | ||
| 22 | - | ||
| 23 | 18 | }; | |
| 24 | 19 | ||
| 25 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "paypaljsbuttons", | |
| 3 | - "description": "JavaScript integration for PayPal's payment buttons", | ||
| 4 | - "version": "2.0.0", | ||
| 3 | + "description": "JavaScript integration for PayPal's buttons", | ||
| 4 | + "version": "2.0.1", | ||
| 5 | 5 | "author": { | |
| 6 | 6 | "name": "Jeff Harrell", | |
| 7 | 7 | "url": "https://github.com/jeffharrell/" | |
@@ -21,12 +21,13 @@ | |||
| 21 | 21 | "keywords": [ | |
| 22 | 22 | "paypal", | |
| 23 | 23 | "paypal button", | |
| 24 | + "button", | ||
| 24 | 25 | "credit card", | |
| 25 | 26 | "payment", | |
| 26 | 27 | "payments", | |
| 27 | - "ecommerce", | ||
| 28 | - "javascriptbuttons", | ||
| 29 | - "jsbuttons" | ||
| 28 | + "buy now", | ||
| 29 | + "subscriptions", | ||
| 30 | + "ecommerce" | ||
| 30 | 31 | ], | |
| 31 | 32 | "homepage": "http://paypal.github.io/JavaScriptButtons", | |
| 32 | 33 | "issues": "http://github.com/paypal/JavaScriptButtons/issues", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - <button class="paypal-button <%= style %> <%= size %>" type="submit"> | ||
| 1 | + <button class="paypal-button paypal-style-<%= style %> paypal-size-<%= size %>" type="submit"> | ||
| 2 | 2 | <span class="paypal-button-logo"> | |
| 3 | 3 | <img src="<%= logo %>" /> | |
| 4 | 4 | </span><span class="paypal-button-content"><%- label %></span> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,8 +22,8 @@ | |||
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | .paypal-button-content { | |
| 25 | - padding: 4px 8px 4px; | ||
| 26 | - border: 1px solid transparent; | ||
| 25 | + padding: 4px 8px 4px; | ||
| 26 | + border: 1px solid transparent; | ||
| 27 | 27 | border-radius: 0 3px 3px 0; | |
| 28 | 28 | min-width: 57px !important; | |
| 29 | 29 | } | |
@@ -62,26 +62,26 @@ | |||
| 62 | 62 | ||
| 63 | 63 | /* Medium */ | |
| 64 | 64 | ||
| 65 | - .paypal-button.medium .paypal-button-logo { | ||
| 65 | + .paypal-button.paypal-size-medium .paypal-button-logo { | ||
| 66 | 66 | width: 30px; | |
| 67 | 67 | height: 30px; | |
| 68 | 68 | } | |
| 69 | 69 | ||
| 70 | - .paypal-button.medium .paypal-button-logo img { | ||
| 70 | + .paypal-button.paypal-size-medium .paypal-button-logo img { | ||
| 71 | 71 | width: 22px; | |
| 72 | 72 | height: 22px; | |
| 73 | 73 | margin: 4px 0 0 0px; | |
| 74 | 74 | } | |
| 75 | 75 | ||
| 76 | - .paypal-button.medium .paypal-button-content { | ||
| 76 | + .paypal-button.paypal-size-medium .paypal-button-content { | ||
| 77 | 77 | height: 19px; | |
| 78 | 78 | font-size: 10px !important; | |
| 79 | 79 | line-height: 19px !important; | |
| 80 | 80 | padding: 5px 8px 6px; | |
| 81 | 81 | min-width: 71px !important; | |
| 82 | 82 | } | |
| 83 | 83 | ||
| 84 | - .paypal-button.medium .paypal-button-content img { | ||
| 84 | + .paypal-button.paypal-size-medium .paypal-button-content img { | ||
| 85 | 85 | width: 71px; | |
| 86 | 86 | height: 19px; | |
| 87 | 87 | margin: 2px 0 0 1px; | |
@@ -90,26 +90,26 @@ | |||
| 90 | 90 | ||
| 91 | 91 | /* Large */ | |
| 92 | 92 | ||
| 93 | - .paypal-button.large .paypal-button-logo { | ||
| 93 | + .paypal-button.paypal-size-large .paypal-button-logo { | ||
| 94 | 94 | width: 42px; | |
| 95 | 95 | height: 42px; | |
| 96 | 96 | } | |
| 97 | 97 | ||
| 98 | - .paypal-button.large .paypal-button-logo img { | ||
| 98 | + .paypal-button.paypal-size-large .paypal-button-logo img { | ||
| 99 | 99 | width: 30px; | |
| 100 | 100 | height: 30px; | |
| 101 | 101 | margin: 6px 0 0 -1px; | |
| 102 | 102 | } | |
| 103 | 103 | ||
| 104 | - .paypal-button.large .paypal-button-content { | ||
| 104 | + .paypal-button.paypal-size-large .paypal-button-content { | ||
| 105 | 105 | height: 25px; | |
| 106 | 106 | font-size: 13px !important; | |
| 107 | 107 | line-height: 25px !important; | |
| 108 | 108 | padding: 8px 13px 9px; | |
| 109 | 109 | min-width: 109px !important; | |
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | - .paypal-button.large .paypal-button-content img { | ||
| 112 | + .paypal-button.paypal-size-large .paypal-button-content img { | ||
| 113 | 113 | width: 93px; | |
| 114 | 114 | height: 25px; | |
| 115 | 115 | margin: 2px 0 0 2px; | |
@@ -118,7 +118,7 @@ | |||
| 118 | 118 | ||
| 119 | 119 | /* Primary */ | |
| 120 | 120 | ||
| 121 | - .paypal-button.primary .paypal-button-content { | ||
| 121 | + .paypal-button.paypal-style-primary .paypal-button-content { | ||
| 122 | 122 | background: #009cde; | |
| 123 | 123 | border-color: #009cde; | |
| 124 | 124 | color: #fff; | |
@@ -127,12 +127,12 @@ | |||
| 127 | 127 | ||
| 128 | 128 | /* Secondary */ | |
| 129 | 129 | ||
| 130 | - .paypal-button.secondary .paypal-button-logo { | ||
| 130 | + .paypal-button.paypal-style-secondary .paypal-button-logo { | ||
| 131 | 131 | border: 1px solid #cfcfcf; | |
| 132 | 132 | border-right: 0; | |
| 133 | 133 | } | |
| 134 | 134 | ||
| 135 | - .paypal-button.secondary .paypal-button-content { | ||
| 135 | + .paypal-button.paypal-style-secondary .paypal-button-content { | ||
| 136 | 136 | background: #eee; | |
| 137 | 137 | border-color: #cfcfcf; | |
| 138 | 138 | color: #333; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ module.exports = function browserify(grunt) { | |||
| 6 | 6 | return { | |
| 7 | 7 | all: { | |
| 8 | 8 | files: { | |
| 9 | - 'dist/all.js': ['src/**/*.js'] | ||
| 9 | + 'dist/button.js': ['src/**/*.js'] | ||
| 10 | 10 | } | |
| 11 | 11 | } | |
| 12 | 12 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | 4 | module.exports = function content(grunt) { | |
| 5 | 5 | ||
| 6 | - var src = 'dist/all.js'; | ||
| 6 | + var src = 'dist/button.js'; | ||
| 7 | 7 | ||
| 8 | 8 | function processContent(str) { | |
| 9 | 9 | var bundles = grunt.file.expand('locales/**/*.properties'), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ function trim(str) { | |||
| 8 | 8 | ||
| 9 | 9 | module.exports = function css(grunt) { | |
| 10 | 10 | ||
| 11 | - var src = 'dist/all.js'; | ||
| 11 | + var src = 'dist/button.js'; | ||
| 12 | 12 | ||
| 13 | 13 | function processCss(str) { | |
| 14 | 14 | var styles = trim(grunt.file.read('src/theme/css/index.css')); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ function base64(str) { | |||
| 8 | 8 | ||
| 9 | 9 | module.exports = function images(grunt) { | |
| 10 | 10 | ||
| 11 | - var src = 'dist/all.js'; | ||
| 11 | + var src = 'dist/button.js'; | ||
| 12 | 12 | ||
| 13 | 13 | function processImages(str) { | |
| 14 | 14 | var files = grunt.file.expand('src/theme/images/*.*'), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments