Spaces:
Paused
Paused
| /* | |
| * File: static/main.css | |
| * Description: Custom styles for the PubMed Search application. | |
| * This file uses TailwindCSS's utility-first approach but provides | |
| * a few custom classes for common components and aesthetics. | |
| */ | |
| /* ================== | |
| * Base Styles | |
| * ================== */ | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f4f7f9; | |
| color: #4b5563; | |
| } | |
| h1, h2, h3, h4, h5, h6 { | |
| color: #1f2937; | |
| } | |
| /* ================== | |
| * Utility Classes | |
| * ================== */ | |
| .container { | |
| max-width: 960px; /* Equivalent to max-w-4xl in Tailwind */ | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| .card { | |
| background-color: #ffffff; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| padding: 2rem; | |
| } | |
| .form-input { | |
| display: block; | |
| width: 100%; | |
| padding: 0.625rem 0.75rem; /* Equivalent to py-2 px-3 */ | |
| margin-top: 0.25rem; /* Equivalent to mt-1 */ | |
| font-size: 1rem; | |
| line-height: 1.5; | |
| background-color: #fff; | |
| background-clip: padding-box; | |
| border: 1px solid #e2e8f0; /* Equivalent to border-gray-200 */ | |
| border-radius: 8px; | |
| transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; | |
| } | |
| .form-input:focus { | |
| color: #1f2937; | |
| background-color: #fff; | |
| border-color: #3b82f6; /* Equivalent to border-blue-600 */ | |
| outline: 0; | |
| box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* Equivalent to ring-2 ring-blue-500 */ | |
| } | |
| /* ================== | |
| * Button Styles | |
| * ================== */ | |
| .btn { | |
| display: inline-flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 0.75rem 1.5rem; /* Equivalent to px-6 py-3 */ | |
| font-weight: 600; /* Equivalent to font-semibold */ | |
| text-align: center; | |
| vertical-align: middle; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: background-color 0.2s, color 0.2s, border-color 0.2s; | |
| border: 1px solid transparent; | |
| } | |
| .btn-primary { | |
| background-color: #3b82f6; /* Equivalent to bg-blue-600 */ | |
| color: #ffffff; | |
| } | |
| .btn-primary:hover { | |
| background-color: #2563eb; /* Equivalent to hover:bg-blue-700 */ | |
| } | |
| .btn-secondary { | |
| background-color: #d1d5db; /* Equivalent to bg-gray-300 */ | |
| color: #1f2937; | |
| } | |
| .btn-secondary:hover { | |
| background-color: #9ca3af; /* Equivalent to hover:bg-gray-400 */ | |
| } | |