Skip to content

Commit da4ad4e

Browse files
committed
auto(treewide): sort classes
1 parent f5b485c commit da4ad4e

File tree

9 files changed

+27
-27
lines changed

9 files changed

+27
-27
lines changed

web/src/app.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
}
1616

1717
.btn {
18-
@apply font-normal rounded-xl;
18+
@apply rounded-xl font-normal;
1919
}
2020

2121
.input {
2222
@apply rounded-xl;
2323
}
2424

2525
.hm-blocks-container {
26-
@apply h-full bg-base-100 p-6 flex flex-col gap-4;
26+
@apply bg-base-100 flex h-full flex-col gap-4 p-6;
2727
}
2828

2929
.hm-block {
30-
@apply rounded-xl bg-white p-6 flex flex-col gap-2 border border-gray-200;
30+
@apply flex flex-col gap-2 rounded-xl border border-gray-200 bg-white p-6;
3131
}

web/src/components/header.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
});
2828
</script>
2929

30-
<header class="sticky top-0 left-0 w-full z-30 px-6 pt-6">
30+
<header class="sticky top-0 left-0 z-30 w-full px-6 pt-6">
3131
<div
32-
class="h-14 px-6 gap-8 flex items-center align-middle rounded-xl bg-white/60 backdrop-blur-md border border-gray-200"
32+
class="flex h-14 items-center gap-8 rounded-xl border border-gray-200 bg-white/60 px-6 align-middle backdrop-blur-md"
3333
>
34-
<a class="font-bold text-xl cursor-pointer" href="/">how-match</a>
34+
<a class="cursor-pointer text-xl font-bold" href="/">how-match</a>
3535
<span class="text-xl">
3636
{title}
3737
</span>

