all repos — homestead @ bcb5155d3245e73ad9d2c279cbb736304d21f2d6

Code for my website

Add basic dark-mode support

Alan Pearce
commit

bcb5155d3245e73ad9d2c279cbb736304d21f2d6

parent

2f7943de02dcad91004ee3b2f99bf62ce8faeadf

1 file changed, 21 insertions(+), 0 deletions(-)

jump to
M themes/xmin/static/css/style.cssthemes/xmin/static/css/style.css
@@ -52,3 +52,24 @@ table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; } thead, tfoot, tr:nth-child(even) { background: #eee; } .hl { background-color: #ffc; } + +@media (prefers-color-scheme: dark) { + body { + background-color: #111; + color: white; + } + article > header, nav > ul a { + background: #222; + } + a { + color: #C4D4EE; + } + a:visited { + color: #CEDEE0; + } + code { background-color: #444; } + thead, tfoot, tr:nth-child(even) { background: #222; } + .hl { + background-color: #555; + } +}