update featured-image background styles
This commit is contained in:
parent
3d60970e28
commit
5f7a237800
|
@ -6,7 +6,7 @@
|
||||||
'background-image': 'url(' + gallery.featuredImage + ')' }"
|
'background-image': 'url(' + gallery.featuredImage + ')' }"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="$emit('clicked', index)">
|
@click="$emit('clicked', index)">
|
||||||
<span>{{ gallery.title }}</span>
|
<span class="gallery-title">{{ gallery.title }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
|
@ -38,6 +38,12 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.featured-image {
|
||||||
|
width: 100%;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center center;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: $bp__layout) {
|
@media (max-width: $bp__layout) {
|
||||||
.featured-image {
|
.featured-image {
|
||||||
height: calc(50vh - #{$site-menu__header-height / 2}) !important; // must override inline style set with prop
|
height: calc(50vh - #{$site-menu__header-height / 2}) !important; // must override inline style set with prop
|
||||||
|
@ -55,12 +61,6 @@ export default {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-image {
|
|
||||||
width: 100%;
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue