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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
| .cl-list-index {
| position: relative;
| height: 100%;
|
| &__search {
| display: flex;
| align-items: center;
| background-color: #fff;
| box-sizing: border-box;
| padding: 0 30rpx;
| height: 100rpx;
|
| cl-input {
| flex: 1;
| }
| }
|
| &__container {
| height: calc(100% - 100rpx);
|
| &:first-child {
| height: 100%;
| }
| }
|
| &__scroller {
| height: 100%;
|
| .group {
| .header {
| display: flex;
| align-items: center;
| height: 50rpx;
| padding: 0 30rpx;
| font-size: 26rpx;
| position: sticky;
| top: 0;
| z-index: 9;
| background-color: $cl-color-bg;
| line-height: 1;
|
| &.is-active {
| text {
| color: $cl-color-primary;
| }
| }
| }
|
| .container {
| background-color: #fff;
| }
|
| .item {
| display: flex;
| align-items: center;
| min-height: 80rpx;
| font-size: 26rpx;
| box-sizing: border-box;
| padding: 20rpx 30rpx;
|
| &:last-child {
| border-bottom: 0;
| }
|
| &:active {
| background-color: $cl-color-active;
| }
|
| &.is-disabled {
| opacity: 0.5;
| }
|
| .avatar {
| height: 80rpx;
| flex-shrink: 0;
| }
|
| .text {
| margin: 0 30rpx;
| }
| }
| }
| }
|
| &__alert {
| position: absolute;
| top: 0;
| right: 80rpx;
| bottom: 0;
| margin: auto;
| background: rgba(0, 0, 0, 0.5);
| width: 100rpx;
| height: 100rpx;
| border-radius: 10rpx;
| color: #fff;
| line-height: 100rpx;
| text-align: center;
| font-size: 48rpx;
| z-index: 100;
| }
|
| &__bar {
| display: flex;
| flex-direction: column;
| justify-content: center;
| position: absolute;
| right: 20rpx;
| top: 0;
| height: 100%;
| font-size: 24rpx;
| z-index: 20;
|
| .block {
| padding: 5rpx 10rpx;
|
| text {
| display: inline-flex;
| align-items: center;
| justify-content: center;
| height: 30rpx;
| width: 30rpx;
| border-radius: 30rpx;
| }
|
| &.is-active {
| text {
| background-color: $cl-color-primary;
| color: #fff;
| }
| }
| }
| }
| }
|
|