app.scss 2.09 KB
@font-face {
	font-family: "numberNor";
	src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf");
}

@font-face {
	font-family: "numberBold";
	src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf");
}

page {
	--primary-color: #2c66f7;
	--text-color: #333;
	/* 兼容 IOS<11.2 先constant再env */
	--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
	/* 兼容 IOS>11.2 */
	--envSafeAreaInsetBottom: env(safe-area-inset-bottom);

	@for $i from 1 through 1300 {
		--fontSize#{$i}: calc(#{$i}vmin / 7.5);
		--fontSizeContent#{$i}: calc(#{$i}vmin / 7.176);
	}

	@media screen and (min-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
		@for $i from 1 through 1300 {
			--fontSize#{$i}: calc(#{$i}vmin / 8.5);
			--fontSizeContent#{$i}: calc(#{$i}vmin / 6.719);
		}
	}

	image {
		width: 100%;
		height: 100%;
		vertical-align: top;
	}

	.y-center {
		top: 50%;
		transform: translateY(-50%);
	}

	.x-center {
		left: 50%;
		transform: translateX(-50%);
	}

	.box-center {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.text-hide {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.text-center {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.two-text {
		display: inline-block;
		overflow: hidden;
		text-overflow: ellipsis;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.isFullSucreen {
		box-sizing: border-box;
		padding-bottom: constant(safe-area-inset-bottom) !important;
		padding-bottom: env(safe-area-inset-bottom) !important;
		// padding-bottom: 34px !important;
	}

	.isFullSucreen-bottom {
		bottom: 34px !important;
	}

	.list-nothing {
		padding: var(--fontSize30) 0;
		text-align: center;
		font-size: var(--fontSize24);
		color: #999999;
	}

	.list-not {
		display: flex;
		align-items: center;
		justify-content: center;
		color: #999;
		font-size: var(--fontSize24);
		height: 100%;
	}

	.bgcw {
		background-color: #fff;
	}
}
.flex {
	display: flex;
	align-items: center;
}