51 lines
1.2 KiB
Vue
51 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
// TODO: when a user changes the color scheme and then signs in/up, the color
|
|
// scheme will not be updated in the user's settings.
|
|
// const { colorScheme } = useUserSettings();
|
|
|
|
const colorScheme = {
|
|
class: 'dark',
|
|
}
|
|
|
|
useHead({
|
|
htmlAttrs: {
|
|
class: colorScheme.class
|
|
}
|
|
});
|
|
|
|
preloadRouteComponents('/');
|
|
</script>
|
|
|
|
<template>
|
|
<div class="p-2 w-full h-full">
|
|
<main
|
|
class="bg-[var(--bg-surface)] flex flex-col h-full w-full border border-solid border-[var(--color-border)] rounded-lg overflow-hidden">
|
|
<div class="flex-1 overflow-y-auto">
|
|
<slot />
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
input {
|
|
color: var(--text-primary);
|
|
padding-inline: calc(var(--spacing) * 4);
|
|
padding-block: calc(var(--spacing) * 2);
|
|
|
|
border-radius: calc(var(--spacing) * 1.5);
|
|
|
|
width: 100%;
|
|
background-color: var(--bg-container);
|
|
|
|
transition-property: color, border, background-color;
|
|
transition-duration: 300ms;
|
|
transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
|
|
|
|
overflow: hidden;
|
|
|
|
&:focus-visible {
|
|
outline: none;
|
|
}
|
|
}
|
|
</style> |