Skip to content

Commit

Permalink
为 Gitee 图标适配夜间样式
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Feb 12, 2024
1 parent 8f32f48 commit d0f5f44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions docs/_static/custom_icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FontAwesome.library.add(
(faListOldStyle = {
prefix: "fa-custom",
iconName: "gitee",
icon: [
24, // viewBox width
24, // viewBox height
[], // ligature
"e001", // unicode codepoint - private use area
"M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z",
],
})
);
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
{
"name": "Gitee",
"url": "https://gitee.com/cpp_tutorial/vscode_cpp_starter",
"icon": "https://simpleicons.org/icons/gitee.svg",
"type": "url",
"icon": "fa-brands fa-gitee",
},
{
"name": "部署状态",
Expand Down Expand Up @@ -98,3 +97,5 @@
def setup(app):
app.add_css_file("custom.css")
app.add_css_file("monofont.css")

app.add_js_file("custom_icon.js")

0 comments on commit d0f5f44

Please sign in to comment.