Download static/styles.css from hengds2f/teachme: direct link, hf CLI and curl.
- Browser
- Download file 12.3 kB
-
https://huggingface.co/spaces/hengds2f/teachme/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/hengds2f/teachme/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/hengds2f/teachme/resolve/main/static/styles.css
12.3 kB
| :root { | |
| --bg-color: #020617; | |
| --text-main: #f8fafc; | |
| --text-muted: #94a3b8; | |
| --primary: #6366f1; | |
| --primary-hover: #4f46e5; | |
| --secondary: #1e293b; | |
| --accent: #d946ef; | |
| --success: #10b981; | |
| --warning: #f59e0b; | |
| --glass-bg: rgba(15, 23, 42, 0.8); | |
| --glass-border: rgba(255, 255, 255, 0.1); | |
| --selection-bg: rgba(99, 102, 241, 0.3); | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| html, body { | |
| background-color: var(--bg-color); | |
| color: var(--text-main); | |
| font-family: 'Inter', 'Noto Sans SC', 'Outfit', sans-serif; | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| touch-action: pan-y; | |
| -webkit-overflow-scrolling: touch; | |
| } | |
| /* Typography */ | |
| h1, h2, h3 { font-weight: 700; margin-bottom: 0.5rem; } | |
| a { text-decoration: none; color: var(--primary); } | |
| /* Navbar & Identity */ | |
| .navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; background: var(--glass-bg); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; } | |
| .nav-links { display: flex; gap: 2rem; align-items: center; } | |
| .nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.3s; } | |
| .nav-links a:hover { color: var(--accent); } | |
| /* Library Styles */ | |
| .library-item.active { border-color: var(--accent) ; background: rgba(99, 102, 241, 0.1) ; box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); } | |
| .library-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1) ; } | |
| /* Grid layout */ | |
| .curriculum-grid-container { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem; } | |
| /* Panels & Glassmorphism */ | |
| .glass-panel { | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(16px); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 16px; | |
| padding: 2.5rem; | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); | |
| } | |
| /* Forms */ | |
| .form-group { margin-bottom: 1.5rem; } | |
| .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-weight: 600; } | |
| input, select, textarea { | |
| width: 100%; | |
| padding: 1rem; | |
| border-radius: 8px; | |
| border: 1px solid var(--glass-border); | |
| background: rgba(15, 23, 42, 0.6); | |
| color: #fff; | |
| font-family: inherit; | |
| font-size: 1rem; | |
| transition: all 0.3s; | |
| } | |
| input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); } | |
| /* Buttons */ | |
| button { | |
| cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; padding: 0.8rem 1.5rem; transition: all 0.3s; | |
| } | |
| .cta-button, .dynamic-btn, .complete-btn { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; } | |
| .cta-button:hover, .dynamic-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4); } | |
| .btn-secondary { background: var(--secondary); color: white; border: 1px solid var(--glass-border); } | |
| .btn-secondary:hover { background: #2d3748; } | |
| .complete-btn { background: linear-gradient(135deg, #059669, #10b981); width: 100%; padding: 1rem;} | |
| /* Loader */ | |
| .loader-hidden { display: none ; } | |
| .spinner { border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem; } | |
| @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } | |
| /* Dashboard Header & Grid */ | |
| .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; } | |
| .badge { padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; } | |
| .level-badge { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border: 1px solid var(--primary); } | |
| .curriculum-grid-container { display: flex; flex-direction: column; gap: 3rem; } | |
| .tier-title { color: var(--text-muted); border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; margin-bottom: 1.5rem; text-transform: uppercase; font-size: 1rem; letter-spacing: 2px;} | |
| .topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; } | |
| .topic-card { | |
| background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; transition: all 0.3s; | |
| display: flex; flex-direction: column; position: relative; overflow: hidden; | |
| } | |
| .topic-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(30, 41, 59, 0.9); } | |
| .topic-header { display: flex; justify-content: space-between; margin-bottom: 1rem; } | |
| .topic-id { font-size: 0.8rem; background: rgba(255,255,255,0.1); padding: 0.2rem 0.6rem; border-radius: 4px; } | |
| .topic-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; } | |
| .topic-card p { font-size: 0.9rem; color: var(--text-muted); flex-grow: 1; } | |
| .topic-card.completed { border-color: var(--success); } | |
| .topic-card.completed::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--success); } | |
| .topic-card.in-progress { border-color: var(--accent); } | |
| .topic-card.in-progress::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); } | |
| /* Topic Guide Content */ | |
| .topic-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; } | |
| .back-link { color: var(--text-muted); transition: color 0.3s; } | |
| .back-link:hover { color: white; } | |
| .chunk-box { background: var(--glass-bg); padding: 2rem; border-radius: 12px; margin-bottom: 2rem; border-left: 4px solid var(--primary); animation: fadeIn 0.5s ease-out; } | |
| @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } | |
| .chunk-label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; } | |
| .chunk-content h3 { color: #fff; margin-top: 1.5rem; } | |
| .chunk-content p { margin-bottom: 1rem; } | |
| .chunk-content pre { background: rgba(0,0,0,0.4); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--glass-border); } | |
| .chunk-content code { font-family: monospace; color: #a5b4fc; } | |
| .chunk-controls { background: rgba(15, 23, 42, 0.8); padding: 2rem; border-radius: 12px; text-align: center; border: 1px solid var(--glass-border); margin-top: 2rem;} | |
| .chunk-controls p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #e2e8f0; } | |
| .button-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; } | |
| .dynamic-btn { flex: 1; min-width: 150px; } | |
| .complete-group { border-top: 1px solid var(--glass-border); padding-top: 1.5rem;} | |
| .completion-banner { padding: 2rem; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); border-radius: 12px;} | |
| .completion-banner h3 { color: var(--success); margin-bottom: 1.5rem; } | |
| /* Modal */ | |
| .modal-hidden { display: none; } | |
| #reexplainModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; } | |
| .modal-content { width: 90%; max-width: 500px; text-align: center; } | |
| .modal-actions { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; } | |
| /* FAB */ | |
| .fab { position: fixed; bottom: 30px; right: 30px; border-radius: 50px; padding: 1rem 1.5rem; box-shadow: 0 8px 25px rgba(0,0,0,0.5); z-index: 90; font-size: 1.1rem; } | |
| /* Stats & Hero */ | |
| .stats-hero { margin-bottom: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; } | |
| .progress-container { flex: 1; } | |
| .progress-header { display: flex; justify-content: space-between; margin-bottom: 1rem; } | |
| .progress-bar-bg { background: rgba(255,255,255,0.1); height: 12px; border-radius: 6px; overflow: hidden; } | |
| .progress-bar-fill { background: linear-gradient(90deg, var(--primary), var(--success)); height: 100%; transition: width 0.5s ease-in-out; } | |
| .recommendation-card { background: rgba(99, 102, 241, 0.1); border: 1px dashed var(--primary); padding: 1.5rem; border-radius: 12px; } | |
| .rec-label { font-size: 0.7rem; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; } | |
| .recommendation-card h4 { margin-bottom: 0.5rem; } | |
| .recommendation-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; } | |
| /* Mobile Optimization & Responsiveness */ | |
| @media (max-width: 768px) { | |
| .navbar { padding: 1rem; flex-direction: column; gap: 1rem; text-align: center; } | |
| .nav-links { gap: 1rem; font-size: 0.8rem; flex-wrap: wrap; justify-content: center; } | |
| .container { padding: 1rem; width: 100%; } | |
| .glass-panel { padding: 1.5rem; border-radius: 12px; } | |
| .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; } | |
| .header-actions { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; } | |
| .header-actions .btn-secondary, .header-actions .cta-button { width: 100%; text-align: center; } | |
| .stats-hero { grid-template-columns: 1fr; gap: 1.5rem; } | |
| .topics-grid { grid-template-columns: 1fr; } | |
| .topic-header-bar { flex-direction: column; align-items: flex-start; gap: 1rem; } | |
| .button-group { flex-direction: column; width: 100%; } | |
| .dynamic-btn { width: 100%; } | |
| .fab { bottom: 20px; right: 20px; padding: 0.8rem 1.2rem; font-size: 1rem; } | |
| /* Performance optimization: Reduce blur on mobile for smoother scroll */ | |
| .glass-panel, .navbar { backdrop-filter: blur(8px); } | |
| } | |
| @media print { | |
| .navbar, .chunk-controls, .fab, .topic-actions, .back-link, .stats-hero, #endSessionBtn { display: none; } | |
| body { background: white; color: black; } | |
| .glass-panel { background: white ; border: 1px solid #eee ; backdrop-filter: none ; box-shadow: none ; } | |
| .chunk-box { break-inside: avoid; border: 1px solid #ccc ; background: #fff ; color: #000 ; margin-bottom: 1rem; padding: 1rem; } | |
| .chunk-content * { color: #000 ; } | |
| .tier-title { border-bottom: 1px solid #000; color: #000; } | |
| } | |
| /* Quiz Styles */ | |
| .quiz-container { margin-top: 1rem; } | |
| .quiz-question-card { background: rgba(30, 41, 59, 0.5); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; transition: all 0.3s; text-align: left; } | |
| .quiz-question-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.2rem; display: block; color: #fff; } | |
| .quiz-options { display: flex; flex-direction: column; gap: 0.8rem; } | |
| .quiz-option { | |
| background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 8px; padding: 1rem; | |
| cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 1rem; position: relative; | |
| font-size: 0.95rem; | |
| } | |
| .quiz-option:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); } | |
| .quiz-option.selected { background: rgba(99, 102, 241, 0.2); border-color: var(--primary); box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); } | |
| .quiz-option.correct { background: rgba(16, 185, 129, 0.2) ; border-color: var(--success) ; color: #10b981; font-weight: 600; } | |
| .quiz-option.incorrect { background: rgba(239, 68, 68, 0.2) ; border-color: #ef4444 ; color: #f87171; } | |
| .quiz-explanation { margin-top: 1rem; padding: 1rem; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 0.9rem; border-left: 3px solid var(--primary); display: none; color: var(--text-muted); line-height: 1.5; } | |
| .quiz-explanation.show { display: block; animation: fadeIn 0.4s; } | |
| .quiz-results-summary { text-align: center; padding: 2rem; background: var(--glass-bg); border-radius: 12px; border: 2px solid var(--primary); margin-top: 2rem; } | |
| .quiz-score { font-size: 3rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 0.5rem; } | |
| .quiz-submit-btn { margin-top: 2rem; width: 100%; padding: 1.2rem; font-size: 1.1rem; } | |
| .container.full-width { | |
| max-width: none; | |
| padding: 0; | |
| width: 100%; | |
| } | |