Skip to content

Commit d6bcab6

Browse files
committed
dark mode
1 parent a7e87f4 commit d6bcab6

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

_layouts/default.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ <h1><a class="header" href=/>Stathers.net</a></h1>
4646
Stathers.net
4747
<div>
4848
<a class="img_link" style="float:left" href="https://github.com/mstathers/" target="_blank">
49-
<img class="social_icon" src="/css/GitHub-Mark-32px.png" alt="https://github.com/mstathers">
49+
<picture class="social_icon" alt="https://github.com/mstathers">
50+
<source srcset="css/GitHub-Mark-White-32px.png" media="(prefers-color-scheme: dark)" />
51+
<img src="css/GitHub-Mark-32px.png" />
52+
</picture>
5053
</a>
5154

5255
<a class="img_link" style="float:left" href="https://www.linkedin.com/in/mstathers" target="_blank">

contact.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ <h2>Contact Information</h2>
1818
</a><br>
1919

2020
<a class="img_link" href="https://github.com/mstathers/" target="_blank">
21-
<img class="social_icon" src="css/GitHub-Mark-32px.png" alt="https://github.com/mstathers">
21+
<picture class="social_icon" alt="https://github.com/mstathers">
22+
<source srcset="css/GitHub-Mark-White-32px.png" media="(prefers-color-scheme: dark)" />
23+
<img src="css/GitHub-Mark-32px.png" />
24+
</picture>
2225
</a><br>
2326
</div>
2427
</div>

css/GitHub-Mark-White-32px.png

727 Bytes
Loading

css/style.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,31 @@ a.img_link {
135135
clear: both;
136136
padding: 4px;
137137
}
138+
139+
@media (prefers-color-scheme: dark) {
140+
body {
141+
background: #181a1b;
142+
color: rgb(232, 230, 227);
143+
}
144+
.header a, .nav_bar a, a {
145+
color: rgb(232, 230, 227);
146+
}
147+
#nav {
148+
background: #202324;
149+
}
150+
#blog_index {
151+
background: #202324;
152+
}
153+
blockquote {
154+
background: #202324;
155+
}
156+
157+
.highlight .o { color: #848181 } /* Operator */
158+
.highlight .s { background-color: #3a3131 } /* Literal.String */
159+
.highlight .sb { background-color: #3a3131 } /* Literal.String.Backtick */
160+
.highlight .s2 { background-color: #3a3131 } /* Literal.String.Double */
161+
.highlight .se { color: #606060; font-weight: bold; background-color: #3a3131 } /* Literal.String.Escape */
162+
.highlight .sh { background-color: #3a3131 } /* Literal.String.Heredoc */
163+
.highlight .sh { background-color: #3a3131 } /* Literal.String.Heredoc */
164+
.highlight .s1 { background-color: #3a3131 } /* Literal.String.Single */
165+
}

0 commit comments

Comments
 (0)