Skip to content

Commit

Permalink
fix: dark mode bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdiunal committed Jul 20, 2024
1 parent b380f9e commit e43003b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion dist/css/field.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
<Modal :show="show" role="alertdialog" size="md"
class="npcm--h-dvh npcm--flex npcm--justify-center npcm--items-center">
<div class="npcm--w-full">
<div class="npcm--w-full npcm--bg-white dark:npcm--bg-gray-800 npcm--rounded-lg npcm--shadow-lg npcm--overflow-hidden"
<div class="npcm--w-full npcm--bg-white dark:bg-gray-800 npcm--rounded-lg npcm--shadow-lg npcm--overflow-hidden"
:class="{
'npcm--animate-shake npcm--border-2 npcm--border-red-500': isShaking || isError,
}">
Expand Down
50 changes: 25 additions & 25 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
prefix: "npcm--",
content: ["./resources/**/*{js,vue,blade.php}"],
darkMode: ["class", '[class*="dark"]'],
theme: {
extend: {
animation: {
shake: "shake 0.82s cubic-bezier(.36,.07,.19,.97) both",
},
keyframes: {
shake: {
"10%, 90%": {
transform: "translate3d(-1px, 0, 0)",
},
"20%, 80%": {
transform: "translate3d(2px, 0, 0)",
},
"30%, 50%, 70%": {
transform: "translate3d(-4px, 0, 0)",
},
"40%, 60%": {
transform: "translate3d(4px, 0, 0)",
},
},
},
prefix: "npcm--",
content: ["./resources/**/*{js,vue,blade.php}"],
darkMode: ["class"],
theme: {
extend: {
animation: {
shake: "shake 0.82s cubic-bezier(.36,.07,.19,.97) both",
},
keyframes: {
shake: {
"10%, 90%": {
transform: "translate3d(-1px, 0, 0)",
},
"20%, 80%": {
transform: "translate3d(2px, 0, 0)",
},
"30%, 50%, 70%": {
transform: "translate3d(-4px, 0, 0)",
},
"40%, 60%": {
transform: "translate3d(4px, 0, 0)",
},
},
},
},
plugins: [],
},
plugins: [],
};

0 comments on commit e43003b

Please sign in to comment.