Skip to content

Commit d7e916e

Browse files
paper42the-maldridge
authored andcommitted
index.html: dark twitter timeline
1 parent a69bf21 commit d7e916e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

assets/css/misc.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
294294
background-color: inherit;
295295
color: white;
296296
}
297-
.twitter-timeline {
298-
background-color: white;
299-
}
300297
.alert-warning {
301298
font-weight: bold;
302299
color: #ccc;

index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ <h3>xbps-src</h3>
6969
<hr>
7070
<div class="row">
7171
<div class="col-md-4">
72-
<a class="twitter-timeline" data-chrome="noborders noscrollbar transparent" width="520" height="300" href="https://twitter.com/VoidLinux" data-widget-id="621226324586328064">Tweets by @VoidLinux</a>
73-
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
72+
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
73+
<script>
74+
theme = "light"
75+
if (window.matchMedia('(prefers-color-scheme: dark)').matches) theme="dark"
76+
document.write('<a class="twitter-timeline" data-theme="' + theme + '" data-chrome="noborders noscrollbar transparent" width="520" height="300" href="https://twitter.com/VoidLinux">Tweets by VoidLinux</a>')
77+
</script>
7478
</div>
7579
<div class="col-md-4">
7680
<h3>void-packages changes <span class="rssdev"><a href="https://github.com/void-linux/void-packages/commits/master.atom" title="Subscribe to void-packages"><i class="fa fa-rss fa-lg"></i></a></span></h3>

0 commit comments

Comments
 (0)