Download src/components/chat/DestinationCarousel/DestinationCarousel.module.css from TA-PangandaranAI/PangandaranAI_FE: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/spaces/TA-PangandaranAI/PangandaranAI_FE/resolve/main/src/components/chat/DestinationCarousel/DestinationCarousel.module.css
- Command line
-
hf download hf://spaces/TA-PangandaranAI/PangandaranAI_FE/src/components/chat/DestinationCarousel/DestinationCarousel.module.css
-
curl -L -o DestinationCarousel.module.css https://huggingface.co/spaces/TA-PangandaranAI/PangandaranAI_FE/resolve/main/src/components/chat/DestinationCarousel/DestinationCarousel.module.css
1.61 kB
| .carousel { | |
| margin-top: 8px; | |
| margin-left: -4px; | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| .scrollContainer { | |
| display: flex; | |
| gap: 10px; | |
| overflow-x: auto; | |
| padding: 4px; | |
| scroll-snap-type: x mandatory; | |
| -webkit-overflow-scrolling: touch; | |
| } | |
| /* Hide scrollbar */ | |
| .scrollContainer::-webkit-scrollbar { | |
| display: none; | |
| } | |
| .scrollContainer { | |
| -ms-overflow-style: none; | |
| scrollbar-width: none; | |
| } | |
| .card { | |
| flex-shrink: 0; | |
| width: 140px; | |
| background: var(--bg-card); | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-light); | |
| box-shadow: var(--shadow-sm); | |
| overflow: hidden; | |
| scroll-snap-align: start; | |
| text-align: left; | |
| transition: transform 0.2s, box-shadow 0.2s; | |
| } | |
| .card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .card:active { | |
| transform: scale(0.97); | |
| } | |
| .imageWrapper { | |
| width: 100%; | |
| height: 100px; | |
| overflow: hidden; | |
| } | |
| .image { | |
| width: 100%; | |
| height: 100%; | |
| background-size: cover; | |
| background-position: center; | |
| transition: transform 0.3s; | |
| } | |
| .card:hover .image { | |
| transform: scale(1.05); | |
| } | |
| .info { | |
| padding: 8px 10px; | |
| } | |
| .title { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| line-height: 1.3; | |
| margin: 0; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .reviews { | |
| font-size: 11px; | |
| color: var(--text-secondary); | |
| margin-top: 2px; | |
| display: block; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } |