blob: d1968d441997898998a0653294944a7c991c289b [file] [log] [blame]
Krishyaaffe8102025-06-08 00:44:46 +08001.group-detail {
2 padding: 2rem;
3 background: #fdf7f2;
4 font-family: 'Segoe UI', sans-serif;
5 color: #5e4638;
6}
7
8.group-title {
9 font-size: 2rem;
10 margin-bottom: 1.5rem;
11 border-bottom: 2px solid #eacfc0;
12 padding-bottom: 0.5rem;
13}
14
15.group-section {
16 margin-top: 5%;
17}
18
19.member-list {
20 display: flex;
21 flex-wrap: wrap;
22 gap: 1rem;
23}
24
25.member-card {
26 background: #fff2ef;
27 border: 1px solid #f3d9d4;
28 border-radius: 10px;
29 padding: 1rem;
30 width: 120px;
31 text-align: center;
32 box-shadow: 2px 2px 5px #f0cfc9;
33}
34
35.member-card img {
36 width: 60px;
37 height: 60px;
38 border-radius: 50%;
39 margin-bottom: 0.5rem;
40}
41
42.post-list {
43 display: flex;
44 flex-direction: column;
45 gap: 1rem;
46 margin-top: -2%;
47 margin-left: -1%;
48}
49
50.post-card {
51 background: #fffaf9;
52 border-left: 5px solid #d8a79e;
53 padding: 1rem;
54 border-radius: 8px;
55 box-shadow: 1px 1px 6px #e3ccc6;
56}
57
58.post-card h3 {
59 color: #b56b5c;
60 margin-bottom: 0.5rem;
61}
62
63.post-card span {
64 display: block;
65 font-size: 0.85rem;
66 color: #8c6f63;
67 margin-top: 0.25rem;
68}
69
70.like-count {
71 font-size: 5rem;
72 vertical-align: middle;
73 display: flex;
74 align-items: center;
75}
76
77
78.group-section h2 {
79 color: #555;
80 margin-top: 0;
81 border-bottom: 1px solid #eee;
82 padding-bottom: 10px;
83}
84
85
86.post-card {
87 border: 1px solid #eee;
88 border-radius: 6px;
89 padding: 15px;
90 transition: box-shadow 0.3s;
91}
92
93.post-card:hover {
94 box-shadow: 0 4px 12px rgba(0,0,0,0.08);
95}
96
97/* .post-header {
98 margin-bottom: 10px;
99} */
100
101.post-title {
102 margin: 0 0 8px 0;
103 color: #333;
104 font-size: 1.1rem;
105}
106
107
108.author-avatar {
109 width: 70px;
110 height: 70px;
111 border-radius: 50%;
112 margin-right: 15px;
113 vertical-align: middle;
114}
115
116.comment-button:hover {
117 color: #40a9ff;
118}
119
120.comments-section {
121 margin-top: 15px;
122 padding-top: 15px;
123 border-top: 1px solid #eee;
124}
125
126.comments-title {
127 font-size: 1rem;
128 color: #666;
129 margin-bottom: 10px;
130}
131
132.comment-item {
133 margin-bottom: 15px;
134 padding-bottom: 10px;
135 border-bottom: 1px solid #f5f5f5;
136}
137
138.comment-header {
139 display: flex;
140 align-items: center;
141 gap: 10px;
142 margin-bottom: 5px;
143}
144
145.comment-avatar {
146 width: 35px;
147 height: 35px;
148 border-radius: 50%;
149}
150
151.comment-author {
152 font-weight: bold;
153 color: #333;
154}
155
156.comment-time {
157 font-size: 0.8rem;
158 color: #999;
159}
160
161.comment-content {
162 color: #555;
163 margin-left: 45px;
164}
165
166.empty-message {
167 color: #999;
168 text-align: center;
169 padding: 20px 0;
170}
171
172/* GroupDetail.css */
173.member-link {
174 text-decoration: none; /* 移除下划线 */
175 color: inherit; /* 继承父元素颜色 */
176 display: block; /* 使链接覆盖整个卡片 */
177}
178
179.member-card {
180 transition: transform 0.2s, box-shadow 0.2s;
181 cursor: pointer; /* 显示手型光标 */
182}
183
184.member-card:hover {
185 transform: translateY(-4px);
186 box-shadow: 0 8px 16px rgba(0,0,0,0.08);
187 border-color: #eacfc0; /* 悬停时边框颜色变化 */
188}
189
190.member-name {
191 margin-top: 8px;
192 white-space: nowrap; /* 防止名称换行 */
193 overflow: hidden;
194 text-overflow: ellipsis; /* 超出部分显示省略号 */
195}
196
197/* GroupDetail.css */
198.post-actions-bar {
199 display: flex;
200 justify-content: space-between;
201 align-items: center;
202 margin: 20px 0;
203 padding: 10px;
204 background-color: #fff8f5;
205 border-radius: 6px;
206 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
207}
208
209.create-post-btn {
210 background-color: #b56b5c;
211 color: white;
212 border: none;
213 border-radius: 4px;
214 padding: 10px 16px;
215 font-size: 16px;
216 font-weight: 500;
217 cursor: pointer;
218 transition: all 0.3s;
219 display: flex;
220 align-items: center;
221}
222
223.create-post-btn:hover {
224 background-color: #9c5a4c;
225 transform: translateY(-1px);
226 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
227}
228
229.create-post-btn:active {
230 transform: translateY(0);
231 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
232}
233
234.login-hint {
235 color: #999;
236 font-style: italic;
237 margin: 0;
238}
239
240/* GroupDetail.css */
241.post-list-header {
242 margin-bottom:2%;
243}
244
245.create-post-btn {
246 background-color: #b56b5c;
247 color: white;
248 border: none;
249 border-radius: 4px;
250 padding: 10px 16px;
251 font-size: 16px;
252 font-weight: 500;
253 cursor: pointer;
254 transition: all 0.3s;
255 display: flex;
256 align-items: center;
257}
258
259.create-post-btn:hover {
260 background-color: #9c5a4c;
261 transform: translateY(-1px);
262 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
263}
264
265.create-post-btn:active {
266 transform: translateY(0);
267 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
268}
269
270.login-hint {
271 color: #999;
272 font-style: italic;
273 margin: 0;
274 padding: 8px 0;
275}
276
277/* 米棕色背景 + 深粉色按钮 */
278.create-post-btn {
279 background-color: #d36c6c;
280 color: #fff;
281 border: none;
282 padding: 8px 16px;
283 font-size: 16px;
284 border-radius: 8px;
285 cursor: pointer;
286 transition: background-color 0.3s;
287}
288
289.create-post-btn:hover {
290 background-color: #b45555;
291}
292
293/* 对话框背景遮罩 */
294.modal-overlay {
295 position: fixed;
296 top: 0;
297 left: 0;
298 width: 100%;
299 height: 100%;
300 background-color: rgba(100, 80, 60, 0.6);
301 display: flex;
302 align-items: center;
303 justify-content: center;
304 z-index: 1000;
305}
306
307/* 对话框内容区 */
308.modal-content {
309 background-color: #f5f0e6;
310 padding: 24px;
311 border-radius: 12px;
312 width: 90%;
313 max-width: 600px;
314 position: relative;
315 box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
316 animation: fadeIn 0.3s ease-out;
317}
318
319/* 关闭按钮 */
320.modal-close {
321 position: absolute;
322 top: 10px;
323 right: 16px;
324 font-size: 24px;
325 background: none;
326 border: none;
327 color: #d36c6c;
328 cursor: pointer;
329}
330
331/* 动画效果 */
332@keyframes fadeIn {
333 from { opacity: 0; transform: scale(0.95); }
334 to { opacity: 1; transform: scale(1); }
335}