~torresjrjr/kineto

98b0909d5c587eccac3ba529538374cb6aa513f8 — Byron Torres 1 year, 1 month ago adfe6e9 master
Add dark mode user preference with CSS media query
1 files changed, 15 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +15 -0
@@ 286,6 286,21 @@ 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: #011;
	}
}
`

type GemtextContext struct {