Spaces:
Running
Running
Download style.css from CSNET/pulse-tracker: direct link, hf CLI and curl.
- Browser
- Download file 10 kB
-
https://huggingface.co/spaces/CSNET/pulse-tracker/resolve/main/style.css
- Command line
-
hf download hf://spaces/CSNET/pulse-tracker/style.css
-
curl -L -o style.css https://huggingface.co/spaces/CSNET/pulse-tracker/resolve/main/style.css
10 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%) translateY(20px); | |
| background: #1f2937; | |
| color: white; | |
| padding: 12px 24px; | |
| border-radius: 50px; | |
| font-size: 14px; | |
| z-index: 2000; | |
| animation: slideUp 0.3s ease-out; | |
| opacity: 0; | |
| transition: all 0.3s ease; | |
| max-width: 320px; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| .toast-icon { | |
| font-size: 18px; | |
| font-weight: bold; | |
| } | |
| .toast-message { | |
| flex: 1; | |
| } | |
| .toast-success { | |
| background: linear-gradient(135deg, #10b981, #059669); | |
| } | |
| .toast-error { | |
| background: linear-gradient(135deg, #ef4444, #dc2626); | |
| } | |
| .toast-warning { | |
| background: linear-gradient(135deg, #f59e0b, #d97706); | |
| } | |
| .toast-info { | |
| background: linear-gradient(135deg, #3b82f6, #2563eb); | |
| } | |
| /* 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; | |
| } | |
| } | |
| /* Activity Animations */ | |
| .activity-item { | |
| transition: all 0.3s ease; | |
| transform: translateX(0); | |
| } | |
| .activity-item:hover { | |
| transform: translateX(4px); | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Mood Button Styles */ | |
| .mood-button { | |
| transition: all 0.3s ease; | |
| filter: grayscale(0.3); | |
| opacity: 0.7; | |
| } | |
| .mood-button:hover { | |
| filter: grayscale(0); | |
| opacity: 1; | |
| transform: scale(1.1); | |
| } | |
| .mood-button.ring-2 { | |
| filter: grayscale(0); | |
| opacity: 1; | |
| transform: scale(1.2); | |
| } | |
| /* Live Updates */ | |
| .live-indicator { | |
| display: inline-block; | |
| width: 8px; | |
| height: 8px; | |
| background: #10b981; | |
| border-radius: 50%; | |
| margin-right: 8px; | |
| animation: pulse 2s infinite; | |
| } | |
| /* Data Cards */ | |
| .data-card { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .data-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); | |
| transition: left 0.5s ease; | |
| } | |
| .data-card:hover::before { | |
| left: 100%; | |
| } | |
| /* Progress Ring Styles */ | |
| .progress-ring { | |
| transform: rotate(-90deg); | |
| } | |
| .progress-ring-circle { | |
| transition: stroke-dashoffset 0.5s ease; | |
| } | |
| /* Responsive Breakpoints */ | |
| @media (max-width: 480px) { | |
| .toast { | |
| max-width: 280px; | |
| font-size: 12px; | |
| padding: 10px 20px; | |
| } | |
| } | |
| /* Dark Mode Support (Future Feature) */ | |
| @media (prefers-color-scheme: dark) { | |
| .modal-content { | |
| background: #1f2937; | |
| color: white; | |
| } | |
| .card-shadow { | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2); | |
| } | |
| } | |
| /* Enhanced Button Styles */ | |
| .btn { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .btn::after { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| width: 0; | |
| height: 0; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, 0.3); | |
| transform: translate(-50%, -50%); | |
| transition: width 0.6s, height 0.6s; | |
| } | |
| .btn:active::after { | |
| width: 300px; | |
| height: 300px; | |
| } | |
| /* Chart Animation */ | |
| .chart-bar { | |
| animation: growBar 0.5s ease-out forwards; | |
| } | |
| @keyframes growBar { | |
| from { | |
| height: 0; | |
| } | |
| } | |
| /* Notification Badge */ | |
| .notification-badge { | |
| animation: bounce 2s infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 20%, 50%, 80%, 100% { | |
| transform: translateY(0); | |
| } | |
| 40% { | |
| transform: translateY(-4px); | |
| } | |
| 60% { | |
| transform: translateY(-2px); | |
| } | |
| } | |