From ed4467c423548efb8064036ea3899d57369686b7 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 15 Jun 2017 21:59:38 +0200 Subject: [PATCH] Add form plugin --- demo.html | 30 +++++++++++++++++++++---- js/grapesjs-plugin-forms.min.js | 2 ++ stylesheets/grapesjs-preset-webpage.css | 12 ++++++++-- 3 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 js/grapesjs-plugin-forms.min.js diff --git a/demo.html b/demo.html index 04b6a757f..64dbf9f57 100644 --- a/demo.html +++ b/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 @@ +