141 lines
2.8 KiB
Plaintext
141 lines
2.8 KiB
Plaintext
/** pages/wiki/index.wxss **/
|
|
.wiki-page {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #F9FAFB;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wiki-scroll-area {
|
|
flex: 1;
|
|
overflow-y: hidden; /* Scroll-view handles overflow */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Scroll-view inner content padding wrapper if needed,
|
|
but we can apply padding to children or use a wrapper view inside.
|
|
Usually easier to apply padding to the items or a wrapper inside scroll-view. */
|
|
|
|
.search-section {
|
|
padding: 20rpx 40rpx 0;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.category-scroll {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 0 40rpx;
|
|
margin-bottom: 48rpx;
|
|
}
|
|
|
|
.wiki-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32rpx;
|
|
padding: 0 40rpx;
|
|
}
|
|
|
|
.wiki-card {
|
|
background: white;
|
|
padding: 32rpx;
|
|
border-radius: 48rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 36rpx;
|
|
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.03);
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.wiki-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.wiki-image {
|
|
width: 140rpx; height: 140rpx;
|
|
border-radius: 36rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.1);
|
|
flex-shrink: 0;
|
|
background: #f0f0f0;
|
|
}
|
|
.wiki-image image { width: 100%; height: 100%; display: block; }
|
|
.wiki-image-placeholder {
|
|
width: 100%; height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.wiki-info { flex: 1; min-width: 0; }
|
|
|
|
.wiki-top { margin-bottom: 12rpx; }
|
|
.wiki-name { font-size: 34rpx; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 4rpx; }
|
|
.scientific-name { font-size: 24rpx; color: #90A4AE; font-style: italic; font-family: serif; display: block; }
|
|
|
|
.tags-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
/* Loading Footer */
|
|
.loading-footer {
|
|
padding: 40rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.no-more-text {
|
|
font-size: 24rpx;
|
|
color: #CCC;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 80rpx 0;
|
|
text-align: center;
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* Popup Styles */
|
|
.popup-content {
|
|
background: white;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
padding: 40rpx;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.popup-header {
|
|
text-align: center;
|
|
margin-bottom: 48rpx;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 36rpx;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.upload-options-grid {
|
|
display: flex; gap: 40rpx; justify-content: center;
|
|
margin-bottom: 48rpx;
|
|
}
|
|
|
|
.upload-opt-item {
|
|
display: flex; flex-direction: column; align-items: center; gap: 16rpx;
|
|
}
|
|
|
|
.opt-icon-circle {
|
|
width: 120rpx; height: 120rpx; border-radius: 40rpx;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
|
|
.popup-footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|