Files
phone-app------test1-/pages/WorkSpace/TemplateSpace/TemplateSpace.css
2026-06-02 10:42:33 +08:00

101 lines
1.7 KiB
CSS

/* 编辑模板弹窗 */
.edit-template-wrapper {
}
.template-grid {
width: 100%;
display: grid;
grid-template-columns: repeat(2, 1fr);
padding: 20rpx;
box-sizing: border-box;
gap: 20rpx;
align-items: start;
}
.template-card {
display: flex;
flex-direction: column;
box-sizing: border-box;
border-radius: 20rpx;
border: 1rpx solid #ddd;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
overflow: hidden;
background-color: #fff;
}
.template-name {
width: 100%;
background: linear-gradient(to right, rgba(0, 122, 255, 0.8), rgba(170, 170, 255, 0.8));
color: #fff;
font-weight: bold;
font-size: 18px;
padding: 10rpx 20rpx;
box-sizing: border-box;
}
.template-content {
display: flex;
flex-wrap: wrap;
min-height: 200rpx;
padding: 18rpx;
margin: 6rpx 6rpx 0 6rpx;
box-sizing: border-box;
border: 1px solid #eee;
border-radius: 20rpx;
box-shadow: 2rpx 5rpx 8rpx rgba(170, 170, 255, 0.3);
overflow: hidden;
}
.template-content-text {
width: 100%;
color: #666;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
/* 限制显示行数 */
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
word-break: break-all;
line-height: 1.4;
}
.template-info-wrapper {
padding: 0 16rpx;
}
.template-item {
display: flex;
flex-direction: column;
color: #007aff;
font-size: 12px;
}
.template-item .background-style {
display: flex;
box-sizing: border-box;
border-radius: 10rpx;
align-self: flex-start;
margin-top: 6rpx;
}
.template-option {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10rpx;
}
.template-option .iconfont {
color: #007aff;
}
.iconfont.icon-favorite-fill {
color: #ffaa00;
}