mirror of
https://github.com/acedanger/pokemon.git
synced 2025-12-05 22:50:13 -08:00
96 lines
2.4 KiB
CSS
96 lines
2.4 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 */
|
|
}
|
|
|
|
/* Styling for the voice overlay that dims the page and displays a large microphone icon */
|
|
#voiceOverlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 50; /* Ensure it appears above other elements */
|
|
}
|
|
|
|
#voiceOverlay i {
|
|
color: white;
|
|
font-size: 6rem; /* Large microphone icon */
|
|
}
|
|
|
|
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;
|
|
}
|