Skip to content

Commit fb1248e

Browse files
HassanZahirniagithub-actions[bot]
authored andcommitted
chore: fix code style
1 parent c774c8c commit fb1248e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+351
-355
lines changed

docs/src/styles/tailwind.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
}
8080

8181
& .heading-anchor {
82-
@apply mr-2 inline-block align-baseline text-butter shadow-none dark:shadow-none;
83-
@apply lg:absolute lg:-left-7 lg:top-0;
82+
@apply text-butter mr-2 inline-block align-baseline shadow-none dark:shadow-none;
83+
@apply lg:absolute lg:top-0 lg:-left-7;
8484
}
8585

8686
/* All `.prose` elements except `code` */
@@ -105,8 +105,8 @@
105105

106106
@utility heading-anchor {
107107
.prose & {
108-
@apply mr-2 inline-block align-baseline text-butter shadow-none dark:shadow-none;
109-
@apply lg:absolute lg:-left-7 lg:top-0;
108+
@apply text-butter mr-2 inline-block align-baseline shadow-none dark:shadow-none;
109+
@apply lg:absolute lg:top-0 lg:-left-7;
110110
}
111111
}
112112

@@ -170,7 +170,7 @@
170170

171171
p code,
172172
ul code {
173-
@apply rounded bg-merino px-1.5 py-0.5;
173+
@apply bg-merino rounded px-1.5 py-0.5;
174174
}
175175

176176
p code::selection,

resources/views/articles/list-articles.blade.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
:$starsCount
66
/>
77

8-
<div
9-
class="mx-auto mt-5 w-full max-w-330 border-t border-merino"
10-
></div>
8+
<div class="border-merino mx-auto mt-5 w-full max-w-330 border-t"></div>
119

1210
<x-articles.list
1311
:$articles

resources/views/articles/view-article.blade.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
)
2323
}
2424
"
25-
class="mx-auto w-full max-w-8xl px-5 sm:px-10"
25+
class="max-w-8xl mx-auto w-full px-5 sm:px-10"
2626
>
2727
<div class="flex flex-wrap items-center justify-between gap-5 pt-20">
2828
{{-- Back Button --}}
2929
<a
3030
x-on:mouseenter="back_button_is_hovering = true"
3131
x-on:mouseleave="back_button_is_hovering = false"
3232
href="{{ route('articles') }}"
33-
class="flex items-center gap-3 p-1 text-dolphin transition duration-300 hover:-translate-x-2 hover:text-evening"
33+
class="text-dolphin hover:text-evening flex items-center gap-3 p-1 transition duration-300 hover:-translate-x-2"
3434
>
3535
<svg
3636
xmlns="http://www.w3.org/2000/svg"
@@ -77,7 +77,7 @@ class="flex flex-col items-start gap-20 pt-7 transition duration-300 will-change
7777
</div>
7878

7979
<div class="pt-2">
80-
<div class="text-base text-dolphin">
80+
<div class="text-dolphin text-base">
8181
{{ $article->publish_date->toFormattedDateString() }}
8282
</div>
8383
</div>
@@ -132,7 +132,7 @@ class="grid h-9 w-9 place-items-center rounded-full bg-rose-200/50 text-rose-600
132132
{{ $article->isCompatibleWithLatestVersion() ? 'Compatible with the latest version' : 'Not compatible with the latest version' }}
133133
</div>
134134

