summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2013-08-23 11:07:57 +0200
committerFrédéric van der Essen <fva@openerp.com>2013-08-23 11:07:57 +0200
commit3ad504ffc432fe92baefbbc5429a3fabcacfd64c (patch)
tree8e87e0a8697d0597875e7ab6ca6ea68b46ba195e /addons/website/static/src/css
parent678bb7c4a0e7d68d37921ab0240279894f90961c (diff)
[IMP] website: cleanup drop zones css and sort out z-index issues
bzr revid: fva@openerp.com-20130823090757-ffqvcselr1merggk
Diffstat (limited to 'addons/website/static/src/css')
-rw-r--r--addons/website/static/src/css/editor.css36
-rw-r--r--addons/website/static/src/css/editor.sass23
2 files changed, 35 insertions, 24 deletions
diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css
index cd9ecc8f8a0..7cb2dc08a4f 100644
--- a/addons/website/static/src/css/editor.css
+++ b/addons/website/static/src/css/editor.css
@@ -58,6 +58,7 @@
display: none;
}
+/* ---- SNIPPET EDITOR ---- */
.oe_snippets {
position: fixed;
left: 0px;
@@ -68,6 +69,7 @@
background: #282828;
box-shadow: 0px 10px 10px -10px black inset;
overflow-y: auto;
+ z-index: 100;
}
.oe_snippet {
@@ -84,6 +86,7 @@
overflow: hidden;
-webkit-user-select: none;
user-select: none;
+ cursor: move;
}
.oe_snippet .oe_snippet_thumbnail.oe_label {
text-align: center;
@@ -107,53 +110,54 @@
-webkit-transform: scale(0.095);
}
-.oe_drop_zone {
+/* ---- SNIPPETS DROP ZONES ---- */
+.oe_drop_zone.oe_insert {
display: block;
- background: rgba(153, 0, 255, 0.17);
- border-radius: 3px;
height: 32px;
margin: -16px 0px;
-webkit-transition: margin 250ms linear;
}
-.oe_drop_zone:first-child:not(:last-child) {
+.oe_drop_zone.oe_insert:first-child:not(:last-child) {
margin-top: -8px;
margin-bottom: -24px;
}
-.oe_drop_zone:last-child:not(:first-child) {
+.oe_drop_zone.oe_insert:last-child:not(:first-child) {
margin-top: -24px;
margin-bottom: -8px;
}
-.oe_drop_zone.oe_hover {
- background: rgba(0, 255, 133, 0.22);
- z-index: 100000;
-}
-.oe_drop_zone:before {
+.oe_drop_zone.oe_insert:before {
content: "";
display: block;
border-top: dashed 2px rgba(209, 178, 255, 0.72);
position: relative;
top: 16px;
}
-.oe_drop_zone:first-child:not(:last-child):before {
+.oe_drop_zone.oe_insert:first-child:not(:last-child):before {
top: 8px;
}
-.oe_drop_zone:last-child:not(:first-child):before {
+.oe_drop_zone.oe_insert:last-child:not(:first-child):before {
top: 24px;
}
-.oe_drop_zone.oe_hover:before {
+.oe_drop_zone.oe_insert.oe_hover:before {
border-top: dashed 2px rgba(116, 255, 161, 0.72);
}
-.oe_hover_zone {
+.oe_drop_zone.oe_mutate {
position: absolute;
background: rgba(153, 0, 255, 0.17);
border-radius: 3px;
}
-.oe_hover_zone.oe_hover {
+
+.oe_drop_zone {
+ background: rgba(153, 0, 255, 0.17);
+ border-radius: 3px;
+}
+.oe_drop_zone.oe_hover {
background: rgba(0, 255, 133, 0.22);
- z-index: 100000;
+ z-index: 99;
}
+/* ---- MOBILE PREVIEW ---- */
.oe_stop_scrolling {
height: 100%;
overflow: hidden;
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass
index 3c54a0d0aaf..45078e12b0b 100644
--- a/addons/website/static/src/css/editor.sass
+++ b/addons/website/static/src/css/editor.sass
@@ -51,6 +51,8 @@
z-index: 1
display: none
+/* ---- SNIPPET EDITOR ---- */
+
.oe_snippets
position: fixed
left: 0px
@@ -61,6 +63,7 @@
background: rgb(40,40,40)
box-shadow: 0px 10px 10px -10px black inset
overflow-y: auto
+ z-index: 100
.oe_snippet
display: inline-block
@@ -76,6 +79,7 @@
overflow: hidden
-webkit-user-select: none
user-select: none
+ cursor: move
.oe_snippet_thumbnail.oe_label
text-align: center
@@ -98,10 +102,11 @@
-webkit-transform: scale(0.095)
-.oe_drop_zone
+/* ---- SNIPPETS DROP ZONES ---- */
+
+
+.oe_drop_zone.oe_insert
display: block
- background: rgba(153, 0, 255, 0.17)
- border-radius: 3px
height: 32px
margin: -16px 0px
-webkit-transition: margin 250ms linear
@@ -111,9 +116,6 @@
&:last-child:not(:first-child)
margin-top: -24px
margin-bottom: -8px
- &.oe_hover
- background: rgba(0, 255, 133, 0.22)
- z-index: 100000
&:before
content: ""
display: block
@@ -127,14 +129,19 @@
&.oe_hover:before
border-top: dashed 2px rgba(116, 255, 161, 0.72)
-.oe_hover_zone
+.oe_drop_zone.oe_mutate
position: absolute
background: rgba(153, 0, 255, 0.17)
border-radius: 3px
+.oe_drop_zone
+ background: rgba(153, 0, 255, 0.17)
+ border-radius: 3px
&.oe_hover
background: rgba(0, 255, 133, 0.22)
- z-index: 100000
+ z-index: 99
+
+/* ---- MOBILE PREVIEW ---- */
.oe_stop_scrolling
height: 100%