Comments (11)
Hey, thanks! I'm glad you find it useful :)
First of all, are you using Sass Dart? Because old Ruby Sass is now deprecated.
A part from that, I need more information. Could you paste your sgl-heading
mixin?
For example:
h1 {
@include sgl-heading(3, 0, 1, 2);
}
Also, if you are updating from an older version, check out the new documentation and the CHANGELOG because there have been many changes, some of them breaking old stuff.
Sassy-Gridlover is now at v6.0.4.
from sassy-gridlover.
thanks for your answer.
I'm not using Sass Dart.
Here is the code when
@import 'vendors/sassy-gridlover/sassy-gridlover';
.
.
.
.articleTitle{
@include sgl-heading(3, 0, 1, 2);
text-decoration: none;
font-weight: bold;
display: inline-block;
}
I made the changes according to the indications that are in the new version guide.
from sassy-gridlover.
My first suggestion would be to update to Sass Dart, because that's the official Sass now. Ruby Sass is deprecated and Sassy-Gridlover is up to date to use Sass Dart.
Now, your code looks fine.
Are you using any other Sassy-Gridlover mixins? Apart from the one in the code above. Is this the only mixin that breaks?
from sassy-gridlover.
I just updated to Sass Dart.
I changed the reference in the gulpfile as well and I installed gulp-dart-sass and changed according to instructions too.
the line is
@include sgl-heading(3, 0, 1, 2);
from sassy-gridlover.
I don't know why but it seems that you are lacking the $font-size
variable, that's why it returns null
from sassy-gridlover.
Oh, are you using sgl-html()
? Because you should.
Add this:
html {
@include sgl-html;
}
At the top of you code, line in the example https://github.com/hiulit/Sassy-Gridlover#example-usage
from sassy-gridlover.
thank u again for your instruction. I do not have this problem anymore. I had to add this line
@include sgl-html;
to the class where I use:
@include sgl-heading(3, 0, 1, 2);
and it works.
Duplicate code is generated, but at least, works. I didn't have that problem with the previous version. With this version, it is not possible to use the mixin from different separate files?
I 'm using the 7-1 pattern (https://github.com/HugoGiraudel/sass-boilerplate and I defined:
@include sgl-html;
in the base file, the variables in variables file and another calls to sgl-heading from components, layouts or pages files.
from sassy-gridlover.
I'm glad it's working! :)
You should add @include sgl-html;
ONLY in html {}
, for example in your reset.scss
or the like.
Like this:
html {
@include sgl-html;
}
Only use it one time. It sets the base font size for the project.
from sassy-gridlover.
Maybe it should be stated in the docs clearly that
html {
@include sgl-html;
}
is mandatory.
from sassy-gridlover.
unfortunately, when I remove it, doesn't work :(
from sassy-gridlover.
No, of course! You should not remove it! But you should only add it once:
html {
@include sgl-html;
}
Wherever you have you reset styles or something similar, try to add it there.
from sassy-gridlover.
Related Issues (17)
- Using em instead rem HOT 11
- something is odd here HOT 4
- Line Heights with Ems HOT 4
- NPM Package? HOT 2
- Create a Stylus port
- Create a Less port
- Rewrite $step3 on sgl-heading mixins ? HOT 7
- Use !default in your variables _config.scss HOT 6
- dart-sass: deprecation warning: !global assignments won't be able to declare new variables HOT 3
- Default export HOT 7
- npm publish HOT 3
- Don't append unit HOT 3
- Use pow() when available
- Consider constant naming conventions HOT 2
- Consider using SassDoc HOT 12
- use less generic functions names HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sassy-gridlover.