mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-28 16:30:09 +02:00
docs: fix fab and github-link
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
|
||||
<div class="container">
|
||||
<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>
|
||||
<i class="nes-octocat" :class="animateOctocat ? 'animate' : ''"></i>
|
||||
</a>
|
||||
@@ -199,7 +199,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 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>
|
||||
</body>
|
||||
|
@@ -96,13 +96,17 @@ h2 > a {
|
||||
/* github link */
|
||||
.github-link {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
top: 100px;
|
||||
right: -240px;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.github-link.active {
|
||||
right: 10px;
|
||||
}
|
||||
.github-link:hover {
|
||||
text-decoration: none;
|
||||
@@ -269,9 +273,13 @@ h3.topic-title > i {
|
||||
/* Scroll back to top */
|
||||
.scroll-btn {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
bottom: -60px;
|
||||
right: 2rem;
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,.6);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.scroll-btn.active {
|
||||
bottom: 25px;
|
||||
}
|
||||
.scroll-btn > span {
|
||||
display: block;
|
||||
|
Reference in New Issue
Block a user