Skip to content

how to override your css ? #2580

Answered by iBug
jphconstantin asked this question in Q&A
Discussion options

You must be logged in to vote

Please examine it carefully. The whole content of the main.scss file provided in the theme is as follows:

---
# Only the main Sass file needs front matter (the dashes are enough)
---

@charset "utf-8";

@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials

The actual styles are located in the _sass directory, which will not be overridden unless you put something with an identical name there.

So you do not have a copy of all the theme styles, just a copy of "the loader" / "the index" which very rarely changes.

For a minimal example, place main.scss in your repository with the following content:

---
---

@…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mmistakes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2580 on December 09, 2020 13:57.