summaryrefslogtreecommitdiff
path: root/src/components/Global/ButtonBackToTop.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Global/ButtonBackToTop.vue')
-rw-r--r--src/components/Global/ButtonBackToTop.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/Global/ButtonBackToTop.vue b/src/components/Global/ButtonBackToTop.vue
index b2c5448c..95e74045 100644
--- a/src/components/Global/ButtonBackToTop.vue
+++ b/src/components/Global/ButtonBackToTop.vue
@@ -2,7 +2,7 @@
<b-button
id="scrollToTopBtn"
class="btn-top btn-icon-only"
- :class="{ showBtn: showButton }"
+ :class="{ 'show-btn': showButton }"
variant="secondary"
:title="$t('global.ariaLabel.scrollToTop')"
:aria-label="$t('global.ariaLabel.scrollToTop')"
@@ -49,17 +49,20 @@ export default {
position: fixed;
bottom: 24px;
right: 24px;
- z-index: -1;
+
box-shadow: $box-shadow;
+ visibility: hidden;
opacity: 0;
transition: $transition-base;
+ z-index: $zindex-fixed;
+
@media (min-width: 1600px) {
left: 1485px;
right: auto;
}
}
-.showBtn {
+.show-btn {
+ visibility: visible;
opacity: 1;
- z-index: $zindex-fixed;
}
</style>