@mixin dateItemStart($name,$backgroundColor) {
  &.#{$name} {
    & > div {
      position: relative;

      &:after {
        position: absolute;
        top: 0;
        bottom: 0;
        right: -3px;
        width: 3px;
        background-color: $backgroundColor;
        content: '';
      }
    }
  }
}

@mixin dateItemHover($name,$backgroundColor) {
  &.#{$name} {
    & > div {
      position: relative;

      &:after {
        position: absolute;
        top: 0;
        bottom: 0;
        right: -3px;
        width: 3px;
        background-color: $backgroundColor;
        content: '';
      }

      &:before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: -3px;
        width: 3px;
        background-color: $backgroundColor;
        content: '';
      }
    }
  }
}

@mixin dateItemEnd($name,$backgroundColor) {
  &.#{$name} {
    & > div {
      position: relative;

      &:before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: -3px;
        width: 3px;
        background-color: $backgroundColor;
        content: '';
      }
    }

    &.date-base-panel-item-hover-start {
      & > div {
        position: relative;

        &:before, &:after {
          display: none;
        }
      }
    }
  }
}
