marc-leopold/components/GalleryFeatured.vue

51 lines
763 B
Vue
Raw Normal View History

<template>
2019-01-04 13:55:30 +00:00
<ul>
<li v-for="(gallery, index) in galleries"
class="featured-image"
2019-01-04 13:55:30 +00:00
:style="{ 'height': featuredHeight }"
:key="index">
<span>{{ gallery.title }}</span>
</li>
</ul>
</template>
<script>
export default {
props: {
galleries: {
type: Array,
required: true
2019-01-04 13:55:30 +00:00
},
featuredHeight: {
type: String,
required: true
}
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
@media (max-width: $bp__layout) {
.featured-image {
2019-01-04 13:55:30 +00:00
height: 50vh !important; // must override inline style set with prop
width: 100vw;
flex: 0 0 100vw;
}
}
@media (min-width: $bp__layout) {
.featured-image {
width: 100%;
}
}
</style>