Skip to content

Commit

Permalink
Set up dark mode styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AramZS committed Sep 27, 2021
1 parent 68c225b commit ccb0049
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_sass/_index.sass
Expand Up @@ -3,3 +3,5 @@
@use 'syntax-highlighting'

@use 'user'

@use 'dark-mode'
1 change: 1 addition & 0 deletions src/_sass/_variables.sass
@@ -1 +1,2 @@
$mobile-width: 890px
$large-mobile: 960px
4 changes: 4 additions & 0 deletions src/_sass/template-index.sass
Expand Up @@ -6,6 +6,10 @@
a
text-decoration: none
color: #bdbdbd
@media (prefers-color-scheme: dark)
color: #424242
a
color: #424242
.front-container
display: grid
grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))
Expand Down
3 changes: 3 additions & 0 deletions src/_sass/template-post.sass
Expand Up @@ -43,3 +43,6 @@
&:first-of-type::before
margin: 0
margin-right: 3px
@media (prefers-color-scheme: dark)
#taglist ul li
font-size: 11px
2 changes: 2 additions & 0 deletions src/posts/projects/devblog/hello-day-24.md
Expand Up @@ -134,6 +134,8 @@ I'll try a blank page.

Still nothing. Maybe I'm crazy, but unless the rendering engine is broken by HTML comments, something at the rendering engine level is broken.

Let's google this and read some Github issues.

Ok... [this is some eleventy stuff apparently. It just doesn't work as anticipated](https://github.com/11ty/eleventy/issues/834#issuecomment-569474008). I guess it is just rendering everything in the `content` tag.

Yup, that is what it is... the warning there isn't very clear but yup, can't mix and match. So no njk templates that use blocks in the base site, anywhere I want to have Nunjuck inherence I'll need to use a markdown file in my site folder and manage the actual templates using `_layouts`.
Expand Down

0 comments on commit ccb0049

Please sign in to comment.