Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 4

Custom CSS for Remote Theme

Solved! Go to Solution.

My repository has an error whenever building "Your SCSS file assets/css/style.scss has an error on line 1: File to import not found or unreadable: ."

 

My SCSS looks like this

---
---

@import "";

.inline_header
{
    display: inline;
    margin: 0px;
}

Thanks in advance!

3 Replies
Highlighted
Commander Lvl 1
Message 2 of 4

Re: Custom CSS for Remote Theme

I think the `""` is just a place holder. You need to do something like:

 

@import "{{ site.theme }}";

or 

@import "minima-{{ site.minima.skin | default: 'classic' }}";

though the first is the most common I have seen. 



*Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!*
Highlighted
Copilot Lvl 2
Message 3 of 4

Re: Custom CSS for Remote Theme

I've tried that but it didn't seem to work, there were a few commits that I removedchrome_4o1YaITwSF.png

Highlighted
Solution
Commander Lvl 1
Message 4 of 4

Re: Custom CSS for Remote Theme

Hey! So the error you are getting is saying that it is looking for a file called "just-the-docs.scss" and that that file does not exist, which it doesn't in your repo. Per here: https://github.com/KryptonIon/ItemModifier/search?q=just-the-docs&unscoped_q=just-the-docs you seem to be setting the theme to "just-the-docs".

 

As previously mentioned, you need to choose a theme from the list found here: https://pages.github.com/themes/ thus I do not think that what you are trying to do will work with GitHub pages. You need one of those themes. 



*Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!*