Spaces:
Running
Running
Download style.css from CSNET/pulse-tracker: direct link, hf CLI and curl.
- Browser
- Download file 6.97 kB
-
https://huggingface.co/spaces/CSNET/pulse-tracker/resolve/df62a7a51df9f74644f711147f8c3dee02eb6469/style.css
- Command line
-
hf download hf://spaces/CSNET/pulse-tracker@df62a7a51df9f74644f711147f8c3dee02eb6469/style.css
-
curl -L -o style.css https://huggingface.co/spaces/CSNET/pulse-tracker/resolve/df62a7a51df9f74644f711147f8c3dee02eb6469/style.css
6.97 kB
| /* Global Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Kanit', 'Sarabun', sans-serif; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| .container { | |
| max-width: 480px; | |
| margin: 0 auto; | |
| } | |
| /* Custom Scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #888; | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #555; | |
| } | |
| /* Animations */ | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .page-content.active { | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| @keyframes slideUp { | |
| from { | |
| transform: translateY(100%); | |
| } | |
| to { | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes heartbeat { | |
| 0%, 100% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.1); | |
| } | |
| } | |
| .heartbeat { | |
| animation: heartbeat 1.5s ease-in-out infinite; | |
| } | |
| /* Utility Classes */ | |
| .transition-all { | |
| transition: all 0.3s ease; | |
| } | |
| .shadow-glow { | |
| box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); | |
| } | |
| .bg-health-gradient { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .text-health-gradient { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 640px) { | |
| .container { | |
| padding: 0 16px; | |
| } | |
| } | |
| /* Custom Toggle Switch */ | |
| .toggle-switch { | |
| position: relative; | |
| width: 48px; | |
| height: 24px; | |
| } | |
| .toggle-switch input { | |
| opacity: 0; | |
| width: 0; | |
| height: 0; | |
| } | |
| .toggle-slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: #ccc; | |
| transition: .4s; | |
| border-radius: 24px; | |
| } | |
| .toggle-slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 16px; | |
| width: 16px; | |
| left: 4px; | |
| bottom: 4px; | |
| background-color: white; | |
| transition: .4s; | |
| border-radius: 50%; | |
| } | |
| input:checked + .toggle-slider { | |
| background-color: #6366f1; | |
| } | |
| input:checked + .toggle-slider:before { | |
| transform: translateX(24px); | |
| } | |
| /* Loading Spinner */ | |
| .spinner { | |
| border: 3px solid #f3f3f3; | |
| border-top: 3px solid #6366f1; | |
| border-radius: 50%; | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| /* Card Hover Effects */ | |
| .card-hover { | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Button Styles */ | |
| .btn-primary { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| padding: 12px 24px; | |
| border-radius: 12px; | |
| font-weight: 600; | |
| border: none; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4); | |
| } | |
| .btn-secondary { | |
| background: white; | |
| color: #6366f1; | |
| padding: 12px 24px; | |
| border-radius: 12px; | |
| font-weight: 600; | |
| border: 2px solid #6366f1; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| } | |
| .btn-secondary:hover { | |
| background: #6366f1; | |
| color: white; | |
| } | |
| /* Input Styles */ | |
| .input-field { | |
| width: 100%; | |
| padding: 12px 16px; | |
| border: 2px solid #e5e7eb; | |
| border-radius: 12px; | |
| font-size: 16px; | |
| transition: all 0.3s ease; | |
| } | |
| .input-field:focus { | |
| outline: none; | |
| border-color: #6366f1; | |
| box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); | |
| } | |
| /* Badge Styles */ | |
| .badge-success { | |
| background-color: #10b981; | |
| color: white; | |
| padding: 4px 12px; | |
| border-radius: 20px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| .badge-warning { | |
| background-color: #f59e0b; | |
| color: white; | |
| padding: 4px 12px; | |
| border-radius: 20px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| .badge-danger { | |
| background-color: #ef4444; | |
| color: white; | |
| padding: 4px 12px; | |
| border-radius: 20px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| /* Modal Styles */ | |
| .modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .modal-content { | |
| background: white; | |
| border-radius: 20px; | |
| padding: 24px; | |
| max-width: 400px; | |
| width: 90%; | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| /* Toast Notification */ | |
| .toast { | |
| position: fixed; | |
| bottom: 100px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| background: #1f2937; | |
| color: white; | |
| padding: 12px 24px; | |
| border-radius: 50px; | |
| font-size: 14px; | |
| z-index: 2000; | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| /* Chart Styles */ | |
| .chart-container { | |
| position: relative; | |
| height: 200px; | |
| width: 100%; | |
| } | |
| /* Progress Bar Styles */ | |
| .progress-bar { | |
| width: 100%; | |
| height: 8px; | |
| background-color: #e5e7eb; | |
| border-radius: 4px; | |
| overflow: hidden; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| border-radius: 4px; | |
| transition: width 0.3s ease; | |
| } | |
| /* Tab Styles */ | |
| .tab-container { | |
| display: flex; | |
| background: white; | |
| border-radius: 12px; | |
| padding: 4px; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
| } | |
| .tab-button { | |
| flex: 1; | |
| padding: 8px 16px; | |
| border-radius: 8px; | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| border: none; | |
| background: transparent; | |
| cursor: pointer; | |
| } | |
| .tab-button.active { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| } | |
| /* List Styles */ | |
| .list-item { | |
| padding: 16px; | |
| border-bottom: 1px solid #f3f4f6; | |
| transition: background-color 0.3s ease; | |
| } | |
| .list-item:hover { | |
| background-color: #f9fafb; | |
| } | |
| .list-item:last-child { | |
| border-bottom: none; | |
| } | |
| /* Floating Action Button */ | |
| .fab { | |
| position: fixed; | |
| bottom: 100px; | |
| right: 20px; | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border: none; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| z-index: 100; | |
| } | |
| .fab:hover { | |
| transform: scale(1.1); | |
| box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); | |
| } | |
| /* Skeleton Loader */ | |
| .skeleton { | |
| background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); | |
| background-size: 200% 100%; | |
| animation: loading 1.5s infinite; | |
| } | |
| @keyframes loading { | |
| 0% { | |
| background-position: 200% 0; | |
| } | |
| 100% { | |
| background-position: -200% 0; | |
| } | |
| } |