I am trying to customize card columns by using Bootstrap 4 card layout. But why it is showing error if i am writing this code in my css file?
Error showing is in VS code: unknown at rule @include css(unknownatrules)
HTML file
<div class="card-columns">
<div class="card" *ngFor="let item of vision">
<div class="card-header">{{item.heading}}</div>
<carousel [showIndicators]="false">
<slide *ngFor="let item of vision">
<img class="card-img-top embed-responsive embed-responsive-16by9" [src]="item.img" alt="vision image">
</slide>
</carousel>
</div>
</div>
CSS file
.card-columns {
@include media-breakpoint-only(md) {
column-count: 3;
}
@include media-breakpoint-only(lg) {
column-count: 4;
}
}
@include is a SASS feature not CSS feature. Alternatively, you can turn the warning off by
"css.lint.unknownAtRules": "ignore"
Reference : https://github.com/microsoft/vscode/issues/53175
https://github.com/stylelint/stylelint/issues/3190
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With