时间轴 Timeline
通过 .aui-timeline
定义时间轴,包含 .aui-timeline-item-header
、.aui-timeline-item
、.aui-timeline-item-label
和 .aui-timeline-item-inner
元素。
.aui-timeline-item-inner
中为右侧主体内容,可结合列表、卡片、宫格等其它布局来实现多种多样的精美布局。
示例源码
<section class="aui-content">
<div class="aui-timeline">
<div class="aui-timeline-item-header">2017年1月8日</div>
<div class="aui-timeline-item">
<div class="aui-timeline-item-label aui-bg-info aui-text-white">NO.1</div>
<div class="aui-timeline-item-inner">
<div class="aui-card-list">
<div class="aui-card-list-header aui-border-b">
<div>时间轴回来了</div>
<i class="aui-iconfont aui-icon-star aui-text-danger"></i>
</div>
<div class="aui-card-list-content-padded">
时间轴重新回归了,跟卡片列表布局结合可以完成丰富的布局样式
<img src="/static/auicss/img/l1.png">
</div>
<div class="aui-card-list-footer aui-border-t aui-font-size-12">
<div><i class="aui-iconfont aui-icon-note aui-font-size-14"></i> 666</div>
<div><i class="aui-iconfont aui-icon-laud aui-font-size-14"></i> 888</div>
<div><i class="aui-iconfont aui-icon-star aui-font-size-14"></i> 888</div>
</div>
</div>
</div>
</div>
<div class="aui-timeline-item">
<div class="aui-timeline-item-label-icon aui-bg-danger">
<i class="aui-iconfont aui-icon-like aui-text-white"></i>
</div>
<div class="aui-timeline-item-inner">
<div class="aui-card-list">
<div class="aui-card-list-content-padded">
AUI一直在努力,并会持久的更新下去,更方便快速的完成布局。感谢一路有大家的陪伴!!!🌹🌹🌹🌹🌹🌹
</div>
</div>
</div>
</div>
<div class="aui-timeline-item">
<div class="aui-timeline-item-label aui-bg-warning aui-text-white">NO.2</div>
<div class="aui-timeline-item-inner">
<div class="aui-card-list">
<div class="aui-card-list-header aui-border-b">更好的组合模式</div>
<div class="aui-card-list-content-padded">
<div class="aui-row aui-row-padded">
<div class="aui-col-xs-4">
<img src="/static/auicss/img/demo1.png" />
</div>
<div class="aui-col-xs-4">
<img src="/static/auicss/img/demo2.png" />
</div>
<div class="aui-col-xs-4">
<img src="/static/auicss/img/demo3.png" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="aui-timeline-item">
<div class="aui-timeline-item-label aui-bg-success aui-text-white">NO.3</div>
<div class="aui-timeline-item-inner">
<div class="aui-card-list">
<div class="aui-card-list-header aui-border-b">更好的组合模式</div>
<div class="aui-card-list-content">
<ul class="aui-list aui-media-list aui-list-noborder">
<li class="aui-list-item aui-list-item-middle">
<div class="aui-media-list-item-inner">
<div class="aui-list-item-media" style="width: 2.6rem;">
<img src="/static/auicss/img/demo5.png" class="aui-img-round" >
</div>
<div class="aui-list-item-inner aui-list-item-arrow">
<div class="aui-list-item-text">
<div class="aui-list-item-title aui-font-size-14">AUI</div>
<div class="aui-list-item-right">08:00</div>
</div>
<div class="aui-list-item-text">
www.auicss.com
</div>
</div>
</div>
</li>
<li class="aui-list-item aui-list-item-middle">
<div class="aui-media-list-item-inner">
<div class="aui-list-item-media" style="width: 2.6rem;">
<img src="/static/auicss/img/liulangnan.png" class="aui-img-round">
</div>
<div class="aui-list-item-inner aui-list-item-arrow">
流浪男
</div>
</div>
</li>
</ul>
</div>
<div class="aui-card-list-footer aui-text-center aui-border-t">
查看更多
</div>
</div>
</div>
</div>
</div>
</section>