summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2013-09-02 11:10:05 +0200
committerFrédéric van der Essen <fva@openerp.com>2013-09-02 11:10:05 +0200
commitc5fa23bffa8ccbc3db6a88be822c4f9209701ffc (patch)
tree4a54872ef832a0f20fea2f5fa45ef46c22b68a16 /addons/website/static/src/css
parentae1687c6ab89f15ef95c479ac42f71a714c62e98 (diff)
[IMP] website editor: allow click trough on snippet manipulators
bzr revid: fva@openerp.com-20130902091005-pnhb05fxk29z5q0r
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/editor.css38
-rw-r--r--addons/website/static/src/css/editor.sass32
2 files changed, 59 insertions, 11 deletions
diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css
index 8a20e94bec0..3e678efe612 100644
--- a/addons/website/static/src/css/editor.css
+++ b/addons/website/static/src/css/editor.css
@@ -96,6 +96,7 @@
line-height: 120px;
color: white;
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.95);
+ box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.07) inset;
}
.oe_snippet .oe_snippet_body {
display: none;
@@ -161,31 +162,56 @@
.oe_snippet_manipulator {
display: block;
position: absolute;
- background: rgba(153, 0, 255, 0.1);
+ background: transparent;
border-radius: 3px;
- border: solid 1px rgba(153, 0, 255, 0.5);
opacity: 0;
transition: opacity 100ms linear;
+ box-sizing: border-box;
}
.oe_snippet_manipulator > .oe_handle {
display: none;
}
-.oe_snippet_manipulator:hover, .oe_snippet_manipulator.oe_hover {
+.oe_snippet_manipulator.oe_hover {
opacity: 1;
+ cursor: pointer;
}
-.oe_snippet_manipulator:hover > .oe_handle, .oe_snippet_manipulator.oe_hover > .oe_handle {
+.oe_snippet_manipulator.oe_selected {
+ opacity: 1;
+ pointer-events: none;
+ background: transparent;
+ border: solid 1px rgba(153, 0, 255, 0.5);
+}
+.oe_snippet_manipulator.oe_selected > * {
+ pointer-events: auto;
+}
+.oe_snippet_manipulator.oe_selected > .oe_handle {
display: block;
}
+.oe_snippet_manipulator .oe_buttons {
+ position: absolute;
+ right: 16px;
+ top: 16px;
+ background: #ad00ff;
+ color: white;
+ padding: 0px 2px;
+ border-radius: 3px;
+}
+.oe_snippet_manipulator .oe_buttons .oe_icon {
+ display: inline-block;
+ padding: 8px;
+ cursor: pointer;
+}
.oe_handle {
+ pointer-events: auto;
position: absolute;
top: 50%;
left: 50%;
display: block;
background: white;
- border: solid 1px rgba(153, 0, 255, 0.5);
+ border: solid 1px #9900ff;
box-sizing: border-box;
- border-radius: 2px;
+ border-radius: 8px;
width: 16px;
height: 16px;
margin: -8px;
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass
index 29621f95e4b..feb7432821c 100644
--- a/addons/website/static/src/css/editor.sass
+++ b/addons/website/static/src/css/editor.sass
@@ -89,6 +89,7 @@
line-height: 120px
color: white
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.95)
+ box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.07) inset
.oe_snippet_body
display: none
@@ -146,27 +147,48 @@
.oe_snippet_manipulator
display: block
position: absolute
- background: rgba(153, 0, 255, 0.1)
+ background: transparent //rgba(153, 0, 255, 0.05)
border-radius: 3px
- border: solid 1px rgba(153, 0, 255, 0.5)
opacity: 0
transition: opacity 100ms linear
+ box-sizing: border-box
& > .oe_handle
display: none
- &:hover,&.oe_hover
+ &.oe_hover
+ opacity: 1
+ cursor: pointer
+ &.oe_selected
opacity: 1
+ pointer-events: none
+ background: transparent
+ border: solid 1px rgba(153, 0, 255, 0.5)
+ & > *
+ pointer-events: auto
& > .oe_handle
display: block
+ .oe_buttons
+ position: absolute
+ right: 16px
+ top: 16px
+ background: rgb(173, 0, 255)
+ color: white
+ padding: 0px 2px
+ border-radius: 3px
+ .oe_icon
+ display: inline-block
+ padding: 8px
+ cursor: pointer
.oe_handle
+ pointer-events: auto
position: absolute
top: 50%
left: 50%
display: block
background: rgba(255, 255, 255, 1)
- border: solid 1px rgba(153, 0, 255, 0.5)
+ border: solid 1px rgba(153, 0, 255, 1)
box-sizing: border-box
- border-radius: 2px
+ border-radius: 8px
width: 16px
height: 16px
margin: -8px