daofu-applet/app.wxss
2024-01-29 17:42:38 +08:00

134 lines
2.1 KiB
Plaintext

/**app.wxss**/
@import './weui.wxss';
@import "colorui/main.wxss";
@import "colorui/icon.wxss";
page {
--main-theme: #346df5;
--green: #199F67;
--blue: #0460FE;
--red: #FF2626;
--org: #f59709;
--yellow: #ece24e;
background-color: #F2F4F7;
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
scroll-view {
background-color: #f5f5f5;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.v-div {
display: flex;
display: -webkit-flex;
flex-direction: column;
}
.h-div {
display: flex;
display: -webkit-flex;
flex-direction: row;
}
.v-center {
align-items: center;
}
.h-center {
justify-content: center;
}
.flex {
flex: 1;
}
.space-between {
justify-content: space-between;
}
/* 超出单行省略号 */
.ellipsis {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
/* 超出多行省略号 */
.ellipsis--l2 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.arrow {
width: 32rpx;
height: 32rpx;
color: #c6c6c6 !important;
}
.space {
height: calc(constant(safe-area-inset-bottom) + 30rpx);
height: calc(env(safe-area-inset-bottom) + 30rpx);
}
.submit {
margin: 30px 0;
padding: 0;
line-height: 40px;
font-weight: normal;
background: -webkit-linear-gradient(top, #54CBFD, #327DF4);
color: #fff;
}
.submit:active {
background: -webkit-linear-gradient(top, #54CBFD, #54CBFD);
}
.option {
position: fixed;
bottom: calc(constant(safe-area-inset-bottom) + 30rpx);
bottom: calc(env(safe-area-inset-bottom) + 30rpx);
left: 0;
right: 0;
padding: 16rpx 32rpx;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3;
z-index: 10;
}
.option .btn {
padding: 14rpx;
display: flex;
align-items: center;
justify-content: center;
background: #409CFF;
color: #FFFFFF;
border-radius: 12rpx;
}
.option .btn:active {
opacity: 0.8;
}
.pop .pop-header {
background: #cfd3d8;
color: #222222;
}