• XFT's avatar
    . · bde794d5
    XFT authored
    bde794d5
commitments.component.scss 2.35 KB
@import "~src/styles/variables";

:host {
  display: block;
}

.commitments {
  display: flex;
  flex-direction: column;

  & &__container {
    max-height: 400px;
    margin: 0 -24px;
  }


  & &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  & &__zero-balances {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: $offshift-primary-color;
    cursor: pointer;

    > span.material-icons {
      font-size: 16px;
    }

    > span:not(.material-icons) {
      font-weight: 600;
      font-size: 12px;
      line-height: 19px;
    }
  }

  & &__content {
    tr > th > div > span {
      opacity: 0.7;
      color: #1B0D3D;
    }

    tr > th > div > .commitments__zero-balances {
      color: $offshift-primary-color;
      cursor: pointer;
    }

    tr > th > div > span,
    tr > th > div > div {
      font-weight: 600;
      font-size: 12px;
      line-height: 19px;
    }

    tr > th,
    tr > td {
      background-color: #FFFFFF;
      border: 0;
    }

    tr > th:first-of-type,
    tr > td:first-of-type {
      width: 20px;
      padding-right: 0;
      padding-left: 24px;
    }

    tr > th:last-of-type,
    tr > td:last-of-type {
      padding-right: 24px;
      padding-top: 6px;
      padding-bottom: 6px;
    }

    tr > th:last-of-type > div,
    tr > td:last-of-type > div {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    tr > td:last-of-type > div {
      background: rgba(27, 13, 61, 0.05);
      border-radius: 4px;
      padding: 16px;
    }
  }

  & &__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
  }

  & &__text {
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: #1B0D3D;
  }

  & &__balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  & &__balance-usd {
    font-weight: 600;
    font-size: 12px;
    line-height: 19px;
    color: #1B0D3D;
    opacity: 0.7;
  }

  & &__button {
    width: 100%;
  }
}

.token {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  & &__icon {
    width: 16px;
    height: 16px;

    > img {
      width: 100%;
      height: 100%;
    }
  }

  & &__amount {
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: #1B0D3D;
  }
}