Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

refactor: use prettier-plugin-tailwindcss

JovannMC8d7919d60af0
diff --git a/.prettierrc b/.prettierrc
index cf47e6a..3074c20 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -2,6 +2,6 @@
"useTabs": true,
"tabWidth": 4,
"singleQuote": false,
- "plugins": ["prettier-plugin-svelte"],
+ "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
diff --git a/src/lib/components/functional/ConversionPanel.svelte b/src/lib/components/functional/ConversionPanel.svelte
index 9836bbf..3284b35 100644
--- a/src/lib/components/functional/ConversionPanel.svelte
+++ b/src/lib/components/functional/ConversionPanel.svelte
@@ -41,10 +41,10 @@
<Panel class="flex flex-col gap-4">
<div
- class="w-full h-auto flex items-center justify-between flex-col md:flex-row gap-4"
+ class="flex h-auto w-full flex-col items-center justify-between gap-4 md:flex-row"
>
<div
- class="flex items-center flex-col md:flex-row gap-2.5 max-md:w-full"
+ class="flex flex-col items-center gap-2.5 max-md:w-full md:flex-row"
>
<button
onclick={() => files.convertAll()}
@@ -77,7 +77,7 @@
{#if $isMobile}
<button
class={clsx(
- "btn p-4 flex gap-3 max-md:w-full",
+ "btn flex gap-3 p-4 max-md:w-full",
!$effects && "!scale-100",
)}
disabled={files.files.length === 0}
@@ -93,7 +93,7 @@
>
<button
class={clsx(
- "btn p-4 flex gap-3 max-md:w-full",
+ "btn flex gap-3 p-4 max-md:w-full",
!$effects && "!scale-100",
)}
disabled={files.files.length === 0}
@@ -104,11 +104,11 @@
</Tooltip>
{/if}
</div>
- <div class="w-full bg-separator h-0.5 flex md:hidden"></div>
+ <div class="flex h-0.5 w-full bg-separator md:hidden"></div>
{#if manyFiles}
- <div class="w-full max-w-64 p-2 flex gap-4 items-center">
+ <div class="flex w-full max-w-64 items-center gap-4 p-2">
<div
- class="flex-shrink-0 -mt-0.5 font-normal text-sm text-muted"
+ class="-mt-0.5 flex-shrink-0 text-sm font-normal text-muted"
>
{progress}/{length}
</div>
@@ -116,11 +116,11 @@
<ProgressBar min={0} max={length} {progress} />
</div>
</div>
- <div class="w-full bg-separator h-0.5 flex md:hidden"></div>
+ <div class="flex h-0.5 w-full bg-separator md:hidden"></div>
{/if}
- <div class="flex items-center gap-2 w-fit">
+ <div class="flex w-fit items-center gap-2">
<p
- class="whitespace-normal text-xl text-center w-fit px-2 md:px-0 md:text-right"
+ class="w-fit whitespace-normal px-2 text-center text-xl md:px-0 md:text-right"
>
{m["convert.panel.set_all_to"]()}
</p>
diff --git a/src/lib/components/functional/Dropdown.svelte b/src/lib/components/functional/Dropdown.svelte
index 3a6249a..8cb9c43 100644
--- a/src/lib/components/functional/Dropdown.svelte
+++ b/src/lib/components/functional/Dropdown.svelte
@@ -113,7 +113,7 @@
"min-w-fit text-center",
style !== "inline" && "w-full",
style === "inline" &&
- "inline-flex w-[6.5rem] sm:w-[10.5rem] md:w-52 text-left",
+ "inline-flex w-[6.5rem] text-left sm:w-[10.5rem] md:w-52",
style === "default" && "text-xl font-medium",
style === "settings" && "font-normal",
)}
@@ -122,19 +122,19 @@
<button
bind:this={button}
class={clsx(
- "font-display overflow-hidden relative w-full flex focus:!outline-none",
- style !== "inline" && "bg-button py-3.5 px-3",
+ "relative flex w-full overflow-hidden font-display focus:!outline-none",
+ style !== "inline" && "bg-button px-3 py-3.5",
style === "inline" && "justify-start",
- style === "settings" && "justify-between px-4 rounded-xl",
+ style === "settings" && "justify-between rounded-xl px-4",
style === "default" && "justify-center rounded-full",
- disabled ? "opacity-50 cursor-auto" : "cursor-pointer",
+ disabled ? "cursor-auto opacity-50" : "cursor-pointer",
)}
onclick={toggle}
{disabled}
>
<div
class={clsx(
- "grid grid-cols-1 grid-rows-1 min-w-0 flex-grow-1 truncate",
+ "flex-grow-1 grid min-w-0 grid-cols-1 grid-rows-1 truncate",
style === "inline" && "max-w-full",
)}
>
@@ -151,7 +151,7 @@
class={clsx(
"col-start-1 row-start-1 min-w-0 font-body",
style === "inline" &&
- "truncate w-full md:max-w-52 text-left underline underline-offset-3 decoration-dotted",
+ "underline-offset-3 w-full truncate text-left underline decoration-dotted md:max-w-52",
style === "settings" && "text-left font-normal",
style === "default" && "text-center",
style !== "settings" && "font-medium",
@@ -166,7 +166,7 @@
{#each options as option (getValue(option))}
<p
class={clsx(
- "col-start-1 row-start-1 pointer-events-none",
+ "pointer-events-none col-start-1 row-start-1",
style === "inline" ? "hidden" : "invisible",
)}
>
@@ -175,7 +175,7 @@
{/each}
</div>
<ChevronDownIcon
- class="w-4 h-4 ml-1.5 mt-0.5 flex-shrink-0"
+ class="ml-1.5 mt-0.5 h-4 w-4 flex-shrink-0"
style="transform: rotate({open
? 180
: 0}deg); transition: transform {duration}ms {transition};"
@@ -190,13 +190,13 @@
duration,
easing: quintOut,
}}
- class="shadow-xl bg-panel-alt shadow-black/25 overflow-hidden z-[9999] bg-background rounded-xl max-h-[23.5vh] overflow-y-auto"
+ class="bg-background z-[9999] max-h-[23.5vh] overflow-hidden overflow-y-auto rounded-xl bg-panel-alt shadow-xl shadow-black/25"
>
{#each options as option (getValue(option))}
<button
data-selected={getValue(option) === selected}
class={clsx(
- "w-full p-2 px-4 text-left hover:bg-panel font-normal text-sm text-muted",
+ "w-full p-2 px-4 text-left text-sm font-normal text-muted hover:bg-panel",
getValue(option) === selected && "bg-separator",
)}
onclick={() => select(option)}
diff --git a/src/lib/components/functional/FancyInput.svelte b/src/lib/components/functional/FancyInput.svelte
index bf03847..3bfe349 100644
--- a/src/lib/components/functional/FancyInput.svelte
+++ b/src/lib/components/functional/FancyInput.svelte
@@ -39,19 +39,19 @@
bind:checked
{disabled}
class={clsx(
- "bg-panel w-full p-3 rounded-lg border-2 border-button appearance-none",
+ "w-full appearance-none rounded-lg border-2 border-button bg-panel p-3",
prefix ? "pl-[2rem]" : "pl-3",
extension ? "pr-[4rem]" : "pr-3",
- disabled && "opacity-50 cursor-not-allowed",
+ disabled && "cursor-not-allowed opacity-50",
inputClass,
$effects && "transition-colors duration-200",
)}
/>
{#if checked}
<div
- class="absolute w-7 h-7 inset-0 flex items-center justify-center pointer-events-none"
+ class="pointer-events-none absolute inset-0 flex h-7 w-7 items-center justify-center"
>
- <svg class="w-6 h-6" fill="var(--bg-panel)" viewBox="0 0 20 20">
+ <svg class="h-6 w-6" fill="var(--bg-panel)" viewBox="0 0 20 20">
<path
fill-rule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
@@ -66,7 +66,7 @@
bind:value
{disabled}
class={clsx(
- "w-full rounded-lg bg-panel border-2 border-button",
+ "w-full rounded-lg border-2 border-button bg-panel",
thin ? "py-1.5" : "p-3",
prefix ? "pl-[2rem]" : thin ? "pl-2.5" : "pl-3",
extension
@@ -76,7 +76,7 @@
: thin
? "pr-2.5"
: "pr-3",
- disabled && "opacity-50 cursor-not-allowed",
+ disabled && "cursor-not-allowed opacity-50",
inputClass,
)}></textarea>
{:else}
@@ -86,7 +86,7 @@
bind:value
{disabled}
class={clsx(
- "w-full rounded-lg bg-panel border-2 border-button",
+ "w-full rounded-lg border-2 border-button bg-panel",
thin ? "py-1.5" : "p-3",
prefix ? "pl-[2rem]" : thin ? "pl-2.5" : "pl-3",
extension
@@ -96,29 +96,29 @@
: thin
? "pr-2.5"
: "pr-3",
- disabled && "opacity-50 cursor-not-allowed",
+ disabled && "cursor-not-allowed opacity-50",
inputClass,
)}
/>
{/if}
{#if prefix}
- <div class="absolute left-0 top-0 bottom-0 flex items-center px-2">
- <span class="text-sm text-gray-400 px-2 py-1 rounded">{prefix}</span
+ <div class="absolute bottom-0 left-0 top-0 flex items-center px-2">
+ <span class="rounded px-2 py-1 text-sm text-gray-400">{prefix}</span
>
</div>
{/if}
{#if extension}
<div
class={clsx(
- "absolute right-0 top-0 bottom-0 flex items-center",
+ "absolute bottom-0 right-0 top-0 flex items-center",
thin ? "px-2" : "px-4",
)}
>
<span
class={clsx(
- "bg-button text-black dynadark:text-white rounded",
- thin ? "text-xs px-2 py-0.5" : "text-sm px-2 py-1",
+ "rounded bg-button text-black dynadark:text-white",
+ thin ? "px-2 py-0.5 text-xs" : "px-2 py-1 text-sm",
)}>{extension}</span
>
</div>
diff --git a/src/lib/components/functional/FancyMenu.svelte b/src/lib/components/functional/FancyMenu.svelte
index 4e2e202..240f43d 100644
--- a/src/lib/components/functional/FancyMenu.svelte
+++ b/src/lib/components/functional/FancyMenu.svelte
@@ -36,11 +36,11 @@
<div
bind:clientWidth={navWidth}
- class="w-full flex bg-background relative h-16 items-center"
+ class="bg-background relative flex h-16 w-full items-center"
>
{#if activeLinkIndex !== -1}
<div
- class="absolute pointer-events-none top-1 bg-foreground h-[calc(100%-8px)] rounded-xl"
+ class="bg-foreground pointer-events-none absolute top-1 h-[calc(100%-8px)] rounded-xl"
style:width="{navWidth / linkCount - 8}px"
style:left="{(navWidth / linkCount) * activeLinkIndex + 4}px"
style:transition="{hasLoaded ? duration - 200 : 0}ms ease left"
@@ -49,7 +49,7 @@
{#each links as { name, url } (url)}
<a
class={clsx(
- "w-1/2 px-2 ml-1 h-[calc(100%-8px)] mr-1 flex items-center justify-center rounded-xl relative overflow-hidden font-medium",
+ "relative ml-1 mr-1 flex h-[calc(100%-8px)] w-1/2 items-center justify-center overflow-hidden rounded-xl px-2 font-medium",
{
"bg-foreground": page.url.pathname === url && !browser,
},
@@ -70,7 +70,7 @@
<div class="grid grid-cols-1 grid-rows-1">
{#key name}
<span
- class="mix-blend-difference invert dynadark:invert-0 col-start-1 row-start-1 text-center"
+ class="col-start-1 row-start-1 text-center mix-blend-difference invert dynadark:invert-0"
in:fly={{
duration,
easing: quintOut,
diff --git a/src/lib/components/functional/FormatDropdown.svelte b/src/lib/components/functional/FormatDropdown.svelte
index 06f402b..5cac172 100644
--- a/src/lib/components/functional/FormatDropdown.svelte
+++ b/src/lib/components/functional/FormatDropdown.svelte
@@ -487,20 +487,20 @@
</script>
<div
- class="relative w-full min-w-fit text-xl font-medium text-center"
+ class="relative w-full min-w-fit text-center text-xl font-medium"
bind:this={dropdown}
>
<button
class={clsx(
- "relative flex items-center justify-center w-full font-display px-3 py-3.5 bg-button rounded-full overflow-hidden focus:!outline-none",
- disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
+ "relative flex w-full items-center justify-center overflow-hidden rounded-full bg-button px-3 py-3.5 font-display focus:!outline-none",
+ disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
)}
onclick={() => clickDropdown()}
{disabled}
>
<!-- <p>{selected}</p> -->
<div
- class="grid grid-cols-1 grid-rows-1 w-fit flex-grow-0 max-h-[2.5rem] overflow-hidden"
+ class="grid max-h-[2.5rem] w-fit flex-grow-0 grid-cols-1 grid-rows-1 overflow-hidden"
>
{#key selected}
<p
@@ -512,7 +512,7 @@
duration,
easing: quintOut,
}}
- class="col-start-1 row-start-1 text-center font-body font-medium truncate max-w-[4rem]"
+ class="col-start-1 row-start-1 max-w-[4rem] truncate text-center font-body font-medium"
>
{selected || "N/A"}
</p>
@@ -520,7 +520,7 @@
{#if currentCategory}
{#each categories[currentCategory].formats as option (option)}
<p
- class="col-start-1 row-start-1 invisible pointer-events-none truncate max-w-[2.5rem]"
+ class="pointer-events-none invisible col-start-1 row-start-1 max-w-[2.5rem] truncate"
>
{option}
</p>
@@ -528,7 +528,7 @@
{/if}
</div>
<ChevronDownIcon
- class="w-4 h-4 ml-3 mt-0.5 flex-shrink-0"
+ class="ml-3 mt-0.5 h-4 w-4 flex-shrink-0"
style="transform: rotate({open
? 180
: 0}deg); transition: transform {duration}ms {transition};"
@@ -543,30 +543,30 @@
}}
class={clsx(
$isMobile
- ? "fixed inset-x-0 bottom-0 w-full z-[200] shadow-xl bg-panel-alt shadow-black/25 rounded-t-2xl overflow-hidden"
- : "min-w-full shadow-xl bg-panel-alt shadow-black/25 absolute top-full mt-2 z-50 rounded-2xl overflow-hidden",
+ ? "fixed inset-x-0 bottom-0 z-[200] w-full overflow-hidden rounded-t-2xl bg-panel-alt shadow-xl shadow-black/25"
+ : "absolute top-full z-50 mt-2 min-w-full overflow-hidden rounded-2xl bg-panel-alt shadow-xl shadow-black/25",
!$isMobile && {
"w-[320%]": dropdownSize === "large",
"w-[250%]": dropdownSize === "default",
"w-[150%]": dropdownSize === "small",
},
!$isMobile && {
- "-translate-x-1/2 left-1/2": dropdownPosition === "center",
+ "left-1/2 -translate-x-1/2": dropdownPosition === "center",
"left-0": dropdownPosition === "left",
"right-0": dropdownPosition === "right",
},
)}
>
<!-- search box -->
- <div class="p-3 w-full">
+ <div class="w-full p-3">
<div class="relative">
<input
type="text"
placeholder={m["convert.dropdown.placeholder"]()}
class={clsx(
- "flex-grow w-full !pl-11 !pr-3 rounded-lg bg-panel text-foreground",
+ "w-full flex-grow rounded-lg bg-panel !pl-11 !pr-3 text-foreground",
filteredData.isFallback &&
- "opacity-50 cursor-not-allowed",
+ "cursor-not-allowed opacity-50",
)}
bind:value={searchQuery}
oninput={handleSearch}
@@ -578,11 +578,11 @@
/>
<span
class={clsx(
- "absolute left-4 top-1/2 -translate-y-1/2 flex items-center",
+ "absolute left-4 top-1/2 flex -translate-y-1/2 items-center",
filteredData.isFallback && "opacity-50",
)}
>
- <SearchIcon class="w-4 h-4" />
+ <SearchIcon class="h-4 w-4" />
</span>
{#if searchQuery}
<span
@@ -599,7 +599,7 @@
</div>
<!-- fallback message -->
{#if filteredData.isFallback}
- <div class="pb-4 text-center text-muted text-base">
+ <div class="pb-4 text-center text-base text-muted">
{m["convert.dropdown.fallback"]()}
</div>
{/if}
@@ -608,9 +608,9 @@
{#each filteredData.categories as category (category)}
<button
class={clsx(
- "flex-grow text-lg hover:text-muted/20 border-b-2 pb-2 capitalize",
+ "hover:text-muted/20 flex-grow border-b-2 pb-2 text-lg capitalize",
currentCategory === category
- ? "text-accent border-b-accent"
+ ? "border-b-accent text-accent"
: "border-b-separator text-muted",
)}
onclick={() => selectCategory(category)}
@@ -624,7 +624,7 @@
<div use:animateHeight>
{#key currentCategory}
<div
- class="max-h-80 overflow-y-auto grid grid-cols-3 gap-2 p-2"
+ class="grid max-h-80 grid-cols-3 gap-2 overflow-y-auto p-2"
in:fade={{
duration: duration,
easing: quintOut,
@@ -644,7 +644,7 @@
<button
data-selected={format === selected}
aria-disabled="true"
- class="w-full p-2 text-center rounded-xl opacity-45 cursor-not-allowed"
+ class="w-full cursor-not-allowed rounded-xl p-2 text-center opacity-45"
tabindex="0"
onclick={(e) => e.preventDefault()}
onkeydown={(e) =>
@@ -657,7 +657,7 @@
<button
data-selected={format === selected}
class={clsx(
- "w-full p-2 text-center rounded-xl",
+ "w-full rounded-xl p-2 text-center",
format === selected
? "bg-accent text-black"
: format === from
@@ -671,7 +671,7 @@
{/if}
{/each}
{:else}
- <div class="col-span-3 text-center p-4 text-muted">
+ <div class="col-span-3 p-4 text-center text-muted">
{searchQuery
? m["convert.dropdown.no_results"]()
: m["convert.dropdown.no_formats"]()}
@@ -683,10 +683,10 @@
<!-- format options -->
{#if file?.name.toLowerCase().endsWith(".zip")}
<div
- class="flex flex-col gap-2 p-2 border-t border-separator text-base"
+ class="flex flex-col gap-2 border-t border-separator p-2 text-base"
>
<button
- class="w-full p-2 text-center rounded-lg bg-accent text-black"
+ class="w-full rounded-lg bg-accent p-2 text-center text-black"
onclick={() => extract()}
>
{m["convert.archive_file.extract"]()}
@@ -697,7 +697,7 @@
<!-- first row -->
<div class="flex items-center gap-3">
<div
- class="flex items-center gap-2 flex-1 min-w-0 h-full"
+ class="flex h-full min-w-0 flex-1 items-center gap-2"
>
<FancyInput
type="checkbox"
@@ -728,7 +728,7 @@
<!-- second row -->
<div class="flex items-center gap-3">
<div
- class="flex items-center gap-2 flex-1 min-w-0 h-full"
+ class="flex h-full min-w-0 flex-1 items-center gap-2"
>
<FancyInput
type="checkbox"
@@ -751,7 +751,7 @@
{#if file.sequenceKind === "frameSequence" && imageSequence}
<div class="flex flex-col border-t border-separator">
<button
- class="w-full mt-2 p-2.5 flex gap-3 justify-center text-center rounded-lg bg-accent text-black"
+ class="mt-2 flex w-full justify-center gap-3 rounded-lg bg-accent p-2.5 text-center text-black"
onclick={() => ($fileSettings = file)}
>
<SettingsIcon size="24" />
@@ -761,9 +761,9 @@
{/if}
</div>
{:else}
- <div class="border-t border-separator text-base p-2">
+ <div class="border-t border-separator p-2 text-base">
<button
- class="w-full p-2.5 flex gap-3 justify-center text-center rounded-lg bg-accent text-black"
+ class="flex w-full justify-center gap-3 rounded-lg bg-accent p-2.5 text-center text-black"
onclick={() => {
if (file) $fileSettings = file;
else $fileSettings = undefined; // all files
diff --git a/src/lib/components/functional/Uploader.svelte b/src/lib/components/functional/Uploader.svelte
index 684c5c5..f3ea744 100644
--- a/src/lib/components/functional/Uploader.svelte
+++ b/src/lib/components/functional/Uploader.svelte
@@ -60,20 +60,20 @@
onclick={uploadFiles}
bind:this={uploaderButton}
class={clsx(
- "hover:scale-105 active:scale-100 duration-200",
+ "duration-200 hover:scale-105 active:scale-100",
!$effects && "!scale-100",
classList,
)}
>
<Panel
- class="flex justify-center items-center w-full h-full flex-col pointer-events-none"
+ class="pointer-events-none flex h-full w-full flex-col items-center justify-center"
>
<div
- class="w-16 h-16 bg-accent rounded-full flex items-center justify-center p-4"
+ class="flex h-16 w-16 items-center justify-center rounded-full bg-accent p-4"
>
- <UploadIcon class="w-full h-full text-on-accent" />
+ <UploadIcon class="h-full w-full text-on-accent" />
</div>
- <h2 class="text-center text-2xl font-semibold mt-4">
+ <h2 class="mt-4 text-center text-2xl font-semibold">
{m["upload.uploader.text"]({
action: m["upload.uploader.convert"](),
})}
diff --git a/src/lib/components/functional/popups/Dialog.svelte b/src/lib/components/functional/popups/Dialog.svelte
index f2f5c62..187e5a7 100644
--- a/src/lib/components/functional/popups/Dialog.svelte
+++ b/src/lib/components/functional/popups/Dialog.svelte
@@ -38,7 +38,7 @@
</script>
<div
- class="flex flex-col items-center justify-between w-full max-w-md p-4 gap-6 bg-panel border-accent-{color}-alt rounded-lg shadow-md"
+ class="flex w-full max-w-md flex-col items-center justify-between gap-6 bg-panel p-4 border-accent-{color}-alt rounded-lg shadow-md"
in:fly={{
duration,
easing: quintOut,
@@ -50,19 +50,19 @@
easing: quintOut,
}}
>
- <div class="flex justify-between w-full items-center">
+ <div class="flex w-full items-center justify-between">
<div class="flex items-center gap-3">
<div
- class="rounded-full bg-accent-{color} p-2 inline-block w-8 h-8"
+ class="rounded-full bg-accent-{color} inline-block h-8 w-8 p-2"
>
<Icon size="16" color="black" />
</div>
<p class="text-lg font-semibold">{title}</p>
</div>
</div>
- <div class="flex flex-col gap-1 w-full">
+ <div class="flex w-full flex-col gap-1">
{#if typeof message === "string"}
- <p class="text-sm font-normal text-muted whitespace-pre-wrap">
+ <p class="whitespace-pre-wrap text-sm font-normal text-muted">
{message}
</p>
{:else}
@@ -72,11 +72,11 @@
</div>
{/if}
</div>
- <div class="flex flex-row items-center justify-between gap-4 w-full">
+ <div class="flex w-full flex-row items-center justify-between gap-4">
{#each buttons as { text, action }, i (`${i}-${text}`)}
<button
class={clsx(
- "w-full justify-center hover:scale-105 active:scale-100 duration-200 flex items-center gap-2 p-2 rounded-md px-6",
+ "flex w-full items-center justify-center gap-2 rounded-md p-2 px-6 duration-200 hover:scale-105 active:scale-100",
i === 1
? `bg-accent-${color} text-black`
: "bg-button text-black dynadark:text-white",
diff --git a/src/lib/components/functional/popups/FallbackToast.svelte b/src/lib/components/functional/popups/FallbackToast.svelte
index ec83206..72cd02a 100644
--- a/src/lib/components/functional/popups/FallbackToast.svelte
+++ b/src/lib/components/functional/popups/FallbackToast.svelte
@@ -22,13 +22,13 @@
</p>
<div class="flex gap-4">
<button
- class="btn rounded-lg h-fit py-2 w-full"
+ class="btn h-fit w-full rounded-lg py-2"
onclick={() => additional.onCancel()}
>
{m["convert.errors.converter_fallback.no"]()}
</button>
<button
- class="btn rounded-lg h-fit py-2 w-full bg-accent-blue text-black"
+ class="btn h-fit w-full rounded-lg bg-accent-blue py-2 text-black"
onclick={() => additional.onNext()}
>
{m["convert.errors.converter_fallback.yes"]()}
diff --git a/src/lib/components/functional/popups/Modal.svelte b/src/lib/components/functional/popups/Modal.svelte
index 331d0cc..5f536ec 100644
--- a/src/lib/components/functional/popups/Modal.svelte
+++ b/src/lib/components/functional/popups/Modal.svelte
@@ -62,7 +62,7 @@
<div
bind:this={backdropElement}
- class="fixed inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm z-[400]"
+ class="fixed inset-0 z-[400] flex items-center justify-center bg-black/50 backdrop-blur-sm"
onclick={handleOutsideClick}
onkeydown={handleKeydown}
role="dialog"
@@ -82,7 +82,7 @@
onkeydown={() => {}}
tabindex="0"
role="dialog"
- class="flex flex-col items-center justify-between w-full max-w-lg p-5 gap-6 bg-panel rounded-lg shadow-md"
+ class="flex w-full max-w-lg flex-col items-center justify-between gap-6 rounded-lg bg-panel p-5 shadow-md"
in:fade={{
duration,
easing: quintOut,
@@ -92,10 +92,10 @@
easing: quintOut,
}}
>
- <div class="flex justify-between w-full items-center">
+ <div class="flex w-full items-center justify-between">
<div class="flex items-center gap-3">
<div
- class="rounded-full bg-accent-{color} p-2 inline-block w-8 h-8"
+ class="rounded-full bg-accent-{color} inline-block h-8 w-8 p-2"
>
<Icon size="16" color="black" />
</div>
@@ -104,14 +104,14 @@
{#if badge.tooltip}
<Tooltip text={badge.tooltip} position="bottom">
<div
- class="rounded-md bg-{badge.color} px-1.5 py-0.5 text-sm font-display text-white"
+ class="rounded-md bg-{badge.color} px-1.5 py-0.5 font-display text-sm text-white"
>
{badge.text}
</div>
</Tooltip>
{:else}
<div
- class="rounded-md bg-{badge.color} px-1.5 py-0.5 text-sm font-display text-white"
+ class="rounded-md bg-{badge.color} px-1.5 py-0.5 font-display text-sm text-white"
>
{badge.text}
</div>
@@ -120,15 +120,15 @@
</div>
</div>
- <div class="flex flex-col gap-1 w-full text-sm font-normal text-muted">
+ <div class="flex w-full flex-col gap-1 text-sm font-normal text-muted">
{@render children()}
</div>
- <div class="flex flex-row items-center gap-2 w-full">
+ <div class="flex w-full flex-row items-center gap-2">
{#each buttons as { text, action, primary }, i (`${i}-${text}`)}
<button
class={clsx(
- "hover:scale-105 active:scale-100 duration-200 flex items-center gap-2 p-2 rounded-md px-6",
+ "flex items-center gap-2 rounded-md p-2 px-6 duration-200 hover:scale-105 active:scale-100",
primary || i === 1
? `text-black bg-accent-${color}`
: "bg-button text-black dynadark:text-white",
diff --git a/src/lib/components/functional/popups/SettingsModal.svelte b/src/lib/components/functional/popups/SettingsModal.svelte
index 36b624e..d712d21 100644
--- a/src/lib/components/functional/popups/SettingsModal.svelte
+++ b/src/lib/components/functional/popups/SettingsModal.svelte
@@ -283,7 +283,7 @@
]}
onclose={() => onclose?.()}
>
- <div class="flex flex-col gap-8 max-h-[calc(100vh-225px)] overflow-y-auto">
+ <div class="flex max-h-[calc(100vh-225px)] flex-col gap-8 overflow-y-auto">
{#if targetFile}
{@const availableConverters = getAvailableConverters(targetFile)}
{@const validConverter = getValidConverter(
@@ -302,13 +302,13 @@
}}
/>
{#if selectedFileId !== allFilesValue}
- <p class="text-xs text-muted mt-1">
+ <p class="mt-1 text-xs text-muted">
{m["convert.settings.file_id"]({
id: targetFile.id ?? "N/A",
})}
</p>
{:else}
- <p class="text-xs text-muted mt-1">
+ <p class="mt-1 text-xs text-muted">
{m["convert.settings.file_id"]({ id: "N/A" })}
</p>
{/if}
@@ -318,9 +318,9 @@
{#each Object.keys(settingTabs) as tab (tab)}
<button
class={clsx(
- "flex-grow text-lg hover:text-muted/20 border-b-2 pb-2 capitalize",
+ "hover:text-muted/20 flex-grow border-b-2 pb-2 text-lg capitalize",
activeTab === tab
- ? "text-accent border-b-accent"
+ ? "border-b-accent text-accent"
: "border-b-separator text-muted",
)}
onclick={() => (activeTab = tab)}
@@ -341,7 +341,7 @@
{#each availableConverters as converter (converter.name)}
<button
class={clsx(
- "w-full p-3 text-left rounded-xl border-2 border-button",
+ "w-full rounded-xl border-2 border-button p-3 text-left",
converter.name ===
validConverter?.name &&
"bg-accent-purple text-black",
@@ -374,7 +374,7 @@
{setting.label}
</p>
{#if setting.description}
- <p class="text-xs text-muted mt-1">
+ <p class="mt-1 text-xs text-muted">
{setting.description}
</p>
{/if}
@@ -437,7 +437,7 @@
setting.options?.[rangeValue]
?.label ?? rangeValue}
<div
- class="flex items-center mt-2 gap-2"
+ class="mt-2 flex items-center gap-2"
>
<input
type="range"
@@ -455,7 +455,7 @@
disabled={setting.disabled}
/>
<span
- class="text-sm max-w-28 w-full text-right"
+ class="w-full max-w-28 text-right text-sm"
>{rangeLabel}</span
>
</div>
diff --git a/src/lib/components/functional/popups/SlowConversionToast.svelte b/src/lib/components/functional/popups/SlowConversionToast.svelte
index eded713..22795c1 100644
--- a/src/lib/components/functional/popups/SlowConversionToast.svelte
+++ b/src/lib/components/functional/popups/SlowConversionToast.svelte
@@ -26,13 +26,13 @@
</p>
<div class="flex gap-4">
<button
- class="btn rounded-lg h-fit py-2 w-full"
+ class="btn h-fit w-full rounded-lg py-2"
onclick={additional.onContinue}
>
{m["convert.slow_conversion.continue"]()}
</button>
<button
- class="btn rounded-lg h-fit py-2 w-full bg-accent-blue text-black"
+ class="btn h-fit w-full rounded-lg bg-accent-blue py-2 text-black"
onclick={() => additional.onSwitch()}
>
{m["convert.slow_conversion.switch"]({
diff --git a/src/lib/components/functional/popups/VertdError.svelte b/src/lib/components/functional/popups/VertdError.svelte
index 6bbbf86..611ef60 100644
--- a/src/lib/components/functional/popups/VertdError.svelte
+++ b/src/lib/components/functional/popups/VertdError.svelte
@@ -87,20 +87,20 @@
<div class="flex flex-col gap-2">
<button
onclick={showDetails}
- class="btn rounded-lg h-fit py-2 w-full bg-accent-blue text-black"
+ class="btn h-fit w-full rounded-lg bg-accent-blue py-2 text-black"
disabled={submitting}
>{m["convert.errors.vertd.generic.view"]()}</button
>
<div class="flex gap-4">
<button
onclick={submit}
- class="btn rounded-lg h-fit py-2 w-full bg-accent-red-alt text-white"
+ class="btn h-fit w-full rounded-lg bg-accent-red-alt py-2 text-white"
disabled={submitting}
>{m["convert.errors.vertd.generic.yes"]()}</button
>
<button
onclick={remove}
- class="btn rounded-lg h-fit py-2 w-full"
+ class="btn h-fit w-full rounded-lg py-2"
disabled={submitting}
>{m["convert.errors.vertd.generic.no"]()}</button
>
diff --git a/src/lib/components/layout/Dialogs.svelte b/src/lib/components/layout/Dialogs.svelte
index 3080550..d5bcb44 100644
--- a/src/lib/components/layout/Dialogs.svelte
+++ b/src/lib/components/layout/Dialogs.svelte
@@ -16,7 +16,7 @@
{#if dialogList.length > 0}
<div
- class="fixed inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm z-40"
+ class="fixed inset-0 z-40 flex items-center justify-center bg-black/50 backdrop-blur-sm"
in:fade={{
duration,
easing: quintOut,
diff --git a/src/lib/components/layout/Footer.svelte b/src/lib/components/layout/Footer.svelte
index a288e2e..1179c9e 100644
--- a/src/lib/components/layout/Footer.svelte
+++ b/src/lib/components/layout/Footer.svelte
@@ -16,15 +16,15 @@
</script>
<footer
- class="hidden md:block w-full h-14 border-t border-separator fixed bottom-0 mt-12"
+ class="fixed bottom-0 mt-12 hidden h-14 w-full border-t border-separator md:block"
>
<div
- class="w-full h-full flex items-center justify-center text-muted gap-3 relative"
+ class="relative flex h-full w-full items-center justify-center gap-3 text-muted"
>
<p>{m["footer.copyright"]({ year })}</p>
<p>•</p>
<a
- class="hover:underline font-normal"
+ class="font-normal hover:underline"
href={GITHUB_URL_VERT}
target="_blank"
>
@@ -32,20 +32,20 @@
</a>
<p>•</p>
<a
- class="hover:underline font-normal"
+ class="font-normal hover:underline"
href={DISCORD_URL}
target="_blank"
>
{m["footer.discord_server"]()}
</a>
<p>•</p>
- <a class="hover:underline font-normal" href="/privacy/">
+ <a class="font-normal hover:underline" href="/privacy/">
{m["footer.privacy_policy"]()}
</a>
{#if commitHash}
<p>•</p>
<a
- class="hover:underline font-normal"
+ class="font-normal hover:underline"
href="{GITHUB_URL_VERT}/commit/{commitHash}"
target="_blank"
>
@@ -55,7 +55,7 @@
</div>
<div
- class="absolute bottom-0 left-0 w-full h-24 -z-10 pointer-events-none"
+ class="pointer-events-none absolute bottom-0 left-0 -z-10 h-24 w-full"
style="background: linear-gradient(to bottom, transparent, var(--bg) 100%)"
></div>
</footer>
diff --git a/src/lib/components/layout/Gradients.svelte b/src/lib/components/layout/Gradients.svelte
index 67d9b58..2b28715 100644
--- a/src/lib/components/layout/Gradients.svelte
+++ b/src/lib/components/layout/Gradients.svelte
@@ -70,20 +70,20 @@
{#if page.url.pathname === "/"}
<div
- class="fixed -z-30 top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"
+ class="fixed left-0 top-0 -z-30 flex h-screen w-screen items-center justify-center overflow-hidden"
transition:fade={{
duration,
easing: quintOut,
}}
>
<VertVBig
- class="fill-[--fg] opacity-10 dynadark:opacity-5 scale-[200%] md:scale-[80%]"
+ class="scale-[200%] fill-[--fg] opacity-10 dynadark:opacity-5 md:scale-[80%]"
/>
</div>
{/if}
<div
- class="fixed top-0 left-0 w-screen h-screen -z-40 pointer-events-none"
+ class="pointer-events-none fixed left-0 top-0 -z-40 h-screen w-screen"
style:background-color={color.color}
style:mask-image={maskImage}
style:-webkit-mask-image={maskImage}
@@ -94,7 +94,7 @@
{@const bgMask =
"linear-gradient(to top, transparent 5%, rgba(0, 0, 0, 0.5) 100%)"}
<div
- class="fixed top-0 left-0 w-screen h-screen -z-50"
+ class="fixed left-0 top-0 -z-50 h-screen w-screen"
style:background-image="url({files.files[0].blobUrl})"
style:background-size="cover"
style:background-position="center"
diff --git a/src/lib/components/layout/MobileLogo.svelte b/src/lib/components/layout/MobileLogo.svelte
index 1dd88f6..5b38d23 100644
--- a/src/lib/components/layout/MobileLogo.svelte
+++ b/src/lib/components/layout/MobileLogo.svelte
@@ -2,15 +2,15 @@
import Logo from "#lib/components/visual/svg/Logo.svelte";
</script>
-<div class="flex md:hidden justify-center items-center pb-8 pt-4">
+<div class="flex items-center justify-center pb-8 pt-4 md:hidden">
<a
- class="flex items-center justify-center bg-panel p-2 rounded-[20px] shadow-panel"
+ class="flex items-center justify-center rounded-[20px] bg-panel p-2 shadow-panel"
href="/"
>
<div
- class="h-14 bg-accent rounded-[14px] flex items-center justify-center"
+ class="flex h-14 items-center justify-center rounded-[14px] bg-accent"
>
- <div class="w-28 h-5">
+ <div class="h-5 w-28">
<Logo />
</div>
</div>
diff --git a/src/lib/components/layout/Navbar/Base.svelte b/src/lib/components/layout/Navbar/Base.svelte
index acf9b47..cb4ea5d 100644
--- a/src/lib/components/layout/Navbar/Base.svelte
+++ b/src/lib/components/layout/Navbar/Base.svelte
@@ -106,7 +106,7 @@
href={item.url}
aria-label={item.name}
class={clsx(
- "min-w-16 md:min-w-32 h-full relative z-10 rounded-xl flex flex-1 items-center justify-center gap-3 overflow-hidden",
+ "relative z-10 flex h-full min-w-16 flex-1 items-center justify-center gap-3 overflow-hidden rounded-xl md:min-w-32",
{
"bg-panel-highlight":
item.activeMatch(page.url.pathname) && !browser,
@@ -114,10 +114,10 @@
)}
draggable={false}
>
- <div class="grid grid-rows-1 grid-cols-1">
+ <div class="grid grid-cols-1 grid-rows-1">
{#key item.name}
<div
- class="w-full row-start-1 col-start-1 h-full flex items-center justify-center gap-3"
+ class="col-start-1 row-start-1 flex h-full w-full items-center justify-center gap-3"
in:fade={{
duration,
easing: quintOut,
@@ -131,7 +131,7 @@
<Icon />
{#if item.badge}
<div
- class="absolute overflow-hidden grid grid-rows-1 grid-cols-1 -top-1 font-display -right-1 w-fit px-1.5 h-4 rounded-full bg-badge text-on-badge font-medium"
+ class="absolute -right-1 -top-1 grid h-4 w-fit grid-cols-1 grid-rows-1 overflow-hidden rounded-full bg-badge px-1.5 font-display font-medium text-on-badge"
style="font-size: 0.7rem;"
transition:fade={{
duration,
@@ -140,7 +140,7 @@
>
{#key item.badge}
<div
- class="flex items-center justify-center w-full h-full col-start-1 row-start-1"
+ class="col-start-1 row-start-1 flex h-full w-full items-center justify-center"
in:fade={{
duration,
easing: quintOut,
@@ -157,7 +157,7 @@
{/if}
</div>
<p
- class="font-medium hidden hyphens-auto break-all md:flex min-w-0"
+ class="hidden min-w-0 hyphens-auto break-all font-medium md:flex"
>
{item.name}
</p>
@@ -168,11 +168,11 @@
{/snippet}
<div bind:this={container}>
- <Panel class="max-w-[778px] w-screen h-20 flex items-center gap-3 relative">
+ <Panel class="relative flex h-20 w-screen max-w-[778px] items-center gap-3">
{@const linkRect = linkRects.at(selectedIndex) || linkRects[0]}
{#if linkRect && isInitialized}
<div
- class="absolute bg-panel-highlight rounded-xl"
+ class="absolute rounded-xl bg-panel-highlight"
style:width="{linkRect.width}px"
style:height="{linkRect.height}px"
style:top="{linkRect.top - (containerRect?.top || 0)}px"
@@ -184,7 +184,7 @@
></div>
{/if}
<a
- class="w-28 h-full bg-accent rounded-xl items-center justify-center hidden md:flex"
+ class="hidden h-full w-28 items-center justify-center rounded-xl bg-accent md:flex"
href="/"
>
<div class="h-5 w-full">
@@ -194,7 +194,7 @@
{#each items as item, i (item.url)}
{@render link(item, i)}
{/each}
- <div class="w-0.5 bg-separator h-full hidden md:flex"></div>
+ <div class="hidden h-full w-0.5 bg-separator md:flex"></div>
<Tooltip text={m["navbar.toggle_theme"]()} position="right">
<button
onclick={() => {
@@ -202,10 +202,10 @@
document.documentElement.classList.contains("dark");
setTheme(isDark ? "light" : "dark");
}}
- class="w-14 h-full items-center justify-center hidden md:flex"
+ class="hidden h-full w-14 items-center justify-center md:flex"
>
- <SunIcon class="dynadark:hidden block" />
- <MoonIcon class="dynadark:block hidden" />
+ <SunIcon class="block dynadark:hidden" />
+ <MoonIcon class="hidden dynadark:block" />
</button>
</Tooltip>
</Panel>
diff --git a/src/lib/components/layout/Navbar/Desktop.svelte b/src/lib/components/layout/Navbar/Desktop.svelte
index 662e024..e3dface 100644
--- a/src/lib/components/layout/Navbar/Desktop.svelte
+++ b/src/lib/components/layout/Navbar/Desktop.svelte
@@ -2,6 +2,6 @@
import Navbar from "./Base.svelte";
</script>
-<div class="hidden md:flex p-8 w-screen justify-center">
+<div class="hidden w-screen justify-center p-8 md:flex">
<Navbar />
</div>
diff --git a/src/lib/components/layout/Navbar/Mobile.svelte b/src/lib/components/layout/Navbar/Mobile.svelte
index ce93e7b..7d85282 100644
--- a/src/lib/components/layout/Navbar/Mobile.svelte
+++ b/src/lib/components/layout/Navbar/Mobile.svelte
@@ -2,8 +2,8 @@
import Navbar from "./Base.svelte";
</script>
-<div class="fixed md:hidden bottom-0 left-0 w-screen p-8 justify-center z-100">
- <div class="flex flex-col justify-center items-center">
+<div class="z-100 fixed bottom-0 left-0 w-screen justify-center p-8 md:hidden">
+ <div class="flex flex-col items-center justify-center">
<Navbar />
</div>
</div>
diff --git a/src/lib/components/layout/PageContent.svelte b/src/lib/components/layout/PageContent.svelte
index 2068eca..b48633a 100644
--- a/src/lib/components/layout/PageContent.svelte
+++ b/src/lib/components/layout/PageContent.svelte
@@ -8,10 +8,10 @@
let { children } = $props();
</script>
-<div class="grid grid-rows-1 grid-cols-1 h-full flex-grow">
+<div class="grid h-full flex-grow grid-cols-1 grid-rows-1">
{#key page.url.pathname}
<div
- class="row-start-1 col-start-1"
+ class="col-start-1 row-start-1"
in:fly={{
x: $goingLeft ? -window.innerWidth : window.innerWidth,
duration,
@@ -25,7 +25,7 @@
}}
>
<div
- class="flex flex-col h-full pb-32"
+ class="flex h-full flex-col pb-32"
in:fade={{
duration,
easing: quintOut,
diff --git a/src/lib/components/layout/Toasts.svelte b/src/lib/components/layout/Toasts.svelte
index 175f407..627d7c8 100644
--- a/src/lib/components/layout/Toasts.svelte
+++ b/src/lib/components/layout/Toasts.svelte
@@ -4,7 +4,7 @@
</script>
<div
- class="fixed bottom-28 md:bottom-0 right-0 p-4 flex flex-col-reverse gap-4 z-50"
+ class="fixed bottom-28 right-0 z-50 flex flex-col-reverse gap-4 p-4 md:bottom-0"
>
{#each ToastManager.toasts as toast (toast.id)}
<div class="flex justify-end">
diff --git a/src/lib/components/layout/UploadRegion.svelte b/src/lib/components/layout/UploadRegion.svelte
index 5e9d9ac..b141c5e 100644
--- a/src/lib/components/layout/UploadRegion.svelte
+++ b/src/lib/components/layout/UploadRegion.svelte
@@ -8,7 +8,7 @@
{#if $dropping}
<div
class={clsx(
- "fixed w-screen h-screen opacity-40 dynadark:opacity-20 z-[100] pointer-events-none blur-2xl",
+ "pointer-events-none fixed z-[100] h-screen w-screen opacity-40 blur-2xl dynadark:opacity-20",
$effects ? "dragoverlay" : "bg-accent-blue",
)}
class:_dragover={dropping && $effects}
diff --git a/src/lib/components/visual/Panel.svelte b/src/lib/components/visual/Panel.svelte
index 3d58c62..5dc39cd 100644
--- a/src/lib/components/visual/Panel.svelte
+++ b/src/lib/components/visual/Panel.svelte
@@ -9,6 +9,6 @@
const { class: classList, children }: Props = $props();
</script>
-<div class="bg-panel {classList} p-3 rounded-2.5xl shadow-panel">
+<div class="bg-panel {classList} rounded-2.5xl p-3 shadow-panel">
{@render children?.()}
</div>
diff --git a/src/lib/components/visual/ProgressBar.svelte b/src/lib/components/visual/ProgressBar.svelte
index 4777d47..d0d5f08 100644
--- a/src/lib/components/visual/ProgressBar.svelte
+++ b/src/lib/components/visual/ProgressBar.svelte
@@ -12,9 +12,9 @@
);
</script>
-<div class="w-full h-1 bg-panel-alt rounded-full overflow-hidden relative">
+<div class="relative h-1 w-full overflow-hidden rounded-full bg-panel-alt">
<div
- class="h-full bg-accent absolute left-0 top-0"
+ class="absolute left-0 top-0 h-full bg-accent"
class:percentless-animation={progress === null}
style:width={percent ? `${percent}%` : null}
style:transition={percent ? "500ms linear width" : null}
diff --git a/src/lib/components/visual/Toast.svelte b/src/lib/components/visual/Toast.svelte
index 59c7e97..1899323 100644
--- a/src/lib/components/visual/Toast.svelte
+++ b/src/lib/components/visual/Toast.svelte
@@ -59,7 +59,7 @@
</script>
<div
- class="flex flex-col max-w-[100%] md:max-w-lg p-4 gap-2 bg-accent-{color} border-accent-{color}-alt border-l-4 rounded-lg shadow-md"
+ class="flex max-w-[100%] flex-col gap-2 p-4 md:max-w-lg bg-accent-{color} border-accent-{color}-alt rounded-lg border-l-4 shadow-md"
in:fly={{
duration: durations.enter,
easing: quintOut,
@@ -71,15 +71,15 @@
easing: quintOut,
}}
>
- <div class="flex flex-row items-center justify-between w-full gap-4">
+ <div class="flex w-full flex-row items-center justify-between gap-4">
<div class="flex items-center gap-4">
<Icon
- class="w-6 h-6 text-black flex-shrink-0"
+ class="h-6 w-6 flex-shrink-0 text-black"
size="24"
fill="none"
/>
<p
- class={clsx("text-black whitespace-pre-wrap", {
+ class={clsx("whitespace-pre-wrap text-black", {
"font-normal": !title,
})}
>
@@ -91,7 +91,7 @@
</p>
</div>
<button
- class="text-gray-600 hover:text-black flex-shrink-0"
+ class="flex-shrink-0 text-gray-600 hover:text-black"
onclick={() => ToastManager.remove(id)}
>
<XIcon size="16" />
diff --git a/src/lib/components/visual/Tooltip.svelte b/src/lib/components/visual/Tooltip.svelte
index abc2421..b9d0e68 100644
--- a/src/lib/components/visual/Tooltip.svelte
+++ b/src/lib/components/visual/Tooltip.svelte
@@ -113,8 +113,8 @@
<style lang="postcss">
.tooltip {
--border-size: 1px;
- @apply fixed bg-panel-alt text-foreground border border-stone-400 dynadark:border-white drop-shadow-lg text-xs pointer-events-none z-[999] max-w-[200px] break-words whitespace-normal;
- @apply px-3.5 py-2 rounded-xl;
+ @apply pointer-events-none fixed z-[999] max-w-[200px] whitespace-normal break-words border border-stone-400 bg-panel-alt text-xs text-foreground drop-shadow-lg dynadark:border-white;
+ @apply rounded-xl px-3.5 py-2;
}
.tooltip-top {
@@ -122,13 +122,13 @@
}
.tooltip-top::after {
- @apply content-[""] absolute top-full left-1/2 -translate-x-1/2 border-8 border-x-transparent border-b-transparent;
+ @apply absolute left-1/2 top-full -translate-x-1/2 border-8 border-x-transparent border-b-transparent content-[""];
}
.tooltip-top::before {
border-width: calc(var(--border-size) + 8px);
margin-left: calc(-1 * (var(--border-size) + 8px));
- @apply content-[""] absolute top-full left-1/2 border-x-transparent border-b-transparent border-t-inherit;
+ @apply absolute left-1/2 top-full border-x-transparent border-b-transparent border-t-inherit content-[""];
}
.tooltip-bottom {
@@ -136,13 +136,13 @@
}
.tooltip-bottom::after {
- @apply content-[""] absolute bottom-full left-1/2 -ml-2 border-8 border-x-transparent border-t-transparent;
+ @apply absolute bottom-full left-1/2 -ml-2 border-8 border-x-transparent border-t-transparent content-[""];
}
.tooltip-bottom::before {
border-width: calc(var(--border-size) + 8px);
margin-left: calc(-1 * (var(--border-size) + 8px));
- @apply content-[""] absolute bottom-full left-1/2 border-x-transparent border-t-transparent border-b-inherit;
+ @apply absolute bottom-full left-1/2 border-x-transparent border-b-inherit border-t-transparent content-[""];
}
.tooltip-left {
@@ -150,7 +150,7 @@
}
.tooltip-left::after {
- @apply content-[""] absolute top-1/2 left-full -mt-2 border-8 border-y-transparent border-r-transparent border-l-inherit;
+ @apply absolute left-full top-1/2 -mt-2 border-8 border-y-transparent border-l-inherit border-r-transparent content-[""];
}
.tooltip-right {
@@ -159,13 +159,13 @@
.tooltip-right::after {
margin-right: -2px;
- @apply content-[""] absolute top-1/2 right-full -mt-2 border-8 border-y-transparent border-l-transparent;
+ @apply absolute right-full top-1/2 -mt-2 border-8 border-y-transparent border-l-transparent content-[""];
}
.tooltip-right::before {
margin-right: -2px;
border-width: calc(var(--border-size) + 8px);
margin-top: calc(-1 * (var(--border-size) + 8px));
- @apply content-[""] absolute top-1/2 right-full border-y-transparent border-l-transparent border-r-inherit;
+ @apply absolute right-full top-1/2 border-y-transparent border-l-transparent border-r-inherit content-[""];
}
</style>
diff --git a/src/lib/components/visual/effects/ProgressiveBlur.svelte b/src/lib/components/visual/effects/ProgressiveBlur.svelte
index 09a9db5..8678ded 100644
--- a/src/lib/components/visual/effects/ProgressiveBlur.svelte
+++ b/src/lib/components/visual/effects/ProgressiveBlur.svelte
@@ -41,10 +41,10 @@
);
</script>
-<div class="w-full h-full relative">
+<div class="relative h-full w-full">
{#each blurSteps as { blurIntensity, mask }, index (index)}
<div
- class="absolute w-full h-full"
+ class="absolute h-full w-full"
style="
z-index: {index + 2};
backdrop-filter: blur( calc({blurIntensity}px * var(--blur-amount, 1)) );
@@ -62,7 +62,7 @@
"
></div>
<div
- class="absolute top-0 left-0 w-full h-full z-50"
+ class="absolute left-0 top-0 z-50 h-full w-full"
style="background: linear-gradient({getGradientDirection()}, transparent 0%, {fadeTo} 100%); opacity: var(--blur-amount, 1);"
></div>
</div>
diff --git a/src/lib/converters/vertd/vertd.svelte.ts b/src/lib/converters/vertd/vertd.svelte.ts
index 6d84e3e..e4fa6ff 100644
--- a/src/lib/converters/vertd/vertd.svelte.ts
+++ b/src/lib/converters/vertd/vertd.svelte.ts
@@ -877,7 +877,10 @@ export class VertdConverter extends Converter {
`converted ${input.name} (${input.id}) to .${to} in ${formatDuration(performance.now() - startedAt)}`,
);
resolveConversion(
- new VertFile(new File([res], input.name), `.${to}`),
+ new VertFile(
+ new File([res], input.name),
+ `.${to}`,
+ ),
);
} catch (e) {
// don't count cancellations as failures
diff --git a/src/lib/css/app.scss b/src/lib/css/app.scss
index a10be1d..ecb4e8e 100644
--- a/src/lib/css/app.scss
+++ b/src/lib/css/app.scss
@@ -309,7 +309,7 @@
}
body {
- @apply text-foreground font-body font-semibold overflow-x-hidden;
+ @apply overflow-x-hidden font-body font-semibold text-foreground;
width: 100vw;
background-color: var(--bg);
background-size: 100vw 100vh;
@@ -321,17 +321,17 @@ body {
}
.hoverable {
- @apply hover:scale-105 duration-200;
+ @apply duration-200 hover:scale-105;
will-change: transform;
}
.hoverable-md {
- @apply hover:scale-110 duration-200;
+ @apply duration-200 hover:scale-110;
will-change: transform;
}
.hoverable-lg {
- @apply hover:scale-[1.15] duration-200;
+ @apply duration-200 hover:scale-[1.15];
will-change: transform;
}
@@ -353,7 +353,7 @@ body {
}
.btn {
- @apply transition bg-button flex items-center justify-center overflow-hidden relative cursor-pointer px-6 h-14 rounded-full font-medium focus:!outline-none hover:scale-105 active:scale-95 disabled:opacity-50 disabled:pointer-events-none hoverable;
+ @apply hoverable relative flex h-14 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-button px-6 font-medium transition hover:scale-105 focus:!outline-none active:scale-95 disabled:pointer-events-none disabled:opacity-50;
}
.btn.highlight {
@@ -370,7 +370,7 @@ body {
}
code {
- @apply font-mono bg-gray-200 rounded-md px-1 dynadark:bg-panel-alt dynadark:text-white;
+ @apply rounded-md bg-gray-200 px-1 font-mono dynadark:bg-panel-alt dynadark:text-white;
}
p a {
@@ -379,7 +379,7 @@ body {
input[type="text"],
select.dropdown {
- @apply w-full p-3 rounded-lg bg-panel border-2 border-button pl-3;
+ @apply w-full rounded-lg border-2 border-button bg-panel p-3 pl-3;
}
input[type="number"]::-webkit-inner-spin-button,
@@ -394,33 +394,33 @@ body {
}
input[type="text"]::placeholder {
- @apply text-muted font-normal;
+ @apply font-normal text-muted;
}
input[type="text"]:focus {
- @apply outline outline-accent outline-2;
+ @apply outline outline-2 outline-accent;
outline-offset: -2px;
}
input[type="checkbox"] {
- @apply appearance-none w-5 h-5 rounded-md border-2 border-button cursor-pointer;
+ @apply h-5 w-5 cursor-pointer appearance-none rounded-md border-2 border-button;
outline-offset: -2px;
}
input[type="checkbox"]:hover {
- @apply bg-button border-accent;
+ @apply border-accent bg-button;
}
input[type="checkbox"]:checked {
- @apply bg-accent border-accent;
+ @apply border-accent bg-accent;
}
input[type="checkbox"]:focus {
- @apply outline outline-accent outline-2;
+ @apply outline outline-2 outline-accent;
}
input[type="range"].range-slider {
- @apply w-full h-[10px] appearance-none bg-transparent;
+ @apply h-[10px] w-full appearance-none bg-transparent;
}
input[type="range"].range-slider:focus {
@@ -435,7 +435,7 @@ body {
}
input[type="range"].range-slider::-webkit-slider-thumb {
- @apply bg-panel w-[18px] h-[18px] -mt-1 rounded-full cursor-pointer shadow-md;
+ @apply -mt-1 h-[18px] w-[18px] cursor-pointer rounded-full bg-panel shadow-md;
appearance: none;
border: 2px solid var(--accent);
}
@@ -446,7 +446,7 @@ body {
}
input[type="range"].range-slider::-moz-range-thumb {
- @apply bg-panel border-2 border-accent w-4 h-4 rounded-full cursor-pointer shadow-md;
+ @apply h-4 w-4 cursor-pointer rounded-full border-2 border-accent bg-panel shadow-md;
}
hr {
diff --git a/src/lib/sections/about/Credits.svelte b/src/lib/sections/about/Credits.svelte
index 8be8618..cf60532 100644
--- a/src/lib/sections/about/Credits.svelte
+++ b/src/lib/sections/about/Credits.svelte
@@ -32,10 +32,10 @@
title={name}
class={clsx(
smaller
- ? "w-12 h-12 hoverable"
+ ? "hoverable h-12 w-12"
: role
- ? "w-14 h-14 hoverable-md"
- : "w-10 h-10 hoverable-lg",
+ ? "hoverable-md h-14 w-14"
+ : "hoverable-lg h-10 w-10",
"rounded-full",
)}
/>
@@ -56,14 +56,14 @@
{/snippet}
<Panel class="flex flex-col gap-8 p-6">
- <h2 class="text-2xl font-bold flex items-center">
- <div class="rounded-full bg-blue-300 p-2 inline-block mr-3 w-10 h-10">
+ <h2 class="flex items-center text-2xl font-bold">
+ <div class="mr-3 inline-block h-10 w-10 rounded-full bg-blue-300 p-2">
<HeartHandshakeIcon color="black" />
</div>
{m["about.credits.title"]()}
</h2>
- <p class="-mt-4 -mb-3 font-black text-lg">
+ <p class="-mb-3 -mt-4 text-lg font-black">
{m["about.credits.contact_team"]()}
</p>
@@ -84,7 +84,7 @@
{m["about.credits.notable_contributors"]()}
</h2>
<div class="flex flex-col gap-2">
- <p class="text-base text-muted font-normal">
+ <p class="text-base font-normal text-muted">
{m["about.credits.notable_description"]()}
</p>
<div class="flex flex-col gap-2">
@@ -104,7 +104,7 @@
{m["about.credits.github_contributors"]()}
</h2>
{#if ghContribs && ghContribs.length > 0}
- <p class="text-base text-muted font-normal">
+ <p class="text-base font-normal text-muted">
{@html sanitize(
link(
"github_link",
@@ -115,7 +115,7 @@
)}
</p>
{:else}
- <p class="text-base text-muted font-normal italic">
+ <p class="text-base font-normal italic text-muted">
{@html sanitize(
link(
"contribute_link",
@@ -138,7 +138,7 @@
{/if}
</div>
- <h2 class="mt-2 -mb-2">{m["about.credits.libraries"]()}</h2>
+ <h2 class="-mb-2 mt-2">{m["about.credits.libraries"]()}</h2>
<p class="font-normal">
{m["about.credits.libraries_description"]()}
</p>
diff --git a/src/lib/sections/about/Donate.svelte b/src/lib/sections/about/Donate.svelte
index 459988a..6b92ea4 100644
--- a/src/lib/sections/about/Donate.svelte
+++ b/src/lib/sections/about/Donate.svelte
@@ -184,9 +184,9 @@
<Panel class="flex flex-col gap-8 p-6">
<div class="flex flex-col gap-3">
- <h2 class="text-2xl font-bold flex items-center">
+ <h2 class="flex items-center text-2xl font-bold">
<div
- class="rounded-full bg-accent-red p-2 inline-block mr-3 w-10 h-10"
+ class="mr-3 inline-block h-10 w-10 rounded-full bg-accent-red p-2"
>
<HeartIcon color="black" />
</div>
@@ -198,7 +198,7 @@
</div>
<div
- class="flex flex-col gap-3 w-full overflow-visible"
+ class="flex w-full flex-col gap-3 overflow-visible"
style:height="{paymentState !== 'prepay' ? 0 : 124}px"
style:transform="scaleY({paymentState !== 'prepay' ? 0 : 1})"
style:opacity={paymentState !== "prepay" ? 0 : 1}
@@ -207,18 +207,18 @@
200}ms {transition}, transform {payDuration}ms {transition}, filter {payDuration}ms
{transition}"
>
- <div class="flex gap-3 w-full">
+ <div class="flex w-full gap-3">
<button
onclick={() => (type = "one-time")}
class={clsx(
- "btn flex-1 p-4 rounded-lg flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4",
{
"!scale-100": !$effects,
"bg-accent-red text-black": type === "one-time",
},
)}
>
- <HandCoinsIcon size="24" class="inline-block mr-2" />
+ <HandCoinsIcon size="24" class="mr-2 inline-block" />
{m["about.donate.one_time"]()}
</button>
@@ -226,23 +226,23 @@
disabled
onclick={() => (type = "monthly")}
class={clsx(
- "btn flex-1 p-4 rounded-lg flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4",
{
"!scale-100": !$effects,
"bg-accent-red text-black": type === "monthly",
},
)}
>
- <CalendarHeartIcon size="24" class="inline-block mr-2" />
+ <CalendarHeartIcon size="24" class="mr-2 inline-block" />
{m["about.donate.monthly"]()}
</button>
</div>
- <div class="grid grid-cols-4 gap-3 w-full">
+ <div class="grid w-full grid-cols-4 gap-3">
{#each presetAmounts as preset, i (preset)}
<button
onclick={() => amountClick(preset)}
class={clsx(
- "btn p-4 rounded-lg flex items-center justify-center",
+ "btn flex items-center justify-center rounded-lg p-4",
{
"!scale-100": !$effects,
"bg-accent-red text-black": amount === preset,
@@ -265,7 +265,7 @@
</div>
</div>
- <div class="flex flex-row justify-center w-full">
+ <div class="flex w-full flex-row justify-center">
<div
role="button"
tabindex="0"
@@ -276,26 +276,26 @@
}}
onclick={paymentClick}
class={clsx(
- "btn flex-1 p-3 relative rounded-3xl bg-accent-red border-2 border-accent-red h-14 text-black",
+ "btn relative h-14 flex-1 rounded-3xl border-2 border-accent-red bg-accent-red p-3 text-black",
{
- "h-[450px] rounded-2xl bg-transparent cursor-auto !scale-100 -mt-10 -mb-2":
+ "-mb-2 -mt-10 h-[450px] !scale-100 cursor-auto rounded-2xl bg-transparent":
paymentState !== "prepay",
"!scale-100": !$effects,
},
)}
style="transition: height {payDuration}ms {transition}, border-radius {payDuration}ms {transition}, background-color {payDuration}ms {transition}, transform {payDuration}ms {transition}, margin {payDuration}ms {transition}; will-change: height, border-radius, background-color, transform, margin;"
>
- <div class="grid grid-cols-1 grid-rows-1 w-full h-full">
+ <div class="grid h-full w-full grid-cols-1 grid-rows-1">
{#if paymentState !== "prepay"}
<div
transition:fade={{
duration: payDuration,
easing: quintOut,
}}
- class="row-start-1 col-start-1 flex w-full h-full flex-col gap-4"
+ class="col-start-1 row-start-1 flex h-full w-full flex-col gap-4"
>
<div
- class="flex-grow max-h-full overflow-y-auto overflow-x-hidden"
+ class="max-h-full flex-grow overflow-y-auto overflow-x-hidden"
>
{#if stripe && clientSecret}
<Elements {stripe} {clientSecret} bind:elements>
@@ -313,7 +313,7 @@
disabled={!stripe ||
!clientSecret ||
!enablePay}
- class="btn w-full h-12 bg-accent-red text-black rounded-full mt-4"
+ class="btn mt-4 h-12 w-full rounded-full bg-accent-red text-black"
onclick={donate}
>
{m["about.donate.donate_amount"]({
@@ -331,9 +331,9 @@
easing: quintOut,
}}
onclick={paymentClick}
- class="row-start-1 col-start-1 flex justify-center items-center"
+ class="col-start-1 row-start-1 flex items-center justify-center"
>
- <WalletIcon size="24" class="inline-block mr-2" />
+ <WalletIcon size="24" class="mr-2 inline-block" />
{m["about.donate.pay_now"]()}
</div>
{/if}
diff --git a/src/lib/sections/about/Resources.svelte b/src/lib/sections/about/Resources.svelte
index e5e1082..f882a30 100644
--- a/src/lib/sections/about/Resources.svelte
+++ b/src/lib/sections/about/Resources.svelte
@@ -17,9 +17,9 @@
</script>
<Panel class="flex flex-col gap-4 p-6">
- <h2 class="text-2xl font-bold flex items-center">
+ <h2 class="flex items-center text-2xl font-bold">
<div
- class="rounded-full bg-accent-purple p-2 inline-block mr-3 w-10 h-10"
+ class="mr-3 inline-block h-10 w-10 rounded-full bg-accent-purple p-2"
>
<LinkIcon color="black" />
</div>
@@ -31,11 +31,11 @@
target="_blank"
rel="noopener noreferrer"
class={clsx(
- "btn flex-1 gap-2 p-4 rounded-full bg-button text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center gap-2 rounded-full bg-button p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <MessageCircleMoreIcon size="24" class="inline-block mr-2" />
+ <MessageCircleMoreIcon size="24" class="mr-2 inline-block" />
{m["about.resources.discord"]()}
</a>
<a
@@ -43,11 +43,11 @@
target="_blank"
rel="noopener noreferrer"
class={clsx(
- "btn flex-1 gap-2 p-4 rounded-full bg-button text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center gap-2 rounded-full bg-button p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <CodeXmlIcon size="24" class="inline-block mr-2" />
+ <CodeXmlIcon size="24" class="mr-2 inline-block" />
{m["about.resources.source"]()}
</a>
<a
@@ -55,11 +55,11 @@
target="_blank"
rel="noopener noreferrer"
class={clsx(
- "btn flex-1 gap-2 p-4 rounded-full bg-button text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center gap-2 rounded-full bg-button p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <MailIcon size="24" class="inline-block mr-2" />
+ <MailIcon size="24" class="mr-2 inline-block" />
{m["about.resources.email"]()}
</a>
</div>
diff --git a/src/lib/sections/about/Sponsors.svelte b/src/lib/sections/about/Sponsors.svelte
index bab61b9..c329b73 100644
--- a/src/lib/sections/about/Sponsors.svelte
+++ b/src/lib/sections/about/Sponsors.svelte
@@ -28,26 +28,26 @@
}
</script>
-<Panel class="flex flex-col gap-3 p-6 min-h-[280px]">
- <h2 class="text-2xl font-bold flex items-center">
+<Panel class="flex min-h-[280px] flex-col gap-3 p-6">
+ <h2 class="flex items-center text-2xl font-bold">
<div
- class="rounded-full bg-accent-pink p-2 inline-block mr-3 w-10 h-10"
+ class="mr-3 inline-block h-10 w-10 rounded-full bg-accent-pink p-2"
>
<PiggyBankIcon color="black" />
</div>
{m["about.sponsors.title"]()}
</h2>
- <div class="[&>*]:font-normal h-full flex justify-between flex-col gap-4">
- <div class="flex gap-3 justify-center text-lg">
+ <div class="flex h-full flex-col justify-between gap-4 [&>*]:font-normal">
+ <div class="flex justify-center gap-3 text-lg">
<a
href="https://eva.pink"
target="_blank"
- class="w-48 h-24 rounded-2xl px-0 btn gap-2 flex flex-col justify-center items-center"
+ class="btn flex h-24 w-48 flex-col items-center justify-center gap-2 rounded-2xl px-0"
>
<img
src={lily}
alt="Eva"
- class="w-full h-full select-none object-cover"
+ class="h-full w-full select-none object-cover"
/>
</a>
</div>
@@ -68,10 +68,10 @@
true,
),
)}
- <span class="inline-block mx-[2px] relative top-[2px]">
+ <span class="relative top-[2px] mx-[2px] inline-block">
<button
id="email"
- class="flex items-center gap-[6px] cursor-pointer"
+ class="flex cursor-pointer items-center gap-[6px]"
onclick={copyToClipboard}
aria-label="Copy email to clipboard"
>
@@ -89,10 +89,10 @@
<style lang="postcss">
#email {
- @apply font-mono bg-gray-200 rounded-md px-1 text-inherit no-underline dynadark:bg-panel-alt dynadark:text-white;
+ @apply rounded-md bg-gray-200 px-1 font-mono text-inherit no-underline dynadark:bg-panel-alt dynadark:text-white;
}
#email:hover {
- @apply font-mono !bg-accent !text-black rounded-md px-1 duration-200;
+ @apply rounded-md !bg-accent px-1 font-mono !text-black duration-200;
}
</style>
diff --git a/src/lib/sections/about/Why.svelte b/src/lib/sections/about/Why.svelte
index 2b2c3ca..6c6355c 100644
--- a/src/lib/sections/about/Why.svelte
+++ b/src/lib/sections/about/Why.svelte
@@ -6,9 +6,9 @@
</script>
<Panel class="flex flex-col gap-3 p-6">
- <h2 class="text-2xl font-bold flex items-center">
+ <h2 class="flex items-center text-2xl font-bold">
<div
- class="rounded-full bg-accent-pink p-2 inline-block mr-3 w-10 h-10"
+ class="mr-3 inline-block h-10 w-10 rounded-full bg-accent-pink p-2"
>
<MessageCircleQuestionMarkIcon color="black" />
</div>
diff --git a/src/lib/sections/settings/Appearance.svelte b/src/lib/sections/settings/Appearance.svelte
index cdfa07e..82e172c 100644
--- a/src/lib/sections/settings/Appearance.svelte
+++ b/src/lib/sections/settings/Appearance.svelte
@@ -100,7 +100,7 @@
<h2 class="text-2xl font-bold">
<PaletteIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-purple p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent-purple p-2"
color="black"
/>
{m["settings.appearance.title"]()}
@@ -111,21 +111,21 @@
<p class="text-base font-bold">
{m["settings.appearance.brightness.theme"]()}
</p>
- <p class="text-sm text-muted font-normal italic">
+ <p class="text-sm font-normal italic text-muted">
{m["settings.appearance.brightness.description"]()}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
- <div class="flex gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
+ <div class="flex w-full gap-3">
<button
bind:this={lightElement}
onclick={() => setTheme("light")}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <SunIcon size="24" class="inline-block mr-2" />
+ <SunIcon size="24" class="mr-2 inline-block" />
{m["settings.appearance.light"]()}
</button>
@@ -133,11 +133,11 @@
bind:this={darkElement}
onclick={() => setTheme("dark")}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black",
!$effects && "!scale-100",
)}
>
- <MoonIcon size="24" class="inline-block mr-2" />
+ <MoonIcon size="24" class="mr-2 inline-block" />
{m["settings.appearance.dark"]()}
</button>
</div>
@@ -148,21 +148,21 @@
<p class="text-base font-bold">
{m["settings.appearance.effect.settings"]()}
</p>
- <p class="text-sm text-muted font-normal italic">
+ <p class="text-sm font-normal italic text-muted">
{m["settings.appearance.effect.description"]()}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
- <div class="flex gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
+ <div class="flex w-full gap-3">
<button
bind:this={enableEffectsElement}
onclick={() => setEffects(true)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <PlayIcon size="24" class="inline-block mr-2" />
+ <PlayIcon size="24" class="mr-2 inline-block" />
{m["settings.appearance.enable"]()}
</button>
@@ -170,11 +170,11 @@
bind:this={disableEffectsElement}
onclick={() => setEffects(false)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
>
- <PauseIcon size="24" class="inline-block mr-2" />
+ <PauseIcon size="24" class="mr-2 inline-block" />
{m["settings.appearance.disable"]()}
</button>
</div>
@@ -187,11 +187,11 @@
{#if currentLocale !== "en"}
(Language){/if}
</p>
- <p class="text-sm text-muted font-normal italic">
+ <p class="text-sm font-normal italic text-muted">
{m["settings.appearance.language.description"]()}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
<Dropdown
options={languageOptions}
style="settings"
diff --git a/src/lib/sections/settings/Conversion.svelte b/src/lib/sections/settings/Conversion.svelte
index 1f2fe97..1c8de88 100644
--- a/src/lib/sections/settings/Conversion.svelte
+++ b/src/lib/sections/settings/Conversion.svelte
@@ -24,7 +24,7 @@
<h2 class="text-2xl font-bold">
<RefreshCwIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent p-2"
color="black"
/>
{m["settings.conversion.title"]()}
@@ -35,7 +35,7 @@
<p class="text-base font-bold">
{m["settings.conversion.filename.format"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{@html sanitize(
m["settings.conversion.filename.description"](),
)}
@@ -51,7 +51,7 @@
<div class="flex flex-col gap-4">
<button
onclick={() => (showAdvanced = !showAdvanced)}
- class="bg-button flex items-center justify-between p-4 rounded-lg text-black dynadark:text-white w-full"
+ class="flex w-full items-center justify-between rounded-lg bg-button p-4 text-black dynadark:text-white"
>
<span class="text-base font-bold"
>{m["settings.conversion.advanced_settings"]()}</span
@@ -67,11 +67,11 @@
class={clsx(
"flex flex-col gap-8 transition-all duration-300 ease-in-out",
{
- "max-h-[2000px] opacity-100 overflow-visible":
+ "max-h-[2000px] overflow-visible opacity-100":
showAdvanced,
},
{
- "max-h-0 opacity-0 overflow-hidden -mb-4":
+ "-mb-4 max-h-0 overflow-hidden opacity-0":
!showAdvanced,
},
)}
@@ -84,19 +84,19 @@
"settings.conversion.default_format.label"
]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m[
"settings.conversion.default_format.description"
]()}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
- <div class="flex gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
+ <div class="flex w-full gap-3">
<button
onclick={() =>
(settings.useDefaultFormat = true)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
settings.useDefaultFormat &&
"selected",
@@ -104,7 +104,7 @@
>
<PlayIcon
size="24"
- class="inline-block mr-2"
+ class="mr-2 inline-block"
/>
{m[
"settings.conversion.default_format.enable"
@@ -115,7 +115,7 @@
onclick={() =>
(settings.useDefaultFormat = false)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
!settings.useDefaultFormat &&
"selected",
@@ -123,7 +123,7 @@
>
<PauseIcon
size="24"
- class="inline-block mr-2"
+ class="mr-2 inline-block"
/>
{m[
"settings.conversion.default_format.disable"
@@ -132,7 +132,7 @@
</div>
</div>
<div
- class="grid gap-3 grid-cols-2 md:grid-cols-4"
+ class="grid grid-cols-2 gap-3 md:grid-cols-4"
class:opacity-50={!settings.useDefaultFormat}
>
<div class="flex flex-col gap-2">
@@ -202,26 +202,26 @@
<p class="text-base font-bold">
{m["settings.conversion.metadata.label"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m[
"settings.conversion.metadata.description"
]()}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
- <div class="flex gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
+ <div class="flex w-full gap-3">
<button
onclick={() =>
(settings.metadata = true)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
settings.metadata && "selected",
)}
>
<PlayIcon
size="24"
- class="inline-block mr-2"
+ class="mr-2 inline-block"
/>
{m[
"settings.conversion.metadata.keep"
@@ -232,14 +232,14 @@
onclick={() =>
(settings.metadata = false)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
!settings.metadata && "selected",
)}
>
<PauseIcon
size="24"
- class="inline-block mr-2"
+ class="mr-2 inline-block"
/>
{m[
"settings.conversion.metadata.remove"
@@ -253,7 +253,7 @@
<p class="text-base font-bold">
{m["settings.conversion.quality.label"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m[
"settings.conversion.quality.description"
]()}
diff --git a/src/lib/sections/settings/Privacy.svelte b/src/lib/sections/settings/Privacy.svelte
index 0194dbb..fe5ec0c 100644
--- a/src/lib/sections/settings/Privacy.svelte
+++ b/src/lib/sections/settings/Privacy.svelte
@@ -191,7 +191,7 @@
<h2 class="text-2xl font-bold">
<ChartColumnIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-blue p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent-blue p-2"
color="black"
/>
{m["settings.privacy.title"]()}
@@ -203,7 +203,7 @@
<p class="text-base font-bold">
{m["settings.privacy.plausible.title"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{@html sanitize(
link(
["plausible_link", "analytics_link"],
@@ -218,31 +218,31 @@
)}
</p>
</div>
- <div class="flex flex-col gap-3 w-full">
- <div class="flex gap-3 w-full">
+ <div class="flex w-full flex-col gap-3">
+ <div class="flex w-full gap-3">
<button
onclick={() => (settings.plausible = true)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
settings.plausible && "selected",
)}
>
- <PlayIcon size="24" class="inline-block mr-2" />
+ <PlayIcon size="24" class="mr-2 inline-block" />
{m["settings.privacy.plausible.opt_in"]()}
</button>
<button
onclick={() => (settings.plausible = false)}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
!settings.plausible && "selected",
)}
>
<PauseIcon
size="24"
- class="inline-block mr-2"
+ class="mr-2 inline-block"
/>
{m["settings.privacy.plausible.opt_out"]()}
</button>
@@ -255,17 +255,17 @@
<p class="text-base font-bold">
{m["settings.privacy.cache.title"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m["settings.privacy.cache.description"]()}
</p>
</div>
<div class="grid grid-cols-2 gap-4">
- <div class="bg-button p-4 rounded-lg">
+ <div class="rounded-lg bg-button p-4">
<div class="text-sm text-muted">
{m["settings.privacy.cache.total_size"]()}
</div>
- <div class="text-lg font-bold flex items-center gap-2">
+ <div class="flex items-center gap-2 text-lg font-bold">
{#if isLoadingCache}
<RefreshCwIcon size="16" class="animate-spin" />
{m["settings.privacy.cache.loading_cache"]()}
@@ -276,11 +276,11 @@
{/if}
</div>
</div>
- <div class="bg-button p-4 rounded-lg">
+ <div class="rounded-lg bg-button p-4">
<div class="text-sm text-muted">
{m["settings.privacy.cache.files_cached_label"]()}
</div>
- <div class="text-lg font-bold flex items-center gap-2">
+ <div class="flex items-center gap-2 text-lg font-bold">
{#if isLoadingCache}
<RefreshCwIcon size="16" class="animate-spin" />
{m["settings.privacy.cache.loading_cache"]()}
@@ -291,27 +291,27 @@
</div>
</div>
- <div class="flex gap-3 w-full">
+ <div class="flex w-full gap-3">
<button
onclick={loadCacheInfo}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
disabled={isLoadingCache || isClearingData}
>
- <RefreshCwIcon size="24" class="inline-block mr-2" />
+ <RefreshCwIcon size="24" class="mr-2 inline-block" />
{m["settings.privacy.cache.refresh_cache"]()}
</button>
<button
onclick={clearCache}
class={clsx(
- "btn flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex flex-1 items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
disabled={isLoadingCache || isClearingData}
>
- <TrashIcon size="24" class="inline-block mr-2" />
+ <TrashIcon size="24" class="mr-2 inline-block" />
{m["settings.privacy.cache.clear_cache"]()}
</button>
</div>
@@ -322,7 +322,7 @@
<p class="text-base font-bold">
{m["settings.privacy.site_data.title"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m["settings.privacy.site_data.description"]()}
</p>
</div>
@@ -330,12 +330,12 @@
<button
onclick={clearAllData}
class={clsx(
- "btn w-full p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex w-full items-center justify-center rounded-lg p-4 text-black dynadark:text-white",
!$effects && "!scale-100",
)}
disabled={isClearingData}
>
- <TrashIcon size="24" class="inline-block mr-2" />
+ <TrashIcon size="24" class="mr-2 inline-block" />
{m["settings.privacy.site_data.clear_all_data"]()}
</button>
</div>
@@ -343,7 +343,7 @@
<div class="flex justify-center">
<a
href="/debug"
- class="text-xs text-muted hover:text-foreground transition-colors flex items-center gap-1"
+ class="flex items-center gap-1 text-xs text-muted transition-colors hover:text-foreground"
>
<BugIcon size="14" />
{m["settings.privacy.debug_link"]()}
diff --git a/src/lib/sections/settings/Vertd.svelte b/src/lib/sections/settings/Vertd.svelte
index 0ae243f..dcbe060 100644
--- a/src/lib/sections/settings/Vertd.svelte
+++ b/src/lib/sections/settings/Vertd.svelte
@@ -76,7 +76,7 @@
<h2 class="text-2xl font-bold">
<ServerIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-red p-2 rounded-full overflow-visible"
+ class="-mt-1 mr-2 inline-block overflow-visible rounded-full bg-accent-red p-2"
color="black"
/>
{m["settings.vertd.title"]()}
@@ -94,10 +94,10 @@
{vertdStatusLabel}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{@html sanitize(m["settings.vertd.description.main"]())}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{@html sanitize(
link(
"vertd_link",
@@ -106,7 +106,7 @@
),
)}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{@html sanitize(
link(
"vertd_link",
@@ -177,7 +177,7 @@
bind:value={settings.vertdURL}
/>
{/if}
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m["settings.vertd.info"]({
sizeLimit: vertdSizeLimitLabel,
commitId: vertdCommit ?? "N/A",
@@ -190,7 +190,7 @@
<p class="text-base font-bold">
{m["settings.vertd.conversion_speed.label"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m["settings.vertd.conversion_speed.description"]()}
</p>
</div>
@@ -275,7 +275,7 @@
<p class="text-base font-bold">
{m["settings.vertd.custom_headers.label"]()}
</p>
- <p class="text-sm text-muted font-normal">
+ <p class="text-sm font-normal text-muted">
{m["settings.vertd.custom_headers.description"]()}
</p>
<FancyInput
diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.ts
index 179e060..d02a526 100644
--- a/src/lib/workers/vips.ts
+++ b/src/lib/workers/vips.ts
@@ -140,7 +140,7 @@ const handleMessage = async (
image = vips.Image.newFromBuffer(buffer, "[n=-1]");
}
- // resize image
+ // resize image
const resolution = String(settings.resolution ?? "").trim();
if (resolution && resolution !== "auto") {
const [width, height] = resolution
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index a276f76..93b2ffe 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -233,7 +233,7 @@
<!-- FIXME: if user resizes between desktop/mobile, highlight of page disappears (only shows on original size) -->
{#key $locale}
<div
- class="flex flex-col min-h-screen h-full w-full overflow-x-hidden"
+ class="flex h-full min-h-screen w-full flex-col overflow-x-hidden"
ondrop={dropFiles}
ondragenter={(e) => handleDrag(e, true)}
ondragover={(e) => handleDrag(e, true)}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 23cb9ce..79b6dd2 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -170,25 +170,25 @@
});
</script>
-<div class="max-w-6xl w-full mx-auto px-6 md:px-8">
+<div class="mx-auto w-full max-w-6xl px-6 md:px-8">
<div class="flex items-center justify-center pb-10 md:py-16">
<div
- class="flex items-center h-auto gap-12 md:gap-24 md:flex-row flex-col"
+ class="flex h-auto flex-col items-center gap-12 md:flex-row md:gap-24"
>
- <div class="flex-grow w-full text-center md:text-left">
+ <div class="w-full flex-grow text-center md:text-left">
<h1
- class="text-4xl px-12 md:p-0 md:text-6xl flex-wrap tracking-tight leading-tight md:leading-[72px] mb-4 md:mb-6"
+ class="mb-4 flex-wrap px-12 text-4xl leading-tight tracking-tight md:mb-6 md:p-0 md:text-6xl md:leading-[72px]"
>
{m["upload.title"]()}
</h1>
<p
- class="font-normal px-5 md:p-0 text-lg md:text-xl text-black text-muted dynadark:text-muted"
+ class="px-5 text-lg font-normal text-black text-muted dynadark:text-muted md:p-0 md:text-xl"
>
{m["upload.subtitle"]()}
</p>
</div>
- <div class="flex-grow w-full h-72">
- <Uploader class="w-full h-full" />
+ <div class="h-72 w-full flex-grow">
+ <Uploader class="h-full w-full" />
</div>
</div>
</div>
@@ -198,11 +198,11 @@
<div class="mt-10 md:mt-16">
<h2 class="text-center text-4xl">{m["upload.cards.title"]()}</h2>
- <div class="flex gap-4 mt-8 md:flex-row flex-col">
+ <div class="mt-8 flex flex-col gap-4 md:flex-row">
{#if browser}
{#each Object.entries(worker) as [key, s], i (key)}
{@const Icon = s.icon}
- <div class="file-category-card w-full flex flex-col gap-4">
+ <div class="file-category-card flex w-full flex-col gap-4">
<div class="file-category-card-inner">
<div
class={clsx("icon-container", {
@@ -218,7 +218,7 @@
</div>
<div
- class="file-category-card-content flex-grow relative"
+ class="file-category-card-content relative flex-grow"
>
<OverlayScrollbarsComponent
options={{
@@ -230,12 +230,12 @@
defer
>
<div
- class="flex flex-col gap-4 h-[12.25rem] relative"
+ class="relative flex h-[12.25rem] flex-col gap-4"
bind:this={scrollContainers[i]}
>
{#if key === "Video"}
<p
- class="flex tems-center justify-center gap-2"
+ class="tems-center flex justify-center gap-2"
>
<CheckIcon size="20" />
<Tooltip
@@ -254,7 +254,7 @@
]()}
</a>
<span
- class="text-red-500 -ml-0.5"
+ class="-ml-0.5 text-red-500"
>*</span
>
</span>
@@ -262,7 +262,7 @@
</p>
{:else}
<p
- class="flex tems-center justify-center gap-2"
+ class="tems-center flex justify-center gap-2"
>
<CheckIcon size="20" />
{m[
@@ -278,7 +278,7 @@
)}
</p>
<div
- class="flex flex-col items-center relative"
+ class="relative flex flex-col items-center"
>
<b
>{m[
@@ -286,7 +286,7 @@
]()}&nbsp;</b
>
<p
- class="flex flex-wrap justify-center leading-tight px-2"
+ class="flex flex-wrap justify-center px-2 leading-tight"
>
{#each s.formats.split(", ") as format, index (format)}
{@const isPartial =
@@ -295,7 +295,7 @@
? format.slice(0, -1)
: format}
<span
- class="text-sm font-normal flex items-center relative"
+ class="relative flex items-center text-sm font-normal"
>
{#if isPartial}
<Tooltip
@@ -323,7 +323,7 @@
<!-- bottom blur if scrollable -->
{#if showBlur[i]}
<div
- class="absolute left-0 bottom-0 w-full h-10 pointer-events-none"
+ class="pointer-events-none absolute bottom-0 left-0 h-10 w-full"
style="background: linear-gradient(to top, var(--bg-panel), transparent 65%);"
></div>
{/if}
@@ -337,11 +337,11 @@
<style lang="postcss">
.file-category-card {
- @apply bg-panel rounded-2xl p-5 shadow-panel relative;
+ @apply relative rounded-2xl bg-panel p-5 shadow-panel;
}
.file-category-card p {
- @apply font-normal text-center text-sm;
+ @apply text-center text-sm font-normal;
}
.file-category-card-inner {
@@ -349,10 +349,10 @@
}
.file-category-card-content {
- @apply flex flex-col text-center justify-between;
+ @apply flex flex-col justify-between text-center;
}
.icon-container {
- @apply p-2 rounded-full text-on-accent;
+ @apply rounded-full p-2 text-on-accent;
}
</style>
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte
index 1d05381..4b06fad 100644
--- a/src/routes/about/+page.svelte
+++ b/src/routes/about/+page.svelte
@@ -145,17 +145,17 @@
PUB_STRIPE_KEY && PUB_DONATION_URL && !DISABLE_ALL_EXTERNAL_REQUESTS;
</script>
-<div class="flex flex-col h-full items-center">
- <h1 class="hidden md:block text-[40px] tracking-tight leading-[72px] mb-6">
- <InfoIcon size="40" class="inline-block -mt-2 mr-2" />
+<div class="flex h-full flex-col items-center">
+ <h1 class="mb-6 hidden text-[40px] leading-[72px] tracking-tight md:block">
+ <InfoIcon size="40" class="-mt-2 mr-2 inline-block" />
{m["about.title"]()}
</h1>
<div
- class="w-full max-w-[1280px] flex flex-col md:flex-row gap-4 p-4 md:px-4 md:py-0"
+ class="flex w-full max-w-[1280px] flex-col gap-4 p-4 md:flex-row md:px-4 md:py-0"
>
<!-- Why VERT? & Credits -->
- <div class="flex flex-col gap-4 flex-1">
+ <div class="flex flex-1 flex-col gap-4">
{#if donationsEnabled}
<About.Donate />
{/if}
@@ -164,7 +164,7 @@
</div>
<!-- Resources & Donate to VERT -->
- <div class="flex flex-col gap-4 flex-1">
+ <div class="flex flex-1 flex-col gap-4">
<About.Resources />
<About.Credits {mainContribs} {notableContribs} {ghContribs} />
</div>
diff --git a/src/routes/convert/+page.svelte b/src/routes/convert/+page.svelte
index 96f741e..8963f83 100644
--- a/src/routes/convert/+page.svelte
+++ b/src/routes/convert/+page.svelte
@@ -261,8 +261,8 @@
currentConverter?.status === "idle" ||
currentConverter?.status === "downloading" ||
currentConverter?.status === "initializing"}
- <Panel class="p-5 flex flex-col min-w-0 gap-4 relative">
- <div class="flex-shrink-0 h-8 w-full flex items-center gap-2">
+ <Panel class="relative flex min-w-0 flex-col gap-4 p-5">
+ <div class="flex h-8 w-full flex-shrink-0 items-center gap-2">
<Tooltip
text={fileType === "unknown"
? m["convert.tooltips.unknown_file"]()
@@ -289,7 +289,7 @@
/>
{:else}
<h2
- class="text-xl font-body overflow-hidden text-ellipsis whitespace-nowrap"
+ class="overflow-hidden text-ellipsis whitespace-nowrap font-body text-xl"
title={`${file.name} (${file.id})`}
>
{file.name}
@@ -298,7 +298,7 @@
</div>
<div
class={clsx(
- "flex-shrink-0 flex items-center justify-center overflow-visible transition-transform duration-300",
+ "flex flex-shrink-0 items-center justify-center overflow-visible transition-transform duration-300",
isInitializing ? "w-8 opacity-100" : "w-0 opacity-0",
)}
>
@@ -320,7 +320,7 @@
{/if}
</div>
<button
- class="flex-shrink-0 w-8 rounded-full hover:bg-panel-alt h-full flex items-center justify-center"
+ class="flex h-full w-8 flex-shrink-0 items-center justify-center rounded-full hover:bg-panel-alt"
onclick={() => files.remove(file)}
>
<XIcon size="24" class="text-muted" />
@@ -329,7 +329,7 @@
{#if !currentConverter}
{#if file.name.startsWith("vertd")}
<div
- class="h-full flex flex-col text-center justify-center text-failure"
+ class="flex h-full flex-col justify-center text-center text-failure"
>
<p class="font-body font-bold">
{m["convert.errors.cant_convert"]()}
@@ -340,7 +340,7 @@
</div>
{:else}
<div
- class="h-full flex flex-col text-center justify-center text-failure"
+ class="flex h-full flex-col justify-center text-center text-failure"
>
<p class="font-body font-bold">
{m["convert.errors.cant_convert"]()}
@@ -357,7 +357,7 @@
{@const isLarge = file.isLarge()}
{#if formatInfo && !formatInfo.fromSupported}
<div
- class="h-full flex flex-col text-center justify-center text-failure"
+ class="flex h-full flex-col justify-center text-center text-failure"
>
<p class="font-body font-bold">
{m["convert.errors.cant_convert"]()}
@@ -368,7 +368,7 @@
</div>
{:else if isLarge && !file.supportsStreaming()}
<div
- class="h-full flex flex-col text-center justify-center text-failure"
+ class="flex h-full flex-col justify-center text-center text-failure"
>
<p class="font-body font-bold">
{m["convert.errors.cant_convert"]()}
@@ -381,7 +381,7 @@
</div>
{:else if currentConverter.status === "error"}
<div
- class="h-full flex flex-col text-center justify-center text-failure"
+ class="flex h-full flex-col justify-center text-center text-failure"
>
<p class="font-body font-bold">
{m["convert.errors.cant_convert"]()}
@@ -395,19 +395,19 @@
{:else}
<div class="flex flex-row justify-between">
<div
- class="flex gap-4 w-full h-[152px] overflow-hidden relative"
+ class="relative flex h-[152px] w-full gap-4 overflow-hidden"
>
- <div class="w-1/2 h-full overflow-hidden rounded-xl">
+ <div class="h-full w-1/2 overflow-hidden rounded-xl">
{#if file.blobUrl}
<img
- class="object-cover w-full h-full"
+ class="h-full w-full object-cover"
src={file.blobUrl}
alt={`${file.name} (${file.id})`}
/>
{:else}
{@const Icon = fileTypeBigIcons[fileType]}
<div
- class="w-full h-full flex items-center justify-center text-black"
+ class="flex h-full w-full items-center justify-center text-black"
style:background="var({gradientVars[
file.isZip()
? 'archive'
@@ -420,10 +420,10 @@
</div>
</div>
<div
- class="absolute top-16 right-0 mr-4 pl-2 h-[calc(100%-83px)] w-[calc(50%-38px)] pr-4 pb-1 flex items-center justify-center aspect-square"
+ class="absolute right-0 top-16 mr-4 flex aspect-square h-[calc(100%-83px)] w-[calc(50%-38px)] items-center justify-center pb-1 pl-2 pr-4"
>
<div
- class="w-[122px] h-fit flex flex-col gap-2 items-center justify-center"
+ class="flex h-fit w-[122px] flex-col items-center justify-center gap-2"
>
<FormatDropdown
{categories}
@@ -434,7 +434,7 @@
{file}
/>
<div
- class="w-full flex items-center justify-between"
+ class="flex w-full items-center justify-between"
>
<Tooltip
text={m["convert.tooltips.convert_file"]()}
@@ -442,7 +442,7 @@
>
<button
class={clsx(
- "btn p-0 w-14 h-14 text-black",
+ "btn h-14 w-14 p-0 text-black",
!$effects && "!scale-100",
fileTypeColors[fileType],
)}
@@ -458,7 +458,7 @@
>
<button
class={clsx(
- "btn p-0 w-14 h-14",
+ "btn h-14 w-14 p-0",
!$effects && "!scale-100",
)}
onclick={file.download}
@@ -476,27 +476,27 @@
</Panel>
{/snippet}
-<div class="flex flex-col justify-center items-center gap-8 -mt-4 px-4 md:p-0">
- <div class="max-w-[778px] w-full">
+<div class="-mt-4 flex flex-col items-center justify-center gap-8 px-4 md:p-0">
+ <div class="w-full max-w-[778px]">
<ConversionPanel />
</div>
<div
- class="w-full max-w-[778px] grid grid-cols-1 md:grid-cols-2 auto-rows-[240px] gap-4 md:p-0"
+ class="grid w-full max-w-[778px] auto-rows-[240px] grid-cols-1 gap-4 md:grid-cols-2 md:p-0"
>
{#each files.files as file, i (file.id)}
{#if files.files.length >= 2 && i === 1}
<Uploader
- class="w-full h-full col-start-1 row-start-1 md:col-start-2"
+ class="col-start-1 row-start-1 h-full w-full md:col-start-2"
/>
{/if}
{@render fileItem(file)}
{#if files.files.length < 2}
- <Uploader class="w-full h-full" />
+ <Uploader class="h-full w-full" />
{/if}
{/each}
{#if files.files.length === 0}
- <Uploader class="w-full h-full col-span-2" />
+ <Uploader class="col-span-2 h-full w-full" />
{/if}
</div>
</div>
diff --git a/src/routes/debug/+page.svelte b/src/routes/debug/+page.svelte
index 720c783..aa7f3de 100644
--- a/src/routes/debug/+page.svelte
+++ b/src/routes/debug/+page.svelte
@@ -136,44 +136,44 @@
});
</script>
-<div class="flex flex-col h-full items-center">
- <h1 class="hidden md:block text-[40px] tracking-tight leading-[72px] mb-6">
- <BugIcon size="40" class="inline-block -mt-2 mr-2" />
+<div class="flex h-full flex-col items-center">
+ <h1 class="mb-6 hidden text-[40px] leading-[72px] tracking-tight md:block">
+ <BugIcon size="40" class="-mt-2 mr-2 inline-block" />
{m["settings.debug.title"]()}
</h1>
<div
- class="w-full max-w-[1280px] flex flex-col md:flex-row gap-4 p-4 md:px-4 md:py-0"
+ class="flex w-full max-w-[1280px] flex-col gap-4 p-4 md:flex-row md:px-4 md:py-0"
>
<!-- left side -->
- <div class="flex flex-col gap-4 flex-1 min-w-0">
+ <div class="flex min-w-0 flex-1 flex-col gap-4">
<!-- logs -->
- <Panel class="flex flex-col gap-8 p-6 min-w-0">
- <div class="flex flex-col gap-4 min-w-0">
+ <Panel class="flex min-w-0 flex-col gap-8 p-6">
+ <div class="flex min-w-0 flex-col gap-4">
<h2 class="text-2xl font-bold">
<TerminalIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-blue p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent-blue p-2"
color="black"
/>
{m["settings.debug.logs.title"]()}
</h2>
- <div class="flex flex-col sm:flex-row gap-3">
+ <div class="flex flex-col gap-3 sm:flex-row">
<div class="relative flex flex-1">
<input
type="text"
placeholder={m[
"settings.debug.logs.search_placeholder"
]()}
- class="flex-grow w-full !pl-11 !pr-3 rounded-lg bg-panel text-foreground"
+ class="w-full flex-grow rounded-lg bg-panel !pl-11 !pr-3 text-foreground"
bind:value={logQuery}
autocomplete="off"
/>
<span
- class="absolute left-4 top-1/2 -translate-y-1/2 flex items-center"
+ class="absolute left-4 top-1/2 flex -translate-y-1/2 items-center"
>
- <SearchIcon class="w-4 h-4" />
+ <SearchIcon class="h-4 w-4" />
</span>
{#if logQuery}
<span
@@ -197,17 +197,17 @@
</div>
<div
- class="rounded-lg border-2 border-button overflow-hidden"
+ class="overflow-hidden rounded-lg border-2 border-button"
>
<div
- class="flex items-center justify-between px-3 py-2 bg-button"
+ class="flex items-center justify-between bg-button px-3 py-2"
>
<span
class="text-xs font-bold uppercase tracking-wide text-muted"
>
<TerminalIcon
size="14"
- class="inline-block mr-1 -mt-0.5"
+ class="-mt-0.5 mr-1 inline-block"
/>
{m["settings.debug.logs.title"]()}
</span>
@@ -220,10 +220,10 @@
<div
class="h-72 overflow-auto font-mono text-xs leading-relaxed"
>
- <div class="flex flex-col w-max min-w-full h-full">
+ <div class="flex h-full w-max min-w-full flex-col">
{#each filteredLogs as entry (entry.id)}
<div
- class="flex gap-2 px-3 py-1.5 border-b border-separator hover:bg-panel-highlight whitespace-nowrap"
+ class="flex gap-2 whitespace-nowrap border-b border-separator px-3 py-1.5 hover:bg-panel-highlight"
>
<span class="shrink-0 text-muted"
>{entry.time}</span
@@ -247,7 +247,7 @@
</div>
{:else}
<div
- class="flex flex-col items-center justify-center gap-2 h-full text-muted"
+ class="flex h-full flex-col items-center justify-center gap-2 text-muted"
>
<InfoIcon size="20" />
{m["settings.debug.logs.empty"]()}
@@ -258,7 +258,7 @@
</div>
<div class="flex flex-col gap-2">
- <div class="flex flex-wrap gap-3 w-full">
+ <div class="flex w-full flex-wrap gap-3">
{@render logAction(
RefreshCwIcon,
m["settings.debug.logs.refresh"](),
@@ -282,7 +282,7 @@
<h2 class="text-2xl font-bold">
<WrenchIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-red p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent-red p-2"
color="black"
/>
{m["settings.debug.tools.title"]()}
@@ -293,11 +293,11 @@
<p class="text-sm font-bold">
{m["settings.debug.tools.report_title"]()}
</p>
- <p class="text-xs text-muted font-normal">
+ <p class="text-xs font-normal text-muted">
{m["settings.debug.tools.report_description"]()}
</p>
</div>
- <div class="flex flex-wrap gap-3 w-full">
+ <div class="flex w-full flex-wrap gap-3">
{@render logAction(
ClipboardCopyIcon,
m["settings.debug.tools.copy_report"](),
@@ -317,19 +317,19 @@
</div>
<!-- right side -->
- <div class="flex flex-col gap-4 flex-1">
+ <div class="flex flex-1 flex-col gap-4">
<!-- system info -->
<Panel class="flex flex-col gap-8 p-6">
<div class="flex flex-col gap-4">
<h2 class="text-2xl font-bold">
<CpuIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent-purple p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent-purple p-2"
color="black"
/>
{m["settings.debug.system.title"]()}
</h2>
- <div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
{@render infoRow(
CpuIcon,
m["settings.debug.system.cores"](),
@@ -378,7 +378,7 @@
)}
</div>
- <div class="rounded-lg bg-button p-4 flex flex-col gap-3">
+ <div class="flex flex-col gap-3 rounded-lg bg-button p-4">
<div class="flex items-center justify-between text-sm">
<span class="text-muted"
>{m[
@@ -400,7 +400,7 @@
</span>
</div>
<div
- class="h-2 w-full rounded-full bg-panel overflow-hidden"
+ class="h-2 w-full overflow-hidden rounded-full bg-panel"
>
<div
class="h-full bg-accent-blue transition-all"
@@ -443,12 +443,12 @@
<h2 class="text-2xl font-bold">
<RefreshCwIcon
size="40"
- class="inline-block -mt-1 mr-2 bg-accent p-2 rounded-full"
+ class="-mt-1 mr-2 inline-block rounded-full bg-accent p-2"
color="black"
/>
{m["settings.debug.converters.title"]()}
</h2>
- <div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
{#each converterList as converter (converter.name)}
{@const Icon = converter.icon}
<div
@@ -458,23 +458,23 @@
class="flex items-start justify-between gap-3"
>
<div
- class="flex items-center gap-3 min-w-0"
+ class="flex min-w-0 items-center gap-3"
>
<span
class={clsx(
- "shrink-0 p-2 rounded-lg text-black",
+ "shrink-0 rounded-lg p-2 text-black",
converter.accent,
)}
>
<Icon size="20" />
</span>
- <div class="flex flex-col min-w-0">
+ <div class="flex min-w-0 flex-col">
<span
- class="text-sm font-bold truncate"
+ class="truncate text-sm font-bold"
>{converter.name}</span
>
<span
- class="text-xs text-muted truncate"
+ class="truncate text-xs text-muted"
>
{converter.category}</span
>
@@ -482,7 +482,7 @@
</div>
<span
class={clsx(
- "shrink-0 rounded-full px-2 py-0.5 text-xs font-bold whitespace-nowrap",
+ "shrink-0 whitespace-nowrap rounded-full px-2 py-0.5 text-xs font-bold",
statusClasses[converter.status] ??
"bg-button text-muted",
)}
@@ -521,7 +521,7 @@
<button
{onclick}
class={clsx(
- "btn px-4 rounded-lg text-black dynadark:text-white flex items-center justify-center",
+ "btn flex items-center justify-center rounded-lg px-4 text-black dynadark:text-white",
$effects ? "" : "!scale-100",
className,
)}
@@ -535,17 +535,17 @@
<div
class="flex items-center justify-between gap-3 rounded-lg bg-button p-3"
>
- <span class="flex items-center gap-2 text-sm text-muted min-w-0">
+ <span class="flex min-w-0 items-center gap-2 text-sm text-muted">
<Icon size="18" class="shrink-0" />
<span class="truncate">{label}</span>
</span>
- <span class="text-sm font-bold truncate">{value}</span>
+ <span class="truncate text-sm font-bold">{value}</span>
</div>
{/snippet}
{#snippet statCard(label: string, value: string)}
- <div class="bg-button p-4 rounded-lg">
+ <div class="rounded-lg bg-button p-4">
<div class="text-sm text-muted">{label}</div>
- <div class="text-lg font-bold truncate">{value}</div>
+ <div class="truncate text-lg font-bold">{value}</div>
</div>
{/snippet}
diff --git a/src/routes/privacy/+page.svelte b/src/routes/privacy/+page.svelte
index 5b11944..525a4a7 100644
--- a/src/routes/privacy/+page.svelte
+++ b/src/routes/privacy/+page.svelte
@@ -4,17 +4,17 @@
import { ShieldCheckIcon } from "@lucide/svelte";
</script>
-<div class="flex flex-col h-full items-center">
- <h1 class="hidden md:block text-[40px] tracking-tight leading-[72px] mb-6">
- <ShieldCheckIcon size="40" class="inline-block -mt-2 mr-2" />
+<div class="flex h-full flex-col items-center">
+ <h1 class="mb-6 hidden text-[40px] leading-[72px] tracking-tight md:block">
+ <ShieldCheckIcon size="40" class="-mt-2 mr-2 inline-block" />
{m["privacy.title"]()}
</h1>
<div
- class="w-full max-w-[1280px] flex flex-col md:flex-row gap-4 p-4 md:px-4 md:py-0"
+ class="flex w-full max-w-[1280px] flex-col gap-4 p-4 md:flex-row md:px-4 md:py-0"
>
- <div class="bg-panel rounded-2xl p-6 shadow-panel text-lg font-normal">
- <h2 class="text-2xl mb-3">{m["privacy.summary.title"]()}</h2>
+ <div class="rounded-2xl bg-panel p-6 text-lg font-normal shadow-panel">
+ <h2 class="mb-3 text-2xl">{m["privacy.summary.title"]()}</h2>
<p class="mb-4">
{@html sanitize(
link(
@@ -26,12 +26,12 @@
)}
</p>
- <h2 class="text-2xl mb-3">{m["privacy.conversions.title"]()}</h2>
+ <h2 class="mb-3 text-2xl">{m["privacy.conversions.title"]()}</h2>
<p class="mb-4">
{@html sanitize(m["privacy.conversions.description"]())}
</p>
- <h2 class="text-2xl mb-3">{m["privacy.donations.title"]()}</h2>
+ <h2 class="mb-3 text-2xl">{m["privacy.donations.title"]()}</h2>
<p class="mb-4">
{@html sanitize(
link(
@@ -46,12 +46,12 @@
)}
</p>
- <h2 class="text-2xl mb-3">
+ <h2 class="mb-3 text-2xl">
{m["privacy.conversion_errors.title"]()}
</h2>
<div class="mb-4">
{m["privacy.conversion_errors.description"]()}
- <ul class="list-disc list-inside mt-2 mb-2">
+ <ul class="mb-2 mt-2 list-inside list-disc">
<li>{m["privacy.conversion_errors.list_job_id"]()}</li>
<li>{m["privacy.conversion_errors.list_format_from"]()}</li>
<li>{m["privacy.conversion_errors.list_format_to"]()}</li>
@@ -61,7 +61,7 @@
{m["privacy.conversion_errors.footer"]()}
</div>
- <h2 class="text-2xl mt-4 mb-2">{m["privacy.analytics.title"]()}</h2>
+ <h2 class="mb-2 mt-4 text-2xl">{m["privacy.analytics.title"]()}</h2>
<p class="mb-4">
{@html sanitize(
link(
@@ -76,7 +76,7 @@
)}
</p>
- <h2 class="text-2xl mt-4 mb-2">{m["privacy.debugging.title"]()}</h2>
+ <h2 class="mb-2 mt-4 text-2xl">{m["privacy.debugging.title"]()}</h2>
<p class="mb-4">
{@html link(
["settings_link"],
@@ -86,7 +86,7 @@
)}
</p>
- <h2 class="text-2xl mt-4 mb-2">
+ <h2 class="mb-2 mt-4 text-2xl">
{m["privacy.local_storage.title"]()}
</h2>
<p class="mb-4">
@@ -100,7 +100,7 @@
)}
</p>
- <h2 class="text-2xl mt-4 mb-2">{m["privacy.contact.title"]()}</h2>
+ <h2 class="mb-2 mt-4 text-2xl">{m["privacy.contact.title"]()}</h2>
<p class="mb-0">
{@html sanitize(
link(
@@ -112,7 +112,7 @@
)}
</p>
- <p class="text-sm text-muted mt-6">{m["privacy.last_updated"]()}</p>
+ <p class="mt-6 text-sm text-muted">{m["privacy.last_updated"]()}</p>
</div>
</div>
</div>
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 0fc0b1d..05dae64 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -57,16 +57,16 @@
});
</script>
-<div class="flex flex-col h-full items-center">
- <h1 class="hidden md:block text-[40px] tracking-tight leading-[72px] mb-6">
- <SettingsIcon size="40" class="inline-block -mt-2 mr-2" />
+<div class="flex h-full flex-col items-center">
+ <h1 class="mb-6 hidden text-[40px] leading-[72px] tracking-tight md:block">
+ <SettingsIcon size="40" class="-mt-2 mr-2 inline-block" />
{m["settings.title"]()}
</h1>
<div
- class="w-full max-w-[1280px] flex flex-col md:flex-row gap-4 p-4 md:px-4 md:py-0"
+ class="flex w-full max-w-[1280px] flex-col gap-4 p-4 md:flex-row md:px-4 md:py-0"
>
- <div class="flex flex-col gap-4 flex-1">
+ <div class="flex flex-1 flex-col gap-4">
<Settings.Conversion bind:settings />
{#if !DISABLE_ALL_EXTERNAL_REQUESTS}
<Settings.Vertd bind:settings />
@@ -75,7 +75,7 @@
{/if}
</div>
- <div class="flex flex-col gap-4 flex-1">
+ <div class="flex flex-1 flex-col gap-4">
<Settings.Appearance />
{#if !DISABLE_ALL_EXTERNAL_REQUESTS}
<Settings.Privacy bind:settings />