circle

view source

Create a CSS circle.

use-name
scut-circle
type
mixin only
arguments
  1. $size

    One value becomes both width and height.

  2. $color
    default
    inherit
compatibility

This utility uses border-radius, which is not supported in IE8 — so IE8 will just get what it deserves: squares.

By default, the circle will inherit the color of its parent's text. Or you can designate a color yourself.

If you want to add a border to your circle, you must declare a color.

example

SCSS

.eg-circle-1 {
  @include scut-circle(1em);
}
.eg-circle-2 {
  @include scut-circle(2em, $eg-light);
}
.eg-circle-3 {
  @include scut-circle(2em, $eg-dark);
  border: 5px solid $eg-light;
}

Result