styling multiselect in dark mode
This commit is contained in:
@@ -21,7 +21,7 @@ defineExpose({ focus: () => input.value.focus() });
|
|||||||
<template>
|
<template>
|
||||||
<input
|
<input
|
||||||
ref="input"
|
ref="input"
|
||||||
class="w-full bg-white dark:bg-transparent border-gray-300 dark:border-gray-600 dark:text-gray-100 focus:border-indigo-300 dark:focus:border-gray-700 focus:ring focus:ring-indigo-200 dark:focus:ring-gray-600 focus:ring-opacity-50 rounded-md shadow-sm placeholder:capitalize"
|
class="w-full bg-white dark:bg-transparent border-gray-300 dark:border-gray-600 dark:text-white dark:placeholder:text-white focus:border-indigo-300 dark:focus:border-gray-700 focus:ring focus:ring-indigo-200 dark:focus:ring-gray-600 focus:ring-opacity-50 rounded-md shadow-sm placeholder:capitalize"
|
||||||
:value="modelValue"
|
:value="modelValue"
|
||||||
@input="$emit('update:modelValue', $event.target.value)"
|
@input="$emit('update:modelValue', $event.target.value)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="@vueform/multiselect/themes/default.css"></style>
|
<style src="@vueform/multiselect/themes/default.css"></style>
|
||||||
|
<style src="@/multiselect.css"></style>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<DashboardLayout title="Menu">
|
<DashboardLayout title="Menu">
|
||||||
@@ -190,7 +191,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:createOption="true"
|
:createOption="true"
|
||||||
:value="form.route_or_url"
|
:value="form.route_or_url"
|
||||||
ref="route_or_url"
|
ref="route_or_url"
|
||||||
class="text-gray-800 placeholder:capitalize"
|
|
||||||
placeholder="route name or url" />
|
placeholder="route name or url" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -209,7 +210,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:createTag="true"
|
:createTag="true"
|
||||||
mode="tags"
|
mode="tags"
|
||||||
ref="actives"
|
ref="actives"
|
||||||
class="text-gray-800 placeholder:capitalize"
|
|
||||||
placeholder="actives" />
|
placeholder="actives" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -230,7 +231,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:clearOnSelect="false"
|
:clearOnSelect="false"
|
||||||
mode="tags"
|
mode="tags"
|
||||||
ref="permissions"
|
ref="permissions"
|
||||||
class="text-gray-800 placeholder:capitalize"
|
|
||||||
placeholder="permissions" />
|
placeholder="permissions" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="@vueform/multiselect/themes/default.css"></style>
|
<style src="@vueform/multiselect/themes/default.css"></style>
|
||||||
|
<style src="@/multiselect.css"></style>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<DashboardLayout title="Role">
|
<DashboardLayout title="Role">
|
||||||
@@ -191,7 +192,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Modal :show="open">
|
<Modal :show="open">
|
||||||
<form @submit.prevent="submit" class="w-full max-w-xl h-fit shadow-xl">
|
<form @submit.prevent="submit" class="w-full max-w-xl h-fit shadow-xl">
|
||||||
<Card class="bg-gray-50 dark:bg-gray-700 dark:text-gray-100">
|
<Card class="bg-gray-50 dark:bg-gray-700 dark:text-gray-100">
|
||||||
@@ -224,7 +225,8 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:searchable="true"
|
:searchable="true"
|
||||||
:clearOnSelect="false"
|
:clearOnSelect="false"
|
||||||
:closeOnSelect="false"
|
:closeOnSelect="false"
|
||||||
class="text-gray-800 uppercase"
|
class="uppercase"
|
||||||
|
placeholder="permissions"
|
||||||
mode="tags" />
|
mode="tags" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="@vueform/multiselect/themes/default.css"></style>
|
<style src="@vueform/multiselect/themes/default.css"></style>
|
||||||
|
<style src="@/multiselect.css"></style>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<DashboardLayout title="User">
|
<DashboardLayout title="User">
|
||||||
@@ -318,7 +319,8 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:clearOnSelect="false"
|
:clearOnSelect="false"
|
||||||
:closeOnSelect="false"
|
:closeOnSelect="false"
|
||||||
:searchable="true"
|
:searchable="true"
|
||||||
class="text-gray-800 uppercase"
|
class="uppercase"
|
||||||
|
placeholder="permissions"
|
||||||
mode="tags" />
|
mode="tags" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -337,7 +339,8 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
|
|||||||
:searchable="true"
|
:searchable="true"
|
||||||
:clearOnSelect="false"
|
:clearOnSelect="false"
|
||||||
:closeOnSelect="false"
|
:closeOnSelect="false"
|
||||||
class="text-gray-800 uppercase"
|
class="uppercase"
|
||||||
|
placeholder="roles"
|
||||||
mode="tags" />
|
mode="tags" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
55
resources/js/multiselect.css
Normal file
55
resources/js/multiselect.css
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
.multiselect {
|
||||||
|
@apply dark:bg-gray-700 dark:border-gray-600 dark:text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect-tags-search {
|
||||||
|
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect.is-disabled {
|
||||||
|
@apply dark:bg-gray-600 dark:border-gray-700 dark:text-gray-300;
|
||||||
|
}
|
||||||
|
.multiselect.is-active {
|
||||||
|
box-shadow: 0 0 0 var(--ms-ring-width, 3px) var(--ms-ring-color, rgba(16, 185, 129, 0.188));
|
||||||
|
}
|
||||||
|
.multiselect-placeholder {
|
||||||
|
@apply dark:text-gray-300;
|
||||||
|
}
|
||||||
|
.multiselect-search {
|
||||||
|
@apply dark:bg-gray-700;
|
||||||
|
}
|
||||||
|
.multiselect-tag.is-disabled {
|
||||||
|
@apply dark:bg-gray-600 dark:text-gray-300;
|
||||||
|
}
|
||||||
|
.multiselect-tag-remove:hover {
|
||||||
|
@apply dark:bg-gray-500;
|
||||||
|
}
|
||||||
|
.multiselect-clear:hover .multiselect-clear-icon {
|
||||||
|
@apply dark:bg-white;
|
||||||
|
}
|
||||||
|
.multiselect-clear-icon {
|
||||||
|
@apply dark:bg-gray-600;
|
||||||
|
}
|
||||||
|
.multiselect-caret {
|
||||||
|
@apply dark:bg-gray-600;
|
||||||
|
}
|
||||||
|
.multiselect-dropdown {
|
||||||
|
@apply dark:bg-gray-700 dark:border-gray-800;
|
||||||
|
}
|
||||||
|
.multiselect-group-label {
|
||||||
|
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect-group-label.is-pointed {
|
||||||
|
@apply dark:bg-gray-600 dark:text-gray-300;
|
||||||
|
}
|
||||||
|
.multiselect-group-label.is-disabled {
|
||||||
|
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect-option.is-pointed {
|
||||||
|
@apply dark:bg-gray-700 text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect-option.is-disabled {
|
||||||
|
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||||
|
}
|
||||||
|
.multiselect-no-options,
|
||||||
|
.multiselect-no-results {
|
||||||
|
@apply dark:text-gray-200;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user