Skip to content

Commit

Permalink
refactor: remove shadow style
Browse files Browse the repository at this point in the history
  • Loading branch information
yilanboy committed Mar 4, 2024
1 parent 29d9409 commit c56fc78
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 38 deletions.
10 changes: 0 additions & 10 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@
display: none !important;
}

.bg-dot {
background-image: radial-gradient(circle, #d8dade 2px, transparent 2px);
background-size: 2.5rem 2.5rem;
background-position: 0 0;
}

.dark .bg-dot {
background-image: radial-gradient(circle, #1e2534 2px, transparent 2px);
}

/* scroll bar */
::-webkit-scrollbar {
height: 0.8em;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class="fixed bottom-0 left-0"
>
<div class="p-10">
<div
class="flex items-center rounded px-4 py-3 text-lg font-bold text-white shadow-md"
class="flex items-center rounded px-4 py-3 text-lg font-bold text-white"
role="alert"
:class="alertBackgroundColor"
>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/card.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div {{ $attributes->merge(['class' => 'rounded-xl bg-gray-50 p-5 shadow-lg dark:bg-gray-800 dark:shadow-none']) }}>
<div {{ $attributes->merge(['class' => 'rounded-xl bg-gray-50 p-5 dark:bg-gray-800']) }}>
{{ $slot }}
</div>
2 changes: 1 addition & 1 deletion resources/views/components/dashed-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div
{{ $attributes->merge(['class' => 'rounded-xl border border-dashed border-green-500 bg-gray-50 p-5 shadow-lg dark:border-indigo-500 dark:bg-gray-800 dark:shadow-none']) }}
{{ $attributes->merge(['class' => 'rounded-xl border border-dashed border-green-500 bg-gray-50 p-5 dark:border-indigo-500 dark:bg-gray-800']) }}
>
{{ $slot }}
</div>
2 changes: 1 addition & 1 deletion resources/views/components/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class="scroll-smooth"
{{-- prettier-ignore-end --}}
</head>

<body class="bg-dot overscroll-y-none bg-gray-200 font-sans text-lg text-gray-900 antialiased dark:bg-gray-900">
<body class="overscroll-y-none bg-gray-200 font-sans text-lg text-gray-900 antialiased dark:bg-gray-900">

{{ $slot }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class="relative mt-4 pt-1"
>
<div class="mb-4 flex h-4 overflow-hidden rounded bg-green-200 text-xs dark:bg-indigo-200">
<div
class="flex flex-col justify-center whitespace-nowrap bg-green-500 text-center text-white shadow-none dark:bg-indigo-500"
class="flex flex-col justify-center whitespace-nowrap bg-green-500 text-center text-white dark:bg-indigo-500"
x-bind:style="`width:${progress}%`"
>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/scroll-to-top-button.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<button
{{ $attributes->merge([
'class' =>
'fixed bottom-7 right-7 z-10 hidden h-16 w-16 rounded-full bg-green-600 text-gray-50 shadow-md transition duration-150 ease-in hover:scale-110 hover:shadow-xl dark:bg-lividus-600',
'fixed bottom-7 right-7 z-10 hidden h-16 w-16 rounded-full bg-green-600 text-gray-50 transition duration-150 ease-in hover:scale-110 dark:bg-lividus-600',
'id' => 'scroll-to-top-btn',
'type' => 'button',
'title' => 'Go to top',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/pages/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class="inline-flex items-center"
for="remember-me"
>
<input
class="form-checkbox rounded border-gray-300 text-indigo-400 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
class="form-checkbox rounded border-gray-300 text-indigo-400 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
id="remember-me"
name="remember"
type="checkbox"
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/pages/posts/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class="hidden"
>分類</label>

<select
class="form-select h-12 w-full rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50"
class="form-select h-12 w-full rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50"
id="category_id"
name="category_id"
wire:model.change="form.category_id"
Expand All @@ -79,7 +79,7 @@ class="inline-flex items-center"
for="is-private"
>
<input
class="form-checkbox h-6 w-6 rounded border-gray-300 text-indigo-400 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
class="form-checkbox h-6 w-6 rounded border-gray-300 text-indigo-400 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
id="is-private"
name="is-private"
type="checkbox"
Expand All @@ -97,7 +97,7 @@ class="hidden"
>文章標題</label>

<input
class="form-input h-12 w-full rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-input h-12 w-full rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="title"
name="title"
type="text"
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/pages/posts/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class="hidden"
>分類</label>

<select
class="form-select h-12 w-full rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50"
class="form-select h-12 w-full rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50"
id="category_id"
name="category_id"
wire:model.change="form.category_id"
Expand All @@ -79,7 +79,7 @@ class="inline-flex items-center"
for="is-private"
>
<input
class="form-checkbox h-6 w-6 rounded border-gray-300 text-indigo-400 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
class="form-checkbox h-6 w-6 rounded border-gray-300 text-indigo-400 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
id="is-private"
name="is-private"
type="checkbox"
Expand All @@ -97,7 +97,7 @@ class="hidden"
>文章標題</label>

<input
class="form-input h-12 w-full rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-input h-12 w-full rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="title"
name="title"
type="text"
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/pages/users/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class="text-gray-600 dark:text-gray-50"
@endphp

<input
class="mt-2 block w-full rounded-md border border-slate-300 bg-white px-3 py-2 placeholder-slate-400 shadow-sm invalid:border-pink-500 invalid:text-pink-600 focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500 focus:invalid:border-pink-500 focus:invalid:ring-pink-500 disabled:border-slate-200 disabled:bg-slate-50 disabled:text-slate-500 disabled:shadow-none dark:disabled:border-slate-500 dark:disabled:bg-slate-700 dark:disabled:text-slate-400"
class="mt-2 block w-full rounded-md border border-slate-300 bg-white px-3 py-2 placeholder-slate-400 invalid:border-pink-500 invalid:text-pink-600 focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500 focus:invalid:border-pink-500 focus:invalid:ring-pink-500 disabled:border-slate-200 disabled:bg-slate-50 disabled:text-slate-500 dark:disabled:border-slate-500 dark:disabled:bg-slate-700 dark:disabled:text-slate-400"
id="email"
name="email"
type="text"
Expand All @@ -78,7 +78,7 @@ class="text-gray-600 dark:text-gray-50"
>會員名稱 (只能使用英文、數字、_ 或是 -)</label>

<input
class="form-input mt-2 w-full rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-input mt-2 w-full rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="name"
name="name"
type="text"
Expand All @@ -98,7 +98,7 @@ class="text-gray-600 dark:text-gray-50"
>個人介紹 (最多 80 個字)</label>

<textarea
class="form-textarea mt-2 w-full resize-none rounded-md border border-gray-300 text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-textarea mt-2 w-full resize-none rounded-md border border-gray-300 text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="introduction"
name="introduction"
wire:model.blur="introduction"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/pages/users/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class="absolute left-0 z-10 h-full w-1/2 duration-300 ease-out"
x-ref="tabMarker"
x-cloak
>
<div class="h-full w-full rounded-md bg-gray-100 shadow-sm dark:bg-gray-800 dark:shadow-none"></div>
<div class="h-full w-full rounded-md bg-gray-100 dark:bg-gray-800"></div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class="space-y-2"
<label for="create-comment-textarea"></label>
<textarea
class="form-textarea w-full resize-none rounded-md border border-gray-300 font-jetbrains-mono text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-textarea w-full resize-none rounded-md border border-gray-300 font-jetbrains-mono text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="create-comment-textarea"
name="body"
x-ref="createCommentTextarea"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class="space-y-2"
<label for="edit-comment-textarea"></label>
<textarea
class="form-textarea w-full resize-none rounded-md border border-gray-300 font-jetbrains-mono text-lg shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
class="form-textarea w-full resize-none rounded-md border border-gray-300 font-jetbrains-mono text-lg focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-700 dark:text-gray-50 dark:placeholder-white"
id="edit-comment-textarea"
name="body"
x-ref="editCommentTextarea"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@endscript

<div
class="relative hidden h-20 w-full items-center justify-center bg-gray-50 shadow-lg transition-all duration-300 dark:bg-gray-800 dark:shadow-none lg:flex"
class="relative hidden h-20 w-full items-center justify-center bg-gray-50 transition-all duration-300 dark:bg-gray-800 lg:flex"
x-data="desktopHeaderMenu"
>
{{-- 電腦版-Logo --}}
Expand Down Expand Up @@ -146,7 +146,7 @@ class="h-12 w-12 rounded-full"

{{-- 電腦版-會員下拉式選單 --}}
<div
class="absolute right-0 top-16 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 shadow-lg ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:shadow-none dark:ring-gray-600"
class="absolute right-0 top-16 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:ring-gray-600"
role="menu"
aria-orientation="vertical"
aria-labelledby="user-menu-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@endscript

<div
class="bg-gray-50 shadow-lg dark:bg-gray-800 dark:shadow-none lg:hidden"
class="bg-gray-50 dark:bg-gray-800 lg:hidden"
x-data="mobileHeaderMenu"
>
<div class="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8">
Expand Down Expand Up @@ -154,7 +154,7 @@ class="size-10 rounded-full"

{{-- 手機版-會員選單 --}}
<div
class="absolute right-0 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 shadow-lg ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:shadow-none dark:ring-gray-600"
class="absolute right-0 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:ring-gray-600"
role="menu"
aria-orientation="vertical"
aria-labelledby="user-menu-button"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/shared/posts/posts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class="absolute inset-0 z-20 block"

@empty
<x-card
class="flex h-36 w-full items-center justify-center transition duration-150 ease-in hover:-translate-x-2 hover:shadow-xl dark:text-gray-50"
class="flex h-36 w-full items-center justify-center transition duration-150 ease-in hover:-translate-x-2 dark:text-gray-50"
>
<span>Whoops!此分類底下還沒有文章,趕緊寫一篇吧!</span>
</x-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class="text-2xl text-gray-400 hover:text-gray-700 focus:text-gray-700 dark:hover
</div>

<div
class="absolute right-0 z-10 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 shadow-lg ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:ring-gray-600"
class="absolute right-0 z-10 mt-2 w-48 rounded-md bg-gray-50 p-2 text-gray-700 ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50 dark:ring-gray-600"
role="menu"
aria-orientation="vertical"
tabindex="-1"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/shared/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class="absolute right-3 top-3 h-5 w-5 text-gray-700 dark:text-gray-50"
{{-- 搜尋結果列表 --}}
@if (strlen($search) >= 2)
<div
class="mt-4 w-full rounded-xl bg-gray-50 p-2 shadow-md ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50"
class="mt-4 w-full rounded-xl bg-gray-50 p-2 ring-1 ring-black ring-opacity-20 dark:bg-gray-800 dark:text-gray-50"
wire:transition
>
@if ($results->count() > 0)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/shared/users/info-cards.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class="grid w-full grid-cols-6 gap-6 dark:text-gray-50"
x-data="userInfoCards"
>
<div
class="col-span-6 rounded-2xl bg-gradient-to-br from-green-500 via-teal-500 to-sky-500 p-1 shadow-lg dark:from-pink-500 dark:via-purple-500 dark:to-indigo-500 dark:shadow-none md:col-span-2"
class="col-span-6 rounded-2xl bg-gradient-to-br from-green-500 via-teal-500 to-sky-500 p-1 dark:from-pink-500 dark:via-purple-500 dark:to-indigo-500 md:col-span-2"
>
<div class="flex flex-col items-center justify-between rounded-xl bg-gray-50 p-5 dark:bg-gray-800">
{{-- 大頭貼 --}}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/shared/users/posts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class="absolute right-0 top-1 z-50 mt-12 w-40"
x-transition:enter-end="translate-y-0"
>
<div
class="mt-1 rounded-md border border-neutral-200/70 bg-white p-1 text-lg text-neutral-700 shadow-md dark:border-gray-600 dark:bg-gray-800 dark:text-gray-50"
class="mt-1 rounded-md border border-neutral-200/70 bg-white p-1 text-lg text-neutral-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-50"
>
@foreach (array_keys($this->postsGroupByYear) as $year)
<button
Expand Down

0 comments on commit c56fc78

Please sign in to comment.