Skip to content

Commit

Permalink
add github logo
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR committed Apr 13, 2023
1 parent fb8659d commit f8175da
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/default_header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<header>
{% include title.html %}
<a class="github-link" href="{{ site.repository }}">on Github</a>
<nav class="breadcrumbs push-center">
<ul>
<li><a href="guide.html">guide</a></li>
<li><a href="api/">api<sup>beta</sup></a></li>
<li><a href="{{ site.repository }}">on Github</a></li>
</ul>
</nav>
</header>
21 changes: 21 additions & 0 deletions docs/css/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
header {
margin: 30px 0;
text-align: center;
position: relative;
}

nav {
Expand Down Expand Up @@ -182,3 +183,23 @@ fieldset *:last-child {
padding-left: 12px;
margin: 0;
}

.github-link {
text-indent: -9999px;
background-image: url(../i/github-mark.svg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
width: 24px;
height: 24px;
display: inline-block;
opacity: 0.7;
position: absolute;
right: 0;
top: 0;
transition: opacity 0.2s ease;
}

.github-link:hover {
opacity: 1;
}
Binary file removed docs/i/GitHub-Mark-32px.png
Binary file not shown.
1 change: 1 addition & 0 deletions docs/i/github-mark.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 f8175da

Please sign in to comment.