i have a common SCSS mixin function in global SCSS file. but i could not able to access that mixin function inside the angular2 components.
i have global style.scss which have following mixin function
@mixin respond-to($breakpoint) {
@if $breakpoint == "small" {
@media (max-width: 767px) {
@content;
}
}
@else if $breakpoint == "medium" {
@media (min-width: 992px) {
@content;
}
}
@else if $breakpoint == "large" {
@media (min-width: 1200px) {
@content;
}
}
}
i am trying to access this mixin function in component.scss like
.procard{
width:50%;
@include respond-to(small){
.pro-card{
width: 100%;
.pro-box{
max-width: 320px;
margin:0 auto;
}
}
}
}
While running this it show error