Download css/modals.css from kpinquan/t: direct link, hf CLI and curl.
- Browser
- Download file 3.81 kB
-
https://huggingface.co/spaces/kpinquan/t/resolve/main/css/modals.css
- Command line
-
hf download hf://spaces/kpinquan/t/css/modals.css
-
curl -L -o modals.css https://huggingface.co/spaces/kpinquan/t/resolve/main/css/modals.css
3.81 kB
| /* 模态框通用样式 */ | |
| .modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| background-color: rgba(0, 0, 0, 0.95); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 40; | |
| transition: opacity 0.3s ease; | |
| } | |
| .modal-content { | |
| background-color: #111; | |
| padding: 2rem; | |
| border-radius: 0.5rem; | |
| border: 1px solid #333; | |
| width: 91.666667%; | |
| max-width: 56rem; | |
| max-height: 90vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| flex: none; | |
| } | |
| .modal-title { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| background: linear-gradient(to right, #00ccff, #ff3c78); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| word-break: break-word; | |
| padding-right: 1rem; | |
| max-width: 80%; | |
| } | |
| .modal-close { | |
| color: #9ca3af; | |
| font-size: 1.5rem; | |
| transition: color 0.2s; | |
| flex-shrink: 0; | |
| } | |
| .modal-close:hover { | |
| color: white; | |
| } | |
| .modal-body { | |
| overflow: auto; | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| /* 密码验证模态框 */ | |
| .password-modal { | |
| z-index: 65; | |
| } | |
| .password-form { | |
| margin-bottom: 1.5rem; | |
| } | |
| .password-input { | |
| width: 100%; | |
| background-color: #111; | |
| border: 1px solid #333; | |
| color: white; | |
| padding: 1rem; | |
| border-radius: 0.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .password-input:focus { | |
| outline: none; | |
| border-color: white; | |
| } | |
| .password-submit { | |
| width: 100%; | |
| background-color: #3b82f6; | |
| color: white; | |
| padding: 0.5rem 1rem; | |
| border-radius: 0.25rem; | |
| font-weight: 500; | |
| } | |
| .password-submit:hover { | |
| background-color: #2563eb; | |
| } | |
| .password-error { | |
| color: #ef4444; | |
| margin-top: 0.5rem; | |
| display: none; | |
| } | |
| /* 声明模态框 */ | |
| .disclaimer-modal { | |
| z-index: 60; | |
| } | |
| .disclaimer-content { | |
| color: #d1d5db; | |
| line-height: 1.5; | |
| } | |
| .disclaimer-content p { | |
| margin-bottom: 1rem; | |
| } | |
| .disclaimer-content strong { | |
| color: #60a5fa; | |
| } | |
| .disclaimer-button { | |
| margin-top: 1.5rem; | |
| padding: 0.75rem 1.5rem; | |
| background: linear-gradient(to right, #4f46e5, #8b5cf6, #ec4899); | |
| color: white; | |
| font-weight: 600; | |
| border-radius: 0.5rem; | |
| transition: all 0.3s; | |
| } | |
| .disclaimer-button:hover { | |
| box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); | |
| transform: translateY(-1px); | |
| } | |
| /* Toast 和 Loading 提示 */ | |
| .toast { | |
| position: fixed; | |
| top: 1rem; | |
| left: 50%; | |
| transform: translateX(-50%) translateY(-100%); | |
| background-color: #ef4444; | |
| color: white; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 0.5rem; | |
| box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3); | |
| transition: all 0.3s; | |
| opacity: 0; | |
| z-index: 50; | |
| } | |
| .toast.show { | |
| transform: translateX(-50%) translateY(0); | |
| opacity: 1; | |
| } | |
| .loading-overlay { | |
| position: fixed; | |
| inset: 0; | |
| background-color: rgba(0, 0, 0, 0.8); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 50; | |
| } | |
| .loading-content { | |
| background-color: #111; | |
| padding: 2rem; | |
| border-radius: 0.5rem; | |
| border: 1px solid #333; | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .loading-spinner { | |
| width: 2rem; | |
| height: 2rem; | |
| border: 4px solid white; | |
| border-top-color: transparent; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .loading-text { | |
| color: white; | |
| font-size: 1.125rem; | |
| } | |
| /* 动画效果 */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes fadeOut { | |
| from { opacity: 1; } | |
| to { opacity: 0; } | |
| } | |
| .modal-overlay.show { | |
| animation: fadeIn 0.3s forwards; | |
| display: flex; | |
| } | |
| .modal-overlay.hide { | |
| animation: fadeOut 0.3s forwards; | |
| } | |