generated from acdh-oeaw/template-app-nuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tailwind breakpoint indicator
- Loading branch information
1 parent
11e7357
commit 5cef2fa
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts" setup> | ||
const isVisible = import.meta.dev; | ||
</script> | ||
|
||
<template> | ||
<div | ||
v-if="isVisible" | ||
class="fixed bottom-4 right-4 z-10 grid size-8 place-content-center rounded-full bg-on-background font-mono text-xs font-medium text-background" | ||
> | ||
<span class="xs:hidden">2xs</span> | ||
<span class="max-xs:hidden sm:hidden">xs</span> | ||
<span class="max-sm:hidden md:hidden">sm</span> | ||
<span class="max-md:hidden lg:hidden">md</span> | ||
<span class="max-lg:hidden xl:hidden">lg</span> | ||
<span class="max-xl:hidden 2xl:hidden">xl</span> | ||
<span class="max-2xl:hidden 3xl:hidden">2xl</span> | ||
<span class="max-3xl:hidden">3xl</span> | ||
</div> | ||
</template> |