@import "./common/var.css";

@keyframes slideUp {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@component-namespace xp {
  @b rank {
    overflow: hidden;
    width: 470px;
    height: 210px;
    @e wrap {
      animation-name: slideUp;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }
    @e item {
      position: relative;
      overflow: hidden;
      width: 100%;
      height: 30px;
      line-height: 30px;
      margin-top: 5px;
      &:first-child {
        margin-top: 0;
      }
      & > span {
        float: left;
        box-sizing: border-box;
      }
    }
    @e itemIcon {
      width: 30px;
      text-align: center;
      color: #fff;
      font-size: 15px;
      font-weight: bold;
      background: #0059B3;
    }
    @e itemName {
      width: 360px;
      padding-left: 15px;
      font-size: 14px;
      color: #71DFE9;
      background: #011F43;
    }
    @e itemValue {
      width: 80px;
      text-align: center;
      color: #1CCADA;
      font-size: 15px;
      font-weight: bold;
      background: #022E5E;
    }
    @e itemBar {
      position: absolute;
      bottom: 0;
      left: 0;
      max-width: 100%;
      height: 2px;
      background: #428085;
    }
  }
}
