index.scss 2.33 KB
@use "./normalize.scss";
@use "./sprite.scss";
html,
body,
#app {
	color: #333333;
	font-family: Arial, Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, sans-serif;
	background-color: #fff;
	-webkit-overflow-scrolling: touch;
	height: 100%;
	overflow: hidden;
	background-color: transparent;

	// overflow: hidden;
	--themeColor: #2c66f7;
	/* 兼容 IOS<11.2 先constant再env */
	--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
	/* 兼容 IOS>11.2 */
	--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}

@font-face {
	font-family: "numberNor";
	font-style: normal;
	// font-weight: 500;
	font-display: swap;
	src:
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff2")
			format("woff2"),
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff")
			format("woff"),
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf")
			format("truetype");
}

@font-face {
	font-family: "numberBold";
	font-style: normal;
	// font-weight: 700;
	font-display: swap;
	src:
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff2")
			format("woff2"),
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff")
			format("woff"),
		url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf")
			format("truetype");
}

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

.flex {
	display: flex;
	align-items: center;
}

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

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

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

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

.y-center {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.box-center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.box-ce .list-box {
	padding: 16px;
}

.btn {
	padding: 0 12px;
	height: 24px;
	background: var(--themeColor);
	border-radius: 12px;
	color: #ffffff;
	margin-left: auto;
	font-size: 10px;
}