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
Browse files
style.css
CHANGED
|
@@ -7,11 +7,29 @@
|
|
| 7 |
.content-section {
|
| 8 |
animation: fadeIn 0.3s ease-out forwards;
|
| 9 |
}
|
| 10 |
-
|
| 11 |
.topic-tile {
|
| 12 |
transition: all 0.2s ease;
|
|
|
|
| 13 |
}
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
.topic-tile:hover {
|
| 16 |
transform: translateY(-2px);
|
| 17 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
|
|
| 7 |
.content-section {
|
| 8 |
animation: fadeIn 0.3s ease-out forwards;
|
| 9 |
}
|
|
|
|
| 10 |
.topic-tile {
|
| 11 |
transition: all 0.2s ease;
|
| 12 |
+
min-width: 200px;
|
| 13 |
}
|
| 14 |
|
| 15 |
+
@media (max-width: 768px) {
|
| 16 |
+
#topic-grid {
|
| 17 |
+
display: flex;
|
| 18 |
+
overflow-x: auto;
|
| 19 |
+
gap: 12px;
|
| 20 |
+
padding-bottom: 16px;
|
| 21 |
+
-webkit-overflow-scrolling: touch;
|
| 22 |
+
scrollbar-width: none;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
#topic-grid::-webkit-scrollbar {
|
| 26 |
+
display: none;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
#topic-grid .topic-tile {
|
| 30 |
+
flex: 0 0 auto;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
.topic-tile:hover {
|
| 34 |
transform: translateY(-2px);
|
| 35 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|