From 4dc37d216f3663c245921ea9feb0a624c6e9a259 Mon Sep 17 00:00:00 2001
From: Rushabh Mehta
Date: Wed, 5 Oct 2016 17:25:17 +0530
Subject: [PATCH] [style] for web forms
---
frappe/public/css/website.css | 5 +-
frappe/public/less/website.less | 5 +-
frappe/templates/generators/web_form.html | 68 ++++++++++++++-------
frappe/website/doctype/web_form/web_form.py | 6 +-
4 files changed, 55 insertions(+), 29 deletions(-)
diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css
index 626906ffe2..b79a8795a1 100644
--- a/frappe/public/css/website.css
+++ b/frappe/public/css/website.css
@@ -592,6 +592,7 @@ fieldset {
font-weight: 500 !important;
}
.web-sidebar .sidebar-items {
+ margin-top: -10px;
margin-bottom: 30px;
}
.web-sidebar .sidebar-items .title {
@@ -633,7 +634,8 @@ fieldset {
margin-top: 15px;
}
.web-list-item {
- padding: 15px 0px;
+ padding: 10px;
+ margin: 0px -15px;
border-bottom: 1px solid #EBEFF2;
}
.web-list-item h1,
@@ -810,7 +812,6 @@ a.active {
}
.page-content.with-sidebar {
padding-left: 50px;
- padding-right: 50px;
}
@media screen and (max-width: 480px) {
.page-content {
diff --git a/frappe/public/less/website.less b/frappe/public/less/website.less
index 70e98eb732..8bdeafa350 100644
--- a/frappe/public/less/website.less
+++ b/frappe/public/less/website.less
@@ -256,6 +256,7 @@ fieldset {
.sidebar-items {
// margin-top:30px;
+ margin-top: -10px;
margin-bottom:30px;
.title{
font-size: 14px;
@@ -308,7 +309,8 @@ fieldset {
}
.web-list-item {
- padding: 15px 0px;
+ padding: 10px;
+ margin: 0px -15px;
border-bottom: 1px solid @light-border-color;
h1, h2, h3 {
@@ -535,7 +537,6 @@ a.active {
.page-content.with-sidebar {
padding-left: 50px;
- padding-right: 50px;
}
@media screen and (max-width: 480px) {
diff --git a/frappe/templates/generators/web_form.html b/frappe/templates/generators/web_form.html
index 88014b977c..8755de0d61 100644
--- a/frappe/templates/generators/web_form.html
+++ b/frappe/templates/generators/web_form.html
@@ -32,8 +32,7 @@
{% block page_content %}
{% if introduction_text %}
-
{{ introduction_text }}
-
+
{{ introduction_text }}
{% endif %}
@@ -74,7 +73,7 @@
{%- macro help(field) -%}
{% if field.description -%}
- {{ _(field.description) }}
+ {{ _(field.description) }}
{%- endif -%}
{%- endmacro %}
@@ -147,7 +146,7 @@
-
+
{{ _("Max attachment size is {0}MB").format(max_attachment_size) }}
@@ -157,7 +156,7 @@