Skip to content

Commit 779b497

Browse files
authored
Update nav.css
1 parent b09020c commit 779b497

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

assets/css/nav.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,36 @@
7979
display: block; /* 让标题独占一行 */
8080
margin-bottom: 8px; /* 添加与描述的间距 */
8181
}
82+
/* 导航栏全局字体 */
83+
nav {
84+
font-size: 17px !important;
85+
font-weight: 600 !important;
86+
}
87+
88+
/* 导航标题强化 */
89+
nav h1, nav h2, nav h3 {
90+
font-weight: 900 !important;
91+
font-size: 24px !important;
92+
}
93+
94+
/* 导航链接加粗 */
95+
nav a {
96+
font-weight: 700 !important;
97+
}
98+
99+
/* 子菜单特殊处理 */
100+
nav .submenu {
101+
font-size: 16px !important; /* 子菜单稍小 */
102+
}
103+
/* 图标和按钮保持原样 */
104+
nav .fa-icon, nav .button {
105+
font-weight: normal !important;
106+
font-size: inherit !important;
107+
}
108+
/* 手机端减小字号 */
109+
@media (max-width: 768px) {
110+
nav {
111+
font-size: 15px !important;
112+
}
113+
}
114+

0 commit comments

Comments
 (0)