diff options
| author | Martin Geubelle <mge@odoo.com> | 2016-09-14 11:23:39 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-09-28 16:55:51 +0200 |
| commit | e11f23b701cd061ee2090e506e7ff71cc2ed8c33 (patch) | |
| tree | dc2eca65c88812132940c50865ecfc37b4cddf88 /addons/web_editor/static/src/less/web_editor.ui.components.less | |
| parent | fa4fa908900b01ca6a2bcde61b73ec6e45d936d2 (diff) | |
[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.
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.ui.components.less')
| -rw-r--r-- | addons/web_editor/static/src/less/web_editor.ui.components.less | 57 |
1 files changed, 57 insertions, 0 deletions
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 |
