activeBox.scss 3.75 KB
/* pages/tab/index/components/activeBox/activeBox.wxss */
.content-box{
  padding: 0 22rpx 50rpx 24rpx;
  .content-item{
		width: 100%;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    margin: 32rpx 0 8rpx 0;
    overflow: hidden;
    box-shadow: 0 5px 10px 0 rgba(204,133,122,0.16);
    border-radius: 32rpx;
		.item-bg{
      width: 100%;
      height: 100%;
      position: absolute;
      box-shadow: 0 10rpx 20rpx 0 rgba(204,133,122,0.16);
      z-index: -1;
      left: 0;
      top: 0;
      right: 0;
      image{
        object-fit: cover;
        background-size: 100% auto;
      }
		}
		.item-box{
      box-sizing: border-box;
			padding: 24rpx;
			width: 100%;
      height: 100%;
      .hot {
        color: #FE5662;
      }
      .active-btn{
        display: flex;
        margin: 24rpx 0 32rpx 0;
        justify-content: center;
        .btn{
          color: #EB4E4E;
          flex: 1;
          height: 64rpx;
          text-align: center;
          line-height: 64rpx;
          border-radius: 14rpx;
          background: rgba(255,255,255,0.16);
          border: 2rpx solid #EB4E4E;
          margin-right: 16rpx;
        }
        .btn:last-child{
          margin-right: 0;
        }
        .primary{
          color: #ffffff;
          height: 68rpx;
          border: none;
          line-height: 68rpx;
          background-image: linear-gradient(270deg, #FF3E7F 0%, #FE624B 100%);
        }
      }
      .task-box{
        margin-top: 24rpx;
        padding: 32rpx 24rpx;
        border-radius: 24rpx;
        background: #ffffff;
        // transition: all 0.1s linear;
        will-change: height;
      }
      .box-content{
        display: block;
        padding-bottom: 40rpx;
      }
      .hidden{
        height: 64rpx;
        padding: 0;
        background: transparent;
        margin-top: 0;
        transition: height .3;
        .box-content{
          display: none;
        }
      }
      .collapse{
        text-align: center;
        color: #4466F0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26rpx;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        .btn{
          display: flex;
          flex-flow: row;
        }
        .gg-chevron-down {
          box-sizing: border-box;
          position: relative;
          display: block;
          transform: scale(var(--ggs,1));
          width: 24rpx;
          height: 24rpx;
          border: 2rpx solid transparent;
          border-radius: 100rpx
        }
        .gg-chevron-down::after {
            content: "";
            display: block;
            box-sizing: border-box;
            position: absolute;
            width: 12rpx;
            height: 12rpx;
            border-bottom: 2rpx solid;
            border-right: 2rpx solid;
            transform: rotate(45deg);
            left: 8rpx;
            top: 0;
        }
        .gg-chevron-up {
          box-sizing: border-box;
          position: relative;
          display: block;
          transform: scale(var(--ggs,1));
          width: 24rpx;
          height: 24rpx;
          border: 2rpx solid transparent;
          border-radius: 100rpx
        }
        .gg-chevron-up::after {
            content: "";
            display: block;
            box-sizing: border-box;
            position: absolute;
            width: 12rpx;
            height: 12rpx;
            border-top: 2rpx solid;
            border-right: 2rpx solid;
            transform: rotate(-45deg);
            left: 8rpx;
            bottom: 0
        }
      }
		}
  }
  .content-item:first-child{
    margin: 16rpx 0 8rpx 0;
  }
  .canvas-box {
    position: absolute;
    left: -9999rpx;
    top: -9999rpx;
    width: 750rpx;
    height: 750rpx;
  }
}