Mono9992's picture
desktop giữ nguyên thế này nhưng trên mobile hãy cho nó hàng ngang vô tận vuốt sang
e521a9b verified
Raw History Blame Contribute Delete
868 Bytes
/* Custom animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.content-section {
animation: fadeIn 0.3s ease-out forwards;
}
.topic-tile {
transition: all 0.2s ease;
min-width: 200px;
}
@media (max-width: 768px) {
#topic-grid {
display: flex;
overflow-x: auto;
gap: 12px;
padding-bottom: 16px;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
#topic-grid::-webkit-scrollbar {
display: none;
}
#topic-grid .topic-tile {
flex: 0 0 auto;
}
}
.topic-tile:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.active-topic {
border-left: 4px solid #6366f1;
background-color: #f5f3ff;
}