utilise le mode 'color-sheme' des navigateurs a la place d'un css en dur pour le mode sombre

This commit is contained in:
Antoine Ouvrard 2022-02-22 14:26:38 +01:00
parent 81f388ef4b
commit 7fa1a10b3e

View File

@ -1,10 +1,13 @@
:root {
color-scheme: dark;
}
body { body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
max-width: 800px; max-width: 800px;
margin: auto; margin: auto;
background: #333;
padding: 0px 0px 70px 0px; padding: 0px 0px 70px 0px;
color: #c3c3c3; color: #9a9a9a;
line-height: 30px; line-height: 30px;
} }
@ -79,10 +82,10 @@ table {
/* Print settings */ /* Print settings */
@media print { @media print {
body * { body * {
background: #c3c3c3; background: #c3c3c3;
color: #333; color: #333;
line-height: 1em; line-height: 1.3em;
} }
} }