blob: 9b863bf28c4ee69b4b25738d120c038c500fcf76 [file] [log] [blame]
// 全局容器样式
.resource-community-list-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.resource-communities-header {
h1 {
text-align: center; // 页面居中
}
}
// 全部社区样式
.resource-communities-list {
width: 100%;
padding: 1rem;
&-card {
cursor: pointer;
height: 140px;
padding: 1.5rem;
margin-bottom: 1rem;
border-radius: 0.5rem;
transition: transform 0.3s ease;
box-shadow: none !important; // 取消阴影
//填充卡片
&.p-card.p-component {
padding: 0;
}
.p-card-body {
padding: 0;
}
&:hover {
transform: translateY(-3px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.p-card-content {
height: 140px;
display: flex;
justify-content: space-between;
padding: 0;
}
img {
border-radius: 0.5rem 0 0 0.5rem;
object-fit: cover;
}
.community-header {
display: flex;
flex: 1;
max-width: 800px;
padding-left: 20px;
padding-right: 20px;
margin-bottom: 20px;
}
.community-avatar {
width: 80px;
height: 80px;
border-radius: 8px;
object-fit: cover;
}
.community-content {
flex: 1;
display: flex;
flex-direction: column;
h3 {
font-size: 1.5rem;
font-weight: bold;
color: #2c3e50;
}
.community-introduction {
color: #666;
font-size: 1rem;
margin-bottom: 0;
}
}
.community-states {
min-width: 120px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-end;
gap: 0.5rem;
.state-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: #666;
font-size: 1rem;
}
}
}
}