Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
System dark theme and darkened post overlay (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Locness <37651007+locness3@users.noreply.github.com>
  • Loading branch information
JipFr and locness3 committed Mar 4, 2020
1 parent 55c2ece commit fabe7df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -45,7 +45,7 @@
<h1>My stuff</h1>
</div>
{% for thing in site.stuff %}
<div class="post" style="background-image: url('{{ thing.image }}')">
<div class="post" style="background-image: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('{{ thing.image }}')">
<div class="post-overlay"></div>
<h2 class="post-title">{{ thing.title }}</h2>
{{ thing.excerpt }}
Expand Down
10 changes: 10 additions & 0 deletions style.css
Expand Up @@ -34,6 +34,16 @@ body.dark-theme {
--main-color: #ffffff;
--bg-color: #262626;
}
@media (prefers-color-scheme: dark) {
body {
--main-color: #ffffff;
--bg-color: #262626;
}

.night-mode-toggle {
display: none;
}
}

.site-header {
-webkit-transition: -webkit-box-shadow 0.2s;
Expand Down

0 comments on commit fabe7df

Please sign in to comment.