chowa
Version:
UI component library based on React
115 lines (104 loc) • 2.59 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cw-timeline {
display: flex;
flex-direction: column;
margin: 0;
padding: 12px;
list-style: none;
font-size: 14px;
color: #616a6e; }
.cw-timeline-item {
position: relative;
display: flex;
flex-direction: row;
align-items: flex-start;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-timeline-item:not(:last-child) {
padding-bottom: 18px; }
.cw-timeline-item:not(:last-child):before {
content: '';
position: absolute;
width: 2px;
height: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #e6ecf5;
top: 16px;
z-index: 1; }
.cw-timeline-item-header {
overflow: hidden;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
flex: none;
margin: 0;
padding: 0;
box-sizing: border-box;
height: 22px;
width: 22px; }
.cw-timeline-item-dot {
border-radius: 50%;
background-color: #7774e7;
border: 2px solid #fff;
flex: none;
width: 10px;
height: 10px;
margin: 0;
padding: 0;
display: inline-block; }
.cw-timeline-item-icon {
width: 18px;
height: 18px;
border-radius: 50%;
margin: 0;
padding: 0;
background-color: #fff;
text-align: center;
line-height: 18px; }
.cw-timeline-item-content {
margin: 0;
padding: 0 6px;
box-sizing: border-box;
flex: auto;
line-height: 1.5; }
.cw-timeline-item-left:before {
left: 10px; }
.cw-timeline-item-left .cw-timeline-item-content {
text-align: left; }
.cw-timeline-item-right {
flex-direction: row-reverse; }
.cw-timeline-item-right:before {
right: 10px; }
.cw-timeline-item-right .cw-timeline-item-content {
text-align: right; }
.cw-timeline-alternate .cw-timeline-item-left {
padding-left: 11px;
margin-left: 50%; }
.cw-timeline-alternate .cw-timeline-item-left .cw-timeline-item-header {
position: absolute;
top: 0;
left: -11px;
z-index: 5; }
.cw-timeline-alternate .cw-timeline-item-left:not(:last-child):before {
left: -1px; }
.cw-timeline-alternate .cw-timeline-item-right {
margin-right: 50%;
padding-right: 11px; }
.cw-timeline-alternate .cw-timeline-item-right .cw-timeline-item-header {
position: absolute;
top: 0;
right: -11px;
z-index: 5; }
.cw-timeline-alternate .cw-timeline-item-right:not(:last-child):before {
right: -1px; }