| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599 |
- 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;
- }
- }
|