Files
app-govern/common/css/base.scss

280 lines
5.3 KiB
SCSS
Raw Normal View History

2023-01-11 16:33:13 +08:00
page {
2023-02-06 13:34:15 +08:00
background: #f3f4f5;
2023-01-11 16:33:13 +08:00
}
2023-02-01 16:59:32 +08:00
// mt0,mr0,mb0,ml0 --> mt100,mr100,mb100,ml100
@for $i from 0 through 100 {
.mt#{$i} {
2023-02-06 13:34:15 +08:00
margin-top: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.mr#{$i} {
2023-02-06 13:34:15 +08:00
margin-right: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.mb#{$i} {
2023-02-06 13:34:15 +08:00
margin-bottom: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.ml#{$i} {
2023-02-06 13:34:15 +08:00
margin-left: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.pt#{$i} {
2023-02-06 13:34:15 +08:00
padding-top: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.pr#{$i} {
2023-02-06 13:34:15 +08:00
padding-right: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.pb#{$i} {
2023-02-06 13:34:15 +08:00
padding-bottom: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
2023-02-01 16:59:32 +08:00
.pl#{$i} {
2023-02-06 13:34:15 +08:00
padding-left: #{$i}rpx;
2023-02-01 16:59:32 +08:00
}
2023-02-06 13:34:15 +08:00
}
2023-02-14 13:34:00 +08:00
.center {
2023-02-13 14:27:19 +08:00
display: flex;
align-items: center;
justify-content: center;
}
2023-03-08 13:45:57 +08:00
.space-between {
2023-02-28 08:49:16 +08:00
display: flex;
justify-content: space-between;
}
2023-02-14 13:34:00 +08:00
2023-01-11 16:33:13 +08:00
.hide-txt {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 1;
2023-02-06 13:34:15 +08:00
}
.clamp-txt {
2023-01-11 16:33:13 +08:00
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
word-break: break-all;
2023-02-06 13:34:15 +08:00
}
2023-01-11 16:33:13 +08:00
2023-02-06 13:34:15 +08:00
.fixed-btn {
position: fixed;
right: 80rpx;
bottom: 200rpx;
width: 126rpx;
height: 126rpx;
2023-02-07 17:59:54 +08:00
background: $uni-theme-white;
2023-02-06 13:34:15 +08:00
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.2);
image {
height: 66rpx;
width: 66rpx;
}
2023-01-11 16:33:13 +08:00
}
2023-02-06 13:34:15 +08:00
.grid-card {
border-radius: 12rpx;
margin-bottom: 20rpx;
2023-02-07 17:59:54 +08:00
2023-02-06 13:34:15 +08:00
.grid-card-title {
2023-02-20 14:19:28 +08:00
padding: 0 0 20rpx;
2023-02-06 13:34:15 +08:00
font-size: 28rpx;
color: #111;
font-weight: 700;
2023-01-11 16:33:13 +08:00
}
2023-02-06 13:34:15 +08:00
.grid-card-content-4,
2023-02-23 08:44:46 +08:00
.grid-card-content-2,
2023-07-24 08:47:20 +08:00
.grid-card-content-1,
2023-02-07 17:59:54 +08:00
.grid-card-content-3,
2023-02-10 13:38:19 +08:00
.grid-card-content-5,
.grid-card-content-6 {
2023-02-06 13:34:15 +08:00
display: grid;
2023-02-10 13:38:19 +08:00
border-left: 2rpx solid #ccc;
border-top: 2rpx solid #ccc;
2023-02-06 13:34:15 +08:00
font-size: 24rpx;
grid-template-columns: 1fr 1fr 1fr 1fr;
2023-02-07 17:59:54 +08:00
2023-02-06 13:34:15 +08:00
.item {
2023-02-10 13:38:19 +08:00
padding: 0 4rpx;
2023-02-06 13:34:15 +08:00
display: flex;
align-items: center;
2023-02-10 13:38:19 +08:00
justify-content: center;
text-align: center;
border-bottom: 2rpx solid #ccc;
border-right: 2rpx solid #ccc;
2023-07-24 08:47:20 +08:00
padding: 4rpx;
2023-02-10 13:38:19 +08:00
background: $uni-theme-white;
}
2023-02-14 13:34:00 +08:00
.item-title {
2023-02-10 13:38:19 +08:00
background: unset;
2023-07-24 08:47:20 +08:00
padding: 8rpx 4rpx;
2023-02-06 13:34:15 +08:00
}
2023-01-11 16:33:13 +08:00
}
2023-07-24 08:47:20 +08:00
.grid-card-content-1 {
grid-template-columns: 1fr;
}
2023-02-23 08:44:46 +08:00
.grid-card-content-2 {
2023-02-28 14:03:38 +08:00
grid-template-columns: 1fr 2fr;
2023-02-23 08:44:46 +08:00
}
2023-02-06 13:34:15 +08:00
.grid-card-content-3 {
2023-02-10 13:38:19 +08:00
grid-template-columns: 1fr 2fr 2fr;
2023-02-06 13:34:15 +08:00
}
2023-02-07 17:59:54 +08:00
.grid-card-content-5 {
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
2023-02-10 13:38:19 +08:00
.grid-card-content-6 {
2023-02-14 13:34:00 +08:00
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
2023-02-10 13:38:19 +08:00
}
2023-02-07 17:59:54 +08:00
}
2023-02-09 08:50:01 +08:00
.index {
.header {
2023-02-20 14:19:28 +08:00
margin: 0 20rpx;
2023-02-09 08:50:01 +08:00
display: grid;
2023-08-03 14:51:36 +08:00
grid-gap: 20rpx;
2023-08-10 09:18:17 +08:00
grid-template-columns: 1fr 1fr 1fr 1fr;
2023-02-09 08:50:01 +08:00
.header-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2023-08-03 14:51:36 +08:00
padding: 10rpx 10rpx 20rpx;
2023-08-10 09:18:17 +08:00
color: #fff;
2023-02-09 08:50:01 +08:00
font-size: 28rpx;
2023-08-10 09:18:17 +08:00
background: $uni-theme-color;
2023-08-03 14:51:36 +08:00
border-radius: 12rpx;
2023-02-09 08:50:01 +08:00
.header-item-value {
2023-08-03 14:51:36 +08:00
font-size: 32rpx;
}
2023-08-10 09:18:17 +08:00
.header-item-label {
font-size: 24rpx;
2023-02-09 08:50:01 +08:00
}
}
}
2023-02-14 13:34:00 +08:00
}
2023-02-17 09:03:47 +08:00
.nav {
position: sticky;
top: 0;
left: 0;
2023-02-20 14:19:28 +08:00
padding: 20rpx 20rpx 0;
padding-left: 0;
2023-02-17 09:03:47 +08:00
display: flex;
2023-02-20 14:19:28 +08:00
flex-wrap: wrap;
2023-02-17 09:03:47 +08:00
background: rgb(243, 244, 245);
z-index: 2;
2023-02-20 14:19:28 +08:00
2023-02-17 09:03:47 +08:00
.nav-menu {
2023-08-10 09:18:17 +08:00
padding: 6rpx 20rpx;
2023-02-17 09:03:47 +08:00
margin-left: 20rpx;
2023-02-20 14:19:28 +08:00
margin-bottom: 20rpx;
2023-08-10 09:18:17 +08:00
font-size: 24rpx;
2023-02-17 09:03:47 +08:00
border-radius: 8rpx;
background: #ebeaec;
color: #666;
&-active {
background: #dfe5f7;
2023-08-03 14:51:36 +08:00
color: $uni-theme-color;
2023-02-17 09:03:47 +08:00
}
2023-08-10 09:18:17 +08:00
&-btn {
background: $uni-theme-color;
color: #fff;
}
2023-02-17 09:03:47 +08:00
}
}
2023-02-14 13:34:00 +08:00
.btn {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
2023-08-03 14:51:36 +08:00
background: $uni-theme-color;
2023-02-14 13:34:00 +08:00
color: #fff;
height: 80rpx;
border-radius: 12rpx;
}
.btn-small {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 40rpx;
2023-08-03 14:51:36 +08:00
background: $uni-theme-color;
2023-02-14 13:34:00 +08:00
color: #fff;
height: 60rpx;
font-size: 24rpx;
border-radius: 12rpx;
2023-02-23 08:44:46 +08:00
}
2023-03-08 13:45:57 +08:00
.device {
2023-02-23 08:44:46 +08:00
/deep/ .uni-card:first-of-type {
margin-top: 0 !important;
}
2023-03-08 13:45:57 +08:00
2023-02-23 08:44:46 +08:00
/deep/ .uni-card__header {
border-bottom: none !important;
}
}
2023-03-08 13:45:57 +08:00
.content {
2023-02-23 08:44:46 +08:00
/deep/ .uni-forms-item:last-of-type {
margin-bottom: 0 !important;
}
2023-04-04 08:47:19 +08:00
position: relative;
2023-03-08 13:45:57 +08:00
}
.status-point-success {
display: inline-block;
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background: greenyellow;
overflow: hidden;
}
.status-point-error {
display: inline-block;
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background: red;
overflow: hidden;
2023-07-24 08:47:20 +08:00
}
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20rpx;
height: 80rpx;
background: #fff;
border-radius: 20rpx 20rpx 0 0;
overflow: hidden;
border-bottom: 1px solid #eee;
.popup-header-title {
font-size: 32rpx;
color: #333;
}
.popup-header-close {
font-size: 32rpx;
color: #666;
}
2023-08-03 14:51:36 +08:00
}