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;
|
||||
max-height: 500px;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
@element image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
@element overlay {
|
||||
|
||||
@@ -1874,12 +1874,9 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
||||
height: 50vh;
|
||||
max-height: 500px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.module-higlighted-course__image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.module-higlighted-course__overlay {
|
||||
|
||||
@@ -2,10 +2,7 @@ include ./_courseCard
|
||||
|
||||
mixin moduleHighlightedCourse(module, course)
|
||||
.module.module-higlighted-course
|
||||
.module-higlighted-course__wrapper
|
||||
.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__wrapper(style=`background-image: url(${course.fields.image.fields.file.url});`)
|
||||
.module-higlighted-course__overlay
|
||||
.module-higlighted-course__content
|
||||
if(course.fields.categories)
|
||||
|
||||
Reference in New Issue
Block a user