Sharkey/src/client/app/common/views/components/ui/horizon-group.vue

42 lines
545 B
Vue
Raw Normal View History

2018-11-04 07:23:28 +02:00
<template>
2018-11-14 09:30:58 +02:00
<div class="vnxwkwuf" :class="{ inputs, noGrow }">
2018-11-04 07:23:28 +02:00
<slot></slot>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
provide: {
horizonGrouped: true
},
props: {
inputs: {
type: Boolean,
required: false,
default: false
2018-11-14 09:30:58 +02:00
},
noGrow: {
type: Boolean,
required: false,
default: false
2018-11-04 07:23:28 +02:00
}
}
});
</script>
<style lang="stylus" scoped>
2018-11-14 09:30:58 +02:00
.vnxwkwuf
2018-11-04 07:23:28 +02:00
&.inputs
margin 32px 0
2018-11-14 09:30:58 +02:00
&:not(.noGrow)
display flex
> *
flex 1
2018-11-04 07:23:28 +02:00
2018-11-14 09:30:58 +02:00
> *:not(:last-child)
margin-right 16px
2018-11-04 07:23:28 +02:00
</style>