Files
school_compare/nextjs-app/components/SchoolSearchModal.module.css
Tudor 51b081d9e0
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m9s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s
Style Modal and SchoolSearchModal with warm editorial palette
- Modal: Warm overlay, rounded corners, Playfair Display title,
  coral close button hover, warm scrollbar colors
- SchoolSearchModal: Coral focus states, gold warning banner,
  coral add buttons, warm result item styling with hover effects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 11:17:06 +00:00

207 lines
3.7 KiB
CSS

.modalContent {
padding: 2rem;
max-width: 600px;
width: 90vw;
}
.title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary, #1a1612);
margin-bottom: 1.5rem;
font-family: var(--font-playfair), 'Playfair Display', serif;
}
.warning {
background: rgba(201, 162, 39, 0.15);
border: 1px solid var(--accent-gold, #c9a227);
color: var(--text-primary, #1a1612);
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.9375rem;
}
.searchContainer {
position: relative;
margin-bottom: 1.5rem;
}
.searchInput {
width: 100%;
padding: 0.875rem 1rem;
font-size: 1rem;
border: 2px solid var(--border-color, #e5dfd5);
border-radius: 8px;
background: var(--bg-card, white);
color: var(--text-primary, #1a1612);
transition: all 0.2s ease;
}
.searchInput::placeholder {
color: var(--text-muted, #8a847a);
}
.searchInput:focus {
outline: none;
border-color: var(--accent-coral, #e07256);
box-shadow: 0 0 0 3px rgba(224, 114, 86, 0.15);
}
.searchSpinner {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
width: 1.25rem;
height: 1.25rem;
border: 2px solid rgba(224, 114, 86, 0.3);
border-radius: 50%;
border-top-color: var(--accent-coral, #e07256);
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to {
transform: translateY(-50%) rotate(360deg);
}
}
.results {
max-height: 400px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* Scrollbar styles */
.results::-webkit-scrollbar {
width: 8px;
}
.results::-webkit-scrollbar-track {
background: var(--bg-secondary, #f3ede4);
border-radius: 4px;
}
.results::-webkit-scrollbar-thumb {
background: var(--border-color, #e5dfd5);
border-radius: 4px;
}
.results::-webkit-scrollbar-thumb:hover {
background: var(--text-muted, #8a847a);
}
.resultItem {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 1rem;
background: var(--bg-secondary, #f3ede4);
border: 1px solid var(--border-color, #e5dfd5);
border-radius: 10px;
transition: all 0.2s ease;
}
.resultItem:hover {
background: var(--bg-card, white);
border-color: var(--accent-coral, #e07256);
box-shadow: var(--shadow-soft, 0 2px 8px rgba(26, 22, 18, 0.06));
}
.schoolInfo {
flex: 1;
min-width: 0;
}
.schoolName {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary, #1a1612);
margin-bottom: 0.5rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.schoolMeta {
display: flex;
gap: 1rem;
font-size: 0.875rem;
color: var(--text-secondary, #5c564d);
}
.schoolMeta span {
display: flex;
align-items: center;
gap: 0.25rem;
}
.addButton {
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
background: var(--accent-coral, #e07256);
color: white;
}
.addButton:hover:not(:disabled) {
background: var(--accent-coral-dark, #c45a3f);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(224, 114, 86, 0.3);
}
.addButton:disabled {
background: var(--bg-secondary, #f3ede4);
color: var(--text-muted, #8a847a);
cursor: not-allowed;
}
.noResults {
text-align: center;
padding: 2rem;
color: var(--text-secondary, #5c564d);
font-size: 0.9375rem;
}
.hint {
text-align: center;
padding: 2rem;
color: var(--text-muted, #8a847a);
font-size: 0.9375rem;
}
/* Responsive */
@media (max-width: 768px) {
.modalContent {
padding: 1.5rem;
width: 95vw;
}
.title {
font-size: 1.25rem;
}
.resultItem {
flex-direction: column;
align-items: stretch;
}
.addButton {
width: 100%;
}
.schoolMeta {
flex-direction: column;
gap: 0.25rem;
}
}