广州矛调粤政易端
xusd
7 days ago d27794814b69d18aeb8ee96a46cae91d5613570c
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
/* 草稿箱页面样式 */
.draft-box {
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
  
    &-navbar {
      background-color: #1a6fb8 !important; /* 保持与个人中心一致的顶部颜色 */
      .am-navbar-title {
        color: #fff !important; /* 确保标题是白色 */
      }
      .am-navbar-left-icon {
        color: #fff !important; /* 确保返回箭头是白色 */
      }
      flex-shrink: 0; // 防止导航栏被压缩
    }
  
    .am-navbar-content { // 尝试 targeting NavBarPage 的内容区 (需要验证) 
        display: flex;
        flex-direction: column;
        flex: 1; // 占据剩余空间
        overflow: hidden; // 防止内容溢出
    }
  
    /* 搜索区域 - 外层容器 */
    &-search {
      padding: 16px;
      background-color: #fff;
      border-bottom: 1px solid #f0f0f0;
      flex-shrink: 0; // 防止搜索区被压缩
    }
 
    /* 搜索区域 - 内层容器 */
    .search-inner-container {
      display: flex;
      align-items: center;
      background: #f2f3f5; // 内层容器灰色背景
      border-radius: 5px; // 内层容器圆角
      height: 36px;
      padding: 0 8px; // 内层容器左右内边距
      box-sizing: border-box;
 
      .search-input {
        flex: 1;
        margin-right: 8px;
        border: none;
        background: transparent;
        height: 100%;
        padding-left: 0; // 重置之前的 padding
 
        // 去除 antd input 的 focus 效果
        .ant-input,
        .ant-input:focus,
        .ant-input-focused {
            background: transparent;
            box-shadow: none !important;
            border-color: transparent !important;
            outline: none !important;
        }
        .ant-input-affix-wrapper,
        .ant-input-affix-wrapper:focus,
        .ant-input-affix-wrapper-focused {
            background: transparent !important;
            border-color: transparent !important;
            box-shadow: none !important;
            outline: none !important;
        }
 
        .ant-input-prefix {
           margin-right: 4px;
           color: #999;
        }
      }
 
      .search-button {
        position: relative; // 为了定位伪元素
        padding: 0 8px; // 按钮左右内边距,给文字和竖线空间
        width: auto; // 让宽度自适应内容
        height: auto; // 让高度自适应内容
        border: none;
        background: none !important; // 强制去除背景
        color: #1a6fb8;
        font-weight: 500;
        font-size: 15px;
        line-height: 36px;
        box-shadow: none !important; // 强制去除点击阴影
        cursor: pointer; // 保持指针样式
 
        // 添加左侧竖线
        &::before {
          content: '';
          position: absolute;
          left: 0; // 定位到按钮的左边
          top: 50%;
          transform: translateY(-50%);
          width: 1px;
          height: 14px; // 竖线高度
          background-color: #d9d9d9; // 竖线颜色
        }
      }
    }
  
    /* 记录总数 */
    &-summary {
    padding-left: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
      font-size: 15px;
      color: #000;
      font-weight: 400;
      flex-shrink: 0; // 防止摘要区被压缩
 
      .summary-total {
        color: #1a6fb8;
        font-weight: 500;
      }
    }
  
    /* 草稿列表 */
    &-list {
      flex: 1; // 占据剩余的垂直空间
      background-color: #f5f5f5;
      padding: 0 12px;
      overflow-y: auto; // 内容超出时滚动
  
      .ant-list-item {
        background-color: #fff;
        margin-bottom: 12px;
        border-radius: 8px;
        padding: 16px;
        border: none; // 移除默认边框
        display: flex; // 使用flex布局排列内容和按钮
        justify-content: space-between;
        align-items: flex-start; // 顶部对齐
      }
    }
 
    /* 列表项内容 */
    .draft-item-content {
        flex: 1; // 占据主要空间
    }
 
    /* 列表项标题 */
    .draft-item-title {
        font-size: 16px;
        color: #333;
        margin-bottom: 8px;
        font-weight: 500;
    }
 
    /* 标签区域 */
    .draft-item-tags {
        margin-bottom: 8px;
    }
 
    /* 标签样式 */
    .draft-item-tag {
        background-color: #e6f7ff;
        border-color: #91d5ff;
        color: #1890ff;
        font-size: 12px;
        font-weight: 400;
        margin-right: 8px;
        margin-bottom: 4px; // 标签换行时的间距
        padding: 2px 6px;
        border-radius: 4px;
    }
 
    /* 保存时间 + 操作按钮的容器 */
    .draft-item-bottom {
        display: flex;
        justify-content: space-between; // 时间靠左,按钮靠右
        align-items: center; // 垂直居中
        margin-top: 12px; // 与上方内容的间距
        padding-top: 12px; // 虚线上方的间距
        border-top: 1px dotted #ccc; // 添加虚线上边框
    }
 
    /* 保存时间 */
    .draft-item-time {
        font-size: 14px;
        color: #999;
        white-space: nowrap; // 防止时间换行
        margin-right: 8px; // 与按钮组的最小间距
    }
 
    /* 操作按钮区域 */
    .draft-item-actions {
        display: flex;
        align-items: center; // 垂直居中按钮
        gap: 8px; // 按钮之间的间距
    }
 
    /* 删除按钮 */
    .draft-item-delete-btn {
        border-color: #ff4d4f;
        color: #ff4d4f;
        border-radius: 16px;
        height: 32px;
        padding: 0 12px;
        font-size: 14px;
 
        &:hover, &:focus {
            border-color: #ff7875;
            color: #ff7875;
        }
    }
 
    /* 修改按钮 */
    .draft-item-modify-btn {
        border-radius: 16px;
        height: 32px;
        padding: 0 12px;
        font-size: 14px;
        background-color: #1A6FB8; // 修改背景色
        border-color: #1A6FB8; // 同时修改边框色
 
        &:hover,
        &:focus {
            background-color: #155a9b; // 添加 hover 效果
            border-color: #155a9b;
        }
    }
  
    /* 列表底部提示 */
    &-footer {
      text-align: center;
      color: #999;
      padding-top: 0px;
      padding-bottom: 12px;
      flex-shrink: 0; // 防止页脚被压缩
      background-color: #f5f5f5; // 确保背景色一致
      font-size: 14px;
      font-weight: 400;
      line-height: 22px;
    }
 
    /* 适配小屏幕 */
    @media screen and (max-width: 375px) {
        &-search { // 外层
            padding: 12px;
        }
        .search-inner-container { // 内层
            height: 32px;
            padding: 0 6px;
            .search-input {
                .ant-input-prefix {
                    margin-right: 2px;
                }
            }
            .search-button {
                font-size: 14px;
                line-height: 32px;
                padding: 0 6px; // 调整小屏幕下的 padding
                &::before {
                     height: 12px; // 调整小屏幕下的竖线高度
                }
            }
        }
        &-summary {
            padding-left: 12px;
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 13px;
            .summary-total {
               // margin: 0 2px; // 移除外边距
            }
        }
        &-list {
            padding: 0 12px;
            .ant-list-item {
                padding: 12px;
                margin-bottom: 10px;
            }
        }
        .draft-item-title {
            font-size: 15px;
        }
        .draft-item-tag {
            font-size: 12px;
        }
        .draft-item-bottom {
            margin-top: 10px;
            padding-top: 10px;
        }
        .draft-item-time {
            font-size: 14px;
        }
        .draft-item-delete-btn,
        .draft-item-modify-btn {
            height: 28px;
            padding: 0 10px;
            font-size: 13px;
        }
        &-footer {
            padding: 12px 0;
        }
        .am-navbar-content { // 如果目标类名正确
            // 小屏幕下的 flex 调整(如果需要)
        }
    }
  }