Download src/static/styles.css from Fred808/NSL: direct link, hf CLI and curl.
- Browser
- Download file 7.33 kB
-
https://huggingface.co/spaces/Fred808/NSL/resolve/main/src/static/styles.css
- Command line
-
hf download hf://spaces/Fred808/NSL/src/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/Fred808/NSL/resolve/main/src/static/styles.css
7.33 kB
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| color: #333; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| } | |
| .header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| color: white; | |
| } | |
| .header-content h1 { | |
| font-size: 3rem; | |
| margin-bottom: 10px; | |
| text-shadow: 2px 2px 4px rgba(0,0,0,0.3); | |
| } | |
| .header-content p { | |
| font-size: 1.2rem; | |
| opacity: 0.9; | |
| } | |
| .main-content { | |
| background: white; | |
| border-radius: 20px; | |
| padding: 40px; | |
| box-shadow: 0 20px 40px rgba(0,0,0,0.1); | |
| margin-bottom: 30px; | |
| } | |
| .scanner-form { | |
| margin-bottom: 30px; | |
| } | |
| .form-group { | |
| margin-bottom: 25px; | |
| position: relative; | |
| } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 8px; | |
| font-weight: 600; | |
| color: #555; | |
| font-size: 1rem; | |
| } | |
| .form-group label i { | |
| margin-right: 8px; | |
| color: #667eea; | |
| } | |
| .form-group input { | |
| width: 100%; | |
| padding: 15px; | |
| border: 2px solid #e1e5e9; | |
| border-radius: 10px; | |
| font-size: 1rem; | |
| transition: all 0.3s ease; | |
| background: #f8f9fa; | |
| } | |
| .form-group input:focus { | |
| outline: none; | |
| border-color: #667eea; | |
| background: white; | |
| box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); | |
| } | |
| .form-row { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 20px; | |
| } | |
| .ping-btn { | |
| position: absolute; | |
| right: 5px; | |
| top: 35px; | |
| background: #28a745; | |
| color: white; | |
| border: none; | |
| padding: 10px 15px; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| font-size: 0.9rem; | |
| } | |
| .ping-btn:hover { | |
| background: #218838; | |
| transform: translateY(-2px); | |
| } | |
| .preset-ports { | |
| margin-bottom: 30px; | |
| } | |
| .preset-ports label { | |
| display: block; | |
| margin-bottom: 15px; | |
| font-weight: 600; | |
| color: #555; | |
| } | |
| .preset-buttons { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| } | |
| .preset-btn { | |
| background: #f8f9fa; | |
| border: 2px solid #e1e5e9; | |
| padding: 10px 20px; | |
| border-radius: 25px; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| } | |
| .preset-btn:hover { | |
| background: #667eea; | |
| color: white; | |
| border-color: #667eea; | |
| transform: translateY(-2px); | |
| } | |
| .scan-btn { | |
| width: 100%; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border: none; | |
| padding: 18px; | |
| border-radius: 12px; | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .scan-btn:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3); | |
| } | |
| .scan-btn:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .progress-section { | |
| margin: 30px 0; | |
| text-align: center; | |
| } | |
| .progress-bar { | |
| width: 100%; | |
| height: 8px; | |
| background: #e1e5e9; | |
| border-radius: 4px; | |
| overflow: hidden; | |
| margin-bottom: 15px; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #667eea, #764ba2); | |
| width: 0%; | |
| transition: width 0.3s ease; | |
| border-radius: 4px; | |
| } | |
| .progress-text { | |
| font-size: 1rem; | |
| color: #666; | |
| font-weight: 500; | |
| } | |
| .results-section { | |
| margin-top: 40px; | |
| } | |
| .results-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 25px; | |
| flex-wrap: wrap; | |
| gap: 15px; | |
| } | |
| .results-header h2 { | |
| color: #333; | |
| font-size: 1.8rem; | |
| } | |
| .results-summary { | |
| background: #f8f9fa; | |
| padding: 15px 20px; | |
| border-radius: 10px; | |
| font-weight: 500; | |
| color: #555; | |
| } | |
| .results-actions { | |
| display: flex; | |
| gap: 15px; | |
| margin-bottom: 25px; | |
| flex-wrap: wrap; | |
| } | |
| .export-btn, .clear-btn { | |
| padding: 12px 24px; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| } | |
| .export-btn { | |
| background: #28a745; | |
| color: white; | |
| } | |
| .export-btn:hover { | |
| background: #218838; | |
| transform: translateY(-2px); | |
| } | |
| .clear-btn { | |
| background: #dc3545; | |
| color: white; | |
| } | |
| .clear-btn:hover { | |
| background: #c82333; | |
| transform: translateY(-2px); | |
| } | |
| .results-table-container { | |
| overflow-x: auto; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 6px rgba(0,0,0,0.1); | |
| } | |
| .results-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| background: white; | |
| } | |
| .results-table th { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| padding: 15px; | |
| text-align: left; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .results-table td { | |
| padding: 15px; | |
| border-bottom: 1px solid #e1e5e9; | |
| transition: background 0.3s ease; | |
| } | |
| .results-table tbody tr:hover { | |
| background: #f8f9fa; | |
| } | |
| .status-open { | |
| color: #28a745; | |
| font-weight: 600; | |
| } | |
| .status-closed { | |
| color: #dc3545; | |
| font-weight: 600; | |
| } | |
| .info-section { | |
| margin-top: 40px; | |
| } | |
| .info-card { | |
| background: #f8f9fa; | |
| padding: 30px; | |
| border-radius: 15px; | |
| border-left: 5px solid #667eea; | |
| } | |
| .info-card h3 { | |
| color: #333; | |
| margin-bottom: 15px; | |
| font-size: 1.4rem; | |
| } | |
| .info-card p { | |
| color: #666; | |
| line-height: 1.6; | |
| margin-bottom: 20px; | |
| } | |
| .common-ports h4 { | |
| color: #555; | |
| margin-bottom: 15px; | |
| font-size: 1.1rem; | |
| } | |
| .port-list { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| .port-item { | |
| background: white; | |
| padding: 8px 15px; | |
| border-radius: 20px; | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| color: #667eea; | |
| border: 2px solid #e1e5e9; | |
| transition: all 0.3s ease; | |
| } | |
| .port-item:hover { | |
| background: #667eea; | |
| color: white; | |
| transform: translateY(-2px); | |
| } | |
| .footer { | |
| text-align: center; | |
| color: white; | |
| opacity: 0.8; | |
| font-size: 0.9rem; | |
| margin-top: 30px; | |
| } | |
| .notification { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| padding: 15px 25px; | |
| border-radius: 8px; | |
| color: white; | |
| font-weight: 500; | |
| z-index: 1000; | |
| transform: translateX(400px); | |
| transition: transform 0.3s ease; | |
| max-width: 300px; | |
| } | |
| .notification.show { | |
| transform: translateX(0); | |
| } | |
| .notification.success { | |
| background: #28a745; | |
| } | |
| .notification.error { | |
| background: #dc3545; | |
| } | |
| .notification.info { | |
| background: #17a2b8; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 15px; | |
| } | |
| .header-content h1 { | |
| font-size: 2rem; | |
| } | |
| .main-content { | |
| padding: 25px; | |
| } | |
| .form-row { | |
| grid-template-columns: 1fr; | |
| } | |
| .preset-buttons { | |
| justify-content: center; | |
| } | |
| .results-header { | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .results-actions { | |
| justify-content: center; | |
| } | |
| .ping-btn { | |
| position: static; | |
| margin-top: 10px; | |
| width: 100%; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .header-content h1 { | |
| font-size: 1.8rem; | |
| } | |
| .main-content { | |
| padding: 20px; | |
| } | |
| .results-table th, | |
| .results-table td { | |
| padding: 10px 8px; | |
| font-size: 0.9rem; | |
| } | |
| } | |