mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
26 lines
520 B
Plaintext
26 lines
520 B
Plaintext
<% example do %>
|
|
@mixin avatar($size, $circle: false) {
|
|
width: $size;
|
|
height: $size;
|
|
|
|
@if $circle {
|
|
border-radius: $size / 2;
|
|
}
|
|
}
|
|
|
|
.square-av { @include avatar(100px, $circle: false); }
|
|
.circle-av { @include avatar(100px, $circle: true); }
|
|
===
|
|
@mixin avatar($size, $circle: false)
|
|
width: $size
|
|
height: $size
|
|
|
|
@if $circle
|
|
border-radius: $size / 2
|
|
|
|
.square-av
|
|
@include avatar(100px, $circle: false)
|
|
.circle-av
|
|
@include avatar(100px, $circle: true)
|
|
<% end %>
|