diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 1799e6b410..3e3a2493d1 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -77,3 +77,4 @@ erpnext.patches.v4_2.fix_account_master_type erpnext.patches.v4_2.update_project_milestones erpnext.patches.v4_2.add_currency_turkish_lira #2014-08-08 execute:frappe.delete_doc("DocType", "Landed Cost Wizard") +erpnext.patches.v4_2.default_website_style diff --git a/erpnext/patches/v4_2/default_website_style.py b/erpnext/patches/v4_2/default_website_style.py new file mode 100644 index 0000000000..5fbbd48c5b --- /dev/null +++ b/erpnext/patches/v4_2/default_website_style.py @@ -0,0 +1,9 @@ +import frappe +from frappe.templates.pages.style_settings import default_properties + +def execute(): + style_settings = frappe.get_doc("Style Settings", "Style Settings") + if not style_settings.apply_style: + style_settings.update(default_properties) + style_settings.apply_style = 1 + style_settings.save() diff --git a/erpnext/setup/page/setup_wizard/default_website.py b/erpnext/setup/page/setup_wizard/default_website.py index d2e2e5529e..9bbdab08d2 100644 --- a/erpnext/setup/page/setup_wizard/default_website.py +++ b/erpnext/setup/page/setup_wizard/default_website.py @@ -6,6 +6,7 @@ import frappe from frappe import _ from frappe.utils import nowdate +from frappe.templates.pages.style_settings import default_properties class website_maker(object): def __init__(self, company, tagline, user): @@ -35,8 +36,8 @@ class website_maker(object): def make_style_settings(self): style_settings = frappe.get_doc("Style Settings", "Style Settings") - style_settings.top_bar_background = "F2F2F2" - style_settings.font_size = "15px" + style_settings.update(default_properties) + style_settings.apply_style = 1 style_settings.save() def make_website_settings(self): diff --git a/erpnext/setup/page/setup_wizard/sample_home_page.css b/erpnext/setup/page/setup_wizard/sample_home_page.css index 888d2f5cdc..723bcb9203 100644 --- a/erpnext/setup/page/setup_wizard/sample_home_page.css +++ b/erpnext/setup/page/setup_wizard/sample_home_page.css @@ -22,7 +22,7 @@ } .slide { - padding: 60px 40px; + padding: 30px 40px; max-width: 800px; margin: auto; }