index.less
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* 我的家庭页面样式 */
/* 渐变背景覆盖层 */
.bg-gradient-to-t {
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
/* 成员头像叠加效果 */
.avatar-overlap {
display: flex;
}
.avatar-overlap .avatar-item:not(:first-child) {
margin-left: -10rpx;
}
/* 兼容Tailwind的-space-x-2类名 */
.-space-x-2 > * + * {
margin-left: -10rpx !important;
}
/* 确保头像圆形显示 */
.rounded-full {
border-radius: 50%;
}
/* 按钮悬停效果 */
.bg-blue-500:active {
background-color: #2563eb;
}
.bg-red-500:active {
background-color: #dc2626;
}
/* 卡片阴影效果 */
.shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
/* 固定底部按钮样式 */
.fixed {
position: fixed;
}
/* 空状态图标居中 */
.text-center {
text-align: center;
}
/* 响应式间距 */
.space-y-4 > * + * {
margin-top: 16rpx;
}
.gap-3 {
gap: 12rpx;
}
/* 文本省略 */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}