Skip to content

Commit cdc47a3

Browse files
authored
Create pub.css
1 parent 16546e1 commit cdc47a3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

cssjs/pub.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.year-filter {
2+
margin-bottom: 20px;
3+
}
4+
.year-filter button {
5+
margin: 5px;
6+
padding: 10px;
7+
cursor: pointer;
8+
border: 1px solid #ccc;
9+
background-color: #f9f9f9;
10+
}
11+
.year-filter button.active {
12+
background-color: #007bff;
13+
color: white;
14+
}
15+
.publication li {
16+
display: none; /* 默认隐藏所有文章 */
17+
}
18+
.publication li.show {
19+
display: block; /* 显示符合条件的文章 */
20+
}

0 commit comments

Comments
 (0)