[style] default website

This commit is contained in:
Rushabh Mehta 2014-08-25 15:17:20 +05:30
parent 7a6ab91080
commit 52f04da5f5
4 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -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):

View File

@ -22,7 +22,7 @@
}
.slide {
padding: 60px 40px;
padding: 30px 40px;
max-width: 800px;
margin: auto;
}