Files
pokemon/style.css
Peter Wood 0f6cfe3d6c chore: update dependencies and add new features
- Added Font Awesome and Annyang for enhanced UI and voice recognition capabilities.
- Updated package.json to include new dependencies: @fortawesome/fontawesome-free, annyang, and wrangler.
- Modified postcss.config.js for proper syntax.
- Updated style.css to include Font Awesome styles and added new styles for voice search button and footer.
- Adjusted tailwind.config.js to scan all relevant files for dynamic classes.
- Added VSCode settings to ignore unknown at-rules in CSS, SCSS, and LESS.
- Created a Caddyfile for server configuration with basic settings.
2025-04-22 17:31:47 -04:00

80 lines
2.0 KiB
CSS

@import "/node_modules/@fortawesome/fontawesome-free/css/all.min.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Add custom styles below */
#historyList li {
/* Slower transition */
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
opacity: 1;
transform: translateX(0) scale(1); /* Add scale to transition */
transform-origin: center; /* Scale from the center */
/* Basic card styling for history items */
@apply bg-gray-100 bg-opacity-80 rounded-lg p-3 shadow-md border border-gray-200;
}
#historyList li.history-item-enter {
/* Initial state for animation */
opacity: 0;
transform: translateX(-50px) scale(0.9); /* Start slightly left and smaller */
}
/* Styling for elements within history cards */
#historyList li h4 {
@apply text-lg font-semibold mb-1 text-gray-800;
}
#historyList li img {
@apply mx-auto mb-2 w-16 h-16; /* Smaller image */
}
#historyList li p {
@apply text-xs text-gray-600 leading-tight; /* Smaller text */
}
/* Placeholder styling */
#historyList li.italic {
@apply bg-transparent shadow-none border-none p-0; /* Reset card styles for placeholder */
}
/* Ensure gradient covers full height if not already handled by Tailwind */
body {
min-height: 100vh;
}
.relative.flex-grow {
position: relative;
}
#voiceSearchButton {
position: absolute;
top: 50%;
right: 0.75rem; /* Matches pr-3 */
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center; /* Ensure proper centering */
height: 100%; /* Match the input field height */
color: #6b7280; /* Matches text-gray-500 */
transition: color 0.2s;
}
#voiceSearchButton:hover {
color: #2563eb; /* Matches hover:text-blue-600 */
}
footer {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
text-align: center;
padding: 1rem;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}