blob: 9b863bf28c4ee69b4b25738d120c038c500fcf76 [file] [log] [blame]
lfmylbhfe279c302025-06-09 23:28:21 +08001// 全局容器样式
2.resource-community-list-container {
3 max-width: 1200px;
4 margin: 0 auto;
5 padding: 0 2rem;
6}
7
8.resource-communities-header {
9 h1 {
10 text-align: center; // 页面居中
11 }
12}
13
14// 全部社区样式
15.resource-communities-list {
16 width: 100%;
17 padding: 1rem;
18
19 &-card {
20 cursor: pointer;
21 height: 140px;
22 padding: 1.5rem;
23 margin-bottom: 1rem;
24 border-radius: 0.5rem;
25 transition: transform 0.3s ease;
26 box-shadow: none !important; // 取消阴影
27
28 //填充卡片
29 &.p-card.p-component {
30 padding: 0;
31 }
32
33 .p-card-body {
34 padding: 0;
35 }
36
37 &:hover {
38 transform: translateY(-3px);
39 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
40 }
41
42 .p-card-content {
43 height: 140px;
44 display: flex;
45 justify-content: space-between;
46 padding: 0;
47 }
48
49 img {
50 border-radius: 0.5rem 0 0 0.5rem;
51 object-fit: cover;
52 }
53
54 .community-header {
55 display: flex;
56 flex: 1;
57 max-width: 800px;
58 padding-left: 20px;
59 padding-right: 20px;
60 margin-bottom: 20px;
61 }
62
63
64 .community-avatar {
65 width: 80px;
66 height: 80px;
67 border-radius: 8px;
68 object-fit: cover;
69 }
70
71 .community-content {
72 flex: 1;
73 display: flex;
74 flex-direction: column;
75 h3 {
76 font-size: 1.5rem;
77 font-weight: bold;
78 color: #2c3e50;
79 }
80
81 .community-introduction {
82 color: #666;
83 font-size: 1rem;
84 margin-bottom: 0;
85 }
86 }
87
88 .community-states {
89 min-width: 120px;
90 display: flex;
91 flex-direction: column;
92 justify-content: flex-end;
93 align-items: flex-end;
94 gap: 0.5rem;
95
96 .state-item {
97 display: flex;
98 align-items: center;
99 gap: 0.5rem;
100 color: #666;
101 font-size: 1rem;
102 }
103 }
104 }
105}