@import '../icon/icon.scss';
.nut-theme-dark {
  .nut-noticebar {
    .wrap {
      .content {
        a {
          color: $noticebar-color;
        }
      }
    }
    .nut-noticebar-vertical {
      .horseLamp_list {
        .custom-item {
          color: $noticebar-color;
        }
      }
    }
  }
}
.nut-noticebar {
  width: 100%;
  .nut-noticebar-page {
    display: flex;
    padding: $noticebar-box-padding;
    height: $noticebar-height;
    font-size: $noticebar-font-size;
    position: relative;
    align-items: center;
    background: $noticebar-background;
    color: $noticebar-color;
    &.wrapable {
      height: auto;
      padding: $noticebar-wrapable-padding;
      .wrap {
        height: auto;
        .content {
          position: relative;
          white-space: normal;
          word-wrap: break-word;
        }
      }
    }

    .withicon {
      position: relative;
      padding-right: 40px;
    }
    .left-icon {
      height: $noticebar-left-icon-width;
      min-width: $noticebar-left-icon-width;
      margin: $noticebar-lefticon-margin;
      background-size: 100% 100%;
    }
    .right-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: $noticebar-right-icon-width;
      margin: $noticebar-righticon-margin;
    }
    .wrap {
      display: flex;
      flex: 1;
      height: $noticebar-line-height;
      line-height: $noticebar-line-height;
      overflow: hidden;
      position: relative;
    }
    .content {
      position: absolute;
      white-space: nowrap;
      &.nut-ellipsis {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    // 只跑一次
    .play {
      animation: nut-notice-bar-play linear both running;
    }
    .play-infinite {
      animation: nut-notice-bar-play-infinite linear infinite both running;
    }
    .play-vertical {
      animation: nut-notice-bar-play-vertical linear infinite both running;
    }
  }

  @keyframes nut-notice-bar-play {
    to {
      transform: translate3d(-100%, 0, 0);
    }
  }

  @keyframes nut-notice-bar-play-infinite {
    to {
      transform: translate3d(-100%, 0, 0);
    }
  }
  // 垂直方向的滚动
  @keyframes nut-notice-bar-play-vertical {
    to {
      transform: translateY($noticebar-height);
    }
  }

  // 纵向
  .nut-noticebar-vertical {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: $noticebar-height;
    font-size: $noticebar-font-size;
    overflow: hidden;
    padding: $noticebar-box-padding;
    background: $noticebar-background;
    color: $noticebar-color;
    .left-icon {
      height: $noticebar-left-icon-width;
      min-width: $noticebar-left-icon-width;
      margin: $noticebar-lefticon-margin;
      background-size: 100% 100%;
      display: flex;
      align-self: center;
    }
    .horseLamp_list {
      margin: 0;
      padding: 0;
      display: block;
      flex: 1;
      .horseLamp_list_item {
        display: flex;
        align-items: center;
        height: $noticebar-height;
        width: 100%;
      }
    }
    .nut-noticebar__inner {
      display: flex;
      height: 100%;
      width: 100%;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      flex-direction: column;
    }

    .go {
      align-self: center;
      display: flex;
      justify-content: center;
      width: $noticebar-right-icon-width;
      margin: $noticebar-righticon-margin;
    }
  }
}
