learningCenter.sass 2.9 KB
/* pages/tab/learningCenter/learningCenter.wxss */
page {
  background: #F7F8FA;
}
.page-title {
	font-size: var(--fontSize34);
	color: #222222;
	font-weight: 600;
}
.bg {
	width: 100%;
	height: var(--fontSize480);
	background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/page-bg.png') no-repeat;
	background-size: 100% var(--fontSize480);
	position: fixed;
	left: 0;
	top: 0;
	z-index: -1;
}
.container {
	box-sizing: border-box;
	height: 100vh;
	.title {
		color: #292D33;
		font-weight: 500;
		font-size: 30rpx;
		margin-bottom: 4rpx;
	}
	.search-box {
		margin-top: 24rpx;
		height: 72rpx;
		.search-input {
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;
			background: #FFFFFF;
			border-radius: 40rpx;
			position: relative;
			.placeholder-area {
				position: absolute;
				display: flex;
				align-items: center;
				padding-left: 24rpx;
				box-sizing: border-box;
				width: calc(100% - 72rpx);
				height: 100%;
				pointer-events: none;
				z-index: 1;
				.placeholder-text {
					color: #999EA8;
					font-size: 28rpx;
					margin-right: 16rpx;
				}

				.search-icon {
					width: 40rpx;
					height: 40rpx;
				}
			}
			.input {
				padding-left: 24rpx;
				width: calc(100% - 72rpx);
				box-sizing: border-box;
				font-size: 28rpx;
			}
			.input-placeholder {
				color: #999EA8;
			}
			.search-clear {
				position: absolute;
				top: 50%;
				transform: translateY(-50%);
				right: 26rpx;
				width: 36rpx;
				height: 36rpx;
			}
		}
	}
	.screen-box {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 24rpx 0 0;
		padding-bottom: 24rpx;
		.left {
			display: flex;
			align-items: center;
			gap: 16rpx;
			.item {
				height: 60rpx;
				border-radius: 16rpx;
				opacity: 1;
				background: #ffffff;
				display: flex;
				align-items: center;
				padding: 0 16rpx;
				font-size: 26rpx;
				color: #292D33;
				.text {
					max-width: 164rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
				.icon {
					width: 32rpx;
					height: 32rpx;
					margin-left: 4rpx;
				}
			}
		}
		.total {
			font-size: 26rpx;
			color: #999EA8;
		}
	}
	.sticky-box {
		padding: 40rpx 28rpx 0 28rpx;
	}
  .all-box {
    .all-list {
			padding: 0 28rpx;
      .list-box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(0, auto);
        gap: 16rpx;
        box-sizing: border-box;
        align-items: start;
      }
      .nothing {
        width: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        margin-top: 40rpx;
        font-size: 24rpx;
        color: #999999;
        .icon {
          width: 128rpx;
          height: 128rpx;
          margin-bottom: 8rpx;
        }
      }
      .end-text {
        text-align: center;
        padding: 36rpx 0;
        color: #999999;
        font-size: 24rpx;
      }
    }
  }
}