1

I am trying to create a basic website and I want to use SASS to write some CSS. I am trying something really simple at first to understand how it works. However even this simple example doesn't seem to work. Here is the SASS code:

    %aParagraph {
        font-family: sans-serif;
        font-weight: bold;
    }



    .specificParagraph {
        @extend %aParagraph;
        font-size: 34px ;
    }

but then when it translates into CSS it becomes:

    .specificParagraph {
        font-family: sans-serif;
        font-weight: bold; }

    .specificParagraph {
        font-size: 34px; }

when I actually expected the CSS file to mention aParagraph as well as specificParagraph.

What's going on?

TylerH
  • 20,799
  • 66
  • 75
  • 101
JustABeginner
  • 321
  • 1
  • 5
  • 14

0 Answers0