Add dark theme for homepage (MR 5)
Adds @media query to set dark theme for systems with dark theme preference
This commit is contained in:
parent
1a0bde9a5b
commit
f07fe00abd
1 changed files with 17 additions and 0 deletions
|
@ -52,6 +52,23 @@ a {
|
|||
color: black;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
color: #f0f0f0;
|
||||
background-color: #222;
|
||||
}
|
||||
a {
|
||||
background: #111;
|
||||
color: #0b0;
|
||||
}
|
||||
.text a {
|
||||
color: white;
|
||||
}
|
||||
h1, h2 {
|
||||
color: unset;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue