logo

demo

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/demo.git
commit: 659c3acb3236cabeb0832ef7254bdfc6d3476260
parent b70f0c6c7d55099b15f5021fb7626849ddd063ed
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 22 Feb 2022 10:21:16 +0100

common.css: Wrap color-scheme anchor override in @support

Diffstat:

Mcommon.css8++++----
Mindex.html4++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/common.css b/common.css @@ -4,10 +4,10 @@ color-scheme: light dark; } /* <https://github.com/whatwg/html/issues/5426#issuecomment-607286557> */ -@media (prefers-color-scheme: dark) { - a { - color: violet; - } +@supports (color-scheme: light dark) { + @media (prefers-color-scheme: dark) { + a { color: violet; } + } } main { margin: 0 auto; diff --git a/index.html b/index.html @@ -1,8 +1,8 @@ -<html lang=en> +<html lang="en"> <head> <meta charset="utf-8"/> <title>Homepage — Web demos</title> - <link rel="stylesheet" href="common.css"> + <link rel="stylesheet" href="common.css"/> </head> <body> <!-- http://knowyourmeme.com/memes/born-to-die-world-is-a-fuck-kill-em-all-1989-i-am-trash-man-410757864530-dead-cops -->