Skip to content

Commit fb8ac54

Browse files
committed
style: add a backdrop blur to cards.
Inspired by @Henry-Wow's PR: #282
1 parent f7e54a7 commit fb8ac54

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ input::placeholder {
1515

1616
.card {
1717
@apply !rounded-xl !border-[1px] !border-black !bg-pink-300/10;
18+
backdrop-filter: blur(2px)
1819
}
1920

2021
.modal.contents .card {

src/lib/components/layouts/OuterLayout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="stars"></div>
1616

17-
<AppBar background="bg-pink-300/20">
17+
<AppBar background="bg-pink-300/20 backdrop-blur-[2px]">
1818
{#snippet lead()}
1919
<img src="/logo.webp" alt="Weird Logo" width="40px" />
2020
{/snippet}

src/routes/(app)/[username]/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
<div class="flex max-w-full flex-row flex-wrap-reverse justify-center sm:flex-nowrap">
8080
{#if data.profileMatchesUserSession}
81-
<aside class="sidebar">
81+
<aside class="sidebar card">
8282
<div class="mb-3 flex flex-row items-start justify-between">
8383
<h1 class="mb-2 text-xl font-bold">Pages</h1>
8484
<a
@@ -164,7 +164,7 @@
164164

165165
<style>
166166
.sidebar {
167-
@apply sticky top-8 mx-4 my-8 flex w-full flex-shrink flex-col rounded-xl border-[1px] border-black bg-pink-300/10 p-5 sm:h-[85vh] sm:w-auto;
167+
@apply sticky top-8 mx-4 my-8 flex w-full flex-shrink flex-col rounded-xl p-5 sm:h-[85vh] sm:w-auto;
168168
flex-basis: 18em;
169169
.btn {
170170
text-wrap: wrap;

src/routes/(app)/[username]/+page.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127

128128
<main class="mx-4 flex w-full max-w-full flex-col items-center px-2 font-spacemono">
129129
<div
130-
class="m-4 mt-12 flex w-full max-w-[700px] flex-col gap-4 rounded-xl border-[1px] border-black bg-pink-300/10 p-8 text-xl"
130+
class="m-4 mt-12 flex w-full max-w-[700px] flex-col gap-4 rounded-xl card p-8 text-xl"
131131
>
132132
<div class="relative flex items-center gap-4">
133133
{#if !editingState.editing}
@@ -156,10 +156,6 @@
156156
</div>
157157
{:else}
158158
<div style="grid-area: 1 / 1;">
159-
<button
160-
class="variant-filled badge absolute right-[-4em] top-[-2em] z-10"
161-
onclick={() => displayNameEditorEl.focus()}>Click to Edit!</button
162-
>
163159
<InlineTextEditor
164160
bind:this={displayNameEditorEl}
165161
bind:content={editingState.profile.display_name as string}

0 commit comments

Comments
 (0)