Skip to content

Commit

Permalink
Refine and enable bg gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 committed Sep 26, 2024
1 parent da097fb commit e7ef859
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 37 deletions.
2 changes: 1 addition & 1 deletion sites/themes.skeleton.dev/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%sveltekit.head%
<title>Themes - Skeleton</title>
</head>
<body data-sveltekit-preload-data="hover" data-theme="cerberus">
<body data-sveltekit-preload-data="hover" data-theme="cerberus" class="bg-gradient-skeleton">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
4 changes: 2 additions & 2 deletions sites/themes.skeleton.dev/src/app.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ body {
}

/* Background Image */
/* [data-theme='cerberus'] {
.bg-gradient-skeleton {
background-image: radial-gradient(at 20% 100%, rgba(var(--color-secondary-500) / 0.1) 0px, transparent 40%),
radial-gradient(at 75% 75%, rgba(var(--color-primary-500) / 0.1) 0px, transparent 50%);
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
} */
}

.label-text {
@apply opacity-60;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
<nav class="flex items-center gap-4">
<Lightswitch />
<button class="btn preset-filled">Login</button>
</nav>
</div>
</header>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
</script>

<section class="relative h-screen overflow-y-auto bg-body-color dark:bg-body-color-dark">
<section class="relative h-screen overflow-y-auto bg-body-color dark:bg-body-color-dark bg-gradient-skeleton">
<!-- Content -->
<article class="container mx-auto">
{#if globals.panel === 'preview'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,36 +75,3 @@
{/each}
</div>
</div>

<!-- <div class="">
<p>This is the import page.</p>
<h2 class="h2">Cerberus</h2>
<div>
<nav class="bg-surface-50-950 p-10">
<button class="btn preset-filled-primary-500">primary</button>
<button class="btn preset-filled-secondary-500">secondary</button>
<button class="btn preset-filled-tertiary-500">tertiary</button>
</nav>
</div>
<hr class="hr" />
<h2 class="h2">Pine</h2>
<div data-theme="pine">
<nav class="bg-surface-50-950 p-10">
<button class="btn preset-filled-primary-500">primary</button>
<button class="btn preset-filled-secondary-500">secondary</button>
<button class="btn preset-filled-tertiary-500">tertiary</button>
</nav>
</div>
<h2 class="h2">Rose</h2>
<div data-theme="rose">
<nav class="bg-surface-50-950 p-10">
<button class="btn preset-filled-primary-500">primary</button>
<button class="btn preset-filled-secondary-500">secondary</button>
<button class="btn preset-filled-tertiary-500">tertiary</button>
</nav>
</div>
</div> -->

0 comments on commit e7ef859

Please sign in to comment.