SASS Mixin

PHOTO EMBED

Fri Jan 21 2022 14:54:18 GMT+0000 (Coordinated Universal Time)

Saved by @Sebhart #css #sass

@mixin square($size, $color) {
  width: $size;
  height: $size;
  background-color: $color;
}

.small-blue-square {
  @include square(20px, rgb(0,0,255));
}

.big-red-square {
  @include square(300px, rgb(255,0,0));
}
content_copyCOPY

https://tutorialzine.com/2016/01/learn-sass-in-15-minutes