Spaces:
Sleeping
Sleeping
Download static/styles.css from FunWith/irish-maths-ai: direct link, hf CLI and curl.
- Browser
- Download file 14.8 kB
-
https://huggingface.co/spaces/FunWith/irish-maths-ai/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/FunWith/irish-maths-ai/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/FunWith/irish-maths-ai/resolve/main/static/styles.css
14.8 kB
| /* ── Irish Maths AI — Mathaí Styles ─────────────────────────────────── */ | |
| /* PIN Overlay */ | |
| .pin-overlay { | |
| position: fixed; inset: 0; z-index: 9999; | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); | |
| display: flex; align-items: center; justify-content: center; | |
| } | |
| .pin-card { | |
| background: #fff; border-radius: 20px; padding: 48px 36px; | |
| text-align: center; max-width: 340px; width: 90%; | |
| box-shadow: 0 20px 60px rgba(0,0,0,0.3); | |
| } | |
| .pin-icon { font-size: 48px; margin-bottom: 12px; } | |
| .pin-card h2 { font-size: 22px; color: #1e293b; margin-bottom: 6px; } | |
| .pin-card p { color: #64748b; font-size: 14px; margin-bottom: 24px; } | |
| .pin-input-row { margin-bottom: 20px; } | |
| #pinInput { | |
| width: 140px; text-align: center; font-size: 28px; letter-spacing: 12px; | |
| padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 12px; | |
| outline: none; font-family: 'Inter', monospace; | |
| } | |
| #pinInput:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); } | |
| .pin-submit { | |
| background: #4f46e5; color: #fff; border: none; border-radius: 12px; | |
| padding: 12px 40px; font-size: 16px; font-weight: 600; cursor: pointer; | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .pin-submit:hover { background: #4338ca; } | |
| .pin-error { color: #dc2626; font-size: 13px; margin-top: 12px; min-height: 18px; } | |
| :root { | |
| --bg: #fafbfc; | |
| --bg-white: #ffffff; | |
| --accent: #4f46e5; | |
| --accent-light: #eef2ff; | |
| --accent-hover: #4338ca; | |
| --green: #059669; | |
| --green-light: #ecfdf5; | |
| --orange: #d97706; | |
| --orange-light: #fffbeb; | |
| --text: #1e293b; | |
| --text-muted: #64748b; | |
| --text-light: #94a3b8; | |
| --border: #e2e8f0; | |
| --border-light: #f1f5f9; | |
| --shadow-sm: 0 1px 3px rgba(0,0,0,0.06); | |
| --shadow: 0 4px 16px rgba(0,0,0,0.08); | |
| --shadow-lg: 0 8px 30px rgba(0,0,0,0.12); | |
| --radius: 12px; | |
| --radius-sm: 8px; | |
| --radius-lg: 20px; | |
| } | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| background: var(--bg); | |
| color: var(--text); | |
| min-height: 100vh; | |
| overflow: hidden; | |
| } | |
| /* ── Welcome Screen ───────────────────────────────────────────────── */ | |
| .welcome-screen { | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 2rem; | |
| overflow-y: auto; | |
| background: linear-gradient(135deg, #eef2ff 0%, #fafbfc 50%, #ecfdf5 100%); | |
| } | |
| .welcome-content { | |
| max-width: 560px; | |
| width: 100%; | |
| text-align: center; | |
| } | |
| .welcome-hero { | |
| margin-bottom: 2rem; | |
| } | |
| .hero-icon { | |
| font-size: 4rem; | |
| margin-bottom: 0.5rem; | |
| animation: bounce 2s ease-in-out infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 100% { transform: translateY(0); } | |
| 50% { transform: translateY(-8px); } | |
| } | |
| .welcome-hero h1 { | |
| font-size: 2.8rem; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, var(--accent), var(--green)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| margin-bottom: 0.25rem; | |
| } | |
| .hero-sub { | |
| font-size: 1.1rem; | |
| font-weight: 500; | |
| color: var(--text-muted); | |
| margin-bottom: 0.5rem; | |
| } | |
| .hero-desc { | |
| font-size: 0.9rem; | |
| color: var(--text-light); | |
| line-height: 1.6; | |
| } | |
| /* Role picker */ | |
| .role-picker h3, .level-picker h3, .class-picker h3 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| margin-bottom: 1rem; | |
| } | |
| .role-cards { | |
| display: flex; | |
| gap: 1rem; | |
| justify-content: center; | |
| } | |
| .role-card { | |
| background: var(--bg-white); | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| padding: 1.5rem 2rem; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.4rem; | |
| min-width: 160px; | |
| } | |
| .role-card:hover { | |
| border-color: var(--accent); | |
| transform: translateY(-3px); | |
| box-shadow: var(--shadow); | |
| } | |
| .role-card.selected { | |
| border-color: var(--accent); | |
| background: var(--accent-light); | |
| } | |
| .role-icon { font-size: 2rem; } | |
| .role-label { font-size: 1.05rem; font-weight: 600; color: var(--text); } | |
| .role-hint { font-size: 0.75rem; color: var(--text-muted); } | |
| /* Level picker */ | |
| .level-picker { | |
| margin-top: 1.5rem; | |
| animation: fadeUp 0.3s ease; | |
| } | |
| .level-cards { | |
| display: flex; | |
| gap: 0.75rem; | |
| justify-content: center; | |
| flex-wrap: wrap; | |
| } | |
| .level-card { | |
| background: var(--bg-white); | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1rem 1.25rem; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-align: center; | |
| min-width: 140px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.2rem; | |
| } | |
| .level-card:hover { | |
| border-color: var(--green); | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .level-emoji { font-size: 1.5rem; } | |
| .level-name { font-size: 0.95rem; font-weight: 600; color: var(--text); } | |
| .level-detail { font-size: 0.72rem; color: var(--text-muted); } | |
| /* Class picker */ | |
| .class-picker { | |
| margin-top: 1.5rem; | |
| animation: fadeUp 0.3s ease; | |
| } | |
| .class-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); | |
| gap: 0.6rem; | |
| max-width: 400px; | |
| margin: 0 auto; | |
| } | |
| .class-btn { | |
| background: var(--bg-white); | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| padding: 0.7rem 0.5rem; | |
| cursor: pointer; | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| transition: all 0.15s; | |
| color: var(--text); | |
| } | |
| .class-btn:hover { | |
| border-color: var(--accent); | |
| background: var(--accent-light); | |
| } | |
| @keyframes fadeUp { | |
| from { opacity: 0; transform: translateY(12px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* ── Chat Screen ──────────────────────────────────────────────────── */ | |
| .chat-screen { | |
| height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .chat-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 0.6rem 1rem; | |
| background: var(--bg-white); | |
| border-bottom: 1px solid var(--border); | |
| z-index: 10; | |
| } | |
| .header-left { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .btn-back { | |
| background: none; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| padding: 0.4rem 0.6rem; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| color: var(--text-muted); | |
| transition: all 0.15s; | |
| } | |
| .btn-back:hover { background: var(--bg); color: var(--text); } | |
| .header-brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .brand-icon { font-size: 1.3rem; } | |
| .brand-name { font-weight: 700; font-size: 1rem; color: var(--text); } | |
| .brand-level { | |
| display: block; | |
| font-size: 0.7rem; | |
| color: var(--text-muted); | |
| font-weight: 400; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.6rem; | |
| } | |
| .btn-topics, .btn-new-chat { | |
| padding: 0.4rem 0.8rem; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| background: var(--bg-white); | |
| font-size: 0.8rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| color: var(--text); | |
| transition: all 0.15s; | |
| } | |
| .btn-topics:hover, .btn-new-chat:hover { | |
| background: var(--bg); | |
| border-color: var(--text-muted); | |
| } | |
| /* Chat main area */ | |
| .chat-main { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 1rem 1rem 0.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Quick topics buttons */ | |
| .quick-topics { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| justify-content: center; | |
| padding: 0.5rem 0 1rem; | |
| max-width: 640px; | |
| margin: 0 auto; | |
| } | |
| .quick-topic-btn { | |
| padding: 0.5rem 0.9rem; | |
| border: 1px solid var(--border); | |
| border-radius: 20px; | |
| background: var(--bg-white); | |
| font-size: 0.82rem; | |
| cursor: pointer; | |
| transition: all 0.15s; | |
| color: var(--text); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.35rem; | |
| } | |
| .quick-topic-btn:hover { | |
| border-color: var(--accent); | |
| background: var(--accent-light); | |
| transform: translateY(-1px); | |
| } | |
| .quick-topic-btn .qt-icon { font-size: 0.9rem; } | |
| /* Messages */ | |
| .messages { | |
| flex: 1; | |
| max-width: 720px; | |
| width: 100%; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .msg { | |
| display: flex; | |
| gap: 0.6rem; | |
| animation: fadeUp 0.25s ease; | |
| } | |
| .msg-user { | |
| flex-direction: row-reverse; | |
| } | |
| .msg-avatar { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 0.9rem; | |
| flex-shrink: 0; | |
| margin-top: 4px; | |
| } | |
| .msg-user .msg-avatar { | |
| background: var(--accent-light); | |
| } | |
| .msg-ai .msg-avatar { | |
| background: var(--green-light); | |
| } | |
| .msg-bubble { | |
| max-width: 85%; | |
| padding: 0.75rem 1rem; | |
| border-radius: var(--radius); | |
| line-height: 1.65; | |
| font-size: 0.92rem; | |
| word-wrap: break-word; | |
| } | |
| .msg-user .msg-bubble { | |
| background: var(--accent); | |
| color: white; | |
| border-bottom-right-radius: 4px; | |
| } | |
| .msg-ai .msg-bubble { | |
| background: var(--bg-white); | |
| border: 1px solid var(--border); | |
| border-bottom-left-radius: 4px; | |
| color: var(--text); | |
| } | |
| .msg-ai .msg-bubble p { margin-bottom: 0.6rem; } | |
| .msg-ai .msg-bubble p:last-child { margin-bottom: 0; } | |
| .msg-ai .msg-bubble ul, .msg-ai .msg-bubble ol { | |
| margin: 0.4rem 0 0.6rem 1.2rem; | |
| } | |
| .msg-ai .msg-bubble li { margin-bottom: 0.25rem; } | |
| .msg-ai .msg-bubble strong { font-weight: 600; } | |
| .msg-ai .msg-bubble code { | |
| background: var(--border-light); | |
| padding: 0.15rem 0.35rem; | |
| border-radius: 4px; | |
| font-size: 0.85em; | |
| } | |
| /* Curriculum source tags below AI message */ | |
| .msg-sources { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.35rem; | |
| margin-top: 0.5rem; | |
| } | |
| .source-tag { | |
| padding: 0.2rem 0.5rem; | |
| border-radius: 4px; | |
| font-size: 0.68rem; | |
| font-weight: 500; | |
| background: var(--accent-light); | |
| color: var(--accent); | |
| } | |
| /* Typing indicator */ | |
| .typing-dots { | |
| display: flex; | |
| gap: 4px; | |
| padding: 0.75rem 1rem; | |
| } | |
| .typing-dots span { | |
| width: 8px; height: 8px; | |
| background: var(--text-light); | |
| border-radius: 50%; | |
| animation: blink 1.4s infinite; | |
| } | |
| .typing-dots span:nth-child(2) { animation-delay: 0.2s; } | |
| .typing-dots span:nth-child(3) { animation-delay: 0.4s; } | |
| @keyframes blink { | |
| 0%, 80%, 100% { opacity: 0.3; } | |
| 40% { opacity: 1; } | |
| } | |
| /* Chat input area */ | |
| .chat-input-area { | |
| padding: 0.6rem 1rem 0.75rem; | |
| background: var(--bg-white); | |
| border-top: 1px solid var(--border); | |
| } | |
| .input-row { | |
| display: flex; | |
| align-items: flex-end; | |
| gap: 0.5rem; | |
| max-width: 720px; | |
| margin: 0 auto; | |
| } | |
| #chatInput { | |
| flex: 1; | |
| border: 1.5px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 0.7rem 1rem; | |
| font-family: inherit; | |
| font-size: 0.92rem; | |
| line-height: 1.5; | |
| resize: none; | |
| color: var(--text); | |
| background: var(--bg); | |
| transition: border-color 0.15s; | |
| max-height: 120px; | |
| overflow-y: auto; | |
| } | |
| #chatInput:focus { outline: none; border-color: var(--accent); } | |
| #chatInput::placeholder { color: var(--text-light); } | |
| .btn-send { | |
| padding: 0.65rem; | |
| background: var(--accent); | |
| color: white; | |
| border: none; | |
| border-radius: var(--radius); | |
| cursor: pointer; | |
| transition: all 0.15s; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .btn-send:hover { background: var(--accent-hover); transform: translateY(-1px); } | |
| .btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } | |
| .input-hint { | |
| text-align: center; | |
| font-size: 0.7rem; | |
| color: var(--text-light); | |
| margin-top: 0.4rem; | |
| } | |
| /* ── Topics Sidebar ───────────────────────────────────────────────── */ | |
| .topics-sidebar { | |
| position: fixed; | |
| top: 0; right: -380px; | |
| width: 360px; | |
| max-width: 90vw; | |
| height: 100vh; | |
| background: var(--bg-white); | |
| border-left: 1px solid var(--border); | |
| z-index: 100; | |
| transition: right 0.3s ease; | |
| box-shadow: var(--shadow-lg); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .topics-sidebar.open { right: 0; } | |
| .sidebar-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1rem; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .sidebar-header h3 { font-size: 1rem; font-weight: 600; } | |
| .sidebar-close { | |
| background: none; border: none; font-size: 1.4rem; | |
| cursor: pointer; color: var(--text-muted); | |
| padding: 0.2rem 0.5rem; border-radius: 4px; | |
| } | |
| .sidebar-close:hover { background: var(--bg); } | |
| .sidebar-content { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 0.75rem; | |
| } | |
| .sidebar-strand { | |
| margin-bottom: 0.75rem; | |
| } | |
| .strand-header { | |
| font-size: 0.82rem; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| padding: 0.4rem 0.5rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.03em; | |
| } | |
| .topic-btn { | |
| display: block; | |
| width: 100%; | |
| text-align: left; | |
| padding: 0.55rem 0.75rem; | |
| border: none; | |
| background: none; | |
| border-radius: var(--radius-sm); | |
| cursor: pointer; | |
| font-size: 0.85rem; | |
| color: var(--text); | |
| transition: background 0.1s; | |
| } | |
| .topic-btn:hover { background: var(--accent-light); } | |
| /* ── Responsive ───────────────────────────────────────────────────── */ | |
| @media (max-width: 640px) { | |
| .welcome-hero h1 { font-size: 2rem; } | |
| .role-cards { flex-direction: column; align-items: center; } | |
| .role-card { min-width: 200px; width: 100%; } | |
| .level-cards { flex-direction: column; align-items: center; } | |
| .level-card { width: 100%; } | |
| .chat-header { padding: 0.5rem 0.6rem; } | |
| .btn-topics span { display: none; } | |
| .msg-bubble { max-width: 92%; font-size: 0.88rem; } | |
| .header-right { gap: 0.3rem; } | |
| } | |