Skip to content

Commit d550c9a

Browse files
committed
feat:追踪文件夹内容测试暂存版
1 parent f9350b8 commit d550c9a

File tree

9 files changed

+463
-519
lines changed

9 files changed

+463
-519
lines changed

assets/css/main.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,3 +1083,24 @@ img {
10831083
z-index: 9999;
10841084
}
10851085
}
1086+
1087+
1088+
#product-folders {
1089+
1090+
position: fixed; top: 28%; left: 5px;
1091+
width: 200px; background: #fff;
1092+
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
1093+
border-radius: 8px; padding: 15px; z-index: 1000;
1094+
}
1095+
#product-folders h3 { margin:0 0 15px; font-size:18px; }
1096+
#product-folders ul { list-style:none; padding:0; margin:0; }
1097+
#product-folders .category-item { margin-bottom:10px; }
1098+
#product-folders .category-item > span {
1099+
display:block; padding:6px; cursor:pointer;
1100+
font-weight:600;
1101+
}
1102+
#product-folders .sub-list { padding-left:15px; }
1103+
#product-folders .subcategory-item {
1104+
padding:4px 0; cursor:pointer; color:#555;
1105+
}
1106+
#md-content { margin-left:220px; padding:20px; margin-top: 80px !important; }

assets/css/style.css

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
display: flex;
5+
min-height: 100vh;
6+
}
7+
8+
#product-folders {
9+
width: 250px;
10+
background: #f5f5f5;
11+
padding: 20px;
12+
border-right: 1px solid #ddd;
13+
overflow-y: auto;
14+
position: fixed;
15+
left: 0;
16+
top: 0;
17+
bottom: 0;
18+
height: 100vh;
19+
}
20+
21+
#product-folders h3 {
22+
margin-top: 0;
23+
color: #333;
24+
}
25+
26+
#product-folders ul {
27+
list-style: none;
28+
padding: 0;
29+
margin: 0;
30+
}
31+
32+
#product-folders li {
33+
padding: 4px 0;
34+
cursor: pointer;
35+
border-radius: 4px;
36+
margin: 2px 0;
37+
transition: all 0.3s ease;
38+
}
39+
40+
#product-folders li:hover {
41+
background: #fff;
42+
color: #000;
43+
}
44+
45+
#product-folders li.active {
46+
background: #007bff;
47+
color: white;
48+
}
49+
50+
51+
.folder-item {
52+
display: flex;
53+
align-items: center;
54+
justify-content: space-between;
55+
padding: 4px 8px;
56+
}
57+
58+
.folder-name {
59+
flex: 1;
60+
}
61+
62+
.folder-icon {
63+
font-size: 12px;
64+
margin-left: 8px;
65+
transition: transform 0.3s ease;
66+
}
67+
68+
.subfolder-wrapper {
69+
max-height: 0;
70+
overflow: hidden;
71+
transition: max-height 0.3s ease-in-out;
72+
}
73+
74+
.subfolder-wrapper.expanded {
75+
max-height: 2000px; /* 设置一个足够大的值 */
76+
}
77+
78+
.subfolder {
79+
margin-left: 16px;
80+
border-left: 1px solid #ddd;
81+
padding-left: 8px;
82+
}
83+
84+
.file-name {
85+
display: block;
86+
padding: 4px 8px;
87+
}
88+
89+
#md-content {
90+
flex: 1;
91+
padding: 20px;
92+
overflow-y: auto;
93+
margin-left: 300px;
94+
min-height: 100vh;
95+
}
96+
97+
.category-item {
98+
font-weight: 500;
99+
}
100+
101+
pre {
102+
background: #f8f8f8;
103+
padding: 15px;
104+
border-radius: 4px;
105+
overflow-x: auto;
106+
}

0 commit comments

Comments
 (0)