Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Added dark theme implementation #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Linus-CS
Copy link

@Linus-CS Linus-CS commented Jul 3, 2020

I have tested the css on the website directly. There probably need to be some adjustments.

@netlify
Copy link

netlify bot commented Jul 3, 2020

Deploy preview for eclipsefdn-solstice-assets ready!

Built with commit 56515fe

https://deploy-preview-154--eclipsefdn-solstice-assets.netlify.app

@@ -0,0 +1,13 @@
.prefers-color-scheme{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Linus-CS why is this wrapped in a class?

If you remove that class, we should be able to see your changes live in the preview: https://deploy-preview-154--eclipsefdn-solstice-assets.netlify.app

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisguindon Oops I accidentally left that there. At the beginning I thought it maybe would be a good idea to wrap it in a class, so that instead of modifying the content directly, you would just use the class when creating a site to specify where changes should be applied after turning on dark theme.

I will remove that and push the changes.

@@ -0,0 +1,13 @@
.prefers-color-scheme{
@media (prefers-color-scheme: dark) {
body footer{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean body, footer?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisguindon Yeah you are right, sorry for that.

color: @text-dark-theme;
}

body a{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to do that, this will set all our links to @brand-primary; which would include the menu.

Maybe we only change the link color in <main>?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisguindon I will implement that in my commit too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants