Skip to content

Commit

Permalink
Fix slashes minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryLoki committed Feb 6, 2023
1 parent 557737e commit 0e0595f
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 58 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/common/ColorInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
class="text-left border-[1.99px] rounded-sm
{dropdownVisible
? 'border-blue-500 bg-gray-950'
: 'border-transparent hover:border-white/5 hover:bg-white/5'}
: 'border-transparent hover:border-gray-300/5 hover:bg-gray-300/5 nohover:bg-gray-300/5'}
focus-visible:outline-none focus-visible:border-blue-500 focus-visible:hover:border-blue-500
transition px-1 leading-6 h-6 box-content flex items-center
{cls}"
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/common/InlineEdit.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import IconEx from "./IconEx.svelte";
import MultilineField from "./MultilineField.svelte";
import { mdiAlertCircleOutline } from "@mdi/js";
import { mdiAlertCircleOutline, mdiPencil } from "@mdi/js";
import { createEventDispatcher, tick } from "svelte";
import { useActions } from "svelte-useactions";
import type { ActionList } from "svelte-useactions";
Expand Down Expand Up @@ -118,11 +118,12 @@
role="button"
use:useActions={use}
class="flex items-stretch w-full transition-all rounded-sm border-[1.99px] cursor-text
text-gray-200 focus-within:border-blue-500 hover:focus-within:border-blue-500 selection:bg-blue-600/60 selection:text-gray-200
text-gray-200 selection:text-gray-200 selection:bg-blue-600/60
{edit
? 'bg-gray-950 hover:bg-gray-900 focus-within:bg-black hover:focus-within:bg-black ' +
(invalid ? 'border-red-500' : 'border-white/5')
: 'bg-transparent border-transparent hover:border-white/5 hover:bg-white/5'}
? 'bg-gray-950 focus-within:bg-black hover:focus-within:bg-black ' +
(invalid ? 'border-red-500' : 'border-gray-300/5')
: 'bg-transparent hover:bg-gray-300/5 border-transparent hover:border-gray-300/5 nohover:bg-gray-400/5'}
focus-within:border-blue-500 hover:focus-within:border-blue-500
{cls}"
on:click={enterEditMode}
on:keydown={enterEditMode}
Expand Down Expand Up @@ -167,7 +168,6 @@
<slot>{value + "\n"}</slot>
{/if}
</div>

<button tabindex="-1" class="block min-w-[1rem] grow cursor-text">
&nbsp;
</button>
Expand Down
12 changes: 8 additions & 4 deletions src/lib/components/common/NumberInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@
tabindex="-1"
class="w-6 flex-none flex justify-center items-center
{canDecrement
? 'cursor-pointer hover:bg-white/5'
? 'cursor-pointer hover:bg-gray-300/5'
: 'cursor-default'}
{edit ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'}
{edit
? 'opacity-100'
: 'opacity-0 nohover:opacity-100 group-hover:opacity-100'}
transition-opacity"
>
<IconEx
Expand All @@ -186,9 +188,11 @@
tabindex="-1"
class="w-6 flex-none flex justify-center items-center
{canIncrement
? 'cursor-pointer hover:bg-white/5'
? 'cursor-pointer hover:bg-gray-300/5'
: 'cursor-default'}
{edit ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'}
{edit
? 'opacity-100'
: 'opacity-0 nohover:opacity-100 group-hover:opacity-100'}
transition-opacity"
>
<IconEx
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/common/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
focus-visible:outline-none focus-visible:border-blue-500
{dropdownVisible
? 'border-blue-500 bg-black/10'
: 'bg-transparent hover:bg-white/5 border-transparent hover:border-white/5'}
: 'bg-transparent hover:bg-gray-300/5 nohover:bg-gray-300/5 border-transparent hover:border-gray-300/5'}
{cls}"
on:click={onClick}
on:keydown={onButtonKeyDown}
Expand All @@ -153,7 +153,7 @@
class="fill-gray-400 h-4 w-4 absolute top-1 right-0 transition-opacity
{dropdownVisible
? 'opacity-100'
: 'opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100'}"
: 'opacity-0 nohover:opacity-100 group-hover:opacity-100 group-focus-visible:opacity-100'}"
role="presentation"
/>
</button>
Expand Down
27 changes: 0 additions & 27 deletions src/lib/worker/my.worker.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ import '../app.css';

export const prerender = true;
export const ssr = false;
export const trailingSlash = 'always';
1 change: 1 addition & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
const rootPage = $page.url.origin + $page.url.pathname;
const onQueryFormSubmit = async (event: CustomEvent<QueryParameters>) => {
drawerVisible = false;
await updateUrl(event.detail, appParameters.visParameters, false);
};
Expand Down
2 changes: 1 addition & 1 deletion src/routes/ViewForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
on:click={() => {
expanded = !expanded;
}}
class="w-full leading-6 py-0.5 text-gray-300 bg-transparent hover:bg-white/5 active:bg-black/5 transition-colors"
class="w-full leading-6 py-0.5 text-gray-300 bg-transparent hover:bg-gray-300/5 active:bg-black/5 transition-colors"
>
{expanded ? "Collapse" : "Show visualization settings"}
</button>
Expand Down
17 changes: 0 additions & 17 deletions src/routes/worker/+page.svelte

This file was deleted.

4 changes: 4 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
},
screens: {
coarse: {raw: '(pointer: coarse)'},
nohover: {raw: '(hover: none)'},
},
keyframes: {
'spin-appear': {
Expand All @@ -53,4 +54,7 @@ module.exports = {
experimental: {
optimizeUniversalDefaults: true,
},
future: {
hoverOnlyWhenSupported: true,
},
};

0 comments on commit 0e0595f

Please sign in to comment.