summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-09-09 16:49:40 +0200
committerChristophe Matthieu <chm@openerp.com>2013-09-09 16:49:40 +0200
commit7bcc4f4d1dcaa245ff23cefb9a3e4acbeadfd72a (patch)
tree24b5b4f5c2f7ac8c321a30b87d90f49b4ed2555b /addons/website/static/src/css
parent0b199c50e5ee2a85a4a4826b033fecc013bb0e70 (diff)
[WIP] website: snippets: work
bzr revid: chm@openerp.com-20130909144940-f08v6egk5pijz29b
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/editor.css8
-rw-r--r--addons/website/static/src/css/editor.sass7
2 files changed, 11 insertions, 4 deletions
diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css
index 451f0140978..7a3dc36b0cb 100644
--- a/addons/website/static/src/css/editor.css
+++ b/addons/website/static/src/css/editor.css
@@ -197,6 +197,10 @@
box-sizing: border-box;
pointer-events: none;
}
+.oe_snippet_manipulator .oe_boxsize, .oe_snippet_manipulator .oe_margin {
+ position: absolute;
+ pointer-events: none;
+}
.oe_snippet_manipulator .oe_handle {
display: none;
}
@@ -204,13 +208,13 @@
opacity: 1;
cursor: pointer;
}
-.oe_snippet_manipulator.oe_selected, .oe_snippet_manipulator.oe_active {
+.oe_snippet_manipulator.oe_selected, .oe_snippet_manipulator.oe_active, .oe_snippet_manipulator .oe_boxsize, .oe_snippet_manipulator .oe_margin {
opacity: 1;
background: transparent;
border: dashed 1px rgba(153, 0, 255, 0.5);
box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.3), 0px 0px 0px 1px rgba(255, 255, 255, 0.3) inset;
}
-.oe_snippet_manipulator.oe_selected > *, .oe_snippet_manipulator.oe_active > * {
+.oe_snippet_manipulator.oe_selected .oe_handle, .oe_snippet_manipulator.oe_active .oe_handle, .oe_snippet_manipulator .oe_boxsize .oe_handle, .oe_snippet_manipulator .oe_margin .oe_handle {
pointer-events: auto;
}
.oe_snippet_manipulator .oe_buttons {
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass
index e982fcc5ac0..ea6bfeeab34 100644
--- a/addons/website/static/src/css/editor.sass
+++ b/addons/website/static/src/css/editor.sass
@@ -177,17 +177,20 @@
transition: opacity 100ms linear
box-sizing: border-box
pointer-events: none
+ .oe_boxsize, .oe_margin
+ position: absolute
+ pointer-events: none
.oe_handle
display: none
&.oe_hover
opacity: 1
cursor: pointer
- &.oe_selected, &.oe_active
+ &.oe_selected, &.oe_active, .oe_boxsize, .oe_margin
opacity: 1
background: transparent
border: dashed 1px rgba(153, 0, 255, 0.5)
box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.3), 0px 0px 0px 1px rgba(255,255,255,0.3) inset
- & > *
+ .oe_handle
pointer-events: auto
.oe_buttons
display: none