Добавил псевдоним для папки src/, Избавился от относительных путей в app.css, Сделал класс фона общим

This commit is contained in:
Иван Кузьменко 2025-07-12 22:37:43 +03:00
parent 0cf4e73755
commit b78c917ddf
3 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,6 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@config "../tailwind.config.ts";
@config "$src/../tailwind.config.ts";
@font-face {
font-family: 'Lineyka';
@ -29,4 +29,8 @@
.no-x-scroll {
max-width: 100%;
overflow-x: hidden;
}
.hero-background {
@apply bg-[url('/common/background-day.webp')] dark:bg-[url('/common/background-night.webp')] bg-cover bg-fixed;
}

View file

@ -138,13 +138,7 @@
</section>
<style>
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@config "../../tailwind.config.ts";
.hero-background {
@apply bg-[url('/common/background-day.webp')] dark:bg-[url('/common/background-night.webp')] bg-cover bg-fixed;
}
@import "$src/app.css";
section > h1 {
@apply font-disket mb-4 text-2xl font-bold sm:text-4xl;

View file

@ -26,6 +26,9 @@ const config = {
handleMissingId: ({ event, resolve }) => {
return;
}
},
alias: {
$src: "src/"
}
},
extensions: ['.svelte', '.md'],