dynamic-hfspaces / style.py
LPX55
re-init
9c6c4fb
raw
history blame contribute delete
835 Bytes
js_func = """
function refresh() {
const url = new URL(window.location);
if (url.searchParams.get('__theme') !== 'dark') {
url.searchParams.set('__theme', 'dark');
window.location.href = url.href;
}
}
"""
css_func = """
.sidebar{
background-color: (--block-border-color) !important;
border-right: #373737 !important;
border-right-width: 3px !important;
border-right-style: solid !important;
}
.post{
color: #1c1a1a !important;
font-size: 0.8rem !important;
padding: 4px 2px !important;
}
.highlight{
color: #1c1a1a !important;
font-size: 0.8rem !important;
padding: 4px 2px !important;
}
.prose a{
color: #aba9a9 !important;
}
.prose a:visited{
color: #6b6767 !important;
}
.prose hr {
margin-top: 2em !important;
margin-bottom: 2em !important;
"""