summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css/editor.sass
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-02-09 13:40:49 +0100
committerJulien De Coster <jdc@odoo.com>2015-02-12 11:58:12 +0100
commit28ed28f9451edcb32f70daf7082d2ae91148b79c (patch)
tree9ad5ae4a272340247a81332895bd230952dbb5bd /addons/website/static/src/css/editor.sass
parenta46a060f0fda429109fa1c34784c9267d57e2660 (diff)
[IMP] website: create a new web editor in the backend to edit html field with the website builder
Diffstat (limited to 'addons/website/static/src/css/editor.sass')
-rw-r--r--addons/website/static/src/css/editor.sass27
1 files changed, 24 insertions, 3 deletions
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