Skip to content

Commit 18da2a9

Browse files
committed
add css
1 parent 7d315c7 commit 18da2a9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/source/_static/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* 控制导航栏左上角 logo 大小 */
2+
.navbar-brand img {
3+
height: 32px !important; /* 你可以调整为想要的高度 */
4+
width: auto !important; /* 保持宽高比 */
5+
}

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@
9898
"version_match": version,
9999
},
100100
}
101+
102+
def setup(app):
103+
app.add_css_file("custom.css")

0 commit comments

Comments
 (0)