stylefixes and listviews

This commit is contained in:
Rushabh Mehta
2012-03-21 11:47:58 +05:30
parent 437c1b512c
commit a665c1f60d
18 changed files with 166 additions and 391 deletions

View File

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

View File

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

View File

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