Spaces:
Running
Running
Download style.css from kaixin2023/tk7tghv: direct link, hf CLI and curl.
- Browser
- Download file 6.97 kB
-
https://huggingface.co/spaces/kaixin2023/tk7tghv/resolve/main/style.css
- Command line
-
hf download hf://spaces/kaixin2023/tk7tghv/style.css
-
curl -L -o style.css https://huggingface.co/spaces/kaixin2023/tk7tghv/resolve/main/style.css
6.97 kB
| /* Base Styles */ | |
| body { | |
| line-height: 1.6; | |
| color: #333; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| background: linear-gradient(to bottom, #f8fafc, #e2e8f0); | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| main { | |
| flex: 1; | |
| padding-top: 2rem; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .btn { | |
| display: inline-block; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 0.5rem; | |
| font-weight: 500; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| text-decoration: none; | |
| border: none; | |
| } | |
| .btn-primary { | |
| background-color: #3B82F6; | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background-color: #2563eb; | |
| transform: translateY(-2px); | |
| } | |
| .btn-secondary { | |
| background-color: #f1f5f9; | |
| color: #334155; | |
| } | |
| .btn-secondary:hover { | |
| background-color: #e2e8f0; | |
| transform: translateY(-2px); | |
| } | |
| /* Step Indicator */ | |
| .step-indicator { | |
| padding: 1rem 0; | |
| text-align: center; | |
| position: relative; | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| border-right: 1px solid #e5e7eb; | |
| } | |
| .step-indicator:last-child { | |
| border-right: none; | |
| } | |
| .step-indicator.active { | |
| background-color: rgba(59, 130, 246, 0.05); | |
| border-bottom: 3px solid #3B82F6; | |
| } | |
| .step-indicator.completed { | |
| background-color: #f0fdf4; | |
| } | |
| .step-indicator.completed .step-number { | |
| background-color: #10B981; | |
| color: white; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .step-indicator.active .step-number { | |
| background-color: #3B82F6; | |
| color: white; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .step-indicator.active .step-label { | |
| color: #3B82F6; | |
| font-weight: 600; | |
| } | |
| .step-indicator:hover:not(.active) { | |
| background-color: #f9fafb; | |
| } | |
| .step-number { | |
| width: 2rem; | |
| height: 2rem; | |
| border-radius: 50%; | |
| background-color: #e5e7eb; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin: 0 auto 0.5rem auto; | |
| transition: all 0.3s ease; | |
| } | |
| .step-label { | |
| font-size: 0.875rem; | |
| color: #6b7280; | |
| } | |
| /* Form Steps */ | |
| .form-step { | |
| transition: all 0.3s ease; | |
| min-height: 400px; | |
| background: white; | |
| padding: 2rem; | |
| border-radius: 0 0 0.5rem 0.5rem; | |
| } | |
| .form-step.active { | |
| display: block; | |
| opacity: 1; | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| .form-step.hidden { | |
| display: none; | |
| opacity: 0; | |
| } | |
| /* Form Elements */ | |
| .form-control { | |
| transition: all 0.2s ease; | |
| box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | |
| border: 1px solid #d1d5db; | |
| width: 100%; | |
| padding: 0.5rem 1rem; | |
| border-radius: 0.375rem; | |
| } | |
| .form-control:focus { | |
| outline: none; | |
| border-color: #3B82F6; | |
| box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); | |
| } | |
| textarea.form-control { | |
| min-height: 100px; | |
| resize: vertical; | |
| } | |
| /* Custom Checkbox and Radio */ | |
| input[type="checkbox"], | |
| input[type="radio"] { | |
| width: 1rem; | |
| height: 1rem; | |
| color: #3B82F6; | |
| transition: all 0.2s ease; | |
| accent-color: #3B82F6; | |
| } | |
| input[type="checkbox"]:focus, | |
| input[type="radio"]:focus { | |
| outline: 2px solid #3B82F6; | |
| outline-offset: 2px; | |
| } | |
| input[type="checkbox"]:checked, | |
| input[type="radio"]:checked { | |
| box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | |
| } | |
| /* File Upload */ | |
| #previewContainer { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 0.75rem; | |
| margin-top: 1rem; | |
| } | |
| #previewContainer img { | |
| border-radius: 0.5rem; | |
| object-fit: cover; | |
| height: 6rem; | |
| width: 100%; | |
| box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | |
| border: 1px solid #e5e7eb; | |
| transition: all 0.3s ease; | |
| } | |
| #previewContainer img:hover { | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| #imageUpload + label { | |
| transition: all 0.2s ease; | |
| display: block; | |
| cursor: pointer; | |
| } | |
| #imageUpload + label:hover { | |
| background-color: #f9fafb; | |
| border-color: #3B82F6; | |
| } | |
| /* Modal Animation */ | |
| #resultsModal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 50; | |
| transition: all 0.3s ease; | |
| backdrop-filter: blur(5px); | |
| } | |
| #resultsModal.hidden { | |
| display: none; | |
| } | |
| .modal-content { | |
| background-color: white; | |
| border-radius: 0.75rem; | |
| padding: 2rem; | |
| max-width: 42rem; | |
| width: 90%; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| /* Animations */ | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Button Enhancements */ | |
| .btn { | |
| display: inline-block; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 0.5rem; | |
| font-weight: 500; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| text-decoration: none; | |
| border: none; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .btn-primary { | |
| background-color: #3B82F6; | |
| color: white; | |
| box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3); | |
| } | |
| .btn-primary:hover { | |
| background-color: #2563eb; | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .btn-secondary { | |
| background-color: #f3f4f6; | |
| color: #374151; | |
| } | |
| .btn-secondary:hover { | |
| background-color: #e5e7eb; | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Responsive Adjustments */ | |
| @media (max-width: 640px) { | |
| .step-label { | |
| font-size: 0.75rem; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .step-number { | |
| width: 1.5rem; | |
| height: 1.5rem; | |
| font-size: 0.875rem; | |
| } | |
| .form-step { | |
| min-height: auto; | |
| padding: 1.5rem; | |
| } | |
| #previewContainer { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| } | |
| /* Logo and Slogan Results */ | |
| #sloganResults > div { | |
| border: 1px solid #f3f4f6; | |
| border-radius: 0.5rem; | |
| padding: 1rem; | |
| transition: all 0.3s ease; | |
| margin-bottom: 1rem; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| #sloganResults img { | |
| max-width: 100%; | |
| height: auto; | |
| border-radius: 0.25rem; | |
| margin-top: 0.5rem; | |
| align-self: center; | |
| } | |
| #sloganResults > div:hover { | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| transform: translateY(-2px); | |
| } | |
| #sloganResults button { | |
| font-size: 0.875rem; | |
| padding: 0.25rem 0.75rem; | |
| border-radius: 0.375rem; | |
| transition: all 0.2s ease; | |
| margin-right: 0.5rem; | |
| } | |
| #sloganResults button:nth-child(1) { | |
| background-color: #3B82F6; | |
| color: white; | |
| } | |
| #sloganResults button:nth-child(1):hover { | |
| background-color: #2563eb; | |
| } | |
| #sloganResults button:nth-child(2) { | |
| background-color: #f3f4f6; | |
| color: #374151; | |
| } | |
| #sloganResults button:nth-child(2):hover { | |
| background-color: #e5e7eb; | |
| } | |
| /* Loading State */ | |
| .loading-spinner { | |
| animation: spin 1s linear infinite; | |
| border-radius: 50%; | |
| height: 2rem; | |
| width: 2rem; | |
| border-top: 2px solid #3B82F6; | |
| border-bottom: 2px solid #3B82F6; | |
| } | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |