Files
DiceCloud/app/imports/client/ui/components/ColumnLayout.vue
Stefan Zermatten b0afc86ad4 "fixed" column layout again
As yet untested on Safari
2023-07-21 16:12:50 +02:00

43 lines
615 B
Vue

<template
lang="html"
functional
>
<div
class="column-layout"
:class="wideColumns ? 'wide-columns' : ''"
>
<slot />
</div>
</template>
<script lang="js">
export default {
props: {
wideColumns: Boolean,
},
};
</script>
<style lang="css">
.column-layout {
column-count: 12;
column-fill: balance;
column-gap: 8px;
column-width: 240px;
padding: 8px;
}
.column-layout.wide-columns {
column-width: 320px;
}
.column-layout>*,
.column-layout>span>div {
display: inline-block;
break-inside: avoid;
page-break-inside: avoid;
margin-bottom: 8px;
width: 100%;
}
</style>