Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey,
I found out that importing both @import "base/_base";
and @import "base/**/*";
declare the css out of _base twice.
Is it really needed to declare the specific _base and _typography scss files again?
Cheers,
Tom
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedI don't know what you mean. We never do that in Omega, Ohm or the starterkit. Where have you seen that? (First of all, where did you see the two import types (with wildcards and without for the same folder structure) in the same place and secondly, where did you see @import "base/_base"; (with the leading underscore for _base - That's not needed and certainly not used anywhere in Omega).
We always use wildcard/globbing imports. And even if we didn't we would never use
@import "foo/_bar.scss";
but rather plain@import "foo/bar";
(both do the same but the second variant is the prefered syntax for importing partials (underscore prefixed files)). Those partials are special - Please read the Compass documentation on Partials for more information regarding that.Also, I would suggest you read up on how sass-globbing works (the wildcard imports) because that's the preferred way of doing this (automagic).
Comment #2
betz CreditAttribution: betz commentedVery weird. I just generated a new subtheme in another drupal installation with drush.
Now, in the sass folder of my 'test' subtheme, I find the test.styles.scss file.
This is the content:
Here indeed isn't the _base file declared twice. Very strange, as I also changed this at my other theme.
Ignoring it now, the issue exists, we'll see later... :)
Thanks for the answer!
Tom
Comment #3
betz CreditAttribution: betz commentedOK, found out, the person that was working on it before me was using windows and didn't have the sass-globbing gem installed, ...
Sorry for the confusion.