I am trying to build a card. I am supposed to use some styling from a different project. The structure of the card is as follows:
<div class="card__block">
<img src="/images/1" />
<div>This is the body</div>
</div>
The mixin for the card__block is being imported/to be reused from a different project which has all the base styles.
The mixin defined is as follows:
@mixin card_block {
padding: 0;
margin:0;
background:#fff;
}
//tried the below code:
@import dependencyBaseProjectStyles;
.card {
@include card__block;
}
//When I try to rename the card__block,error: mixin card__block does not exist.
Should I just use the class name or copy the whole mixin and include it in my project for the styles to be applied?