Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle scss with theme inheritance #32

Open
t-chab opened this issue Jun 2, 2018 · 3 comments
Open

How to handle scss with theme inheritance #32

t-chab opened this issue Jun 2, 2018 · 3 comments
Labels

Comments

@t-chab
Copy link

t-chab commented Jun 2, 2018

Hi,

I'm trying to override Quark theme scss like I did with Antimatter (after reading https://learn.getgrav.org/themes/customization#custom-scss-less it was pretty straightforward) but I can't figure out how to do that using Quark as a base.

Where is Quark's equivalent for Antimatter's /template/_custom.scss ?

@pi43r
Copy link

pi43r commented Jun 17, 2018

Did you figure it out by yourself?

You can just add /template/_custom.scss in your theme.
Copy/Paste theme.scss to your scss folder and add the line
@import 'template/_custom.scss';

Of course you don't have to put it in the template folder.
It seems that in quark there is only css/custom.css to modify the theme...

@t-chab
Copy link
Author

t-chab commented Nov 11, 2018

It seems that in quark there is only css/custom.css to modify the theme...

So if I understand well with Quark I can only override this file using basic CSS ? And I can't use Sass ?

@pi43r
Copy link

pi43r commented Nov 17, 2018

No, you can use Sass.
But you have to create a new custom.scss file and reference it in your theme.scss as I mentioned before.
By default there is only the css solution.

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

No branches or pull requests

3 participants