[FIX] website_blog: fit the size of the Dexter effect darkening area
Before this commit the darkening area of the Dexter effect is visible through the rounded corners when the blog post was not hovered. After this commit the darkening area is moved inside the right element thus not requiring magic numbers for truncating the area and fixing the display of the darkening area behind the rounded corners. closes odoo/odoo#68640 X-original-commit: f08e6e02cda9080d39f3a81fb83853df917f9ebc Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -94,15 +94,16 @@
|
||||
}
|
||||
}
|
||||
&.s_blog_posts_effect_dexter .s_blog_posts_post {
|
||||
&::before {
|
||||
content: "";
|
||||
@include o-position-absolute($grid-gutter-width/2, $grid-gutter-width/2, $grid-gutter-width/2, $grid-gutter-width/2);
|
||||
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;
|
||||
}
|
||||
figcaption {
|
||||
&::before {
|
||||
content: "";
|
||||
@include o-position-absolute(0, 0, 0, 0);
|
||||
background: linear-gradient(to bottom, darken(theme-color('secondary'), 10%) 0%, darken(theme-color('secondary'), 30%) 100%);
|
||||
z-index: -1;
|
||||
}
|
||||
padding: 3em;
|
||||
text-align: left;
|
||||
&:after {
|
||||
|
||||
Reference in New Issue
Block a user