Spaces:
Running
Running
Download static/style.css from jashp2323/visual-search: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/spaces/jashp2323/visual-search/resolve/1dbde569cae5949a530de18aab7a142d7a078465/static/style.css
- Command line
-
hf download hf://spaces/jashp2323/visual-search@1dbde569cae5949a530de18aab7a142d7a078465/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/jashp2323/visual-search/resolve/1dbde569cae5949a530de18aab7a142d7a078465/static/style.css
12.4 kB
| :root { | |
| --bg-dark: hsl(224, 25%, 8%); | |
| --bg-panel: hsla(224, 20%, 14%, 0.6); | |
| --border-color: hsla(224, 20%, 30%, 0.3); | |
| --text-primary: hsl(0, 0%, 98%); | |
| --text-secondary: hsl(224, 14%, 70%); | |
| --accent: hsl(263, 70%, 50%); | |
| --accent-hover: hsl(263, 75%, 60%); | |
| --accent-glow: hsla(263, 70%, 50%, 0.35); | |
| --radius-sm: 8px; | |
| --radius-md: 16px; | |
| --radius-lg: 24px; | |
| --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| background-color: var(--bg-dark); | |
| color: var(--text-primary); | |
| font-family: 'Inter', sans-serif; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| position: relative; | |
| } | |
| .glow-bg { | |
| position: absolute; | |
| top: -10%; | |
| left: 20%; | |
| width: 600px; | |
| height: 600px; | |
| background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); | |
| z-index: 0; | |
| pointer-events: none; | |
| } | |
| .app-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 2rem 1.5rem; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 3rem; | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-family: 'Outfit', sans-serif; | |
| } | |
| .logo-accent { | |
| font-size: 1.8rem; | |
| font-weight: 800; | |
| letter-spacing: 2px; | |
| background: linear-gradient(135deg, hsl(0, 0%, 100%) 0%, var(--accent) 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .logo-text { | |
| font-size: 1.2rem; | |
| font-weight: 400; | |
| color: var(--text-secondary); | |
| } | |
| .status-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.6rem; | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| padding: 0.5rem 1rem; | |
| border-radius: 50px; | |
| font-size: 0.85rem; | |
| backdrop-filter: blur(10px); | |
| } | |
| .pulse-dot { | |
| width: 8px; | |
| height: 8px; | |
| background-color: #10b981; | |
| border-radius: 50%; | |
| box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); | |
| animation: pulse 1.6s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(0.95); | |
| box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); | |
| } | |
| 70% { | |
| transform: scale(1); | |
| box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); | |
| } | |
| 100% { | |
| transform: scale(0.95); | |
| box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); | |
| } | |
| } | |
| .search-section { | |
| margin-bottom: 3rem; | |
| } | |
| .search-card { | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-lg); | |
| padding: 1.5rem; | |
| backdrop-filter: blur(16px); | |
| box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); | |
| } | |
| .search-tabs { | |
| display: flex; | |
| gap: 1rem; | |
| margin-bottom: 1.5rem; | |
| border-bottom: 1px solid var(--border-color); | |
| padding-bottom: 0.8rem; | |
| } | |
| .tab-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-secondary); | |
| font-family: 'Outfit', sans-serif; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| padding: 0.3rem 0.5rem; | |
| position: relative; | |
| transition: var(--transition); | |
| } | |
| .tab-btn.active { | |
| color: var(--text-primary); | |
| } | |
| .tab-btn.active::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -0.9rem; | |
| left: 0; | |
| width: 100%; | |
| height: 2px; | |
| background-color: var(--accent); | |
| box-shadow: 0 0 10px var(--accent); | |
| } | |
| .search-input-wrapper { | |
| display: flex; | |
| gap: 0.8rem; | |
| width: 100%; | |
| } | |
| .search-input-wrapper input[type="text"] { | |
| flex: 1; | |
| background: rgba(0, 0, 0, 0.2); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| padding: 1rem 1.5rem; | |
| color: var(--text-primary); | |
| font-family: 'Inter', sans-serif; | |
| font-size: 1rem; | |
| outline: none; | |
| transition: var(--transition); | |
| } | |
| .search-input-wrapper input[type="text"]:focus { | |
| border-color: var(--accent); | |
| box-shadow: 0 0 15px var(--accent-glow); | |
| } | |
| .search-btn { | |
| background: var(--accent); | |
| border: none; | |
| border-radius: var(--radius-md); | |
| padding: 0 1.5rem; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: var(--transition); | |
| } | |
| .search-btn:hover { | |
| background: var(--accent-hover); | |
| box-shadow: 0 0 15px var(--accent-glow); | |
| } | |
| .drop-zone { | |
| flex: 1; | |
| border: 2px dashed var(--border-color); | |
| border-radius: var(--radius-md); | |
| padding: 2.5rem; | |
| text-align: center; | |
| cursor: pointer; | |
| position: relative; | |
| transition: var(--transition); | |
| background: rgba(0, 0, 0, 0.15); | |
| } | |
| .drop-zone:hover { | |
| border-color: var(--accent); | |
| background: rgba(263, 70, 50, 0.03); | |
| } | |
| .drop-zone-content { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.8rem; | |
| } | |
| .upload-icon { | |
| color: var(--text-secondary); | |
| transition: var(--transition); | |
| } | |
| .drop-zone:hover .upload-icon { | |
| color: var(--accent); | |
| transform: translateY(-2px); | |
| } | |
| .drop-zone-text { | |
| color: var(--text-secondary); | |
| font-size: 0.95rem; | |
| } | |
| .browse-link { | |
| color: var(--accent); | |
| font-weight: 600; | |
| } | |
| .image-preview-container { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| border-radius: var(--radius-md); | |
| background: var(--bg-dark); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 1rem; | |
| } | |
| .image-preview-container img { | |
| max-height: 100%; | |
| max-width: 100%; | |
| object-fit: contain; | |
| border-radius: var(--radius-sm); | |
| } | |
| .remove-btn { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| background: rgba(0, 0, 0, 0.7); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| border-radius: 50%; | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| font-size: 1.2rem; | |
| transition: var(--transition); | |
| } | |
| .remove-btn:hover { | |
| background: #ef4444; | |
| } | |
| .results-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| } | |
| .results-header h2 { | |
| font-family: 'Outfit', sans-serif; | |
| font-size: 1.5rem; | |
| font-weight: 600; | |
| } | |
| .badge { | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| padding: 0.3rem 0.8rem; | |
| border-radius: 50px; | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| .active-query-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| background: hsla(263, 70%, 50%, 0.15); | |
| border: 1px solid var(--accent); | |
| padding: 0.4rem 1rem; | |
| border-radius: 50px; | |
| font-size: 0.9rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .clear-filter-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| font-size: 1.1rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .products-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| .product-card { | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| overflow: hidden; | |
| transition: var(--transition); | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-6px); | |
| border-color: var(--accent); | |
| box-shadow: 0 10px 25px rgba(263, 70, 50, 0.15); | |
| } | |
| .img-container { | |
| aspect-ratio: 1; | |
| overflow: hidden; | |
| position: relative; | |
| background: rgba(0, 0, 0, 0.2); | |
| } | |
| .img-container img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| transition: var(--transition); | |
| } | |
| .product-card:hover .img-container img { | |
| transform: scale(1.05); | |
| } | |
| .match-badge { | |
| position: absolute; | |
| top: 12px; | |
| right: 12px; | |
| background: var(--accent); | |
| color: var(--text-primary); | |
| font-weight: 600; | |
| font-size: 0.8rem; | |
| padding: 0.3rem 0.6rem; | |
| border-radius: 50px; | |
| box-shadow: 0 0 10px rgba(0,0,0,0.5); | |
| z-index: 2; | |
| } | |
| .hover-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.4); | |
| backdrop-filter: blur(4px); | |
| opacity: 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: var(--transition); | |
| z-index: 1; | |
| } | |
| .product-card:hover .hover-overlay { | |
| opacity: 1; | |
| } | |
| .similar-btn { | |
| background: var(--text-primary); | |
| color: var(--bg-dark); | |
| border: none; | |
| padding: 0.6rem 1.2rem; | |
| border-radius: 50px; | |
| font-family: 'Outfit', sans-serif; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.4rem; | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.3); | |
| transform: translateY(10px); | |
| transition: var(--transition); | |
| } | |
| .product-card:hover .similar-btn { | |
| transform: translateY(0); | |
| } | |
| .similar-btn:hover { | |
| background: var(--accent); | |
| color: var(--text-primary); | |
| } | |
| .product-info { | |
| padding: 1.2rem; | |
| display: flex; | |
| flex-direction: column; | |
| flex: 1; | |
| } | |
| .prod-meta { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 0.5rem; | |
| } | |
| .prod-category { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .prod-price { | |
| font-family: 'Outfit', sans-serif; | |
| font-weight: 600; | |
| font-size: 1.1rem; | |
| color: var(--text-primary); | |
| } | |
| .product-info h3 { | |
| font-family: 'Outfit', sans-serif; | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| margin-bottom: 0.4rem; | |
| } | |
| .product-info p { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| line-height: 1.4; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .hidden { | |
| display: none ; | |
| } | |
| .loading-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| .skeleton-card { | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| height: 350px; | |
| animation: pulse-skeleton 1.5s infinite; | |
| } | |
| @keyframes pulse-skeleton { | |
| 0% { opacity: 0.6; } | |
| 50% { opacity: 0.3; } | |
| 100% { opacity: 0.6; } | |
| } | |
| .hidden-input { | |
| display: none; | |
| } | |
| /* Exact Match & Recommendations Styles */ | |
| .exact-match-section { | |
| margin-bottom: 2.5rem; | |
| padding: 1.5rem; | |
| background: hsla(263, 70%, 50%, 0.05); | |
| border: 1px dashed hsla(263, 70%, 50%, 0.4); | |
| border-radius: var(--radius-lg); | |
| box-shadow: 0 8px 32px 0 rgba(263, 70, 50, 0.05); | |
| } | |
| .section-subtitle { | |
| font-family: 'Outfit', sans-serif; | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| margin-bottom: 1.25rem; | |
| color: var(--text-primary); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| #exact-match-container { | |
| display: flex; | |
| justify-content: flex-start; | |
| } | |
| #exact-match-container .product-card { | |
| max-width: 320px; | |
| border-color: var(--accent); | |
| box-shadow: 0 0 20px var(--accent-glow); | |
| } | |
| .no-exact-match { | |
| width: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 2.5rem; | |
| background: rgba(0, 0, 0, 0.2); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| text-align: center; | |
| } | |
| .no-match-icon { | |
| font-size: 2.5rem; | |
| margin-bottom: 0.75rem; | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| .no-match-text { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 0.25rem; | |
| } | |
| .no-match-subtext { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-6px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .exact-badge { | |
| position: absolute; | |
| top: 12px; | |
| left: 12px; | |
| background: linear-gradient(135deg, #10b981 0%, #059669 100%); | |
| color: white; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| padding: 0.3rem 0.75rem; | |
| border-radius: 50px; | |
| z-index: 10; | |
| box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3); | |
| } | |
| .related-products-section { | |
| margin-top: 2rem; | |
| } | |
| .no-results { | |
| grid-column: 1 / -1; | |
| text-align: center; | |
| padding: 3rem; | |
| background: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| color: var(--text-secondary); | |
| font-size: 1rem; | |
| } | |