<template>
    <div class="ht-base-grid-responsive-demo">
        <ht-base-row class="demo-row">
            <ht-base-col class="demo-col" :xs="2" :sm="4" :md="6" :lg="8">Col</ht-base-col>
            <ht-base-col class="demo-col" :xs="20" :sm="16" :md="12" :lg="8">Col</ht-base-col>
            <ht-base-col class="demo-col" :xs="2" :sm="4" :md="6" :lg="8">Col</ht-base-col>
        </ht-base-row>
        <ht-base-row class="demo-row">
            <ht-base-col class="demo-col" :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }">Col</ht-base-col>
            <ht-base-col class="demo-col" :xs="{ span: 11, offset: 1 }" :lg="{ span: 6, offset: 2 }">Col</ht-base-col>
            <ht-base-col class="demo-col" :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }">Col</ht-base-col>
        </ht-base-row>
    </div>
</template>

<script>
    export default {
        name: 'HtBaseGridResponsiveDemo',
    }
</script>
<style lang="less">
    .ht-base-grid-responsive-demo {
        .demo-col {
            background: #106CB9;
            opacity: .5;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        .demo-col:nth-child(odd) {
            opacity: .7;
        }
        .demo-row {
            margin-bottom: 5px;
        }
    }
</style>

