gift-detail.scss 4.65 KB
.gift-layout {
  padding: 10px 16px 106px;
  .box {
    background: #ffffff;
    box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
    border-radius: 4px;
    margin-bottom: 10px;

    .item {
      display: flex;
      align-items: center;
      min-height: 59px;
      padding: 0 16px;
      font-size: 14px;
      border-bottom: 1px solid rgba(195, 195, 195, 0.3);

      &:last-of-type {
        border-bottom: none;
      }
    }

    .label {
      color: #666666;
      width: 80px;
      flex-shrink: 0;

      span {
        display: block;
        font-size: 10px;
        transform: translateX(-7px);
      }
    }

    .value {
      color: #333;
      width: calc(100% - 90px);
      text-align: right;
      margin-left: auto;

      span {
        color: #f1515c;
      }
    }

    .detail-box {
      padding: 0 12px 8px 11px;

      .detail {
        border-bottom: 1px solid rgba(195, 195, 195, 0.3);

        &:last-of-type {
          border-bottom: none;
        }

        &-item {
          border-bottom: 1px solid rgba(195, 195, 195, 0.3);
          font-size: 12px;
          color: #333333;
          padding: 12px 5px;
          position: relative;

          &:last-of-type {
            border-bottom: none;
          }

          .name {
            font-size: 14px;

            &-tips {
              margin-left: 8px;
              width: 46px;
              height: 16px;
              background: #CBCBCB;
              border-radius: 4px;
              font-size: 10px;
              color: #FFFFFF;
            }
          }

          .num {
            color: #282829;
          }

          .price {
            color: #f1515c;
            margin-left: auto;
          }
        }

        &-title {
          margin: 11px 0 0 5px;
          height: 28px;
          background: rgba(57, 117, 198, 0.15);
          border-radius: 14px;
          font-size: 14px;
          color: #3975c6;
          padding: 0 12px;
          display: inline-flex;
        }

        .del {
          position: absolute;
          top: 12px;
          right: 2px;
        }

        .coupon-disabled {
          color: #999999;

          .num {
            color: #999999;
          }

          .price {
            color: #999999;
          }
        }
      }
    }
  }

  .readonly-box {
    padding: 10px 16px 20px;

    color: #333333;

    .title {
      font-size: 14px;
      margin-bottom: 20px;
      color: #666666;
    }

    .item {
      min-height: auto;
      padding: 0;
    }
  }

  .user-info {
    padding: 0 12px;
    height: 84px;
    border-bottom: 1px solid rgba(195, 195, 195, 0.3);
    font-weight: 600;
    font-size: 16px;
    color: #333333;

    .icon {
      width: 44px;
      height: 44px;
      margin-right: 12px;
      flex-shrink: 0;
    }
  }

  .btn {
    position: fixed;
    bottom: 16px;
    width: 175px;
    height: 36px;
    background: #3975c6;
    box-shadow: 0px 2px 4px 0px rgba(57, 117, 198, 0.2);
    border-radius: 21px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: all .5s;
  }

  .create {
    width: 343px;
    height: 42px;
  }

  .disabled-btn {
    background: #A2A2A2;
  }

  .add-box {
    height: 56px;

    .add-btn {
      width: 60px;
      height: 24px;
      background: #3975C6;
      box-shadow: 0px 2px 6px 2px rgba(57, 117, 198, 0.11);
      border-radius: 11px;
      border: 1px solid #3975C6;
    }
  }

  .radio-box {
    color: #333;
    font-size: 12px;

    .title {
      margin-bottom: 0;
    }

    .radio-item {
      margin-top: 20px;
      padding-left: 12px;

      .radio-input {
        margin-left: 16px;
        padding: 10px 0 4px 0;
        border-bottom: 1px solid #F8F8F8;

        .van-field {
          padding: 0;
          font-size: 12px;

        }
      }
    }
  }

  .textarea {
    .title {
      margin-bottom: 8px;
    }

    .van-field {
      padding: 8px;
      border: 1px solid #F1F1F1;
      box-sizing: border-box;
      height: 100px;
    }

    .van-field--min-height .van-field__control {
      height: 82px;
    }
  }
}

.radio {
  width: 12px;
  height: 12px;
  border: 1px solid #979797;
  box-sizing: border-box;
  border-radius: 100%;
  margin-right: 4px;
  transition: all .2s;
}

.radio-active {
  border-color: #3975C6;
  display: flex;
  justify-content: center;
  align-items: center;

  &::after {
    content: '';
    display: block;
    background: #3975C6;
    box-shadow: 0px 2px 6px 2px rgba(57, 117, 198, 0.11);
    border: 1px solid #3975C6;
    box-sizing: border-box;
    border-radius: 100%;
    animation: radioFrames .2s forwards;
  }
}

@keyframes radioFrames {
  0% {
    width: 1px;
    height: 1px;
  }

  100% {
    width: 6px;
    height: 6px;
  }
}