web/src/providers/modal/modal.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div class="modal-box border-1">
2323
<h1>{ctrl.current?.title}</h1>
2424
<p>{ctrl.current?.content}</p>
25-
<div class="modal-action flex gap-4 items-center">
25+
<div class="modal-action flex items-center gap-4">
2626
<form method="dialog">
2727
{#each ctrl.current?.buttons ?? [] as button}
2828
<button

web/src/providers/toast/toast.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const { toast: toasts }: Props = $props();
77
</script>
88

9-
<div class="mt-3 ml-3 toast-start toast-top absolute">
9+
<div class="toast-start toast-top absolute mt-3 ml-3">
1010
{#each toasts.toasts as toast}
1111
<div class="alert {toast.class}" transition:fly>
1212
<span>{toast.message}</span>

web/src/routes/+page.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</script>
3838

3939
<div>
40-
<div class="p-2 hm-blocks-container">
40+
<div class="hm-blocks-container p-2">
4141
<!-- <div class="hero bg-base-200">
4242
<div class="hero-content text-center">
4343
<div class="max-w-md">
@@ -52,7 +52,7 @@
5252
</div>
5353
</div> -->
5454
<div class="hm-block text-center">
55-
<div class="max-w-md mx-auto py-6 px-2">
55+
<div class="mx-auto max-w-md px-2 py-6">
5656
<h2 class="text-3xl">プロジェクトを作る</h2>
5757
<a href="/new" class="btn btn-xl btn-primary mt-5">
5858
<MdiWrench class="mr-1" />作成
@@ -66,7 +66,7 @@
6666
{:else}
6767
<div class="hm-block">
6868
<h2 class="text-xl">作成・提出したプロジェクト</h2>
69-
<ul class="list w-full bg-base-200 my-1 rounded-xl">
69+
<ul class="list bg-base-200 my-1 w-full rounded-xl">
7070
{#if projects.length === 0}
7171
<li class="list-row flex">
7272
作成・提出したプロジェクトはありません。

web/src/routes/[projectId]/config/+page.svelte

+7-7
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<p>{project.description}</p>
9292
</div>
9393
<div class="flex flex-col gap-2">
94-
<h3 class="text-gray-500 text-sm">提出ページ</h3>
94+
<h3 class="text-sm text-gray-500">提出ページ</h3>
9595
<div class="flex gap-2">
9696
<label class="input input-bordered w-full rounded-xl bg-gray-50">
9797
<img
@@ -132,7 +132,7 @@
132132
</div>
133133
</div>
134134
<div class="flex flex-col gap-2">
135-
<h3 class="text-gray-500 text-sm">締切</h3>
135+
<h3 class="text-sm text-gray-500">締切</h3>
136136
<p>
137137
{project.closed_at ?? "締切が設定されていません"}
138138
</p>
@@ -171,7 +171,7 @@
171171
</div>
172172
</div>
173173
<div class="flex flex-col gap-2">
174-
<h3 class="text-gray-500 text-sm">一般</h3>
174+
<h3 class="text-sm text-gray-500">一般</h3>
175175
<div class="flex justify-end gap-2">
176176
<button
177177
class="btn btn-error btn-outline"
@@ -202,23 +202,23 @@
202202
</span>
203203
{:then [project, participants]}
204204
<ul class="list bg-base-100 rounded-box shadow-md">
205-
<li class="p-4 pb-2 text-xs opacity-60 tracking-wide">提出した人</li>
205+
<li class="p-4 pb-2 text-xs tracking-wide opacity-60">提出した人</li>
206206

207207
{#if !participants.length}
208208
<li class="list-row">
209209
<div
210-
class="text-xs font-semibold opacity-60 list-col-grow border-b-base-200"
210+
class="list-col-grow border-b-base-200 text-xs font-semibold opacity-60"
211211
>
212212
提出者がいません
213213
</div>
214214
</li>
215215
{:else}
216216
{#each participants as participant}
217217
<li class="list-row">
218-
<div class="text-xs font-semibold opacity-60 border-b-base-200">
218+
<div class="border-b-base-200 text-xs font-semibold opacity-60">
219219
{participant.name}
220220
</div>
221-
<div class="text-xs opacity-60 list-col-grow border-b-base-200">
221+
<div class="list-col-grow border-b-base-200 text-xs opacity-60">
222222
{#if !project.ok || project.data.project.multiple_roles}
223223
wants {participant.roles_count} roles
224224
{/if}

web/src/routes/[projectId]/submit/+page.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@
149149
max={maxRoles}
150150
step="1"
151151
/>
152-
<div class="flex justify-between px-2.5 mt-2 text-xs">
152+
<div class="mt-2 flex justify-between px-2.5 text-xs">
153153
{#each { length: maxRoles } as _}
154154
<span class="select-none">|</span>
155155
{/each}
156156
</div>
157-
<div class="flex justify-between px-2.5 mt-2 text-xs">
157+
<div class="mt-2 flex justify-between px-2.5 text-xs">
158158
{#each Array.from( { length: maxRoles }, ).map((_, i) => i + 1) as val}
159159
<span class="select-none">{val}</span>
160160
{/each}

web/src/routes/[projectId]/submit/roles-selector.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{@const role = rating.role}
1515
<div class="hm-block">
1616
<h2 class="text-xl">役職:{role.name}</h2>
17-
<div class="gap-2 grid grid-cols-7 justify-items-center text-sm">
17+
<div class="grid grid-cols-7 justify-items-center gap-2 text-sm">
1818
<div></div>
1919
<div class="text-lg text-gray-500">1</div>
2020
<div class="text-lg text-gray-500">2</div>
@@ -36,7 +36,7 @@
3636
{#snippet radioButton(radioIndex: number)}
3737
<div class="inline-flex items-center">
3838
<label
39-
class="relative flex items-center cursor-pointer"
39+
class="relative flex cursor-pointer items-center"
4040
for="{role.name}-{radioIndex}"
4141
>
4242
<input
@@ -50,7 +50,7 @@
5050
disabled={closed}
5151
/>
5252
<span
53-
class="absolute bg-slate-800 w-3 h-3 rounded-full opacity-0 peer-checked:opacity-100 transition-opacity duration-200 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
53+
class="absolute top-1/2 left-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 transform rounded-full bg-slate-800 opacity-0 transition-opacity duration-200 peer-checked:opacity-100"
5454
>
5555
</span>
5656
</label>

web/src/routes/new/+page.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<div class="flex gap-2">
130130
<input
131131
type="text"
132-
class="input bg-white validator text-base grow-1"
132+
class="input validator grow-1 bg-white text-base"
133133
placeholder="役職名"
134134
minlength="1"
135135
required
@@ -138,15 +138,15 @@
138138
/>
139139
<input
140140
type="number"
141-
class="input bg-white validator text-base"
141+
class="input validator bg-white text-base"
142142
placeholder="最大人数"
143143
min={1}
144144
required
145145
bind:value={role.max}
146146
/>
147147
<input
148148
type="number"
149-
class="input bg-white validator text-base"
149+
class="input validator bg-white text-base"
150150
placeholder="最小人数"
151151
min="0"
152152
max={role.max}
@@ -177,7 +177,7 @@
177177
<h2 class="text-xl">複数の役職につくことを許可する</h2>
178178
<input
179179
type="checkbox"
180-
class="block mt-3 checkbox checkbox-lg checkbox-primary ml-auto mr-auto"
180+
class="checkbox checkbox-lg checkbox-primary mt-3 mr-auto ml-auto block"
181181
placeholder=""
182182
indeterminate={multipleRoles_is_invalid}
183183
bind:checked={form.multipleRoles}

0 commit comments

Comments
 (0)