diff --git a/website/doctype/style_settings/custom_template.css b/website/doctype/style_settings/custom_template.css index e625f958561..14d9f75f5ba 100644 --- a/website/doctype/style_settings/custom_template.css +++ b/website/doctype/style_settings/custom_template.css @@ -34,9 +34,9 @@ h1, h2, h3, h4, h5 { font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', Arial, 'Helvetica Neue' !important; } {% endif %} -{% if doc.heading_text_as %} +{% if doc.heading_text_style %} h1, h2, h3, h4, h5 { - text-transform: {{ doc.heading_text_as }}; + text-transform: {{ doc.heading_text_style }}; } {% endif %} diff --git a/website/doctype/style_settings/style_settings.py b/website/doctype/style_settings/style_settings.py index 0a1a2e02036..434f4b546d0 100644 --- a/website/doctype/style_settings/style_settings.py +++ b/website/doctype/style_settings/style_settings.py @@ -40,7 +40,7 @@ class DocType: from webnotes.sessions import clear_cache clear_cache('Guest') - for f in ["small_font_size", "at_import"]: + for f in ["small_font_size", "at_import", "heading_text_style"]: if f in self.doc.fields: del self.doc.fields[f] @@ -60,7 +60,7 @@ class DocType: fonts = list(set(fonts)) if self.doc.heading_text_as: - self.doc.heading_text_as = { + self.doc.heading_text_style = { "UPPERCASE": "uppercase", "Title Case":"capitalize", "lowercase": "lowercase" @@ -68,7 +68,7 @@ class DocType: self.doc.at_import = "" for f in fonts: - self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s);" % f.replace(" ", "+") + self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s:400,700);" % f.replace(" ", "+") def on_update(self):