feat: make buttontotop selective

This commit is contained in:
2022-08-10 11:05:20 -04:00
parent 9484692dfa
commit ef78861e16
5 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,14 @@
<template>
<a href="#" class="go-top"></a>
<Teleport to="body"> <a href="#" class="go-top"></a></Teleport>
</template>
<style>
body {
display: grid;
grid-template-columns: auto 0;
}
</style>
<style scoped>
.go-top {
--offset: 20rem;

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import ColourPicker from "./ColourPicker.vue";
import { navItems } from "@/data/navItems";
const props = defineProps<{ activeItem?: string }>();
</script>
<template>