Spaces:
Sleeping
Sleeping
Download frontend/src/styles/ImageHistory.css from monumkp89/pixelcraft: direct link, hf CLI and curl.
- Browser
- Download file 4.6 kB
-
https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/styles/ImageHistory.css
- Command line
-
hf download hf://spaces/monumkp89/pixelcraft/frontend/src/styles/ImageHistory.css
-
curl -L -o ImageHistory.css https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/styles/ImageHistory.css
4.6 kB
| /* Image History */ | |
| .image-history { | |
| max-width: 1000px; | |
| margin: 0 auto; | |
| } | |
| .image-history h2 { | |
| margin-bottom: 2rem; | |
| color: #1e293b; | |
| font-size: 1.8rem; | |
| } | |
| .history-loading { | |
| text-align: center; | |
| padding: 3rem; | |
| color: #64748b; | |
| font-size: 1.1rem; | |
| } | |
| .empty-state { | |
| text-align: center; | |
| padding: 4rem 2rem; | |
| background: white; | |
| border-radius: 12px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
| } | |
| .empty-state p { | |
| color: #64748b; | |
| font-size: 1.1rem; | |
| } | |
| .history-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| gap: 1.5rem; | |
| margin-bottom: 2rem; | |
| } | |
| .history-card { | |
| position: relative; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| cursor: pointer; | |
| aspect-ratio: 1; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .history-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); | |
| } | |
| .history-card img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .card-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.7); | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: flex-end; | |
| padding: 1rem; | |
| opacity: 0; | |
| transition: opacity 0.3s; | |
| } | |
| .history-card:hover .card-overlay { | |
| opacity: 1; | |
| } | |
| .card-prompt { | |
| color: white; | |
| margin-bottom: 1rem; | |
| font-size: 0.9rem; | |
| line-height: 1.4; | |
| max-height: 3rem; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .delete-btn { | |
| padding: 0.5rem 1rem; | |
| background: #ef4444; | |
| color: white; | |
| border: none; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| transition: background 0.3s; | |
| } | |
| .delete-btn:hover { | |
| background: #dc2626; | |
| } | |
| /* Pagination */ | |
| .pagination { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 1.5rem; | |
| background: white; | |
| border-radius: 12px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
| } | |
| .pagination button { | |
| padding: 0.6rem 1.2rem; | |
| background: #f1f5f9; | |
| color: #1e293b; | |
| border: 2px solid #e2e8f0; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| transition: all 0.3s; | |
| } | |
| .pagination button:hover:not(:disabled) { | |
| background: #7c3aed; | |
| color: white; | |
| border-color: #7c3aed; | |
| transform: translateY(-2px); | |
| } | |
| .pagination button:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .pagination span { | |
| color: #64748b; | |
| font-weight: 600; | |
| min-width: 100px; | |
| text-align: center; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .history-grid { | |
| grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .image-history h2 { | |
| font-size: 1.4rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| } | |
| /* Modal */ | |
| .image-modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.8); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| padding: 1rem; | |
| } | |
| .modal-content { | |
| background: white; | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| max-width: 500px; | |
| width: 100%; | |
| max-height: 90vh; | |
| overflow: auto; | |
| position: relative; | |
| } | |
| .modal-content img { | |
| width: 100%; | |
| border-radius: 8px; | |
| margin-bottom: 1rem; | |
| } | |
| .modal-prompt { | |
| color: #1e293b; | |
| margin-bottom: 1rem; | |
| font-size: 0.95rem; | |
| line-height: 1.6; | |
| } | |
| .modal-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.75rem; | |
| margin-bottom: 1rem; | |
| color: #64748b; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| } | |
| .modal-actions { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .modal-actions button { | |
| padding: 0.6rem 1rem; | |
| background: #7c3aed; | |
| color: white; | |
| border: none; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| transition: background 0.3s; | |
| } | |
| .modal-actions button:hover { | |
| background: #6d28d9; | |
| } | |
| .modal-actions button:disabled { | |
| opacity: 0.65; | |
| cursor: not-allowed; | |
| } | |
| .modal-actions .delete-btn { | |
| background: #ef4444; | |
| } | |
| .modal-actions .delete-btn:hover { | |
| background: #dc2626; | |
| } | |
| .modal-close { | |
| position: absolute; | |
| top: 0.5rem; | |
| right: 0.5rem; | |
| background: none ; | |
| border: none ; | |
| font-size: 2rem; | |
| color: #64748b; | |
| cursor: pointer; | |
| line-height: 1; | |
| } | |
| .modal-close:hover { | |
| color: #1e293b; | |
| } | |
| .modal-message { | |
| margin-top: 1rem; | |
| padding: 0.75rem 1rem; | |
| background: #f8fafc; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 8px; | |
| color: #475569; | |
| font-size: 0.95rem; | |
| } | |