mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Compare commits
6 Commits
dark-base-
...
dark-divid
| Author | SHA1 | Date | |
|---|---|---|---|
| df19a55ff7 | |||
| 5504aa1c41 | |||
| c5acf1343e | |||
| 0321ca5515 | |||
| bd345949e5 | |||
| b4b00ebdd6 |
@ -39,6 +39,8 @@ $base-content-placeholders-border-radius: 6px !default;
|
||||
$base-content-placeholders-line-height: 15px !default;
|
||||
$base-content-placeholders-spacing: 10px !default;
|
||||
|
||||
$base-content-placeholders-primary-color-dark: rgb(71, 85, 105) !default;
|
||||
$base-content-placeholders-secondary-color-dark: rgb(71, 85, 105) !default;
|
||||
// Animations
|
||||
@keyframes vueContentPlaceholdersAnimation {
|
||||
0% {
|
||||
@ -57,6 +59,10 @@ $base-content-placeholders-spacing: 10px !default;
|
||||
min-height: $base-content-placeholders-line-height;
|
||||
background: $base-content-placeholders-secondary-color;
|
||||
|
||||
.dark & {
|
||||
background: $base-content-placeholders-secondary-color-dark;
|
||||
}
|
||||
|
||||
.base-content-placeholders-is-rounded & {
|
||||
border-radius: $base-content-placeholders-border-radius;
|
||||
}
|
||||
@ -86,6 +92,15 @@ $base-content-placeholders-spacing: 10px !default;
|
||||
animation-name: vueContentPlaceholdersAnimation;
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
|
||||
.dark .base-content-placeholders-is-animated &::before {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
darken($base-content-placeholders-secondary-color-dark, 5%) 15%,
|
||||
transparent 30%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin base-content-placeholders-spacing {
|
||||
@ -156,6 +171,10 @@ $base-content-placeholders-spacing: 10px !default;
|
||||
min-height: $base-content-placeholders-line-height;
|
||||
background: $base-content-placeholders-secondary-color;
|
||||
|
||||
.dark & {
|
||||
background: $base-content-placeholders-secondary-color-dark;
|
||||
}
|
||||
|
||||
.base-content-placeholders-is-animated &::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@ -177,6 +196,14 @@ $base-content-placeholders-spacing: 10px !default;
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
|
||||
.dark .base-content-placeholders-is-animated &::before {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
darken($base-content-placeholders-secondary-color-dark, 5%) 15%,
|
||||
transparent 30%
|
||||
);
|
||||
}
|
||||
// @include base-content-placeholders-spacing;
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
{{ label }}
|
||||
</BaseLabel>
|
||||
|
||||
<p class="text-sm font-bold leading-5 text-black non-italic">
|
||||
<p class="text-sm font-bold leading-5 text-black non-italic dark:text-white">
|
||||
{{ value }}
|
||||
|
||||
<slot />
|
||||
|
||||
@ -30,8 +30,13 @@
|
||||
leave-to="opacity-0"
|
||||
>
|
||||
<DialogOverlay
|
||||
class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"
|
||||
class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75 dark:backdrop-blur-xl dark:bg-gray-900/80"
|
||||
>
|
||||
<BaseDarkHighlight
|
||||
class="!bg-highlight/[.17] !top-1/2 h-60 -translate-y-1/2 mt-5"
|
||||
:class="dialogSizeClasses"
|
||||
/>
|
||||
</DialogOverlay>
|
||||
</TransitionChild>
|
||||
|
||||
<!-- This element is to trick the browser into centering the modal contents. -->
|
||||
@ -64,6 +69,11 @@
|
||||
shadow-xl
|
||||
sm:my-8 sm:align-middle sm:w-full sm:p-6
|
||||
relative
|
||||
dark:backdrop-blur-xl
|
||||
dark:shadow-glass
|
||||
dark:border
|
||||
dark:border-white/10
|
||||
dark:bg-gray-800
|
||||
"
|
||||
:class="dialogSizeClasses"
|
||||
>
|
||||
@ -80,31 +90,31 @@
|
||||
rounded-full
|
||||
"
|
||||
:class="{
|
||||
'bg-green-100': dialogStore.variant === 'primary',
|
||||
'bg-red-100': dialogStore.variant === 'danger',
|
||||
'bg-green-100 dark:bg-primary-500': dialogStore.variant === 'primary',
|
||||
'bg-red-100 dark:bg-red-500': dialogStore.variant === 'danger',
|
||||
}"
|
||||
>
|
||||
<BaseIcon
|
||||
v-if="dialogStore.variant === 'primary'"
|
||||
name="CheckIcon"
|
||||
class="w-6 h-6 text-green-600"
|
||||
class="w-6 h-6 text-green-600 dark:text-white"
|
||||
/>
|
||||
<BaseIcon
|
||||
v-else
|
||||
name="ExclamationIcon"
|
||||
class="w-6 h-6 text-red-600"
|
||||
class="w-6 h-6 text-red-600 dark:text-white"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
<div class="mt-3 text-center sm:mt-5">
|
||||
<DialogTitle
|
||||
as="h3"
|
||||
class="text-lg font-medium leading-6 text-gray-900"
|
||||
class="text-lg font-medium leading-6 text-gray-900 dark:text-white"
|
||||
>
|
||||
{{ dialogStore.title }}
|
||||
</DialogTitle>
|
||||
<div class="mt-2">
|
||||
<p class="text-sm text-gray-500">
|
||||
<p class="text-sm text-gray-500 dark:text-gray-400">
|
||||
{{ dialogStore.message }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<template>
|
||||
<hr class="w-full text-gray-300" />
|
||||
<hr class="w-full text-gray-300 dark:bg-gray-600" />
|
||||
</template>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
leave-from-class="opacity-100"
|
||||
leave-to-class="opacity-0"
|
||||
>
|
||||
<div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded">
|
||||
<div v-show="show" class="relative z-10 p-4 md:p-8 bg-gray-200 rounded dark:bg-gray-800">
|
||||
<slot name="filter-header" />
|
||||
|
||||
<label
|
||||
@ -20,6 +20,7 @@
|
||||
hover:text-gray-700
|
||||
top-2.5
|
||||
right-3.5
|
||||
dark:text-gray-300
|
||||
"
|
||||
@click="$emit('clear')"
|
||||
>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
<Switch
|
||||
v-model="enabled"
|
||||
:class="enabled ? 'bg-primary-500' : 'bg-gray-300'"
|
||||
:class="enabled ? 'bg-primary-500' : 'bg-gray-300 dark:bg-gray-900'"
|
||||
class="
|
||||
relative
|
||||
inline-flex
|
||||
@ -21,7 +21,11 @@
|
||||
v-bind="$attrs"
|
||||
>
|
||||
<span
|
||||
:class="enabled ? 'translate-x-6' : 'translate-x-1'"
|
||||
:class="
|
||||
enabled
|
||||
? 'translate-x-6 dark:bg-white'
|
||||
: 'translate-x-1 dark:bg-gray-500'
|
||||
"
|
||||
class="
|
||||
inline-block
|
||||
w-4
|
||||
|
||||
@ -5,12 +5,12 @@
|
||||
<div class="flex flex-col">
|
||||
<SwitchLabel
|
||||
as="p"
|
||||
class="p-0 mb-1 text-sm leading-snug text-black font-medium"
|
||||
class="p-0 mb-1 text-sm leading-snug text-black font-medium dark:text-white"
|
||||
passive
|
||||
>
|
||||
{{ title }}
|
||||
</SwitchLabel>
|
||||
<SwitchDescription class="text-sm text-gray-500">
|
||||
<SwitchDescription class="text-sm text-gray-500 dark:text-gray-400">
|
||||
{{ description }}
|
||||
</SwitchDescription>
|
||||
</div>
|
||||
@ -18,7 +18,7 @@
|
||||
:disabled="disabled"
|
||||
:model-value="modelValue"
|
||||
:class="[
|
||||
modelValue ? 'bg-primary-500' : 'bg-gray-200',
|
||||
modelValue ? 'bg-primary-500' : 'bg-gray-200 dark:bg-gray-900',
|
||||
'ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
|
||||
]"
|
||||
@update:modelValue="onUpdate"
|
||||
@ -26,7 +26,7 @@
|
||||
<span
|
||||
aria-hidden="true"
|
||||
:class="[
|
||||
modelValue ? 'translate-x-5' : 'translate-x-0',
|
||||
modelValue ? 'translate-x-5 dark:bg-white' : 'translate-x-0 dark:bg-gray-500',
|
||||
'inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200',
|
||||
]"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user