Add GitHub sponsor button

This commit is contained in:
Jeremy Thomas 2019-10-07 14:54:53 +01:00
parent 90d5925dff
commit 37f3e0fd79
4 changed files with 16 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<nav id="navbar" class="navbar has-shadow is-spaced"> <nav id="navbar" class="bd-navbar navbar has-shadow is-spaced">
<div class="container"> <div class="container">
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item" href="{{ site.url }}"> <a class="navbar-item" href="{{ site.url }}">
@ -77,13 +77,13 @@
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
<a class="navbar-item is-hidden-touch is-hidden-desktop-only" href="{{ site.data.meta.github }}" target="_blank"> <a class="bd-navbar-icon navbar-item" href="{{ site.data.meta.github }}" target="_blank">
<span class="icon" style="color: #333;"> <span class="icon" style="color: #333;">
<i class="fab fa-lg fa-github-alt"></i> <i class="fab fa-lg fa-github-alt"></i>
</span> </span>
</a> </a>
<a class="navbar-item is-hidden-touch is-hidden-desktop-only" href="{{ site.data.meta.twitter }}" target="_blank"> <a class="bd-navbar-icon navbar-item" href="{{ site.data.meta.twitter }}" target="_blank">
<span class="icon" style="color: #55acee;"> <span class="icon" style="color: #55acee;">
<i class="fab fa-lg fa-twitter"></i> <i class="fab fa-lg fa-twitter"></i>
</span> </span>

View File

@ -160,8 +160,12 @@ $carbon-poweredby-height: 20px
&:hover &:hover
text-decoration: underline text-decoration: underline
+until($fullhd)
.bd-navbar-icon
display: none
+until($widescreen) +until($widescreen)
#navMenuLove .bd-navbar-item-backers .bd-navbar .bd-navbar-item-backers
display: none display: none
+widescreen +widescreen

View File

@ -11472,8 +11472,14 @@ svg {
text-decoration: underline; text-decoration: underline;
} }
@media screen and (max-width: 1407px) {
.bd-navbar-icon {
display: none;
}
}
@media screen and (max-width: 1215px) { @media screen and (max-width: 1215px) {
#navMenuLove .bd-navbar-item-backers { .bd-navbar .bd-navbar-item-backers {
display: none; display: none;
} }
} }

File diff suppressed because one or more lines are too long