Spaces:
Running
Running
Download style.css from CSNET/pulse-thai-health-coach: direct link, hf CLI and curl.
- Browser
- Download file 5.26 kB
-
https://huggingface.co/spaces/CSNET/pulse-thai-health-coach/resolve/main/style.css
- Command line
-
hf download hf://spaces/CSNET/pulse-thai-health-coach/style.css
-
curl -L -o style.css https://huggingface.co/spaces/CSNET/pulse-thai-health-coach/resolve/main/style.css
5.26 kB
| /* Custom CSS for Pulse App */ | |
| :root { | |
| --primary-color: #22c55e; | |
| --secondary-color: #3b82f6; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Kanit', 'Sarabun', sans-serif; | |
| overflow-x: hidden; | |
| } | |
| .page-section { | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateX(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateX(0); | |
| } | |
| } | |
| .nav-btn.active { | |
| color: var(--primary-color); | |
| background: rgba(34, 197, 94, 0.1); | |
| } | |
| .nav-btn:not(.active) { | |
| color: #6b7280; | |
| } | |
| .nav-btn:not(.active):hover { | |
| color: #374151; | |
| background: rgba(0, 0, 0, 0.05); | |
| } | |
| /* Smooth scroll */ | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #c1c1c1; | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #a1a1a1; | |
| } | |
| /* Pulse animation for vitals */ | |
| @keyframes pulse { | |
| 0%, 100% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.05); | |
| } | |
| } | |
| .pulse-animation { | |
| animation: pulse 2s infinite; | |
| } | |
| /* Glassmorphism effect */ | |
| .glass { | |
| background: rgba(255, 255, 255, 0.7); | |
| backdrop-filter: blur(10px); | |
| -webkit-backdrop-filter: blur(10px); | |
| border: 1px solid rgba(255, 255, 255, 0.3); | |
| } | |
| /* Custom checkbox */ | |
| input[type="checkbox"]:checked { | |
| background-color: var(--primary-color); | |
| border-color: var(--primary-color); | |
| } | |
| input[type="checkbox"]:checked::before { | |
| content: '✓'; | |
| color: white; | |
| font-size: 12px; | |
| position: absolute; | |
| top: 1px; | |
| left: 3px; | |
| } | |
| /* Active state for buttons */ | |
| button:active { | |
| transform: scale(0.98); | |
| } | |
| /* Loading spinner */ | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| .spinner { | |
| animation: spin 1s linear infinite; | |
| } | |
| /* Floating animation */ | |
| @keyframes float { | |
| 0%, 100% { | |
| transform: translateY(0); | |
| } | |
| 50% { | |
| transform: translateY(-10px); | |
| } | |
| } | |
| .floating { | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 640px) { | |
| .text-2xl { | |
| font-size: 1.5rem; | |
| } | |
| .text-3xl { | |
| font-size: 2rem; | |
| } | |
| } | |
| /* Focus states */ | |
| .focus-visible:focus { | |
| outline: 2px solid var(--primary-color); | |
| outline-offset: 2px; | |
| } | |
| /* Activity styles */ | |
| .activity-card { | |
| transition: all 0.3s ease; | |
| } | |
| .activity-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| /* Mood button styles */ | |
| .mood-btn { | |
| transition: all 0.2s ease; | |
| } | |
| .mood-btn:hover { | |
| transform: scale(1.1); | |
| background-color: rgba(0, 0, 0, 0.05); | |
| } | |
| .mood-btn.selected { | |
| background-color: rgba(34, 197, 94, 0.1); | |
| border: 2px solid var(--primary-color); | |
| } | |
| /* Checkbox custom styles */ | |
| input[type="checkbox"] { | |
| appearance: none; | |
| width: 1.25rem; | |
| height: 1.25rem; | |
| border: 2px solid #d1d5db; | |
| border-radius: 0.25rem; | |
| position: relative; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| input[type="checkbox"]:checked { | |
| background-color: var(--primary-color); | |
| border-color: var(--primary-color); | |
| } | |
| input[type="checkbox"]:checked::after { | |
| content: '✓'; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| color: white; | |
| font-size: 0.875rem; | |
| font-weight: bold; | |
| } | |
| /* Progress bar animations */ | |
| @keyframes progressFill { | |
| from { | |
| width: 0; | |
| } | |
| to { | |
| width: var(--progress-width); | |
| } | |
| } | |
| .progress-bar { | |
| animation: progressFill 1s ease-out forwards; | |
| } | |
| /* Nutrition card hover effects */ | |
| .nutrition-card { | |
| transition: all 0.3s ease; | |
| } | |
| .nutrition-card:hover { | |
| box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); | |
| transform: translateY(-2px); | |
| } | |
| /* Meditation card styles */ | |
| .meditation-card { | |
| transition: all 0.3s ease; | |
| } | |
| .meditation-card:hover { | |
| background-color: rgba(99, 102, 241, 0.05); | |
| border-color: var(--secondary-color); | |
| } | |
| /* Dark mode support */ | |
| @media (prefers-color-scheme: dark) { | |
| body { | |
| background-color: #111827; | |
| color: #f3f4f6; | |
| } | |
| .bg-white { | |
| background-color: #1f2937 ; | |
| } | |
| .text-gray-800 { | |
| color: #f3f4f6 ; | |
| } | |
| .text-gray-600 { | |
| color: #d1d5db ; | |
| } | |
| .border-gray-100 { | |
| border-color: #374151 ; | |
| } | |
| } | |
| /* Reduce motion for accessibility */ | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { | |
| animation-duration: 0.01ms ; | |
| animation-iteration-count: 1 ; | |
| transition-duration: 0.01ms ; | |
| scroll-behavior: auto ; | |
| } | |
| } | |
| /* Print styles */ | |
| @media print { | |
| .fixed { | |
| position: static ; | |
| } | |
| .bg-gradient-to-br { | |
| background: none ; | |
| -webkit-print-color-adjust: exact; | |
| print-color-adjust: exact; | |
| } | |
| } | |
| /* High contrast mode */ | |
| @media (prefers-contrast: high) { | |
| .border-gray-100 { | |
| border-color: #000 ; | |
| } | |
| .text-gray-500 { | |
| color: #000 ; | |
| } | |
| } |