statisticsItem.scss 4.08 KB
.text-hide {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.statistics-item-wrapper {
	background-color: white;
	padding: var(--fontSize16) 0;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: var(--fontSize24);
	position: relative;
	transition: background 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
	&.is-tap {
		&:active {
			background: rgb(252, 252, 252);
		}
	}
	.title-wrapper {
		display: flex;
		align-items: center;
		padding: var(--fontSize16) var(--fontSize32);
		border-bottom: 1px solid #eeeef0;
		overflow: hidden;
		.title-label-wrapper {
			flex-shrink: 0;
			flex: 1;
			overflow: hidden;
			margin-right: var(--fontSize32);
			.title-label {
				font-weight: 500;
				font-size: var(--fontSize28);
				line-height: var(--fontSize44);
				color: rgba(0, 0, 0, 0.9);
			}
			.title-sub-label {
				font-weight: 400;
				font-size: 10px;
				line-height: 16px;
				color: #00000066;
				&:empty + .title-sub-label__default {
					display: block;
				}
				&__default {
					display: none;
					font-weight: 400;
					font-size: 10px;
					line-height: 16px;
					color: #00000066;
				}
			}
		}
		.title-right-wrapper {
			max-width: 50%;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			overflow: hidden;
			.title-right-content {
				&:empty + .title-right-content__default {
					display: flex;
					align-items: center;
					.right-item {
						text-align: center;
						margin-left: var(--fontSize24);
						&:first-child {
							margin-left: 0;
						}

						.value {
							font-family: numberBold;
							font-weight: 700;
							font-style: Bold;
							font-size: 20px;
							line-height: 20px;
							text-align: center;
							color: var(--primary-color);
						}
						.label {
							font-weight: 400;
							font-size: 10px;
							line-height: 16px;
							text-align: center;
							color: #00000042;
						}
					}
				}
				&__default {
					display: none;
					flex: 1;
					flex-shrink: 0;
					flex-basis: 0;
				}
			}
			.arrow-right {
				flex-shrink: 0;
				flex-basis: 0;
				margin-left: var(--fontSize32);
			}
		}
	}

	.schema-wrapper {
		padding: 0 var(--fontSize32) var(--fontSize10);
		box-sizing: border-box;
		&.is-expanded {
			padding-bottom: var(--fontSize48);
		}
		.grid-container {
			margin-top: var(--fontSize16);
			border-radius: var(--fontSize16);
			overflow: hidden;
			position: relative;
		}
	}
}

.col-wrapper {
	overflow: hidden;
	.item-wrapper {
		background: rgba(248, 248, 248, 1);
		padding: var(--fontSize16) var(--fontSize20);
		overflow: hidden;
		box-sizing: border-box;
		width: 100%;
		&.tooltip-wrapper {
			.label {
				display: flex;
				align-items: center;
				.icon {
					width: 16px;
					height: 16px;
					margin-left: var(--fontSize8);
					flex-shrink: 0;
				}
			}
		}

		.label {
			font-weight: 400;
			font-size: var(--fontSize24);
			line-height: var(--fontSize40);
			color: rgba(0, 0, 0, 0.26);
		}
		.value {
			margin-top: var(--fontSize8);
			font-family: numberNor;
			font-weight: 500;
			font-size: var(--fontSize32);
			line-height: var(--fontSize40);
			color: var(--primary-color);
		}
	}
}

.toggle-more-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%);
}

.toggle-icon {
	margin-left: var(--fontSize4);
	transform: rotate(90deg);
	transition: transform 300ms ease;
}

.toggle-icon.is-expanded {
	transform: rotate(-90deg);
}

.toggle-more-content {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--fontSize16) 0;
	color: rgba(0, 0, 0, 0.9);
	font-size: var(--fontSize24);
	line-height: var(--fontSize40);
}

.toggle-more-text {
	line-height: inherit;
	font-weight: 400;
	font-size: var(--fontSize24);
	line-height: var(--fontSize40);
	color: #00000066;
}

.more-collapse {
	overflow: hidden;
	transition: height 300ms ease;
}

.more-inner {
	overflow: hidden;
}

.more-measure {
	position: absolute; 
	left: 0;
	top: 0;
	width: 100%;
	visibility: hidden;
	z-index: -1;
	pointer-events: none;
}