mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-29 16:59:58 +02:00
docs: fix fab and github-link
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<main class="main-content">
|
<main class="main-content">
|
||||||
<a class="github-link" href="https://github.com/nostalgic-css/NES.css" target="_blank" rel="noopener" @mouseover="startAnimate" @mouseout="stopAnimate">
|
<a class="github-link" :class="{ active: scrollPos < 200 }" href="https://github.com/nostalgic-css/NES.css" target="_blank" rel="noopener" @mouseover="startAnimate" @mouseout="stopAnimate">
|
||||||
<p class="nes-balloon from-right">Fork me<br />on GitHub</p>
|
<p class="nes-balloon from-right">Fork me<br />on GitHub</p>
|
||||||
<i class="nes-octocat" :class="animateOctocat ? 'animate' : ''"></i>
|
<i class="nes-octocat" :class="animateOctocat ? 'animate' : ''"></i>
|
||||||
</a>
|
</a>
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- FAB Button -->
|
<!-- FAB Button -->
|
||||||
<button type="button" class="nes-btn is-error scroll-btn" v-show="scrollPos > 500" @click="toTop"><span><</span></button>
|
<button type="button" class="nes-btn is-error scroll-btn" :class="{ active: scrollPos > 500 }" @click="toTop"><span><</span></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@@ -96,13 +96,17 @@ h2 > a {
|
|||||||
/* github link */
|
/* github link */
|
||||||
.github-link {
|
.github-link {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 10px;
|
top: 100px;
|
||||||
right: 10px;
|
right: -240px;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.github-link.active {
|
||||||
|
right: 10px;
|
||||||
}
|
}
|
||||||
.github-link:hover {
|
.github-link:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -269,9 +273,13 @@ h3.topic-title > i {
|
|||||||
/* Scroll back to top */
|
/* Scroll back to top */
|
||||||
.scroll-btn {
|
.scroll-btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 2rem;
|
bottom: -60px;
|
||||||
right: 2rem;
|
right: 2rem;
|
||||||
box-shadow: 0 5px 20px rgba(0,0,0,.6);
|
box-shadow: 0 5px 20px rgba(0,0,0,.6);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.scroll-btn.active {
|
||||||
|
bottom: 25px;
|
||||||
}
|
}
|
||||||
.scroll-btn > span {
|
.scroll-btn > span {
|
||||||
display: block;
|
display: block;
|
||||||
|
Reference in New Issue
Block a user