mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
add dark mode in base modal
This commit is contained in:
@ -58,7 +58,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-gray-200 border-solid border-modal-bg
|
||||
border-t border-gray-200 border-solid border-modal-bg dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
|
||||
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
|
||||
<div class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600">
|
||||
<BaseButton
|
||||
class="mr-3 text-sm"
|
||||
variant="primary-outline"
|
||||
|
||||
@ -426,7 +426,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3 text-sm"
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</BaseInputGroup>
|
||||
</div>
|
||||
|
||||
<div class="z-0 flex justify-end p-4 bg-gray-50 border-modal-bg">
|
||||
<div class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg dark:border-gray-600">
|
||||
<BaseButton
|
||||
class="mr-3 text-sm"
|
||||
variant="primary-outline"
|
||||
|
||||
@ -151,7 +151,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-solid border-gray-light
|
||||
border-t border-solid border-gray-light dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-gray-200 border-solid border-modal-bg
|
||||
border-t border-gray-200 border-solid dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
variant="primary-outline"
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
justify-end
|
||||
px-4
|
||||
py-4
|
||||
border-t border-solid border-gray-light
|
||||
border-t border-gray-200 border-solid dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
variant="primary-outline"
|
||||
|
||||
@ -122,7 +122,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-solid border--200 border-modal-bg
|
||||
border-t border-gray-200 border-solid dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid">
|
||||
<div class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600">
|
||||
<BaseButton class="mr-3" variant="primary-outline" @click="closeModal">
|
||||
{{ $t('general.cancel') }}
|
||||
</BaseButton>
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3"
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-solid border--200 border-modal-bg
|
||||
border-t border-gray-200 border-solid dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid"
|
||||
class="z-0 flex justify-end p-4 border-t border-gray-200 border-solid dark:border-gray-600"
|
||||
>
|
||||
<BaseButton
|
||||
class="mr-3 text-sm"
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
flex
|
||||
justify-end
|
||||
p-4
|
||||
border-t border-solid border-gray-light border-modal-bg
|
||||
border-t border-gray-200 border-solid dark:border-gray-600
|
||||
"
|
||||
>
|
||||
<BaseButton
|
||||
|
||||
@ -153,7 +153,7 @@
|
||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||
</div>
|
||||
<div class="ml-4 right">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||
{{ $t('settings.disk.is_default') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -132,7 +132,7 @@
|
||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||
</div>
|
||||
<div class="ml-4 right">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||
{{ $t('settings.disk.is_default') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
</div>
|
||||
|
||||
<div class="ml-4 right">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||
{{ $t('settings.disk.is_default') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -134,7 +134,7 @@
|
||||
<BaseSwitch v-model="set_as_default" class="flex" />
|
||||
</div>
|
||||
<div class="ml-4 right">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black box-title">
|
||||
<p class="p-0 mb-1 text-base leading-snug text-black dark:text-white box-title">
|
||||
{{ $t('settings.disk.is_default') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -29,8 +29,21 @@
|
||||
leave-to="opacity-0"
|
||||
>
|
||||
<DialogOverlay
|
||||
class="fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"
|
||||
/>
|
||||
class="
|
||||
fixed
|
||||
inset-0
|
||||
transition-opacity
|
||||
bg-gray-700
|
||||
bg-opacity-25
|
||||
dark:backdrop-blur-sm
|
||||
dark:bg-gray-900/80
|
||||
"
|
||||
>
|
||||
<BaseDarkHighlight
|
||||
class="!bg-highlight/[.17] !top-1/2 -translate-y-1/2 mt-5 h-96"
|
||||
:class="modalSize"
|
||||
/>
|
||||
</DialogOverlay>
|
||||
</TransitionChild>
|
||||
|
||||
<!-- This element is to trick the browser into centering the modal contents. -->
|
||||
@ -61,7 +74,11 @@
|
||||
my-4
|
||||
${modalSize}
|
||||
sm:w-full
|
||||
border-t-8 border-solid rounded shadow-xl border-primary-500`"
|
||||
dark:shadow-glass
|
||||
dark:border
|
||||
dark:border-white/10
|
||||
dark:bg-gray-800/90
|
||||
border-t-8 border-solid rounded shadow-xl border-primary-500`"
|
||||
>
|
||||
<div
|
||||
v-if="hasHeaderSlot"
|
||||
@ -74,6 +91,8 @@
|
||||
text-lg
|
||||
font-medium
|
||||
text-black
|
||||
dark:text-white
|
||||
dark:border-gray-600
|
||||
border-b border-gray-200 border-solid
|
||||
"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user