Skip to content

Commit

Permalink
Tweak Styles Again
Browse files Browse the repository at this point in the history
Fresh eyes after holiday have more taste evidently!
  • Loading branch information
spjmurray committed Feb 19, 2024
1 parent 7be14a4 commit c91822f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
6 changes: 1 addition & 5 deletions src/lib/Hint.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section>
<section class="overlay">
<iconify-icon icon="tabler:bulb" />
<div>
<slot />
Expand All @@ -10,11 +10,7 @@
display: flex;
gap: var(--padding);
align-items: center;
background: var(--overlay);
backdrop-filter: blur(var(--radius));
border-radius: var(--radius);
padding: var(--padding-small);
box-shadow: 0 0 var(--radius) var(--shadow);
}
iconify-icon {
color: orange;
Expand Down
12 changes: 1 addition & 11 deletions src/lib/Item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
</script>

<article on:click={click} on:keypress={click} class:selected>
<article on:click={click} on:keypress={click} class="overlay" class:overlay-selected={selected}>
<header>
<slot name="header" />
</header>
Expand All @@ -20,16 +20,6 @@
</article>

<style>
article {
cursor: pointer;
border-radius: var(--radius);
background-color: var(--overlay);
backdrop-filter: blur(var(--radius));
box-shadow: 0 0 var(--radius) var(--shadow);
}
article.selected {
background-color: var(--overlay-highlight);
}
header {
transition: all 0.3s ease-in-out;
padding: var(--padding);
Expand Down
16 changes: 14 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,18 @@
color: var(--mid-grey);
}
:global(.overlay) {
border-radius: var(--radius);
background-color: var(--overlay);
backdrop-filter: blur(var(--radius));
box-shadow: 0 0 var(--radius) var(--shadow);
border: 1px solid var(--border);
}
:global(.overlay-selected) {
background-color: var(--overlay-highlight);
}
/* Desktop overrides */
@media only screen and (min-width: 720px) {
:global(dl) {
Expand All @@ -545,10 +557,10 @@
/* Color preference overrides */
@media (prefers-color-scheme: dark) {
:global(:root) {
--overlay: rgba(40, 40, 40, 0.5);
--overlay: rgba(25, 25, 25, 0.5);
--overlay-highlight: rgba(23, 33, 36, 0.8);
--background: rgb(7, 18, 21);
--border: rgb(80, 80, 80);
--border: rgb(35, 35, 35);
--shadow: rgba(0, 0, 0, 0.6);
}
:global(body) {
Expand Down
Binary file modified static/img/dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c91822f

Please sign in to comment.