material.sass 1.63 KB
/* packageStudy/pages/sceneMarket/components/material/material.wxss */
.material-item {
  display: flex;
  position: relative;
  margin: 0 24rpx 24rpx;

  .status {
    position: absolute;
    right: 0;
    top: 0;
    height: 40rpx;
    line-height: 40rpx;
    width: fit-content;
    padding: 0 12rpx;
    font-size: 22rpx;
    color: #999999;
    background: #9999991a;
    border-radius: 4rpx;
  }

  .status-green {
    color: #35c376;
    background: #35c3761a;

  }

  .icon {
    width: 128rpx;
    height: 128rpx;
    margin-right: 16rpx;
    flex-shrink: 0;
    position: relative;

    .image {
      width: 100%;
      height: 100%;
      border-radius: 8rpx;
      overflow: hidden;
    }

    .label {
      display: flex;
      align-items: center;
      padding: 0 6rpx;
      position: absolute;
      width: fit-content;
      color: #ffffff;
      left: 8rpx;
      top: 8rpx;
      height: 28rpx;
      background: #00000066;
      font-size: 20rpx;
    }
  }

  .text {
    width: calc(100% - 144rpx);

    .title {
      width: calc(100% - 98rpx);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #333333;
      font-size: 30rpx;
      font-weight: 700;
    }

    .tags {
      display: flex;
      align-items: center;
      gap: 0 8rpx;
      margin: 8rpx 0;

      .tag {
        display: flex;
        align-items: center;
        height: 40rpx;
        background: #ff9d0a1a;
        padding: 0 12rpx;
        width: fit-content;
        color: #ff9d0a;
        font-size: 22rpx;
        border-radius: 4rpx;
      }
    }

    .date {
      color: #999999;
      font-size: 24rpx;
    }
  }
}