Spaces:
Sleeping
Sleeping
Download dashboard/src/index.css from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 8.25 kB
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/dashboard/src/index.css
- Command line
-
hf download hf://spaces/jinksQspider/openWa/dashboard/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/dashboard/src/index.css
8.25 kB
| @import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap'); | |
| @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap'); | |
| :root { | |
| font-family: 'Plus Jakarta Sans', system-ui, Avenir, Helvetica, Arial, sans-serif; | |
| line-height: 1.6; | |
| font-weight: 400; | |
| } | |
| html[lang="he"], | |
| html[dir="rtl"] { | |
| font-family: 'Heebo', 'Rubik', 'Noto Sans Hebrew', 'Segoe UI', Arial, sans-serif; | |
| } | |
| html[lang="ar"] { | |
| font-family: 'Noto Sans Arabic', 'Cairo', 'Tajawal', 'Segoe UI', Arial, sans-serif; | |
| } | |
| :root { | |
| color-scheme: light dark; | |
| color: var(--text-primary); | |
| background-color: var(--bg-light); | |
| font-synthesis: none; | |
| text-rendering: optimizeLegibility; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| a { | |
| font-weight: 500; | |
| color: #646cff; | |
| text-decoration: inherit; | |
| } | |
| a:hover { | |
| color: #535bf2; | |
| } | |
| body { | |
| margin: 0; | |
| min-width: 320px; | |
| min-height: 100vh; | |
| } | |
| h1 { | |
| font-size: 1.875rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0; | |
| letter-spacing: -0.025em; | |
| } | |
| h2 { | |
| font-size: 0.8125rem; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin: 0; | |
| } | |
| h3 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| button { | |
| border-radius: 8px; | |
| border: 1px solid transparent; | |
| padding: 0.6em 1.2em; | |
| font-size: 1em; | |
| font-weight: 500; | |
| font-family: inherit; | |
| background-color: #1a1a1a; | |
| cursor: pointer; | |
| transition: border-color 0.25s; | |
| } | |
| button:hover { | |
| border-color: #646cff; | |
| } | |
| button:focus, | |
| button:focus-visible { | |
| outline: 4px auto -webkit-focus-ring-color; | |
| } | |
| @media (prefers-color-scheme: light) { | |
| :root { | |
| color: #213547; | |
| background-color: #ffffff; | |
| } | |
| a:hover { | |
| color: #747bff; | |
| } | |
| button { | |
| background-color: #f9f9f9; | |
| } | |
| } | |
| /* Global select/dropdown styling */ | |
| select { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| -moz-appearance: none; | |
| width: 100%; | |
| padding: 0.75rem 2.5rem 0.75rem 1rem; | |
| font-size: 0.9375rem; | |
| font-family: inherit; | |
| color: var(--text-primary); | |
| background-color: var(--bg-white, #fff); | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 0.75rem center; | |
| background-size: 16px; | |
| border: 1px solid var(--border, #e2e8f0); | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| select:hover { | |
| border-color: var(--primary, #25d366); | |
| } | |
| select:focus { | |
| outline: none; | |
| border-color: var(--primary, #25d366); | |
| box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1); | |
| } | |
| select:disabled { | |
| background-color: var(--bg-light, #f8fafc); | |
| color: var(--text-muted, #94a3b8); | |
| cursor: not-allowed; | |
| } | |
| /* GLOBAL MODAL STYLES */ | |
| /* Modal Overlay */ | |
| .modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0, 0, 0, 0.5); | |
| backdrop-filter: blur(4px); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| animation: fadeIn 0.2s ease; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| /* Modal Card */ | |
| .modal { | |
| background: var(--bg-white, #fff); | |
| border-radius: 16px; | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); | |
| width: 90%; | |
| max-width: 480px; | |
| animation: slideUp 0.3s ease; | |
| overflow: hidden; | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1.5rem 1.5rem 1rem; | |
| border-bottom: 1px solid var(--border, #e2e8f0); | |
| } | |
| .modal-header h2 { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| color: var(--text-primary, #1e293b); | |
| margin: 0; | |
| text-transform: none; | |
| letter-spacing: normal; | |
| } | |
| .modal-body { | |
| padding: 1.5rem; | |
| } | |
| .modal-body label { | |
| display: block; | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| color: var(--text-secondary, #64748b); | |
| margin-bottom: 0.5rem; | |
| } | |
| .modal-body input { | |
| width: 100%; | |
| padding: 0.875rem 1rem; | |
| border: 1px solid var(--border, #e2e8f0); | |
| border-radius: 8px; | |
| font-size: 0.9375rem; | |
| background: var(--bg-light, #f8fafc); | |
| transition: all 0.2s; | |
| box-sizing: border-box; | |
| } | |
| .modal-body input:focus { | |
| outline: none; | |
| border-color: var(--primary, #25d366); | |
| background: var(--bg-white, #fff); | |
| box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1); | |
| } | |
| .modal-footer { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 0.75rem; | |
| padding: 1rem 1.5rem 1.5rem; | |
| } | |
| /* Icon Button (modal close X) */ | |
| .btn-icon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| background: var(--bg-light, #f8fafc); | |
| border: 1px solid var(--border, #e2e8f0); | |
| border-radius: 8px; | |
| cursor: pointer; | |
| color: var(--text-secondary, #64748b); | |
| transition: all 0.2s; | |
| flex-shrink: 0; | |
| padding: 0; | |
| } | |
| .btn-icon svg { | |
| width: 20px; | |
| height: 20px; | |
| stroke: var(--text-secondary, #64748b); | |
| } | |
| .btn-icon:hover { | |
| background: #fee2e2; | |
| border-color: #fecaca; | |
| color: #dc2626; | |
| } | |
| .btn-icon:hover svg { | |
| stroke: #dc2626; | |
| } | |
| /* Secondary Button */ | |
| .btn-secondary { | |
| padding: 0.75rem 1.25rem; | |
| background: var(--bg-light, #f8fafc); | |
| color: var(--text-secondary, #64748b); | |
| border: 1px solid var(--border, #e2e8f0); | |
| border-radius: 8px; | |
| font-size: 0.9375rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .btn-secondary:hover { | |
| background: var(--bg-white, #fff); | |
| border-color: var(--text-muted, #94a3b8); | |
| color: var(--text-primary, #1e293b); | |
| } | |
| /* Spin Animation */ | |
| @keyframes spin { | |
| from { | |
| transform: rotate(0deg); | |
| } | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| .animate-spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| /* Code element styling */ | |
| code { | |
| background: var(--bg-light, #f1f5f9); | |
| padding: 0.125rem 0.375rem; | |
| border-radius: 4px; | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; | |
| font-size: 0.875em; | |
| color: var(--text-primary, #1e293b); | |
| } | |
| /* RTL / Hebrew direction support */ | |
| /* Keep code, technical identifiers, and numbers LTR even inside RTL containers */ | |
| [dir="rtl"] code, | |
| [dir="rtl"] .mono, | |
| [dir="rtl"] pre { | |
| direction: ltr; | |
| text-align: left; | |
| unicode-bidi: embed; | |
| } | |
| /* Modal footer: actions should align to the start of the writing direction */ | |
| [dir="rtl"] .modal-footer { | |
| justify-content: flex-end; | |
| flex-direction: row-reverse; | |
| } | |
| /* Select dropdown caret on the opposite side */ | |
| [dir="rtl"] select { | |
| padding: 0.75rem 1rem 0.75rem 2.5rem; | |
| background-position: left 0.75rem center; | |
| } | |
| /* Inputs in modals: text aligns naturally */ | |
| [dir="rtl"] .modal-body input, | |
| [dir="rtl"] .modal-body textarea, | |
| [dir="rtl"] input[type="text"], | |
| [dir="rtl"] input[type="url"], | |
| [dir="rtl"] input[type="password"], | |
| [dir="rtl"] input[type="number"], | |
| [dir="rtl"] textarea { | |
| text-align: right; | |
| } | |
| /* URLs, emails, phones — force LTR even inside RTL */ | |
| [dir="rtl"] input[type="url"], | |
| [dir="rtl"] input[type="email"], | |
| [dir="rtl"] input[type="tel"] { | |
| direction: ltr; | |
| text-align: left; | |
| } | |
| [dir="rtl"] .page-header__top { | |
| flex-direction: row-reverse; | |
| } | |
| /* Toast container — slide in from the opposite side */ | |
| [dir="rtl"] .toast-container { | |
| right: auto; | |
| left: 1rem; | |
| } | |
| /* Mobile Responsive - Global */ | |
| @media (max-width: 768px) { | |
| h1 { | |
| font-size: 1.5rem; | |
| } | |
| .modal { | |
| width: 95%; | |
| max-width: none; | |
| margin: 1rem; | |
| border-radius: 12px; | |
| } | |
| .modal-header { | |
| padding: 1.25rem 1.25rem 0.875rem; | |
| } | |
| .modal-header h2 { | |
| font-size: 1.125rem; | |
| } | |
| .modal-body { | |
| padding: 1.25rem; | |
| } | |
| .modal-footer { | |
| padding: 0.875rem 1.25rem 1.25rem; | |
| } | |
| select { | |
| padding: 0.625rem 2.25rem 0.625rem 0.875rem; | |
| font-size: 0.875rem; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| h1 { | |
| font-size: 1.25rem; | |
| } | |
| .modal-overlay { | |
| align-items: flex-end; | |
| } | |
| .modal { | |
| width: 100%; | |
| margin: 0; | |
| border-radius: 16px 16px 0 0; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| } | |
| } | |