.el-message {
	border-radius: 10px;

	.el-message__icon {
		font-size: 18px;
	}

	.el-message__content {
		line-height: 18px;
	}

	&.el-message--info {
		border-color: var(--color-primary-light-8);
	}

	// 是否要边框
	&:not(.y-message-border) {
		background: rgba(255, 255, 255, 1);
		box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
		border-radius: 10px;
		border: none;

		.el-message__content {
			color: inherit;
		}
	}

	// 加载中
	&.y-message-loading .el-message__icon {
		animation: rotating 1.5s linear infinite;

		&:before {
			content: '\e644';
			font-family: 'y-icon' !important;
			font-style: normal !important;
		}

		/* 定义旋转动画 */
		@keyframes rotating {
			0% {
				transform: rotate(0deg);
			}
			100% {
				transform: rotate(360deg);
			}
		}
	}

	// 居中
	&.y-center {
		top: 50% !important;
		transform: translateY(-50%) !important;
	}
}
