summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-02-26 10:05:48 +0000
committerSamuel Degueldre <sad@odoo.com>2020-02-26 17:44:18 +0000
commit382f17f4624b45798c9ec4cc4ca37e8cb00b08ec (patch)
tree11f1bff82c50b1eb64a7a35a36e48b9d870141ed
parent76ecf3761e02a0b6957ecad2d9d3bfdd80298639 (diff)
[FIX] website_blog: fix s_latest_post using undefined theme color
In odoo/odoo#42466 , the s_latest_posts snippet options that were theme-specific were brought into standard from various themes. One of those options is hover effects, and one of those hover effects used the beta theme color, which is not defined in theme_bootswatch, and would cause assets_frontend to fail to build when that theme was selected. This commit fixes that by changing it to use the secondary theme-color instead, which is available in all themes. closes odoo/odoo#46387 X-original-commit: 75c44836580ed71f035d8b23097a4998a1109917 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
-rw-r--r--addons/website_blog/static/src/snippets/s_latest_posts/000.scss4
-rw-r--r--addons/website_blog/static/src/snippets/s_latest_posts/001.scss4
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_blog/static/src/snippets/s_latest_posts/000.scss b/addons/website_blog/static/src/snippets/s_latest_posts/000.scss
index ed7b97c0e8c..b43eddecb9b 100644
--- a/addons/website_blog/static/src/snippets/s_latest_posts/000.scss
+++ b/addons/website_blog/static/src/snippets/s_latest_posts/000.scss
@@ -66,7 +66,7 @@
&::before {
content: "";
@include o-position-absolute(0, $grid-gutter-width/2, 0, $grid-gutter-width/2);
- background: linear-gradient(to bottom, darken(theme-color('beta'), 10%) 0%,darken(theme-color('beta'), 30%) 100%);
+ background: linear-gradient(to bottom, darken(theme-color('secondary'), 10%) 0%,darken(theme-color('secondary'), 30%) 100%);
}
.thumb {
transition: opacity 0.35s;
@@ -298,7 +298,7 @@
> a {
bottom: 0;
display: block;
- background: theme-color('alpha');
+ background: theme-color('primary');
width: 100%;
height: 150px;
position: absolute;
diff --git a/addons/website_blog/static/src/snippets/s_latest_posts/001.scss b/addons/website_blog/static/src/snippets/s_latest_posts/001.scss
index 91b685506f3..fa333e847bc 100644
--- a/addons/website_blog/static/src/snippets/s_latest_posts/001.scss
+++ b/addons/website_blog/static/src/snippets/s_latest_posts/001.scss
@@ -115,7 +115,7 @@
&::before {
content: "";
@include o-position-absolute(0, $grid-gutter-width/2, 0, $grid-gutter-width/2);
- background: linear-gradient(to bottom, darken(theme-color('beta'), 10%) 0%, darken(theme-color('beta'), 30%) 100%);
+ background: linear-gradient(to bottom, darken(theme-color('secondary'), 10%) 0%, darken(theme-color('secondary'), 30%) 100%);
}
.o_record_cover_container {
transition: opacity 0.35s;
@@ -246,7 +246,7 @@
bottom: 0;
left: 0;
display: block;
- background: theme-color('alpha');
+ background: theme-color('primary');
width: 100%;
height: 150px;
overflow: hidden;