Compare commits

..

1 Commits

Author SHA1 Message Date
feb8c1b5b4 Add dark mode in NotificationItem 2023-03-27 16:47:19 +05:30
4 changed files with 16 additions and 26 deletions

View File

@ -40,7 +40,6 @@
font-normal
cursor-pointer
hover:bg-gray-100
dark:hover:bg-gray-700/60
rounded
ml-1
py-0.5

View File

@ -1,7 +1,7 @@
<template>
<div
v-if="address"
class="text-sm font-bold leading-5 text-black non-italic space-y-1 dark:text-white"
class="text-sm font-bold leading-5 text-black non-italic space-y-1"
>
<p v-if="address?.address_street_1">{{ address?.address_street_1 }},</p>

View File

@ -20,7 +20,6 @@
border border-gray-200 border-solid
min-h-[170px]
rounded-md
dark:border-white/10 dark:bg-gray-800/50
"
@click.stop
>
@ -28,7 +27,7 @@
<BaseText
:text="selectedCustomer.name"
:length="30"
class="flex-1 text-base font-medium text-left text-gray-900 dark:text-white"
class="flex-1 text-base font-medium text-left text-gray-900"
/>
<div class="flex">
<a
@ -193,7 +192,6 @@
border border-gray-200 border-solid
rounded-md
min-h-[170px]
dark:border-white/10 dark:bg-gray-700/60 dark:text-white
"
>
<BaseIcon
@ -209,12 +207,11 @@
bg-gray-200
rounded-full
font-base
dark:bg-gray-700
"
/>
<div class="mt-1">
<label class="text-lg font-medium text-gray-900 dark:text-white">
<label class="text-lg font-medium text-gray-900">
{{ $t('customers.new_customer') }}
<span class="text-red-500"> * </span>
</label>
@ -249,11 +246,6 @@
shadow-lg
ring-1 ring-black ring-opacity-5
bg-white
dark:border
dark:border-white/10
dark:bg-gray-800
dark:text-white
dark:shadow-glass
"
>
<div class="relative">
@ -273,7 +265,6 @@
overflow-auto
list
border-t border-gray-200
dark:border-white/10
"
>
<li
@ -289,7 +280,6 @@
hover:cursor-pointer hover:bg-gray-100
focus:outline-none focus:bg-gray-100
last:border-b-0
dark:border-white/10 dark:hover:bg-gray-700/30
"
@click="selectNewCustomer(customer.id, close)"
>
@ -309,7 +299,6 @@
bg-gray-300
rounded-full
avatar
dark:bg-gray-600
"
>
{{ initGenerator(customer.name) }}
@ -344,9 +333,9 @@
</li>
<div
v-if="customerStore.customers.length === 0"
class="flex justify-center p-5 text-gray-400 dark:text-gray-300"
class="flex justify-center p-5 text-gray-400"
>
<label class="text-base text-gray-500 cursor-pointer dark:text-gray-300">
<label class="text-base text-gray-500 cursor-pointer">
{{ $t('customers.no_customers_found') }}
</label>
</div>
@ -368,10 +357,6 @@
border-none
outline-none
focus:bg-gray-300
dark:bg-gray-600/70
dark:shadow-glass
dark:backdrop-blur-xl
dark:hover:bg-gray-600/80
"
@click="openCustomerModal"
>

View File

@ -1,6 +1,8 @@
<template>
<div
:class="success || info ? 'bg-white' : 'bg-red-50'"
:class="success || info
? 'bg-white dark:border dark:border-white/10 dark:text-white dark:bg-gray-800/[.80] dark:shadow-glass dark:backdrop-blur-sm'
: 'bg-red-50 dark:bg-red-400/[.70] dark:shadow-glass dark:backdrop-blur-sm'"
class="
max-w-sm
mb-3
@ -48,7 +50,7 @@
</svg>
<svg
v-if="error"
class="w-6 h-6 text-red-400"
class="w-6 h-6 text-red-400 dark:text-white"
fill="currentColor"
viewBox="0 0 24 24"
>
@ -62,7 +64,9 @@
<div class="flex-1 w-0 ml-3 text-left">
<p
:class="`text-sm leading-5 font-medium ${
success || info ? 'text-gray-900' : 'text-red-800'
success || info
? 'text-gray-900 dark:text-white'
: 'text-red-800 dark:text-white'
}`"
>
{{
@ -75,7 +79,9 @@
</p>
<p
:class="`mt-1 text-sm leading-5 ${
success || info ? 'text-gray-500' : 'text-red-700'
success || info
? 'text-gray-500 dark:text-gray-400'
: 'text-red-700 dark:text-red-200'
}`"
>
{{
@ -92,7 +98,7 @@
:class="
success || info
? ' text-gray-400 focus:text-gray-500'
: 'text-red-400 focus:text-red-500'
: 'text-red-400 focus:text-red-500 dark:text-red-100'
"
class="
inline-flex