Spaces:
Sleeping
Sleeping
Improve challenge doc readability in light mode
Browse filesFiles changed (2)
- app.py+5-1
- student_interface.py+42-2
32 unmodified lines333435363637383940413 unmodified lines4546474849505132 unmodified lines
logger.info("π Launching Legacy Code Challenge (Original version)...")
from student_interface import demoimport student_interface
demo = student_interface.demo
logger.info("β
Demo imported successfully!")
3 unmodified lines # On HuggingFace Spaces, Gradio handles server config automatically demo.launch( show_error=True, css=student_interface._CSS, js=student_interface._JS, )
409 unmodified lines410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455945 unmodified lines14011402140313641404140514061407669 unmodified lines20772078207920402080208120822083409 unmodified lines/* Tab content */.left-tabs .tabitem { overflow-y: auto !important; max-height: 80vh !important; }
/* Challenge README readability */.challenge-doc { line-height: 1.65;}body:not(.dark) .challenge-doc { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 20px 24px;}body:not(.dark) .challenge-doc,body:not(.dark) .challenge-doc p,body:not(.dark) .challenge-doc li,body:not(.dark) .challenge-doc strong,body:not(.dark) .challenge-doc em,body:not(.dark) .challenge-doc blockquote { color: #0f172a !important;}body:not(.dark) .challenge-doc h1,body:not(.dark) .challenge-doc h2,body:not(.dark) .challenge-doc h3,body:not(.dark) .challenge-doc h4 { color: #020617 !important;}body:not(.dark) .challenge-doc code { background: #e2e8f0; color: #111827 !important; padding: 0.15em 0.35em; border-radius: 4px;}body:not(.dark) .challenge-doc pre { background: #e2e8f0 !important; color: #111827 !important; border: 1px solid #cbd5e1;}body:not(.dark) .challenge-doc pre code { background: transparent; padding: 0;}
/* Results diff blocks */.diff-block { font-family: monospace; font-size: 0.85em; padding: 12px; border-radius: 8px; overflow-y: auto; max-height: 45vh;945 unmodified lines with gr.Tabs(selected=0, elem_classes=["left-tabs"]) as left_tabs:
with gr.Tab("π Challenge", id=0): challenge_readme = gr.Markdown("") challenge_readme = gr.Markdown("", elem_classes=["challenge-doc"])
with gr.Tab("π» Code Editor", id=1): file_dropdown = gr.Dropdown(669 unmodified lines with gr.Tabs(selected=0, elem_classes=["left-tabs"]) as left_tabs:
with gr.Tab("π Challenge", id=0): gr.Markdown(cs.readme()) gr.Markdown(cs.readme(), elem_classes=["challenge-doc"])
with gr.Tab("π» Code Editor", id=1): file_dropdown = gr.Dropdown(app.py+5-1
student_interface.py+42-2