mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +00:00
website style fixes
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
div#body_div, header .container, .content, #opened-page-selector, footer {
|
||||
width: 900px;
|
||||
}
|
||||
|
||||
.layout_wrapper {
|
||||
padding: 27px;
|
||||
}
|
||||
@@ -102,4 +106,43 @@ footer a:hover {
|
||||
|
||||
.web-footer-menu ul li:last-child {
|
||||
border-right: 0px solid #777 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* slide view */
|
||||
|
||||
.next-slide {
|
||||
margin: 0px -27px 100px -27px;
|
||||
background: #ffffff; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #eeeeee 0%, #fff 100%); /* FF3.6+ */
|
||||
background: -webkit-linear-gradient(top, #eeeeee 0%, #fff 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #eeeeee 0%, #fff 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #eeeeee 0%, #fff 100%); /* IE10+ */
|
||||
background: linear-gradient(top, #eeeeee 0%, #fff 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#fff',GradientType=0 ); /* IE6-9 */
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.slide-shadow {
|
||||
background: #eeeeee; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #bababa 0%,#eeeeee 100%); /* FF3.6+ */
|
||||
background: -webkit-linear-gradient(top, #bababa 0%,#eeeeee 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #bababa 0%,#eeeeee 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #bababa 0%,#eeeeee 100%); /* IE10+ */
|
||||
background: linear-gradient(top, #bababa 0%,#eeeeee 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bababa', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
|
||||
height: 3px;
|
||||
margin: 100px -27px 0px -27px;
|
||||
border-top: 1px solid #bababa;
|
||||
}
|
||||
|
||||
.two-column {
|
||||
width: 40%;
|
||||
float: left;
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* */
|
||||
@@ -1,16 +1,25 @@
|
||||
<div class="layout_wrapper">
|
||||
<div class="web-content" id="content-{{ doc.name }}">
|
||||
{% if doc.head_section %}
|
||||
<div class="web-content" id="content-{{ doc.name }}"
|
||||
style="text-align: {{ doc.text_align }};">
|
||||
{% if doc.head_section and doc.layout=='Two column with header' %}
|
||||
<div class="web-head-section">
|
||||
{{ doc.head_section_html }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if doc.layout.startswith('Two column') %}
|
||||
<div class="web-main-section">
|
||||
{% endif %}
|
||||
{{ doc.main_section_html }}
|
||||
{% if doc.next_page_html %}
|
||||
{{ doc.next_page_html }}
|
||||
{% endif %}
|
||||
|
||||
{% if doc.layout.startswith('Two column') %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if doc.layout.startswith('Two column') %}
|
||||
<div class="web-side-section">
|
||||
{{ doc.side_section_html }}
|
||||
{% if doc.see_also %}
|
||||
@@ -20,6 +29,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div style="clear: both"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
15
erpnext/website/doctype/web_page/web_page.js
Normal file
15
erpnext/website/doctype/web_page/web_page.js
Normal file
@@ -0,0 +1,15 @@
|
||||
$.extend(cur_frm.cscript, {
|
||||
layout: function(doc) {
|
||||
if(!doc.layout) doc.layout = 'Two column with header'
|
||||
hide_field(['head_section', 'side_section']);
|
||||
if(doc.layout=='Two column with header') {
|
||||
unhide_field(['head_section', 'side_section']);
|
||||
}
|
||||
if(doc.layout=='Two column') {
|
||||
unhide_field('side_section');
|
||||
}
|
||||
},
|
||||
refresh: function(doc) {
|
||||
cur_frm.cscript.layout(doc);
|
||||
}
|
||||
})
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-03-27 14:36:48',
|
||||
'creation': '2012-04-02 16:02:43',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-27 14:36:48',
|
||||
'modified': '2012-04-10 10:41:00',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
@@ -17,12 +17,12 @@
|
||||
'colour': u'White:FFF',
|
||||
'description': u'A custom page is a simple page with the layout - headline, main section, side section\n\nEditing:\n\n- Editing is in [markdown format](http://daringfireball.net/projects/markdown/syntax)\n- You can also add images and embed html code\n\nAccessing the page:\n\n- The page can be accessed as #![page-name] after the main url\n\nIdeal for pages like FAQ, Terms and Conditions, Help etc.\n\n',
|
||||
'doctype': 'DocType',
|
||||
'max_attachments': 5,
|
||||
'max_attachments': 20,
|
||||
'module': u'Website',
|
||||
'name': '__common__',
|
||||
'section_style': u'Simple',
|
||||
'show_in_menu': 0,
|
||||
'version': 6
|
||||
'version': 11
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
@@ -66,6 +66,14 @@
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'sb0',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Title and Style'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': u'White:FFF',
|
||||
@@ -77,6 +85,42 @@
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'layout',
|
||||
'fieldtype': u'Select',
|
||||
'label': u'Layout',
|
||||
'options': u'Two column with header\nTwo column\nSingle column'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'cb1',
|
||||
'fieldtype': u'Column Break',
|
||||
'width': u'50%'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'text_align',
|
||||
'fieldtype': u'Select',
|
||||
'label': u'Text Align',
|
||||
'options': u'Left\nCenter\nRight'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': u'White:FFF',
|
||||
'description': u'Page content',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'sb1',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Content'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': u'White:FFF',
|
||||
@@ -107,6 +151,16 @@
|
||||
'label': u'Side Section'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': u'White:FFF',
|
||||
'description': u'Link to other pages in the side bar and next section',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'sb2',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Links'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': u'White:FFF',
|
||||
|
||||
Reference in New Issue
Block a user