Using compass mixin to prefix background gradient

By including the mixin “background” with Compass, Compass will automatically add all prefixes needed for mozilla,webkit etc without you having to worry about it.

@import "compass";

.socket {
  @include background(radial-gradient(center, #333333, #222222));
  border-radius: 50%;
  height: 200px;
  width: 200px;
}

Add your comment