diff --git a/css/all-app.css b/css/all-app.css index ff022b795f1..21cf8fb041b 100644 --- a/css/all-app.css +++ b/css/all-app.css @@ -1923,9 +1923,9 @@ div.std-footer-item { } .layout_wrapper, .layout-wrapper { - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.3); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.3); - box-shadow: 0px 0px 6px rgba(0,0,0,0.3); + -moz-box-shadow: 0px 0px 9px rgba(0,0,0,0.5); + -webkit-box-shadow: 0px 0px 9px rgba(0,0,0,0.5); + box-shadow: 0px 0px 9px rgba(0,0,0,0.5); background-color: #fff; padding: 15px; -webkit-border-radius: 5px; @@ -1945,7 +1945,8 @@ div.std-footer-item { } .layout-main { - padding: 15px; + padding: 15px; + background-color: #fff; } .layout-main-section { diff --git a/css/all-web.css b/css/all-web.css index 146d4782112..8ac14cb716d 100644 --- a/css/all-web.css +++ b/css/all-web.css @@ -1403,9 +1403,9 @@ div.std-footer-item { } .layout_wrapper, .layout-wrapper { - -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.3); - -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.3); - box-shadow: 0px 0px 6px rgba(0,0,0,0.3); + -moz-box-shadow: 0px 0px 9px rgba(0,0,0,0.5); + -webkit-box-shadow: 0px 0px 9px rgba(0,0,0,0.5); + box-shadow: 0px 0px 9px rgba(0,0,0,0.5); background-color: #fff; padding: 15px; -webkit-border-radius: 5px; @@ -1425,7 +1425,8 @@ div.std-footer-item { } .layout-main { - padding: 15px; + padding: 15px; + background-color: #fff; } .layout-main-section { @@ -1946,8 +1947,8 @@ div#body_div, header .container, .content, #opened-page-selector, footer { width: 900px; } -.layout_wrapper { - padding: 27px; +div#body_div { + margin-top: 90px; } p, li { @@ -1965,10 +1966,6 @@ pre { margin-bottom: 9px; } -.web-content input[type="text"], .web-content input[type="password"], .web-content select { - min-width: 180px; -} - .web-head-section { margin-bottom: 20px } @@ -1991,6 +1988,7 @@ pre { .web-page-status { padding: 7px; + margin-top: -20px; color: #777; clear: both; text-align: right; @@ -2021,20 +2019,12 @@ footer { } .web-footer div, .web-footer a { - font-size: 11px; + font-size: 14px; } .web-footer-menu { margin-bottom: 7px; } -footer a, footer a:visited { - color: #777; -} - -footer a:hover { - background-color: #777; - color: #fff; -} .web-footer-menu ul { list-style: none; @@ -2080,9 +2070,8 @@ footer a:hover { } .two-column { - width: 40%; + width: 50%; float: left; - padding: 5%; } .clear { diff --git a/erpnext/website/css/website.css b/erpnext/website/css/website.css index 1fd0bb055c6..ad8702ab474 100644 --- a/erpnext/website/css/website.css +++ b/erpnext/website/css/website.css @@ -2,8 +2,8 @@ div#body_div, header .container, .content, #opened-page-selector, footer { width: 900px; } -.layout_wrapper { - padding: 27px; +div#body_div { + margin-top: 90px; } p, li { @@ -21,10 +21,6 @@ pre { margin-bottom: 9px; } -.web-content input[type="text"], .web-content input[type="password"], .web-content select { - min-width: 180px; -} - .web-head-section { margin-bottom: 20px } @@ -47,6 +43,7 @@ pre { .web-page-status { padding: 7px; + margin-top: -20px; color: #777; clear: both; text-align: right; @@ -77,20 +74,12 @@ footer { } .web-footer div, .web-footer a { - font-size: 11px; + font-size: 14px; } .web-footer-menu { margin-bottom: 7px; } -footer a, footer a:visited { - color: #777; -} - -footer a:hover { - background-color: #777; - color: #fff; -} .web-footer-menu ul { list-style: none; @@ -136,9 +125,8 @@ footer a:hover { } .two-column { - width: 40%; + width: 50%; float: left; - padding: 5%; } .clear { diff --git a/erpnext/website/doctype/style_settings/custom_template.css b/erpnext/website/doctype/style_settings/custom_template.css index 72c15a19295..8c987f87a5d 100644 --- a/erpnext/website/doctype/style_settings/custom_template.css +++ b/erpnext/website/doctype/style_settings/custom_template.css @@ -3,6 +3,7 @@ body { background: url("files/{{ doc.background_image }}") repeat; {% elif doc.background_color %} background-color: #{{ doc.background_color }}; + background-image: none; {% endif %} {% if doc.font %} font-family: '{{ doc.font }}', Verdana, Sans !important; diff --git a/erpnext/website/doctype/style_settings/style_settings.py b/erpnext/website/doctype/style_settings/style_settings.py index 282cd93fd4a..db26a15e808 100644 --- a/erpnext/website/doctype/style_settings/style_settings.py +++ b/erpnext/website/doctype/style_settings/style_settings.py @@ -28,6 +28,8 @@ class DocType: self.doc.small_font_size = str(int(self.doc.font_size[:-2])-2) + 'px' self.doc.custom_css = temp.render(doc = self.doc) + if self.doc.add_css: + self.doc.custom_css += '\n\n/* User CSS */\n\n' + self.doc.add_css from webnotes.session_cache import clear_cache clear_cache('Guest') diff --git a/erpnext/website/doctype/style_settings/style_settings.txt b/erpnext/website/doctype/style_settings/style_settings.txt index b87a02c15f6..dd962d54590 100644 --- a/erpnext/website/doctype/style_settings/style_settings.txt +++ b/erpnext/website/doctype/style_settings/style_settings.txt @@ -5,7 +5,7 @@ { 'creation': '2012-04-02 16:02:43', 'docstatus': 0, - 'modified': '2012-04-16 13:36:48', + 'modified': '2012-04-25 10:00:35', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -23,7 +23,7 @@ 'name': '__common__', 'section_style': u'Simple', 'show_in_menu': 0, - 'version': 19 + 'version': 23 }, # These values are common for all DocField @@ -89,6 +89,27 @@ 'permlevel': 0 }, + # DocField + { + 'colour': u'White:FFF', + 'description': u'Select a white footer foreground color if you have a dark background', + 'doctype': u'DocField', + 'fieldname': u'footer_font_color', + 'fieldtype': u'Select', + 'label': u'Footer Font Color', + 'options': u'\nwhite', + 'permlevel': 0 + }, + + # DocField + { + 'doctype': u'DocField', + 'fieldtype': u'Column Break', + 'label': u'Fonts', + 'permlevel': 0, + 'width': u'50%' + }, + # DocField { 'doctype': u'DocField', @@ -121,13 +142,20 @@ # DocField { - 'colour': u'White:FFF', - 'description': u'Select a white footer foreground color if you have a dark background', 'doctype': u'DocField', - 'fieldname': u'footer_font_color', - 'fieldtype': u'Select', - 'label': u'Footer Font Color', - 'options': u'\nwhite', + 'fieldtype': u'Section Break', + 'label': u'CSS', + 'permlevel': 0 + }, + + # DocField + { + 'colour': u'White:FFF', + 'description': u'add your own CSS (careful!)', + 'doctype': u'DocField', + 'fieldname': u'add_css', + 'fieldtype': u'Code', + 'label': u'Add CSS', 'permlevel': 0 }, diff --git a/erpnext/website/doctype/web_page/template.html b/erpnext/website/doctype/web_page/template.html index 2c92a25e99f..471c95c94a8 100644 --- a/erpnext/website/doctype/web_page/template.html +++ b/erpnext/website/doctype/web_page/template.html @@ -1,5 +1,5 @@