backend / src /display /css_html_js.py
clefourrier's picture
clefourrier HF staff
adding_log_visualizer (#1)
8b88d2c verified
raw
history blame contribute delete
469 Bytes
style_content = """
pre, code {
background-color: #272822;
}
.scrollable {
font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace;
height: 500px;
overflow: auto;
}
"""
dark_mode_gradio_js = """
function refresh() {
const url = new URL(window.location);
if (url.searchParams.get('__theme') !== 'dark') {
url.searchParams.set('__theme', 'dark');
window.location.href = url.href;
}
}
"""