From 28ed28f9451edcb32f70daf7082d2ae91148b79c Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 9 Feb 2015 13:40:49 +0100 Subject: [IMP] website: create a new web editor in the backend to edit html field with the website builder --- addons/website/static/src/css/editor.sass | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'addons/website/static/src/css/editor.sass') diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 2ab71dbf5b7..9110b4454cd 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -148,12 +148,33 @@ .o_editable .media_iframe_video .css_editable_mode_display display: block !important - + .oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child background-image: url('/website/static/src/img/edit_here.png') !important + &:before + content: 'Press The Top-Left Edit Button' !important + +.o_editable + &.oe_structure.oe_empty > p:empty:only-child, &[data-oe-type=html] > p:empty:only-child + color: #aaa + &.oe_structure.oe_empty:empty, &[data-oe-type=html]:empty, &.oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, &[data-oe-type=html] > .oe_drop_zone.oe_insert:only-child, &.oe_structure.oe_empty > p:empty:only-child, &[data-oe-type=html] > p:empty:only-child + background-image: none !important + &:before + content: 'Write your text here' !important + &:focus:before + display: none + +#oe_snippets ~ #wrapwrap + .oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child + background-image: url('/website/static/src/img/drag_here.png') !important + &:before + content: 'Drag Building Blocks Here' !important -.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before - content: 'Press The Top-Left Edit Button' !important +.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child + background-image: none + background-repeat: no-repeat + background-position: center + height: 220px !important [data-oe-type=html].oe_no_empty:empty:before content: '' !important -- cgit v1.2.3