Files
school_compare/nextjs-app/components/Pagination.module.css

98 lines
1.4 KiB
CSS
Raw Normal View History

.pagination {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
margin: 2rem 0;
}
.info {
font-size: 0.875rem;
color: #6b7280;
}
.controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.navButton {
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
background: white;
color: #374151;
border: 1px solid #d1d5db;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.navButton:hover:not(:disabled) {
background: #f9fafb;
border-color: #9ca3af;
}
.navButton:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pages {
display: flex;
gap: 0.25rem;
}
.pageButton,
.pageButtonActive {
min-width: 2.5rem;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-weight: 500;
background: white;
border: 1px solid #d1d5db;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.pageButton {
color: #374151;
}
.pageButton:hover {
background: #f9fafb;
border-color: #9ca3af;
}
.pageButtonActive {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
.ellipsis {
display: flex;
align-items: center;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
color: #9ca3af;
}
@media (max-width: 640px) {
.controls {
flex-wrap: wrap;
}
.pages {
order: -1;
width: 100%;
justify-content: center;
}
.navButton {
flex: 1;
}
}