north / generator-style-prototype

Yeoman Generator for Style Prototypes
362 stars 49 forks source link

Difficulties understanding _extends.scss / _mixins.scss / template approach ... #37

Closed ducdebreme closed 10 years ago

ducdebreme commented 10 years ago

I attended snugug's lab at the Drupalcon in Prague and I really enjoy the generator. I would like to use it for future projects...

But I am struggeling with the approach of creating a structures like

_html.scss
html/_extends.scss
html/_mixins.scss

I was about to set the font sizes and line heights, but I don't understand where to define them? Why do we have the variable $html-extendables-extended ? Why should I set it?

$html-extendables-extended: false !default;

@if not ($html-extendables-extended) {
  %html-base {
    @include html-base($extend: false, $font-size: $base-size, $line-height: $base-line-height);
  }
}

$html-extendables-extended: true;

Is there a post somewhere, that describes the theory behind?

Snugug commented 10 years ago

I am in the process of creating a writeup explaining the different pieces and why they are written like they are

ducdebreme commented 10 years ago

I am very much looking forward to it! Am 10.11.2013 16:44 schrieb "Snugug" notifications@github.com:

I am in the process of creating a writeup explaining the different pieces and why they are written like they are

— Reply to this email directly or view it on GitHubhttps://github.com/Team-Sass/generator-style-prototype/issues/37#issuecomment-28153085 .

Snugug commented 10 years ago

Full writeup to this approach can be found in North