mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
stylefixes and listviews
This commit is contained in:
@@ -12,6 +12,12 @@ body {
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% if doc.font_size %}
|
||||
.small {
|
||||
font-size: {{ doc.small_font_size }} !important;
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if doc.footer_font_color %}
|
||||
footer {
|
||||
color: {{ doc.footer_font_color }};
|
||||
|
||||
@@ -25,9 +25,13 @@ class DocType:
|
||||
with open('erpnext/website/doctype/style_settings/custom_template.css', 'r') as f:
|
||||
temp = Template(f.read())
|
||||
|
||||
self.doc.small_font_size = str(int(self.doc.font_size[:-2])-2) + 'px'
|
||||
|
||||
self.doc.custom_css = temp.render(doc = self.doc)
|
||||
|
||||
from webnotes.session_cache import clear_cache
|
||||
clear_cache('Guest')
|
||||
|
||||
del self.doc.fields['small_font_size']
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2012-02-02 09:57:25',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-20 11:25:05',
|
||||
'modified': '2012-03-21 10:53:38',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
@@ -23,7 +23,7 @@
|
||||
'name': '__common__',
|
||||
'section_style': u'Simple',
|
||||
'show_in_menu': 0,
|
||||
'version': 14
|
||||
'version': 15
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
@@ -105,7 +105,7 @@
|
||||
'fieldname': u'font_size',
|
||||
'fieldtype': u'Select',
|
||||
'label': u'Font Size',
|
||||
'options': u'\n12px\n13px\n14px',
|
||||
'options': u'\n12px\n13px\n14px\n15px\n16px',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user