diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-11-29 18:24:11 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-12-04 11:17:23 +0000 |
| commit | 78a30d44cf8f1ce0d4d3fc53481a87eebeaea088 (patch) | |
| tree | 998def9a2fa63f84167501960dca2c30d2c3ec44 /addons/web_editor/static/src/scss | |
| parent | 1f847a1e2eed63086448ceb451bd1a2f87c8c641 (diff) | |
[REF] web_editor, web_unsplash: review load more feature
* Simplify the code
* Make the feature mork without unsplash
* Handle corner cases
task-1896705
Diffstat (limited to 'addons/web_editor/static/src/scss')
| -rw-r--r-- | addons/web_editor/static/src/scss/web_editor.ui.scss | 66 | ||||
| -rw-r--r-- | addons/web_editor/static/src/scss/web_editor.variables.scss | 3 |
2 files changed, 11 insertions, 58 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.ui.scss b/addons/web_editor/static/src/scss/web_editor.ui.scss index 805ac4a35b6..ad9da79f788 100644 --- a/addons/web_editor/static/src/scss/web_editor.ui.scss +++ b/addons/web_editor/static/src/scss/web_editor.ui.scss @@ -1291,29 +1291,8 @@ body .modal { max-width: 80%; .modal-body { - .nav-tabs .active > a[href="#editor-media-icon"] { - background-color: white; - } - - li.search { - .form-group { - position: relative; - margin: 0 10px 0 0; - > input { - padding-right: 30px; - } - > span { - @include o-position-absolute(7px, 7px); - font-size: 1.3em; - } - } - } - - .card { - border-color: gray('200'); - border-top-width: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; + .tab-pane { + min-height: 300px; } .o_existing_attachment_cell { @@ -1357,8 +1336,6 @@ body .modal { } } .font-icons-icons { - padding: 20px 0; - > span { text-align: center; font-size: 22px; @@ -1377,34 +1354,14 @@ body .modal { } #editor-media-image, #editor-media-document { - .card { - label { - margin: auto 10px; - } - - .btn-group { - margin-right: 10px; - } - } - .o_size_fa_icon { - font-size: 1.4rem; - } - .o_size_dropdown_item { - font-size: 0.9rem; + .o_we_url_input { + width: 300px; } } // VIDEO TAB - #editor-media-video .o_video_dialog_container { - padding: 0; - display: flex; - flex-flow: row wrap; - + #editor-media-video { .o_video_dialog_form { - flex: 1 1 auto; - min-width: 0; - padding: 20px; - #o_video_form_group { position: relative; width: 100%; @@ -1416,17 +1373,17 @@ body .modal { overflow-y: scroll; } - > .o_validate_feedback { + .o_validate_feedback { @include o-position-absolute(auto, 10px, 10px); > .fa { display: none; } } - &.o_has_error > .o_validate_feedback > .fa-exclamation-triangle { + &.o_has_error .o_validate_feedback > .fa-exclamation-triangle { display: block; } - &.o_has_success > .o_validate_feedback > .fa-check { + &.o_has_success .o_validate_feedback > .fa-check { display: block; } } @@ -1434,12 +1391,8 @@ body .modal { #video-preview { position: relative; - flex: 1 0 50%; - display: flex; - flex-flow: column nowrap; - justify-content: center; - @include o-we-preview-box(0 19px); + @include o-we-preview-box(); border: none; .media_iframe_video { @@ -1504,6 +1457,7 @@ body .modal { .o_bg_img_opt_cover_edition { @include o-we-preview-box; + padding: 0 25px 25px 25px; h6 { color: white; diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index 9bb6b705c8d..e556d6e5e4e 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -45,8 +45,7 @@ $o-we-switch-inactive-color: $o-we-color-paper !default; // ============ 'Preview' component Mixins =============== // Create a "preview" work-area to edit/customize specific elements -@mixin o-we-preview-box($padding: 0px 25px 25px 25px, $color-text: white) { - padding: $padding; +@mixin o-we-preview-box($color-text: white) { border-top: 1px solid black; border-bottom: 1px solid white; background-image: linear-gradient(-150deg, $o-we-color-dark, $o-we-color-darker); |
