2020-12-20 17:27:26 +01:00
|
|
|
<template>
|
|
|
|
<b-container id="grid" fluid>
|
|
|
|
<b-row>
|
2021-01-03 12:29:41 +01:00
|
|
|
<b-col id="column" :class="[width, { 'mx-auto': center }]">
|
2020-12-20 17:27:26 +01:00
|
|
|
<slot />
|
|
|
|
</b-col>
|
|
|
|
</b-row>
|
|
|
|
</b-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "BaseContainer",
|
|
|
|
props: {
|
|
|
|
width: {
|
|
|
|
default: "medium",
|
|
|
|
type: String
|
|
|
|
},
|
|
|
|
center: {
|
|
|
|
default: true,
|
|
|
|
type: Boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="sass" scoped>
|
|
|
|
#column.slimmer
|
|
|
|
max-width: 300px
|
|
|
|
|
|
|
|
#column.slim
|
|
|
|
max-width: 450px
|
|
|
|
|
|
|
|
#column.medium
|
|
|
|
max-width: 800px
|
|
|
|
|
|
|
|
#column.wide
|
|
|
|
max-width: 1000px
|
|
|
|
|
|
|
|
#column.open
|
|
|
|
max-width: inherit
|
|
|
|
</style>
|