Browse Source

Add form plugin

pull/2301/head
Artur Arseniev 9 years ago
parent
commit
ed4467c423
  1. 30
      demo.html
  2. 2
      js/grapesjs-plugin-forms.min.js
  3. 12
      stylesheets/grapesjs-preset-webpage.css

30
demo.html

@ -731,7 +731,17 @@
text-align: right;
margin-bottom: 15px;
}
.sub-input{
.form {
border-radius: 3px;
padding: 10px 15px;
background-color: rgba(0,0,0,0.2);
}
.input,
.textarea,
.select,
.sub-input {
width: 100%;
margin-bottom: 15px;
padding: 7px 10px;
@ -740,9 +750,20 @@
background-color: #554c57;
border: none;
}
.select {
height: 30px;
}
.label {
width: 100%;
display: block;
}
.button,
.sub-btn{
width: 100%;
margin-bottom: 15px;
margin: 15px 0;
background-color: #785580;
border: none;
color:#fff;
@ -910,6 +931,7 @@
<script src="js/grapes.min.js?v0.8.8"></script>
<script src="js/grapesjs-plugin-export.min.js"></script>
<script src="js/grapesjs-plugin-filestack.min.js"></script>
<script src="js/grapesjs-plugin-forms.min.js"></script>
<script src="js/grapesjs-aviary.min.js"></script>
<script src="js/grapesjs-preset-webpage.js"></script>
<script type="text/javascript">
@ -929,8 +951,8 @@
container : '#gjs',
fromElement: 1,
showOffsets: 1,
plugins: ['gjs-plugin-export', 'gjs-preset-webpage', 'gjs-plugin-filestack', 'gjs-aviary'],
plugins: ['gjs-plugin-export', 'gjs-preset-webpage', 'gjs-plugin-filestack',
'gjs-aviary', 'gjs-plugin-forms'],
pluginsOpts: {
'gjs-plugin-filestack': {
key: 'A1nL8omiAR8W7pHi3cotzz',

2
js/grapesjs-plugin-forms.min.js

File diff suppressed because one or more lines are too long

12
stylesheets/grapesjs-preset-webpage.css

@ -1,3 +1,7 @@
.gjs-block-svg {
width: 61%;
}
.gjs-clm-tags .gjs-sm-title,
.gjs-sm-sector .gjs-sm-title {
border-top: none;
@ -33,8 +37,10 @@
.gjs-color-active,
.gjs-pn-btn.gjs-pn-active,
.gjs-pn-btn:active,
.gjs-block:hover {
color: rgb(217, 131, 166);
.gjs-block:hover,
.gjs-block:hover .gjs-block-svg-path {
color: #d97aa6;
fill: #d97aa6;
}
#gjs-rte-toolbar .gjs-rte-btn,
@ -48,10 +54,12 @@
.gjs-off-prv,
.gjs-pn-btn,
.gjs-pn-panel,
.gjs-block-svg-path,
.gjs-sm-sector .gjs-sm-composite.gjs-clm-field,
.gjs-sm-sector .gjs-sm-field.gjs-sm-composite,
.gjs-sm-sector .gjs-sm-stack #gjs-sm-add {
color: #b9a5a6;
fill: #b9a5a6;
}
#gjs-rte-toolbar,

Loading…
Cancel
Save