diff --git a/css/fonts/pacifico.woff b/css/fonts/pacifico.woff new file mode 100644 index 0000000000..373c3815f6 Binary files /dev/null and b/css/fonts/pacifico.woff differ diff --git a/css/legacy/body.css b/css/legacy/body.css index 7bf5bdf095..c53547c7d5 100644 --- a/css/legacy/body.css +++ b/css/legacy/body.css @@ -192,6 +192,11 @@ div.std-footer-item { box-shadow: 0px 0px 6px rgba(0,0,0,0.3); background-color: #fff; padding: 15px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + margin-bottom: 30px; + overflow: hidden; } .layout-wrapper-background { @@ -205,9 +210,9 @@ div.std-footer-item { padding: 15px; background-color: #FFF; min-height: 600px; - -moz-box-shadow: 7px 0px 6px -2px #ddd; - -webkit-box-shadow: 7px 0px 6px -2px #ddd; - box-shadow: 7px 0px 6px -2px #ddd; + -moz-box-shadow: 4px 0px 3px #ddd; + -webkit-box-shadow: 4px 0px 3px #ddd; + box-shadow: 4px 0px 3px #ddd; } .layout-side-section { diff --git a/css/legacy/forms.css b/css/legacy/forms.css index e173530989..f38c9d7062 100644 --- a/css/legacy/forms.css +++ b/css/legacy/forms.css @@ -5,23 +5,42 @@ } .breadcrumbs { - background-color: #e8e8e8; - padding: 3px; - border-radius: 3px; + color: #000000; } .breadcrumbs a { color: #000000; } +div.form-header-main { + padding: 6px; + background: #eeeeee; /* Old browsers */ + background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */ + background: linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */ + border-bottom: 1px solid #ccc; +} +div.form-header-toolbar { + padding: 4px; + background: #eeeeee; + border-top: 1px solid #f8f8f8; + border-bottom: 1px solid #ccc; +} + div.form-section-head { - margin: 11px 0px 3px 0px; + margin: 11px -15px 3px -15px; border-top: 1px solid #ccc; - padding-top: 11px; + padding: 11px 15px 0px 15px; } div.form-layout-row:first-child .form-section-head { - border-top: 0px solid #ccc !important; + border-top: 0px solid #ccc !important; + margin-top: 0px; + padding-top: 0px; } div.form-section-head h3 { diff --git a/css/ui/fonts.css b/css/ui/fonts.css index 236ec36d73..c13fd62ca7 100644 --- a/css/ui/fonts.css +++ b/css/ui/fonts.css @@ -39,3 +39,11 @@ font-weight: 400; src: local('Cabin Regular'), local('Cabin-Regular'), url('../lib/css/fonts/cabin.woff') format('woff'); } + +@font-face { + font-family: 'Pacifico'; + font-style: normal; + font-weight: normal; + src: local('Pacifico Regular'), local('Pacifico-Regular'), url('../lib/css/fonts/pacifico.woff') format('woff'); +} + diff --git a/js/legacy/widgets/form/form.js b/js/legacy/widgets/form/form.js index 5391d9b35d..33ff83b080 100644 --- a/js/legacy/widgets/form/form.js +++ b/js/legacy/widgets/form/form.js @@ -167,10 +167,11 @@ _f.Frm.prototype.setup_std_layout = function() { // header - no headers for tables and guests - if(!(this.meta.istable || user=='Guest')) this.frm_head = new _f.FrmHeader(this.page_layout.head, this); + if(!(this.meta.istable || user=='Guest')) + this.frm_head = new _f.FrmHeader(this.page_layout.head, this); // hide close btn for dialog rendering - if(this.frm_head && this.meta.in_dialog) $dh(this.frm_head.page_head.close_btn); + if(this.frm_head && this.meta.in_dialog) this.frm_head.hide_close(); // bg colour if(this.meta.colour) @@ -260,14 +261,6 @@ _f.Frm.prototype.rename_notify = function(dt, old, name) { this.opendocs[name] = true; } -// refresh the heading labels -// ====================================================================================== - -_f.Frm.prototype.set_heading = function() { - if(!this.meta.istable && this.frm_head) this.frm_head.refresh_labels(this); -} - - // SETUP // ====================================================================================== @@ -362,7 +355,7 @@ _f.Frm.prototype.setup_fields_std = function() { // -------------------------------------------------------------------------------------- _f.Frm.prototype.add_custom_button = function(label, fn, icon) { - this.frm_head.page_head.add_button(label, fn, 1); + this.frm_head.add_button(label, fn, icon); } _f.Frm.prototype.clear_custom_buttons = function() { // @@ -472,13 +465,10 @@ _f.Frm.prototype.refresh_header = function() { } // show / hide buttons - if(this.frm_head)this.frm_head.refresh_toolbar(); + if(this.frm_head)this.frm_head.refresh(); // add to recent - if(wn.ui.toolbar.recent) wn.ui.toolbar.recent.add(this.doctype, this.docname, 1); - - // refresh_heading - status etc. - this.set_heading(); + if(wn.ui.toolbar.recent) wn.ui.toolbar.recent.add(this.doctype, this.docname, 1); } // -------------------------------------------------------------------------------------- @@ -1111,18 +1101,19 @@ _f.set_value = function(dt, dn, fn, v) { if(changed) { d[fn] = v; d.__unsaved = 1; - var frm = wn.views.formview[d.doctype]; + var frm = wn.views.formview[d.doctype].frm; try { if(d.parent && d.parenttype) { locals[d.parenttype][d.parent].__unsaved = 1; - frm = wn.views.formview[d.parenttype]; + frm = wn.views.formview[d.parenttype].frm; } } catch(e) { if(d.parent && d.parenttype) errprint('Setting __unsaved error:'+d.name+','+d.parent+','+d.parenttype); } - if(frm && frm==cur_frm) { - frm.set_heading(); + + if(frm && frm==cur_frm && frm.frm_head) { + frm.frm_head.refresh_labels(); } } } diff --git a/js/legacy/widgets/form/form_fields.js b/js/legacy/widgets/form/form_fields.js index 0ef3ec5241..1c647d28be 100644 --- a/js/legacy/widgets/form/form_fields.js +++ b/js/legacy/widgets/form/form_fields.js @@ -82,21 +82,11 @@ _f.SectionBreak.prototype.make_body = function() { if(this.df.label) { if(!this.df.description) this.df.description = ''; - $(this.row.main_head).html(repl('