From b6494fcf284edcddaa36b5fcfd407a6d7186fbd7 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Tue, 12 Jan 2021 15:33:43 +0000 Subject: [PATCH] [IMP] website, web_editor: default image gallery and highlighted actions Before this commit the image wall and image gallery snippets had no default images (unless overridden by some themes), and the buttons to add or remove images where not easily visible After this commit the image wall and image gallery snippets have default images and the action buttons are their first option line and have highlighted backgrounds colors task-2431420 https://github.com/odoo/design-themes/pull/442 closes odoo/odoo#64427 Related: odoo/design-themes#442 Signed-off-by: Quentin Smetz (qsm) --- .../static/src/scss/wysiwyg_snippets.scss | 8 +++ .../views/snippets/s_image_gallery.xml | 62 ++++++++++++++++--- 2 files changed, 63 insertions(+), 7 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 587eceb1d61..4ec20777c99 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -236,6 +236,14 @@ body.editor_enable.editor_has_snippets { &.o_we_hover_#{$name}:hover { color: $color; } + + &.o_we_bg_#{$name} { + color: white; + background-color: $color; + &:hover { + background-color: darken($color, 7.5%); + } + } } } } diff --git a/addons/website/views/snippets/s_image_gallery.xml b/addons/website/views/snippets/s_image_gallery.xml index 06e91519897..1cf19d560f1 100644 --- a/addons/website/views/snippets/s_image_gallery.xml +++ b/addons/website/views/snippets/s_image_gallery.xml @@ -6,7 +6,38 @@ data-vcss="001" data-columns="3" style="height: 500px; overflow: hidden;">
-
Add Images
+
@@ -14,14 +45,35 @@