[style] default website
This commit is contained in:
parent
7a6ab91080
commit
52f04da5f5
@ -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
|
||||
|
9
erpnext/patches/v4_2/default_website_style.py
Normal file
9
erpnext/patches/v4_2/default_website_style.py
Normal 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()
|
@ -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):
|
||||
|
@ -22,7 +22,7 @@
|
||||
}
|
||||
|
||||
.slide {
|
||||
padding: 60px 40px;
|
||||
padding: 30px 40px;
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user