fix: Trying to get the sideways text to render in prod
Some checks failed
Publish Svelte Tailwind Library / build-and-publish (push) Has been cancelled

This commit is contained in:
2025-09-16 13:25:02 +01:00
parent 1335bcb3dc
commit ab9b80dddb
3 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@luke-else/component-lib",
"version": "1.0.9",
"version": "1.1.0",
"description": "",
"scripts": {
"package": "svelte-package && pnpm run build:css",

View File

@@ -2,12 +2,18 @@
export let label: string = '';
</script>
<style>
#sideway-label {
@apply tracking-widest [writing-mode:vertical-rl] [text-orientation:mixed];
}
</style>
<div id={label} class="relative flex flex-row w-full min-h-[300px] mt-5 mb-25">
<!-- Sticky/Sliding Label -->
<div class="hidden md:flex flex-col items-center mr-6">
<div class="sticky top-24 left-0 z-10">
<span
class="text-2xl font-bold text-blue-400 tracking-widest [writing-mode:vertical-rl] [text-orientation:mixed]"
<span id="sideway-label"
class="text-2xl font-bold text-blue-400"
>
{label}
</span>

View File

@@ -1 +1,7 @@
@import "tailwindcss";
@import "tailwindcss";
@layer components {
.button {
@apply px-4 py-2 rounded-md bg-red-500 text-white;
}
}