119 lines
2.4 KiB
SCSS
119 lines
2.4 KiB
SCSS
![]() |
/* pages/index/index.wxss */
|
||
|
page {
|
||
|
padding: 32rpx 0;
|
||
|
background-color: #f6f6f6;
|
||
|
}
|
||
|
.home-page {
|
||
|
.t-fab {
|
||
|
z-index: 99;
|
||
|
}
|
||
|
|
||
|
.divider {
|
||
|
height: 1px;
|
||
|
background-color: #ccc;
|
||
|
margin: 36rpx 32rpx;
|
||
|
}
|
||
|
.list {
|
||
|
margin: 0 32rpx;
|
||
|
display: grid;
|
||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
|
gap: 32rpx;
|
||
|
.card {
|
||
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||
|
position: relative;
|
||
|
// aspect-ratio: 1/1;
|
||
|
min-height: 300rpx;
|
||
|
background-color: #fff;
|
||
|
border-radius: 18rpx;
|
||
|
padding: 18rpx;
|
||
|
.close-button {
|
||
|
position: absolute;
|
||
|
top: -24rpx;
|
||
|
right: -24rpx;
|
||
|
}
|
||
|
.field {
|
||
|
margin-top: 12rpx;
|
||
|
display: flex;
|
||
|
.indicator {
|
||
|
margin-top: 12rpx;
|
||
|
height: 24rpx;
|
||
|
width: 8rpx;
|
||
|
background-color: #ea7e41;
|
||
|
border-radius: 50rpx;
|
||
|
margin-right: 12rpx;
|
||
|
}
|
||
|
.content {
|
||
|
margin-top: 6rpx;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
.title {
|
||
|
font-size: large;
|
||
|
}
|
||
|
.value {
|
||
|
font-size: small;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&:nth-of-type(1) {
|
||
|
.indicator {
|
||
|
background-color: #ea7e41;
|
||
|
}
|
||
|
}
|
||
|
&:nth-of-type(2) {
|
||
|
.indicator {
|
||
|
background-color: #12b3a8;
|
||
|
}
|
||
|
}
|
||
|
&:nth-of-type(3) {
|
||
|
.indicator {
|
||
|
background-color: #dc7d85;
|
||
|
}
|
||
|
}
|
||
|
&:nth-of-type(4) {
|
||
|
.indicator {
|
||
|
background-color: #e0d2fd;
|
||
|
}
|
||
|
}
|
||
|
&:nth-of-type(5) {
|
||
|
.indicator {
|
||
|
background-color: #dc7d85;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.shake {
|
||
|
animation: shake-crazy 1s infinite linear;
|
||
|
}
|
||
|
}
|
||
|
.to-login {
|
||
|
height: 40vh;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes shake-crazy {
|
||
|
0% {
|
||
|
transform: translate(0px, 0px) rotate(0deg);
|
||
|
}
|
||
|
17% {
|
||
|
transform: translate(0.2px, 0.2px) rotate(2deg);
|
||
|
}
|
||
|
34% {
|
||
|
transform: translate(-0.2px, -0.2px) rotate(-2deg);
|
||
|
}
|
||
|
51% {
|
||
|
transform: translate(0px, -0.3px) rotate(0deg);
|
||
|
}
|
||
|
68% {
|
||
|
transform: translate(0.2px, -0.2px) rotate(2deg);
|
||
|
}
|
||
|
85% {
|
||
|
transform: translate(-0.2px, 0.2px) rotate(-2deg);
|
||
|
}
|
||
|
100% {
|
||
|
transform: translate(0px, 0.3px) rotate(0deg);
|
||
|
}
|
||
|
}
|