135-
<div class="text-xs text-dolphin/80">
135+
<div class="text-dolphin/80 text-xs">
136136
Supported versions:
137137
{{ implode(' - ', array_map(fn (int $version): string => $version . '.x', $article->versions)) }}
138138
</div>
@@ -145,7 +145,7 @@ class="grid h-9 w-9 place-items-center rounded-full bg-rose-200/50 text-rose-600
145145
<div class="flex flex-wrap items-center gap-3.5 pt-6">
146146
@foreach ($article->getCategories() as $category)
147147
<div
148-
class="select-none rounded-full bg-stone-200/50 px-5 py-2.5 text-sm"
148+
class="rounded-full bg-stone-200/50 px-5 py-2.5 text-sm select-none"
149149
>
150150
<div class="text-sm">
151151
{{ $category->name }}
@@ -157,7 +157,7 @@ class="select-none rounded-full bg-stone-200/50 px-5 py-2.5 text-sm"
157157
{{-- Content --}}
158158
<div class="pt-8">
159159
<div
160-
class="prose selection:bg-stone-500/30 prose-a:break-words prose-blockquote:not-italic prose-code:break-words prose-code:rounded-sm prose-code:bg-merino prose-code:px-1.5 prose-code:py-0.5 prose-code:font-normal prose-code:before:hidden prose-code:after:hidden [&_p]:before:hidden [&_p]:after:hidden"
160+
class="prose prose-a:break-words prose-blockquote:not-italic prose-code:break-words prose-code:rounded-sm prose-code:bg-merino prose-code:px-1.5 prose-code:py-0.5 prose-code:font-normal prose-code:before:hidden prose-code:after:hidden selection:bg-stone-500/30 [&_p]:before:hidden [&_p]:after:hidden"
161161
>
162162
{!! \App\Support\Markdown::parse($article->content) !!}
163163
</div>
@@ -169,7 +169,7 @@ class="prose selection:bg-stone-500/30 prose-a:break-words prose-blockquote:not-
169169
class="flex w-full flex-wrap items-center gap-12 lg:max-w-sm xl:max-w-md"
170170
>
171171
{{-- Author --}}
172-
<div class="w-full pt-10 text-evening">
172+
<div class="text-evening w-full pt-10">
173173
<div class="grid w-full place-items-center">
174174
{{-- Avatar --}}
175175
<div
@@ -195,7 +195,7 @@ class="aspect-square h-full w-full bg-cover bg-center bg-no-repeat"
195195
<a
196196
target="_blank"
197197
href="{{ $article->author->twitter_url }}"
198-
class="grid h-8 w-8 place-items-center rounded-full bg-merino text-hurricane transition duration-200 hover:scale-110 hover:text-salmon"
198+
class="bg-merino text-hurricane hover:text-salmon grid h-8 w-8 place-items-center rounded-full transition duration-200 hover:scale-110"
199199
>
200200
<svg
201201
xmlns="http://www.w3.org/2000/svg"
@@ -217,7 +217,7 @@ class="grid h-8 w-8 place-items-center rounded-full bg-merino text-hurricane tra
217217
<a
218218
target="_blank"
219219
href="{{ $article->author->github_url }}"
220-
class="grid h-8 w-8 place-items-center rounded-full bg-merino text-hurricane transition duration-200 hover:scale-110 hover:text-salmon"
220+
class="bg-merino text-hurricane hover:text-salmon grid h-8 w-8 place-items-center rounded-full transition duration-200 hover:scale-110"
221221
>
222222
<svg
223223
xmlns="http://www.w3.org/2000/svg"
@@ -242,7 +242,7 @@ class="grid h-8 w-8 place-items-center rounded-full bg-merino text-hurricane tra
242242
</div>
243243

244244
<div
245-
class="mt-4 space-y-4 rounded-2xl bg-merino/50 p-6 text-center shadow-lg shadow-black/[0.01]"
245+
class="bg-merino/50 mt-4 space-y-4 rounded-2xl p-6 text-center shadow-lg shadow-black/[0.01]"
246246
>
247247
{{-- Bio --}}
248248
@if ($article->author->getBio())
@@ -260,7 +260,7 @@ class="mt-4 space-y-4 rounded-2xl bg-merino/50 p-6 text-center shadow-lg shadow-
260260
{{ number_format($article->author->articles()->published()->count(),) }}
261261
</div>
262262
<div
263-
class="text-sm font-medium text-hurricane/80"
263+
class="text-hurricane/80 text-sm font-medium"
264264
>
265265
Articles
266266
</div>
@@ -272,7 +272,7 @@ class="text-sm font-medium text-hurricane/80"
272272
{{ number_format($article->author->getStarsCount()) }}
273273
</div>
274274
<div
275-
class="text-sm font-medium text-hurricane/80"
275+
class="text-hurricane/80 text-sm font-medium"
276276
>
277277
Stars
278278
</div>
@@ -289,7 +289,7 @@ class="group relative z-10 block text-white"
289289
>
290290
{{-- Button --}}
291291
<div
292-
class="flex items-center justify-center gap-3 rounded-bl-3xl rounded-tr-3xl bg-midnight px-9 py-4 transition duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-0.5 motion-reduce:transition-none motion-reduce:group-hover:transform-none"
292+
class="bg-midnight flex items-center justify-center gap-3 rounded-tr-3xl rounded-bl-3xl px-9 py-4 transition duration-200 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 motion-reduce:transition-none motion-reduce:group-hover:transform-none"
293293
>
294294
<div>Sponsor</div>
295295
<div>
@@ -309,7 +309,7 @@ class="flex items-center justify-center gap-3 rounded-bl-3xl rounded-tr-3xl bg-m
309309

