Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/lib/layout/notifications.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,4 +26,12 @@
right: 24px;
z-index: 1000;
}

@media (max-width: 512px) {
section {
top: calc(var(--main-header-height) + 16px);
right: 16px;
left: 16px;
}
}
</style>
19 changes: 10 additions & 9 deletions src/lib/layout/unauthenticated.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -146,9 +146,7 @@
class:is-cloud={isCloud}
style:--url={`url(${AppwriteCloudBg})`}
style:--url-mobile={`url(${AppwriteCloudBgMobile})`}>
<div
class="container u-flex u-flex-vertical u-cross-center full-height"
class:cloud-contents={isCloud}>
<div class="container u-flex u-flex-vertical u-cross-center" class:cloud-contents={isCloud}>
{#if isCloud}
<a class="mobile-logo is-only-mobile" href={user ? '/console' : '/'}>
<img
Expand DownExpand Up@@ -185,6 +183,10 @@
</main>

<style lang="scss">
:global(body) {
--main-header-height: 0px !important;
}

@media (prefers-reduced-motion: reduce) {
main * {
animation: none !important;
Expand All@@ -203,11 +205,6 @@
}
}

.full-height {
block-size: 100vh;
block-size: 100lvh;
}

.cloud-section {
background: var(--url);
background-repeat: no-repeat;
Expand DownExpand Up@@ -282,7 +279,7 @@
}

.mobile-logo {
margin-block-start: 3rem;
margin-block-start: 1rem;
margin-block-end: 0.5rem;
}

Expand DownExpand Up@@ -345,6 +342,10 @@
.cloud-section {
display: none;
}

section:last-child {
padding-block-end: 32px;
}
}

@media (min-width: 530px) and (max-width: 767px) {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/card/[uid]/+page.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -83,7 +83,7 @@

<div class="wrapper">
<div class="card">
<h3 class="heading-level-3 u-flex u-cross-center u-gap-8 no-text-select">
<h3 class="heading-level-3 no-text-select">
{title}
<button class="confetti-btn" on:click={() => triggerConfettiKey++}>
🎉
Expand DownExpand Up@@ -390,7 +390,7 @@
.confetti-btn {
animation: shake 2000ms ease infinite;
user-select: none;
display: grid;
display: inline-flex;
place-items: center;
position: relative;

Expand Down