Files
market_page/miniprogram/src/pages/forum/index.scss
jeremygan2021 5a7043fa1c forum
2026-02-12 16:54:16 +08:00

323 lines
6.4 KiB
SCSS

.forum-page {
min-height: 100vh;
background-color: #000;
padding-bottom: 40px;
color: #fff;
.hero-section {
padding: 40px 20px 20px;
text-align: center;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,185,107,0.1) 100%);
.title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
color: #fff;
.highlight {
color: #00b96b;
}
}
.subtitle {
color: #888;
font-size: 14px;
margin-bottom: 20px;
}
.search-box {
display: flex;
gap: 10px;
margin-bottom: 20px;
.at-search-bar {
flex: 1;
background-color: transparent;
padding: 0;
&::after {
border-bottom: none;
}
.at-search-bar__input-cnt {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid #333;
border-radius: 8px;
}
.at-search-bar__input {
color: #fff;
}
}
.create-btn {
background-color: #00b96b;
color: #fff;
border: none;
border-radius: 8px;
padding: 0 16px;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
}
}
}
.section-container {
margin: 0 10px 15px;
background: #141414; /* Darker card background */
border-radius: 12px;
padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
.section-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
.section-title {
font-size: 16px;
font-weight: bold;
color: #fff;
}
}
.announcement-swiper {
height: 40px;
.announcement-item {
height: 40px;
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.05);
padding: 0 12px;
border-radius: 6px;
.item-text {
font-size: 14px;
color: #ccc;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
.star-users-scroll {
white-space: nowrap;
width: 100%;
.star-user-card {
display: inline-flex;
flex-direction: column;
align-items: center;
margin-right: 20px;
width: 80px;
background: rgba(255, 255, 255, 0.05);
padding: 12px 8px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.05);
.user-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
border: 2px solid #ffd700;
margin-bottom: 8px;
}
.user-name {
font-size: 12px;
font-weight: bold;
color: #fff;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 2px;
}
.user-title {
font-size: 10px;
color: #888;
}
}
}
}
.tabs-wrapper {
background-color: #000;
margin-bottom: 10px;
/* Override Taro UI default white background */
.at-tabs {
background-color: transparent;
height: auto;
}
.at-tabs__header {
background-color: transparent;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
text-align: left;
}
.at-tabs__item {
color: #888;
font-size: 14px;
padding: 12px 24px;
&--active {
color: #00b96b;
font-weight: bold;
font-size: 16px;
}
}
.at-tabs__item-underline {
background-color: #00b96b;
bottom: 0;
}
}
.topic-list {
padding: 10px;
.topic-card {
background: rgba(20,20,20,0.6);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
padding: 16px;
margin-bottom: 12px;
position: relative;
&.pinned {
border-color: rgba(0, 185, 107, 0.4);
box-shadow: 0 0 10px rgba(0, 185, 107, 0.1);
}
.card-header {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
.tag {
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #444;
&.pinned-tag {
border-color: #ff4d4f;
color: #ff4d4f;
}
&.verified-tag {
border-color: #00b96b;
color: #00b96b;
}
}
.card-title {
font-size: 16px;
font-weight: bold;
color: #fff;
flex: 1;
}
}
.card-content {
font-size: 14px;
color: #aaa;
margin-bottom: 12px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.card-image {
margin-bottom: 12px;
image {
width: 100%;
max-height: 150px;
border-radius: 8px;
object-fit: cover;
}
}
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: #666;
.author-info {
display: flex;
align-items: center;
gap: 6px;
.avatar {
width: 20px;
height: 20px;
border-radius: 50%;
}
.nickname {
&.star {
color: #ffd700;
font-weight: bold;
}
}
}
.stats {
display: flex;
gap: 12px;
.stat-item {
display: flex;
align-items: center;
gap: 4px;
}
}
}
}
}
.empty-state {
text-align: center;
padding: 40px;
color: #666;
}
.fab {
position: fixed;
right: 20px;
bottom: 40px;
width: 50px;
height: 50px;
background-color: #00b96b;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 185, 107, 0.4);
z-index: 100;
.at-icon {
font-size: 24px;
color: #fff;
}
}
}