<template>
    <div class="ht-base-timeline-vertical-demo">
        <ht-base-row>
            <ht-base-col :span="12">
                <ht-base-timeline>
                    <ht-base-timeline-item>
                        <p class="demo-timeline-time">2017年</p>
                        <p class="demo-timeline-content">发布1.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item>
                        <p class="demo-timeline-time">2017年</p>
                        <p class="demo-timeline-content">发布2.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item>
                        <p class="demo-timeline-time">2018年</p>
                        <p class="demo-timeline-content">发布3.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item>
                        <p class="demo-timeline-time">2018年</p>
                        <p class="demo-timeline-content">发布4.0版本</p>
                    </ht-base-timeline-item>
                </ht-base-timeline>
            </ht-base-col>
            <ht-base-col :span="12">
                <ht-base-timeline class="demo-timeline-vertical">
                    <ht-base-timeline-item color="green">
                        <p class="demo-timeline-content">发布1.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item color="green">
                        <p class="demo-timeline-content">发布2.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item color="blue">
                        <p class="demo-timeline-content">发布3.0版本</p>
                    </ht-base-timeline-item>
                    <ht-base-timeline-item color="red">
                        <p class="demo-timeline-content">发布4.0版本</p>
                    </ht-base-timeline-item>
                </ht-base-timeline>
            </ht-base-col>
        </ht-base-row>

    </div>
</template>

<script>
    export default {
        name: 'HtBaseTimelineVerticalDemo',
    }
</script>
<style lang="less">
    .ht-base-timeline-vertical-demo {
        .demo-timeline-vertical {
            .demo-timeline-time {
                color: #262626;
                font-size: 14px;
                font-weight: 400;
            }
            .demo-timeline-content {
                padding-top: 0 !important;
                font-size: 14px;
                color: #595959;
                font-weight: 400;
            }
            .demo-timeline-details {
                color: #8C8C8C;
                font-size: 13px;
                font-weight: 400;
                line-height: normal;
            }
            .demo-timeline-title {
                position: absolute;
                left: -60%;
                display: flex;
                flex-direction: column;
                text-align: center;
                width: 100%;
                > span:nth-child(1) {
                    font-size: 16px;
                    color: #8C8C8C;
                }
                > span:nth-child(2) {
                    font-size: 10px;
                    color: #8C8C8C;
                }
            }
        }
    }
</style>

