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

183 lines
3.4 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-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-10 13:38:19 +08:00
padding: 20rpx 0;
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-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;
min-height: 100rpx;
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-02-06 13:34:15 +08:00
}
2023-01-11 16:33:13 +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 {
margin: 0 30rpx;
background: $uni-theme-white;
border-radius: 12rpx;
background: $uni-color-primary;
padding: 30rpx 10rpx 40rpx;
display: grid;
grid-gap: 60rpx 0;
grid-template-columns: 1fr 1fr 1fr;
2023-02-10 13:38:19 +08:00
2023-02-09 08:50:01 +08:00
.header-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx;
2023-02-10 13:38:19 +08:00
2023-02-09 08:50:01 +08:00
.header-item-value {
2023-02-10 13:38:19 +08:00
font-size: 40rpx;
2023-02-09 08:50:01 +08:00
margin-bottom: 10rpx;
}
}
}
2023-02-14 13:34:00 +08:00
}
.btn {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
background: $uni-theme-blue;
color: #fff;
height: 80rpx;
border-radius: 12rpx;
}
.btn-small {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 40rpx;
background: $uni-theme-blue;
color: #fff;
height: 60rpx;
font-size: 24rpx;
border-radius: 12rpx;
2023-02-09 08:50:01 +08:00
}