Skip to content

Commit

Permalink
fix bootstrap5 and other css
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Oct 19, 2022
1 parent 149bae2 commit a963021
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 23 deletions.
23 changes: 13 additions & 10 deletions dist/app/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* grapesjs-components-farmer
* grapesjs plugin to build components for different css framework
*
* @version v0.7.0
* @version v0.7.1
* @author friends@niiknow.org
* @homepage https://niiknow.github.io/grapesjs-components-farmer/
* @repository https://github.com/niiknow/grapesjs-components-farmer.git
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/index.js": "/index.js?id=0a119d7d643ed23a17f73d261949d95a"
"/index.js": "/index.js?id=f095b1291beb36b3f28bd24d2ab3fcb8"
}
1 change: 1 addition & 0 deletions example/custom-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default (editor, opts = {}) => {
{ type: 'comp_input', label_attr: 'Name', name_attr: 'name', placeholder_attr: 'Name' },
{ type: 'comp_input', label_attr: 'Email', name_attr: 'email', placeholder_attr: 'Email', type_attr: 'email' },
{ type: 'comp_textarea', name_attr: 'message', placeholder_attr: 'Message', label_attr: 'Message' },
{ type: 'comp_hidden', name_attr: 'honeypot' },
{ type: 'comp_submit' }
]
}
Expand Down
2 changes: 1 addition & 1 deletion example/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const config = {
},
'comp_submit': {
label: 'Submit Button',
classes: 'button',
classes: 'button expanded',
useTag: 'button',
template: '<%= it.label_attr %>'
},
Expand Down
12 changes: 7 additions & 5 deletions example/googlemd.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const config = {
canvas: {
styles: [
'https://cdn.jsdelivr.net/npm/materialize-css@1.0.0/dist/css/materialize.min.css'
'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css'
],
scripts: []
scripts: [
'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js'
]
},
comps: {
'comp_input': {
Expand Down Expand Up @@ -61,9 +63,9 @@ const config = {
},
'comp_submit': {
label: 'Submit Button',
classes: 'btn waves-effect waves-light',
useTag: 'button',
template: '<%= it.label_attr %>'
classes: 'col s12',
useTag: 'div',
template: '<button class="btn waves-effect waves-light" style="width: 100%" type="submit" name="action"><%= it.label_attr %></button>'
},
'comp_row': {
label: 'Row',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs-components-farmer",
"description": "grapesjs plugin to build components for different css framework",
"version": "0.7.0",
"version": "0.7.1",
"author": "friends@niiknow.org",
"license": "MIT",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default grapesjs.plugins.add('grapesjs-components-farmer', (editor, opts
},
'comp_submit': {
label: 'Submit Button',
classes: 'btn btn-primary btn-block',
classes: 'btn btn-primary w-100',
useTag: 'button',
template: '<%= it.label_attr %>'
},
Expand Down

0 comments on commit a963021

Please sign in to comment.