common.scss 5.96 KB
// nvue不能用标签命名样式,不能放在微信组件中,否则微信开发工具会报警告,无法使用标签名当做选择器
/* #ifndef APP-NVUE */
view,
page,
text,
button,
image,
textarea,
scroll-view,
input {
	box-sizing: border-box;
}
image {
	display: block;
}
button {
	margin: 0;
	padding: 0;
	background-color: #ffff;
}
button::after {
	border: none;
}
/* #endif */
/* #ifdef MP-ALIPAY */
input {
	background: transparent;
}
button {
	border: none;
}
/* #endif */
.u-flex {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
}
.u-flex-m {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	flex: 1;
	overflow: hidden;
}
.scroll-view_H {
	white-space: nowrap;
}
///////////////////////////////////////////////////////////////小程序、app抽取公共样式/////////////////////////////////////////////////////////////////////
.flex-column{
	display: flex;
	flex-direction: column;
}
.flex{
	display: flex;
}
.justify-center{
	display: flex;
	justify-content: center;
	align-items: center;
}
.mt-3{
	margin-top: 30rpx;
}
.ml-16{
	margin-left: 16rpx;
}
.mt-15{
	margin-top: 15rpx;
}
.mt-20{
	margin-top: 20rpx;
}
.mr-1{
	margin-right: 10rpx;
}
.mr-2{
	margin-right: 20rpx;
}
.ml-3{
	margin-top: 20rpx;
}
.ml-1{
	margin-left: 10rpx;
}
.pl-3{
	padding-left: 30rpx;
}
.w-100{
	width: 100%;
}
.w-300{
	width:300rpx;
}
.w-500{
	width:500rpx;
}
.h-25{
	height:25rpx;
}
.h-30{
	height:30rpx;
}
.h-140{
	height:140rpx;
}
//通用(设备、告警、摄像头分页头部组织和设备数和设备、告警里面的详情(左边的文本)
.ml-10{
	margin-left: 10rpx;
}
.text-org-bold {
	width:200rpx;
	color: #333333;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: 400;
	font-size: 15px;
}
.text-org-total {
	color: #666666;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: 400;
	font-size: 12px;
}
//通用(设备、告警分页)第一个文本
.text-bold {
	color: #333333;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: bold;
	font-size: 15px;
}
//(设备、告警,适用设备详情基础信息文本(右边的值的文本))第二个文本
.text-device-muted {
	font-size: 14px;
	font-family: PingFang SC-Regular, PingFang SC;
	font-weight: 400;
	color: #666666;
}
//(设备不适用告警)左边在线离线文本
.text-device-color {
	font-size: 13px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
}
//告警抽取(通用设备顶部的筛选文本)
.text-muted {
	font-size: 14px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #333333;
}
//告警抽取
.text-secondary {
	font-size: 14px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #999999;
}
//告警抽取
.text-no-color {
	font-size: 14px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
}
//告警抽取
.text-12 {
	font-size: 12px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
}
//文本溢出(通用)
.text-clip {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
//通用按钮提交(border框)
.btn-border {
	background: #377dff;
	border-radius: 20px !important;
}
//通用所有边框
.border-line {
	border-radius: 20px;
}
//首页
.home-text-muted {
	font-size: 14px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 500;
	color: #333333;
}
.home-text-total {
	font-size: 17px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: bold;
	color: #333333;
}
.home-text-total-bottom {
	font-size: 12px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #999999;
}
//登录
.login-text-muted {
	font-size: 30px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 600;
	color: #3a4759;
}
.splash-text-muted {
	font-size: 22px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 600;
	color: #3a4759;
}
.login-text-gray {
	font-size: 13px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #999999;
}
.login-btn {
	font-size: 18px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 500;
	color: #ffffff;
}
.login-phone {
	font-size: 14px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #ffffff;
}
.feed-back-text {
	font-size: 15px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #2f384e;
}
//筛选字体颜色
.select-text {
	font-size: 13px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #377dff !important;
}
.un-select-text {
	font-size: 13px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #333333 !important;
}
.un-bind-text {
	font-size: 16px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	// color: #333333;
	color: #ffffff;
}

.notify-detail-text {
	font-size: 16px;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: bold;
	color: #333333;
}
// 定义flex等分
@for $i from 0 through 12 {
	.u-flex-#{$i} {
		flex: $i;
	}
}

// 定义内外边距,历遍1-80
@for $i from 0 through 80 {
	// 定义字体大小
	.u-f-s-#{$i} {
		font-size: $i + rpx !important;
	}
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 得出:u-margin-30或者u-m-30
		.u-margin-#{$i},
		.u-m-#{$i} {
			margin: $i + rpx !important;
		}

		// 得出:u-padding-30或者u-p-30
		.u-padding-#{$i},
		.u-p-#{$i} {
			padding: $i + rpx !important;
		}

		@each $short, $long in l left, t top, r right, b bottom {
			// 缩写版,结果如: u-m-l-30
			// 定义外边距
			.u-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx !important;
			}

			// 定义内边距
			.u-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx !important;
			}

			// 完整版,结果如:u-margin-left-30
			// 定义外边距
			.u-margin-#{$long}-#{$i} {
				margin-#{$long}: $i + rpx !important;
			}

			// 定义内边距
			.u-padding-#{$long}-#{$i} {
				padding-#{$long}: $i + rpx !important;
			}
		}
	}
}
@keyframes show {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}
	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}