fix(modules): highlighted course bg image
This commit is contained in:
committed by
Benedikt Rötsch
parent
d1a5113bfc
commit
053e489486
@@ -5,12 +5,9 @@
|
|||||||
height: 50vh;
|
height: 50vh;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
@element image {
|
background-position: center center;
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@element overlay {
|
@element overlay {
|
||||||
|
|||||||
@@ -1874,12 +1874,9 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|||||||
height: 50vh;
|
height: 50vh;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
.module-higlighted-course__image {
|
background-position: center center;
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-higlighted-course__overlay {
|
.module-higlighted-course__overlay {
|
||||||
|
|||||||
@@ -2,10 +2,7 @@ include ./_courseCard
|
|||||||
|
|
||||||
mixin moduleHighlightedCourse(module, course)
|
mixin moduleHighlightedCourse(module, course)
|
||||||
.module.module-higlighted-course
|
.module.module-higlighted-course
|
||||||
.module-higlighted-course__wrapper
|
.module-higlighted-course__wrapper(style=`background-image: url(${course.fields.image.fields.file.url});`)
|
||||||
.module-higlighted-course__image-wrapper
|
|
||||||
if course.fields.image
|
|
||||||
img.module-hero-image__image(src=`${course.fields.image.fields.file.url}` alt=`${course.fields.image.fields.title}`)
|
|
||||||
.module-higlighted-course__overlay
|
.module-higlighted-course__overlay
|
||||||
.module-higlighted-course__content
|
.module-higlighted-course__content
|
||||||
if(course.fields.categories)
|
if(course.fields.categories)
|
||||||
|
|||||||
Reference in New Issue
Block a user