summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.ui.less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-05-20 17:43:31 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-04 17:23:59 +0200
commitb309f3ab543b5195eedc5b06ad08cfa81f43171a (patch)
tree6edfb097ef024fce18445bbe9548b6fe3a7f44fd /addons/web_editor/static/src/less/web_editor.ui.less
parent05d064f85531d04056ad02bd2d26ef2341839f3b (diff)
[IMP] web_editor,website: snippet options (parent & deletion)
* Always allow to delete a part (and delete parent if empty) * Show parent options (by displaying the snippet name if any, "column" for col-* and "Block" otherwise) * ...
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.ui.less')
-rw-r--r--addons/web_editor/static/src/less/web_editor.ui.less26
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.ui.less b/addons/web_editor/static/src/less/web_editor.ui.less
index 9167cbc2e2a..d52fdac720f 100644
--- a/addons/web_editor/static/src/less/web_editor.ui.less
+++ b/addons/web_editor/static/src/less/web_editor.ui.less
@@ -347,6 +347,9 @@ html[lang] > body.editor_enable{
background-color: darken(@o-we-color-danger, 20%);
}
}
+ &.oe_snippet_parent > i {
+ .scaleX(-1);
+ }
}
// CUSTOMIZE MENU BUTTON
@@ -444,6 +447,29 @@ html[lang] > body.editor_enable{
color: @odoo-brand-optional;
}
}
+ &.dropdown-header {
+ color: wheat;
+ font-weight: bold;
+
+ &:hover {
+ background-color: initial;
+ }
+
+ &.o_main_header {
+ padding-left: 4px;
+ }
+ &.o_parent_editor_header {
+ &::before {
+ content: "\f148";
+ .o-position-absolute(@top: 0, @left: 5px);
+ font-family: FontAwesome;
+ .scaleX(-1);
+ }
+ ~ li:not(.dropdown-header) {
+ padding-left: 16px;
+ }
+ }
+ }
}
}
}