Spaces:
Running
Running
| body { | |
| padding: 2rem; | |
| font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif; | |
| background: #0b0c10; | |
| color: #e6e6e6; | |
| } | |
| h1 { | |
| font-size: 18px; | |
| margin-top: 0; | |
| } | |
| p { | |
| color: rgb(163, 166, 176); | |
| font-size: 14px; | |
| margin-bottom: 10px; | |
| margin-top: 5px; | |
| } | |
| .card { | |
| max-width: 620px; | |
| margin: 0 auto; | |
| padding: 16px; | |
| border: 1px solid rgba(255,255,255,0.08); | |
| border-radius: 16px; | |
| } | |
| .card p:last-child { | |
| margin-bottom: 0; | |
| } | |
| /* --- Hugging Face like layout --- */ | |
| .hf-app { max-width: 1100px; margin: 0 auto; } | |
| .hf-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } | |
| .hf-header .logo { width: 32px; height: 32px; display: grid; place-items: center; } | |
| .hf-header .titles .subtitle { margin-top: 2px; font-size: 13px; color: #b8bdc7; } | |
| .hf-main { display: grid; grid-template-columns: 340px 1fr; gap: 16px; } | |
| .panel { background: #111218; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px; } | |
| .controls .group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } | |
| .controls label { font-size: 13px; color: #cbd1dc; } | |
| .controls textarea { resize: vertical; min-height: 72px; border-radius: 10px; background: #0f1016; color: #e6e6e6; border: 1px solid rgba(255,255,255,0.08); padding: 10px; outline: none; } | |
| .controls .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; } | |
| .field { display: flex; flex-direction: column; gap: 6px; } | |
| select, input[type="text"], input[type="range"] { width: 100%; } | |
| select, input[type="text"] { background: #0f1016; color: #e6e6e6; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; outline: none; } | |
| input[type="range"] { accent-color: #ff6a00; } | |
| .primary { background: linear-gradient(90deg,#ff8a00,#ff4d4d); border: none; color: white; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; } | |
| .primary:disabled { opacity: .6; cursor: not-allowed; } | |
| .disclaimer { font-size: 12px; color: #9aa2af; } | |
| .output .toolbar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; } | |
| .tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #d7dbe3; padding: 4px 8px; border-radius: 999px; font-size: 12px; } | |
| .tag.secondary { background: transparent; } | |
| .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } | |
| .tile { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1/1; background: #0f1016; border: 1px solid rgba(255,255,255,0.06); } | |
| .tile img { width: 100%; height: 100%; object-fit: cover; display: block; } | |
| .skeleton { background: linear-gradient(90deg, #0f1016 0%, #141622 50%, #0f1016 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; } | |
| @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } | |
| .hf-footer { margin-top: 16px; text-align: center; color: #9aa2af; font-size: 12px; } | |
| /* responsive */ | |
| @media (max-width: 900px) { | |
| .hf-main { grid-template-columns: 1fr; } | |
| } | |