button,
uni-button,
swan-button{
	margin: 0;
	padding: 0;
	background-color: transparent;

	/* #ifdef MP-ALIPAY */
	border: none;
	/* #endif */

	/* #ifdef MP-WEIXIN || MP-BAIDU */
	&::after {
		border-color: transparent;
		border: none;
	}
	/* #endif */
}

/* #ifdef H5 || MP-WEIXIN */
button[type='default'],
uni-button[type='default'] {
	background-color: transparent;
}
/* #endif */

// 字体上下空隙
view,
uni-view {
	line-height: 1;
}

// 图片
img,
image,
uni-image {
	// 底部1像素
	display: block;
	// 初始化默认宽高
	width: 100%;
	height: 100%;
	// h5图片不完整展示
	overflow: inherit;
}

/* #ifdef MP-ALIPAY || MP-TOUTIAO */
textarea,
input {
	background-color: transparent;
}
/* #endif */

// 遍历生成4个方向的底部安全区
@each $d in top, right, bottom, left {
	.safe-area-inset-#{$d} {
		padding-#{$d}: 0;
		padding-#{$d}: constant(safe-area-inset-#{$d});
		padding-#{$d}: env(safe-area-inset-#{$d});
	}
}

//提升H5端uni.toast()的层级，避免被uView的modal等遮盖
/* #ifdef H5 */
uni-toast {
	z-index: 10090;
}
uni-toast .uni-toast {
	z-index: 10090;
}
/* #endif */

// 隐藏scroll-view的滚动条
::-webkit-scrollbar {
	display: none;
	width: 0 !important;
	height: 0 !important;
	-webkit-appearance: none;
	background: transparent;
}