310310
{{-- Shadow --}}
311311
<div
312-
class="absolute inset-0 -z-10 h-full w-full -translate-x-1.5 translate-y-1.5 rounded-bl-3xl rounded-tr-3xl bg-rose-300 transition duration-300 group-hover:-translate-x-2 group-hover:translate-y-2 group-hover:bg-butter motion-reduce:transition-none motion-reduce:group-hover:transform-none"
312+
class="group-hover:bg-butter absolute inset-0 -z-10 h-full w-full -translate-x-1.5 translate-y-1.5 rounded-tr-3xl rounded-bl-3xl bg-rose-300 transition duration-300 group-hover:-translate-x-2 group-hover:translate-y-2 motion-reduce:transition-none motion-reduce:group-hover:transform-none"
313313
></div>
314314
</a>
315315
</div>
@@ -329,7 +329,7 @@ class="absolute inset-0 -z-10 h-full w-full -translate-x-1.5 translate-y-1.5 rou
329329
@foreach ($otherArticles as $otherArticle)
330330
<a
331331
href="{{ route('articles.view', ['article' => $otherArticle]) }}"
332-
class="relative block w-full rounded-2xl bg-white px-5 py-3 shadow-lg shadow-hurricane/5 transition duration-300 ease-out will-change-transform hover:translate-x-2"
332+
class="shadow-hurricane/5 relative block w-full rounded-2xl bg-white px-5 py-3 shadow-lg transition duration-300 ease-out will-change-transform hover:translate-x-2"
333333
>
334334
<div
335335
class="flex w-full items-center justify-between gap-5"
@@ -357,20 +357,20 @@ class="text-peach-orange"
357357
/>
358358
</svg>
359359
<div
360-
class="pt-0.5 text-sm font-medium text-dolphin"
360+
class="text-dolphin pt-0.5 text-sm font-medium"
361361
>
362362
{{ number_format($otherArticle->getStarsCount()) }}
363363
</div>
364364
</div>
365365
</div>
366366

367367
{{-- Title --}}
368-
<div class="px-1 pb-1 pt-4 font-medium">
368+
<div class="px-1 pt-4 pb-1 font-medium">
369369
<div class="line-clamp-2">
370370
{{ $otherArticle->title }}
371371
</div>
372372
<div
373-
class="pt-1 text-xs text-dolphin/80"
373+
class="text-dolphin/80 pt-1 text-xs"
374374
>
375375
{{ $otherArticle->publish_date->diffForHumans() }}
376376
</div>

resources/views/components/admin-demo.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@props([
2-
'shadow-sm' => 'shadow-2xl shadow-primary-500/30',
2+
'shadow-sm' => 'shadow-primary-500/30 shadow-2xl',
33
])
44

55
<div
@@ -19,8 +19,8 @@ class="flex items-center justify-between space-x-4 rounded-t-2xl border-b px-5 p
1919
>
2020
<div class="flex space-x-2 py-4">
2121
<div class="h-3 w-3 rounded-full bg-red-500"></div>
22-
<div class="h-3 w-3 rounded-full bg-primary-300"></div>
23-
<div class="h-3 w-3 rounded-full bg-success-400"></div>
22+
<div class="bg-primary-300 h-3 w-3 rounded-full"></div>
23+
<div class="bg-success-400 h-3 w-3 rounded-full"></div>
2424
</div>
2525

