fix(modules): highlighted course bg image

This commit is contained in:
Benedikt Rötsch
2017-10-06 13:16:19 +02:00
committed by Benedikt Rötsch
parent d1a5113bfc
commit 053e489486
3 changed files with 7 additions and 16 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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)