Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 1d0fed8

Browse files
committed
[WIP] Add dark mode support for EASE error page
1 parent 4fd1978 commit 1d0fed8

3 files changed

Lines changed: 32 additions & 1 deletion

File tree

6.3 KB
Loading

chromium/pages/cancel/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<body>
1111
<div class="content">
1212
<h1 id="https-everywhere">
13-
<img src="/images/banner-red.png" alt="HTTPS Everywhere">
13+
<img src="/images/banner-red.png" alt="HTTPS Everywhere" class="light-only">
14+
<img src="/images/banner-red-dark.png" alt="HTTPS Everywhere" class="dark-only">
1415
</h1>
1516

1617
<p data-i18n="cancel_he_blocking_explainer"></p>

chromium/pages/cancel/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,33 @@ button:last-child {
5555
margin: 8px 0;
5656
}
5757
}
58+
59+
@media (prefers-color-scheme: dark) {
60+
body {
61+
background-color: #202023;
62+
color: #f9f9fa;
63+
}
64+
65+
a {
66+
color: #45a1ff;
67+
}
68+
69+
button {
70+
color: #202023;
71+
}
72+
73+
button:hover {
74+
background-color: #202023;
75+
border-color: #ec1e1e;
76+
}
77+
78+
.light-only {
79+
display: none;
80+
}
81+
}
82+
83+
@media not (prefers-color-scheme: dark) {
84+
.dark-only {
85+
display: none;
86+
}
87+
}

0 commit comments

Comments
 (0)