From e11f23b701cd061ee2090e506e7ff71cc2ed8c33 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 14 Sep 2016 11:23:39 +0200 Subject: [REF] web_editor, website: move ACE editor to web_editor The commit e59a7fe3ff5222288b0aa3d5fe356e437ed0741a has moved the ACE editor from website to web_editor. As some code on ir_ui_view was used for this widget, the code has also been moved to web_editor. --- .../static/src/less/web_editor.ui.components.less | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'addons/web_editor/static/src/less/web_editor.ui.components.less') diff --git a/addons/web_editor/static/src/less/web_editor.ui.components.less b/addons/web_editor/static/src/less/web_editor.ui.components.less index 31d2ce07dac..7dd882ffbd0 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.components.less +++ b/addons/web_editor/static/src/less/web_editor.ui.components.less @@ -119,6 +119,63 @@ .o-animation(fadeInDownSmall, 700ms, @fill-mode: forwards); } +// ACE EDITOR +.o_ace_view_editor { + @o-ace-color: #2F3129; + background: @o-ace-color; + color: white; + .o-flex-display(); + .o-flex-flow(column, nowrap); + + .o_ace_view_editor_title { + .o-flex(0, 0, auto); + .o-flex-display(); + .o-align-items(center); + .o-justify-content(space-between); + padding: @grid-gutter-width/4; + + > * { + .o-flex(0, 0, auto); + margin: 0 @grid-gutter-width/4; + + &.oe_include_bundles { + .o-flex-display(); + .o-align-items(center); + font-size: 11px; + + > .o_checkbox { + margin-right: @grid-gutter-width/4; + } + } + } + + > select { + .o-flex(0, 1, auto); + min-width: 60px; + } + } + #ace-view-id { + .o-flex(0, 0, auto); + padding: @grid-gutter-width/4 @grid-gutter-width/2; + background-color: lighten(@o-ace-color, 10%); + } + #ace-view-editor { + height: 70%; // in case flex is not supported + .o-flex(1, 1, auto); + .ace_gutter { + cursor: ew-resize; + } + } + + &.oe_ace_open { + opacity: 0.97; + } + &.oe_ace_closed { + z-index: -1000; + opacity: 0; + } +} + // MODALS body .modal { // SELECT MEDIA -- cgit v1.2.3