Skip to content

Commit

Permalink
fix: blur bg
Browse files Browse the repository at this point in the history
  • Loading branch information
benjypng committed Jun 30, 2024
1 parent 6962d74 commit c23b7ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"scripts": {
"dev": "npx vite",
"build": "npx tsc && npx vite build",
"preview": "npx vite preview"
"preview": "npx vite preview",
"build:css": "npx tailwindcss -i ./src/tailwind.css -o ./src/output.css"
},
"release": {
"branches": [
Expand Down
2 changes: 1 addition & 1 deletion src/features/go-to-date/GotoDate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const GotoDate = () => {
}

return (
<div className="search-container p-3 w-full flex justify-center content-center h-screen">
<div className="search-container p-3 w-full flex justify-center content-center h-screen backdrop-blur-md">
<input
className="search-field rounded-lg w-[70%] h-12 text-gray-700 py-1 px-2 caret-black-800 border-2 border-black m-auto"
autoFocus
Expand Down
6 changes: 6 additions & 0 deletions src/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,9 @@ video {
--tw-text-opacity: 1;
color: rgb(55 65 81 / var(--tw-text-opacity));
}

.backdrop-blur-md {
--tw-backdrop-blur: blur(12px);
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

0 comments on commit c23b7ab

Please sign in to comment.