how to override your css ? #2580
-
Hello again,
Is my method correct ? Rgds, |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Can you share some examples? Like a link to your repository so we can take a further look. |
Beta Was this translation helpful? Give feedback.
-
For the moment, I am working locally. |
Beta Was this translation helpful? Give feedback.
-
.jpc_img {
...
|
Beta Was this translation helpful? Give feedback.
-
Looks all right to me. We can't diagnose your issue before we can examine it. Is there a live sample where this can be reproduced? |
Beta Was this translation helpful? Give feedback.
-
No, no live sample.
And now it works ! I don't know where was my errors in my first approach. If you cannot help with this then forget my question. I hope the the author could read my message and explain how to override his css file (or rather how to add styles without modification of his files). |
Beta Was this translation helpful? Give feedback.
-
It's actually covered pretty well in the documentation: https://mmistakes.github.io/minimal-mistakes/docs/stylesheets/#customizing. Maybe you should try following it first. In case you need working samples, you can checkout my website for some. Here's Also, it helps if you format your replies properly with Markdown, like wrapping code in Finally, I'd like to reiterate this:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your advices. |
Beta Was this translation helpful? Give feedback.
-
Please examine it carefully. The whole content of the ---
# 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 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 ---
---
@charset "utf-8";
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials
@import "custom"; And then write into body {
background-color: blue;
} And then everything should be right. |
Beta Was this translation helpful? Give feedback.
-
Great !!!! |
Beta Was this translation helpful? Give feedback.
Please examine it carefully. The whole content of the
main.scss
file provided in the theme is as follows: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:--- --- @…