Compare commits

..

1 Commits

Author SHA1 Message Date
e768b8b5a8 add dark mode in BaseContentPlaceholders 2023-03-25 11:32:09 +05:30
2 changed files with 29 additions and 4 deletions

View File

@ -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;
}

View File

@ -12,7 +12,7 @@
>
<ListboxLabel
v-if="label"
class="block text-sm not-italic font-medium text-gray-800 mb-0.5 dark:text-white"
class="block text-sm not-italic font-medium text-gray-800 mb-0.5"
>
{{ label }}
</ListboxLabel>
@ -28,7 +28,6 @@
pr-10
text-left
bg-white
dark:bg-gray-700
border border-gray-200
rounded-md
shadow-sm
@ -90,7 +89,6 @@
ring-1 ring-black ring-opacity-5
focus:outline-none
sm:text-sm
dark:bg-gray-700
"
>
<ListboxOption
@ -102,7 +100,7 @@
>
<li
:class="[
active ? 'text-white bg-primary-600' : 'text-gray-900 dark:text-white',
active ? 'text-white bg-primary-600' : 'text-gray-900',
'cursor-default select-none relative py-2 pl-3 pr-9',
]"
>