From 7bcc4f4d1dcaa245ff23cefb9a3e4acbeadfd72a Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 9 Sep 2013 16:49:40 +0200 Subject: [WIP] website: snippets: work bzr revid: chm@openerp.com-20130909144940-f08v6egk5pijz29b --- addons/website/static/src/css/editor.css | 8 ++++++-- addons/website/static/src/css/editor.sass | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'addons/website/static/src/css') 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 -- cgit v1.2.3