Spaces:
Sleeping
Sleeping
| /* SwiftOps API - Main Stylesheet - Dark Mode */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| background: #0a0a0a; | |
| color: #e0e0e0; | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 2rem 1rem; | |
| } | |
| .container { | |
| width: 100%; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| header { | |
| text-align: center; | |
| padding: 2rem 0 3rem; | |
| border-bottom: 1px solid #2a2a2a; | |
| margin-bottom: 3rem; | |
| } | |
| h1 { | |
| font-size: 2.5rem; | |
| font-weight: 700; | |
| margin-bottom: 0.5rem; | |
| color: #ffffff; | |
| letter-spacing: -0.5px; | |
| } | |
| h2 { | |
| font-size: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| color: #ffffff; | |
| font-weight: 600; | |
| } | |
| h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| color: #ffffff; | |
| font-weight: 600; | |
| } | |
| p { | |
| color: #888; | |
| line-height: 1.6; | |
| } | |
| a { | |
| color: #4a9eff; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| a:hover { | |
| color: #64b5f6; | |
| } | |
| .description { | |
| font-size: 1rem; | |
| color: #888; | |
| margin-top: 0.5rem; | |
| } | |
| .cards { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 1rem; | |
| margin-bottom: 3rem; | |
| } | |
| .card { | |
| background: #1a1a1a; | |
| border: 1px solid #2a2a2a; | |
| border-radius: 8px; | |
| padding: 1.5rem; | |
| text-align: center; | |
| transition: all 0.2s; | |
| cursor: pointer; | |
| text-decoration: none; | |
| color: inherit; | |
| display: block; | |
| } | |
| .card:hover { | |
| border-color: #4a9eff; | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1); | |
| } | |
| .card h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| color: #ffffff; | |
| font-weight: 600; | |
| } | |
| .card p { | |
| font-size: 0.875rem; | |
| color: #888; | |
| line-height: 1.4; | |
| } | |
| .endpoints-section { | |
| margin-bottom: 3rem; | |
| } | |
| .endpoints-section h2 { | |
| font-size: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| color: #ffffff; | |
| font-weight: 600; | |
| } | |
| .endpoint { | |
| background: #1a1a1a; | |
| border: 1px solid #2a2a2a; | |
| border-radius: 8px; | |
| padding: 1.25rem; | |
| margin-bottom: 1rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .endpoint-left { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| flex: 1; | |
| } | |
| .method { | |
| display: inline-block; | |
| padding: 0.25rem 0.75rem; | |
| border-radius: 4px; | |
| font-weight: 600; | |
| font-size: 0.75rem; | |
| font-family: 'Courier New', monospace; | |
| background: #1e3a5f; | |
| color: #64b5f6; | |
| min-width: 50px; | |
| text-align: center; | |
| text-transform: uppercase; | |
| } | |
| .method.post { | |
| background: #1b5e20; | |
| color: #81c784; | |
| } | |
| .method.put { | |
| background: #e65100; | |
| color: #ffb74d; | |
| } | |
| .method.patch { | |
| background: #4a148c; | |
| color: #ba68c8; | |
| } | |
| .method.delete { | |
| background: #b71c1c; | |
| color: #ef5350; | |
| } | |
| .endpoint-path { | |
| font-family: 'Courier New', monospace; | |
| font-size: 0.95rem; | |
| color: #e0e0e0; | |
| font-weight: 500; | |
| } | |
| .copy-btn, .btn { | |
| background: #2a2a2a; | |
| border: 1px solid #3a3a3a; | |
| color: #888; | |
| padding: 0.5rem 1rem; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-size: 0.875rem; | |
| transition: all 0.2s; | |
| font-family: inherit; | |
| } | |
| .copy-btn:hover, .btn:hover { | |
| background: #3a3a3a; | |
| color: #4a9eff; | |
| border-color: #4a9eff; | |
| } | |
| .copy-btn.copied { | |
| background: #1e4d2b; | |
| color: #4ade80; | |
| border-color: #4ade80; | |
| } | |
| .btn-primary { | |
| background: #1e3a5f; | |
| color: #64b5f6; | |
| border-color: #1e3a5f; | |
| } | |
| .btn-primary:hover { | |
| background: #2a4a6f; | |
| border-color: #4a9eff; | |
| } | |
| footer { | |
| text-align: center; | |
| padding: 2rem 0; | |
| border-top: 1px solid #2a2a2a; | |
| color: #666; | |
| font-size: 0.875rem; | |
| margin-top: auto; | |
| width: 100%; | |
| max-width: 800px; | |
| } | |
| .footer-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .footer-link { | |
| color: #4a9eff; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #64b5f6; | |
| } | |
| @media (max-width: 768px) { | |
| .cards { | |
| grid-template-columns: 1fr; | |
| } | |
| .endpoint { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 1rem; | |
| } | |
| .copy-btn { | |
| width: 100%; | |
| } | |
| .footer-content { | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| h1 { | |
| font-size: 2rem; | |
| } | |
| } | |