feat: make buttontotop selective
This commit is contained in:
@@ -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;
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user