@import "mixins/mixins";
@import "common/var";

@include b(timeline-item) {
  display: flex;
  padding-bottom: 16px;
  width: 100%;

  @include e(wrapper) {
    position: relative;
    padding-left: 16px;
    flex: 1;
  }

  @include e(sidebar) {
    width: 14px;
    height: inherit;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction:column;
  }

  @include e(tail) {
    margin-top: 8px;
    flex: 1;
    width: 2px;
    background-color: #eeeeee;
  }

  @include e(icon) {
    color: $--color-white;
    font-size: $--font-size-small;
  }

  @include e(node) {
    width: 100%;
    background-color: $--color-silvery-grey;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;    

    @include m(normal) {
      left: 1px;
      width: $--timeline-node-size-normal;
      height: $--timeline-node-size-normal;
    }
    @include m(large) {
      left: -2px;
      width: $--timeline-node-size-large;
      height: $--timeline-node-size-large;
    }

    @include m(primary) {
      background-color: $--color-primary;
    }
    @include m(success) {
      background-color: $--color-success;
    }
    @include m(warning) {
      background-color: $--color-warning;
    }
    @include m(danger) {
      background-color: $--color-danger;
    }
  }

  @include e(dot) {
    width: 100%;  
    display: flex;
    justify-content: center;
    align-items: center;
  }

  @include e(content) {
    color: $--color-text-primary;
  }

  @include e(timestamp) {
    color: $--color-text-secondary;
    line-height: 1;
    font-size: $--font-size-small;

    @include when(top) {
      margin-bottom: 8px;
      padding-top: 4px;
    }
    @include when(bottom) {
      margin-top: 8px;
    }
  }
}
