上传文件至 ui components/sticknav

This commit is contained in:
2025-05-09 00:16:42 +00:00
parent 62671bc737
commit 4a3b645980
2 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
/* 基础样式 */
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: Arial, sans-serif;
}
.title {
margin-bottom: 10px;
}
.subtitle {
margin-bottom: 40px;
color: #666;
}
/* 粘性导航样式 */
.sticky-nav {
position: sticky;
top: 0;
background-color: white;
padding: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
}
.search-box {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 4px;
}
.category-tabs {
display: flex;
gap: 10px;
overflow-x: auto;
padding-bottom: 5px;
}
.category-tabs button {
padding: 8px 16px;
border: none;
background-color: #f0f0f0;
border-radius: 20px;
cursor: pointer;
white-space: nowrap;
}
.category-tabs button.active {
background-color: #007bff;
color: white;
}
/* 内容区域样式 */
.content-section {
margin-top: 40px;
padding: 20px;
border: 1px solid #eee;
border-radius: 8px;
}
.content-section h2 {
margin-bottom: 15px;
}
/* 占位内容,使页面可滚动 */
.placeholder {
height: 300px;
background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
margin-top: 20px;
border-radius: 8px;
}