page { font-family: Source Han Sans CN Normal, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif; background-color: $bg-color-grey; font-weight: normal; } /* #ifdef H5 */ uni-page-head { display: none; } body { max-width: 1500rpx; margin: auto; } /* #endif */ view { box-sizing: border-box; line-height: 1.41176471; word-break: break-all; } image { width: 100%; height: 100%; } .bold { font-weight: bold; } .textarea-placeholder, .input-placeholder { color: #d2d2d2; } /* 宽高 */ .w-100 { width: 100%; } .w-50 { width: 50%; } /*文字大小*/ .font-10 { font-size: 20rpx !important; } .font-12 { font-size: 24rpx !important; } .font-14 { font-size: 28rpx !important; } .font-16 { font-size: 32rpx !important; } .font-24 { font-size: 48rpx !important; } /*行高*/ .line-h0 { line-height: 0 !important; } .line-h { line-height: 1 !important; } .line-h-sm { line-height: 1.2 !important; } .line-h-md { line-height: 1.5 !important; } .line-h-lg { line-height: 2 !important; } .line-h-big { line-height: 3 !important; } .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } /*标题颜色*/ .text-primary { color: #317Afd !important; } .text-secondary { color: #00b368 !important; } .text-danger { color: #dc3545 !important; } .text-warning { color: #ffc107 !important; } .text-title { color: #333; } .text-info { color: #666; } .text-grey { color: #999; } .text-sub { color: #cccccc; } .text-disable { color: #c0c0c0; } .text-white { color: #fff !important; } /*布局*/ .nowrap { white-space: nowrap; } .flex-1 { flex: 1; } .flex-2 { flex: 2; } .wrap { flex-wrap: wrap; } .d-flex { display: flex; } .d-block { display: block; } .d-inline-block { display: inline-block; } .row { display: flex; align-items: center; } .row-center { display: flex; align-items: center; justify-content: center; } .row-end { display: flex; align-items: center; justify-content: flex-end; } .row-between { display: flex; align-items: center; justify-content: space-between; } .between { display: flex; justify-content: space-between; } .row-around { display: flex; align-items: center; justify-content: space-around; } .column { display: flex; flex-direction: column; justify-content: center; } .column-center { display: flex; flex-direction: column; align-items: center; justify-content: center; } .column-around { display: flex; flex-direction: column; justify-content: space-around; } .column-end { display: flex; flex-direction: column; justify-content: flex-end; } .column-between { display: flex; flex-direction: column; justify-content: space-between; } .relative { position: relative; } /* 超出隐藏 */ .text-ellipsis { word-break: break-all; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; } .text-ellipsis2 { word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } // 边框间距 .mt-12{ margin-top: 24rpx !important; } .mr { margin-right: 18rpx !important; } .mb { margin-bottom: 24rpx !important; } .m-12 { margin: 24rpx; } .p-10 { padding: 20rpx; } .p-12 { padding: 24rpx; } .px-12 { padding: 26rpx 24rpx; } .px-13 { padding: 24rpx 26rpx; } /*按钮*/ .btn, .btn-plain { display: flex; align-items: center; justify-content: center; height: 96rpx; font-size: 32rpx; line-height: 1; border-radius: 12rpx; &::after{ display: none; } } .btn { color: #fff; background-image: linear-gradient(45deg, #57b1fe, #317afd); } // 镂空按钮 .btn-plain { color: #317afd; border: 1rpx #317afd solid; } .scroll-h { white-space: nowrap; width: 100%; } // 卡片 .ui-card { margin: 24rpx; background-color: #fff; border-radius: 12rpx; } // 上传图片样式 .ui-upload { display: flex; flex-wrap: wrap; align-items: flex-start; } .ui-upload_text { color: #999999; font-size: 20rpx; margin-top: 10rpx; } .ui-upload_img { display:block; width: 128rpx; height: 128rpx; border-radius: 8rpx; } .ui-upload_file, .ui-upload_input { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 128rpx; height: 128rpx; margin:0 16rpx 16rpx; background-color: #f3f4f5; border-radius: 8rpx; } .ui-upload_input image{ width: 60rpx; height: 60rpx; } .ui-upload_file .close{ position: absolute; top: -30rpx; right: -20rpx; z-index: 2; display: block; } .ui-upload_file video{ width: 128rpx; height: 128rpx; } // 下拉按钮 .picker { width: 240rpx; height: 60rpx; font-size: 24rpx; border: #DDDDDD 1rpx solid; border-radius: 8rpx; } .picker-wrapper { display: flex; align-items: center; justify-content: space-between; height: 60rpx; padding: 0 24rpx; color: #999999; line-height:1; } /** * =================== * 页面面板通用样式 用于 监控列表,可视监控,病虫害百科列表,病虫害详情,病虫害识别 * =================== */ .page-panel{ padding: 24rpx; margin-top: 24rpx; margin-bottom: 100rpx; background-color: #fff; } /** * =================== * 设计监测列表项通用样式 用于 气象监测列表,虫情监测列表页面 * =================== */ .forecast-item { display: flex; justify-content: space-between; padding: 26rpx 24rpx 34rpx; .title { position: relative; color: $color-title; line-height: 44rpx; &::before { content: ' '; display: inline-block; width: 18rpx; height: 18rpx; margin-right: 18rpx; border-radius: 100%; } } .title.on::before { background: linear-gradient(135deg, #57B1FE 0%, $color-primary 100%); } .title.off::before { background: $color-error; } .text { font-size: 28rpx; color: $color-subtitle; line-height: 40rpx; margin-top: 10rpx; } } /** * =================== * 设备监测详情卡片样式 气象监测详情,虫情监测详情页面 * =================== */ .forecast-card{ position: relative; display: flex; justify-content: space-between; overflow: hidden; padding: 28rpx 26rpx; margin-bottom: 48rpx; color: #fff; background: linear-gradient(135deg, #57B1FE 0%, #317AFD 100%); &::before, &::after { content: ' '; position: absolute; display: block; background: rgba(255, 255, 255, 0.3); border-radius: 100%; } &::before { top: 12rpx; right: 96rpx; width: 92rpx; height: 92rpx; } &::after { right: -96rpx; bottom: -108rpx; width: 276rpx; height: 276rpx; } .title { position: relative; line-height: 44rpx; &::before { content: ' '; display: inline-block; width: 18rpx; height: 18rpx; margin-right: 18rpx; background-color: #fff; border-radius: 100%; } } .text { margin-top: 14rpx; font: 28rpx/40rpx PingFang SC-中等, PingFang SC; line-height: 40rpx; } .state { padding-top: 6rpx; text-align: right; width: 120rpx; } } /** * =================== * 实时数据列表样式;使用模块:气象监测,虫情监测 * =================== */ .latest-list{ display: flex; flex-wrap: wrap; } .latest-item{ display: flex; width: calc(50% - 34rpx); padding: 26rpx 24rpx; margin-top: 0; margin-right: 0; &:nth-child(2n){ margin-left: 18rpx; margin-right: 24rpx; } .icon{ display: flex; align-items: center; justify-content: center; width: 88rpx; height: 88rpx; margin-right: 24rpx; background:$color-primary; border-radius: 100%; image{ display: block; width: 60rpx; height: 60rpx; } } .text{ line-height: 34rpx; } } /** * =================== * 表格数据列表样式 * =================== */ .table-style { margin-bottom: 42rpx; .uni-table-th, .uni-table-td { color: #333333 !important; font-weight: normal !important; font-size: 24rpx !important; line-height: 34rpx !important;; text-align: center !important; } .uni-table-th { background-color: #F9F9F9 !important; padding: 16rpx 20rpx !important; } .uni-table-td { padding: 12rpx 20rpx; } }