2626
<button
@@ -32,7 +32,7 @@ class="flex items-center justify-between space-x-4 rounded-t-2xl border-b px-5 p
3232
'dark:bg-white/10': theme === 'dark',
3333
}"
3434
type="button"
35-
class="relative inline-flex w-14 shrink-0 cursor-pointer rounded-xl border-2 border-gray-300 border-transparent p-0.5 transition-colors duration-200 ease-in-out focus:border-primary-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500"
35+
class="focus:border-primary-500 focus:ring-primary-500 relative inline-flex w-14 shrink-0 cursor-pointer rounded-xl border-2 border-gray-300 border-transparent p-0.5 transition-colors duration-200 ease-in-out focus:ring-2 focus:outline-hidden"
3636
>
3737
<span
3838
x-bind:class="{
@@ -60,7 +60,7 @@ class="absolute inset-0 flex h-full w-full items-center justify-center transitio
6060
'opacity-0 ease-out duration-100': theme === 'dark',
6161
}"
6262
>
63-
<x-heroicon-s-sun class="h-4 w-4 text-primary-600" />
63+
<x-heroicon-s-sun class="text-primary-600 h-4 w-4" />
6464
</span>
6565
</span>
6666
</button>
@@ -71,7 +71,7 @@ class="absolute inset-0 flex h-full w-full items-center justify-center transitio
7171
target="_blank"
7272
class="flex max-h-[190px] w-full overflow-hidden rounded-b-2xl sm:max-h-[300px] md:max-h-[400px] lg:max-h-[500px]"
7373
>
74-
<div class="relative -ml-px -mr-px max-h-full overflow-hidden">
74+
<div class="relative -mr-px -ml-px max-h-full overflow-hidden">
7575
<img
7676
src="/images/admin/demo/light-sidebar.jpg"
7777
aria-hidden="true"
@@ -121,14 +121,14 @@ class="flex items-center rounded-lg bg-gray-900 px-4 py-2 font-medium text-white
121121
<div class="absolute -top-18 right-16 hidden md:flex">
122122
<div class="relative">
123123
<span
124-
class="absolute right-18 top-1 whitespace-nowrap font-cursive text-2xl"
124+
class="font-cursive absolute top-1 right-18 text-2xl whitespace-nowrap"
125125
>
126126
it's open source
127127
</span>
128128

129129
<img
130130
src="/images/arrow-turn.svg"
131-
class="h-20 -rotate-90 -scale-x-100"
131+
class="h-20 -scale-x-100 -rotate-90"
132132
/>
133133
</div>
134134
</div>

resources/views/components/articles/card.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<a
22
x-bind:href="'/community/' + article.slug"
3-
class="rounded-2xl bg-white p-3 shadow-lg shadow-hurricane/5 transition duration-300 will-change-transform hover:-translate-y-1 hover:shadow-xl hover:shadow-hurricane/10"
3+
class="shadow-hurricane/5 hover:shadow-hurricane/10 rounded-2xl bg-white p-3 shadow-lg transition duration-300 will-change-transform hover:-translate-y-1 hover:shadow-xl"
44
>
5-
<div class="px-1.5 pb-1 pt-2.5">
5+
<div class="px-1.5 pt-2.5 pb-1">
66
<div class="flex flex-wrap items-center justify-between gap-5">
77
<div
8-
class="flex select-none items-center justify-center gap-2 rounded-full py-2.5 pl-4 pr-5 text-xs"
8+
class="flex items-center justify-center gap-2 rounded-full py-2.5 pr-5 pl-4 text-xs select-none"
99
x-bind:class="{
1010
'bg-amber-100/80 text-amber-700': types[article.type].color === 'amber',
1111
'bg-blue-100/80 text-blue-700': types[article.type].color === 'blue',
@@ -41,7 +41,7 @@ class="text-peach-orange"
4141
/>
4242
</svg>
4343
<div
44-
class="pt-0.5 text-sm font-medium text-dolphin"
44+
class="text-dolphin pt-0.5 text-sm font-medium"
4545
x-text="article.stars_count"
4646
></div>
4747
</div>
@@ -50,7 +50,7 @@ class="pt-0.5 text-sm font-medium text-dolphin"
5050
{{-- Title --}}
5151
<div
5252
x-text="article.title"
53-
class="line-clamp-2 pt-3.5 text-base font-medium text-evening"
53+
class="text-evening line-clamp-2 pt-3.5 text-base font-medium"
5454
></div>
5555

5656
{{-- Author --}}
@@ -64,7 +64,7 @@ class="aspect-square h-full w-full bg-cover bg-center bg-no-repeat"
6464
</template>
6565
<template x-if="! article.author.avatar">
6666
<div
67-
class="grid h-full w-full place-items-center bg-fair-pink text-salmon/50"
67+
class="bg-fair-pink text-salmon/50 grid h-full w-full place-items-center"
6868
>
6969
<svg
7070
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)