Skip to content

Commit

Permalink
Merge color for spearators and borders
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Oct 7, 2024
1 parent 3e649c9 commit ebab2ea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/lib/components/inputs/button/loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
.dot {
fill: currentColor;
animation: bounce 0.5s ease-in-out infinite;
}
</style>
7 changes: 2 additions & 5 deletions src/lib/components/inputs/image-picker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@
}
function onDragOver(event: DragEvent) {
event.preventDefault();
if (event.dataTransfer) {
event.dataTransfer.dropEffect = 'copy';
}
}
function onDrop(event: DragEvent) {
event.preventDefault();
const file = event.dataTransfer?.files.item(0);
if (file) {
Expand All @@ -34,8 +31,8 @@
<label
title={t('components.image-picker')}
class="image-picker"
on:dragover={onDragOver}
on:drop={onDrop}
on:dragover|preventDefault={onDragOver}
on:drop|preventDefault={onDrop}
>
<input
type="file"
Expand Down
1 change: 0 additions & 1 deletion src/lib/style/_values.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ $height-regular: 480px;
$height-expanded: 720px;

:root {
--color-separator: gray;
--color-border: gray;
--color-accent: #ff8243;
--color-on-accent: black;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
padding-right: 1em;
padding-top: max(1em, env(safe-area-inset-top));
padding-bottom: max(1em, env(safe-area-inset-bottom));
border-inline-end: 2px solid var(--color-separator);
border-inline-end: 2px solid var(--color-border);
@include regular {
display: flex;
Expand All @@ -41,7 +41,7 @@
margin-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
border-top: 2px solid var(--color-separator);
border-top: 2px solid var(--color-border);
@include regular {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/segments.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
z-index: -1;
width: 100%;
height: 100%;
border: 2px solid var(--color-separator);
border: 2px solid var(--color-border);
border-radius: 2em;
box-sizing: border-box;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/top-bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
padding-right: max(1em, env(safe-area-inset-right));
box-sizing: border-box;
align-items: center;
border-bottom: 2px solid var(--color-separator);
border-bottom: 2px solid var(--color-border);
transition: 0.3s;
@include expanded {
Expand Down

0 comments on commit ebab2ea

Please sign in to comment.