SASS - mixins, include

_mixins.scss

@mixin text-design-change($firstColor: $gradient-color-first,$secondColor: $gradient-color-second){
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(to right top,$firstColor, #742c17, #ac5f17, #d59c08, $secondColor);
}


style.scss

p{
  width: 100%;
  height: 150px;
  //@include text-design-change(#fff,#000);  @include text-design-change();
}

Bu blogdaki popüler yayınlar

About Android padding, margin, width, height, wrap_content, match_parent, R Class