Skip to content

Commit

Permalink
add github svg
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Sep 13, 2024
1 parent d7b8d74 commit 87ca852
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const config: Config = {
label: "Docs",
},
{
label: "Github",
html: "<div/>",
href: "https://github.com/wavetermdev/waveterm",
position: "right",
className: "header-github-link",
Expand Down
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@
--ifm-color-primary-lighter: #72cb5f;
--ifm-color-primary-lightest: #8cd47d;
}

.header-github-link div {
height: 24px;
width: 24px;
background-color: var(--ifm-font-color-base);
mask: url(/img/Octicons-mark-github.svg) no-repeat center / contain;
-webkit-mask: url(/img/Octicons-mark-github.svg) no-repeat center / contain;
}
3 changes: 3 additions & 0 deletions static/img/Octicons-mark-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 87ca852

Please sign in to comment.