Newer
Older
XiaoGanWXMini / scss / global.scss
@zhangdeliang zhangdeliang on 29 Jul 2 KB 迁移
// 全局公共样式
html,
body {
	font-size: 28rpx;
	font-family: PingFang SC;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	color: #333;
}
uni-text,
.uni-forms-item__label,
button {
	font-size: 24rpx !important;
}
.uni-forms-item {
	margin-bottom: 35rpx !important;
}
.uni-forms-item__label {
	height: auto !important;
}
.checklist-box {
	margin-bottom: 8rpx !important;
}
.uni-forms-item__error {
	margin-bottom: 15rpx !important;
	font-size: 16rpx !important;
}

.uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
	font-size: 18rpx !important;
}
.uni-forms-item__content {
	margin-top: 10rpx;
}
.uni-data-checklist .checklist-group {
	justify-content: space-around;
}

page,
.homePage,
.questionNaire {
	height: 100%;
	background: url('@/static/images/homeBg.jpg') no-repeat;
	background-size: 100% 100%;
	overflow: auto;
}
img,
.richImgs {
	max-width: 100% !important;
}

// 上拉加载下拉刷新
.scrollContent {
	width: 100%;
	height: calc(100vh - var(--window-top) - 40rpx);
}

// 省略号
.ellipsis {
	overflow: hidden;
	white-space: nowrap; /* 防止文字换行 */
	text-overflow: ellipsis; /* 超出部分显示省略号 */
}
.flex {
	display: flex;
}
.flex-center {
	justify-content: center;
}

.projectForms {
	.uni-forms {
		background: #fff;
		padding: 30rpx;
		.uni-forms-item {
			display: flex;
			font-size: 30rpx;
		}
		.uni-forms-item.is-direction-left {
			flex-direction: column;
		}
	}
}

.noDatas {
	text-align: center;
	font-size: 26rpx;
	.imgs {
		width: 300rpx;
		height: 225rpx;
		margin-top: 30%;
	}
	.titles {
		margin-top: 15%;
		font-size: 25rpx;
		color: #7b7b7e;
	}
}
.file-picker__box {
	.file-picker__box-content {
		border-color: #adadad !important;
	}
	.icon-add {
		background-color: #adadad !important;
	}
}

// 公众列表样式
.publicList {
	display: flex;
	font-size: 28rpx;
	padding: 15rpx 10rpx;
	background: #fff;
	border-radius: 8rpx;
	.left {
		flex: 1;
		.title {
			font-weight: bold;
			font-size: 24rpx;
			height: 60rpx;
			margin-bottom: 35rpx;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
		}
	}
	.right {
		width: 250rpx;
		margin-left: 10rpx;
		.newsImg {
			width: 100%;
			height: 120rpx;
		}
	}
}
.uni-easyinput__content,
.uni-easyinput {
	border-radius: 10rpx !important;
}
::v-deep .uni-input-placeholder,
.uni-textarea-placeholder,
.uni-easyinput__placeholder-class {
	font-size: 18rpx !important;
}
::v-deep .uni-easyinput__content-textarea {
	font-size: 20rpx !important;
}
::v-deep .uni-easyinput__content-input {
	height: 60rpx !important;
	font-size: 20rpx !important;
}
::v-deep .uniui-search:before {
	font-size: 45rpx !important;
}
::v-deep .uni-icons,
.uni-icons:before {
	font-size: 40rpx !important;
}
::v-deep .csssprite {
	display: none;
}
::v-deep .uni-popup {
	z-index: 999 !important;
}