diff options
| author | fja-odoo <fja@odoo.com> | 2019-05-21 16:50:00 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-07-30 09:04:18 +0000 |
| commit | 0299a3fa2401e0dd9f837bd966948a4c277dcd3d (patch) | |
| tree | a600ea819886ad4ab4e6f825c8035245239cea81 /addons/web/static/src/scss/utils.scss | |
| parent | bb370776100faf43b0afe2c11178662482c52223 (diff) | |
[IMP] web_editor, *: add message when no document/image
* web
The document/image tab in "Select a media" Dialog were not displaying
any info when there was no document/images to load.
Now there is a message with the same image as the backend.
The "All attachments have been loaded" message is only displayed if
there is no more documents to display after using the button "Load More".
The "Load More" button is removed in the backend if there is no
documents/images.
Part of https://github.com/odoo/odoo/pull/33195
task-1945874
closes odoo/odoo#33195
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss/utils.scss')
| -rw-r--r-- | addons/web/static/src/scss/utils.scss | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/utils.scss b/addons/web/static/src/scss/utils.scss index 49485067037..9c3187d01bc 100644 --- a/addons/web/static/src/scss/utils.scss +++ b/addons/web/static/src/scss/utils.scss @@ -339,3 +339,41 @@ margin-bottom: 5px; } } + +// No content helper +@mixin o-nocontent-empty { + pointer-events: auto; + max-width: 650px; + margin: auto; + padding: 15px; + z-index: 1000; + text-align: center; + color: $o-tooltip-text-color; + font-size: 115%; + + > p:first-of-type { + margin-top: 0; + color: $o-tooltip-title-text-color; + font-weight: bold; + font-size: 125%; + } + + a { + cursor: pointer; + } +} + +%o-nocontent-init-image { + content: ""; + display: block; + margin: auto; + background-size: cover; +} + +%o-nocontent-empty-document { + @extend %o-nocontent-init-image; + @include size(120px, 80px); + margin-top: 30px; + margin-bottom: 30px; + background: transparent url(/web/static/src/img/empty_folder.svg) no-repeat center; +} |
