~sircmpwn/kineto

1074d434d2a186b0c60eb275c034c93e3e874e6f — Byron Torres 3 years ago adfe6e9
Add dark mode user preference with CSS media query
1 files changed, 23 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +23 -0
@@ 286,6 286,29 @@ dl dt {
dl dt:not(:first-child) {
	margin-top: 0.5rem;
}

@media(prefers-color-scheme:dark) {
	html {
		background-color: #111;
		color: #eee;
	}

	blockquote {
		background-color: #000;
	}

	pre {
		background-color: #222;
	}
	
	a {
		color: #0087BD;
	}

	a:visited {
		color: #333399;
	}
}
`

type GemtextContext struct {