2018-09-01 22:35:20 +02:00
|
|
|
<% example do %>
|
2018-10-23 22:42:40 +02:00
|
|
|
@mixin avatar($size, $circle: false) {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2018-09-01 22:35:20 +02:00
|
|
|
|
2018-10-23 22:42:40 +02:00
|
|
|
@if $circle {
|
|
|
|
border-radius: $size / 2;
|
|
|
|
}
|
2018-09-01 22:35:20 +02:00
|
|
|
}
|
|
|
|
|
2018-10-23 22:42:40 +02:00
|
|
|
.square-av { @include avatar(100px, $circle: false); }
|
|
|
|
.circle-av { @include avatar(100px, $circle: true); }
|
|
|
|
===
|
|
|
|
@mixin avatar($size, $circle: false)
|
|
|
|
width: $size
|
|
|
|
height: $size
|
2018-09-01 22:35:20 +02:00
|
|
|
|
2018-10-23 22:42:40 +02:00
|
|
|
@if $circle
|
|
|
|
border-radius: $size / 2
|
2018-09-01 22:35:20 +02:00
|
|
|
|
2018-10-23 22:42:40 +02:00
|
|
|
.square-av
|
|
|
|
@include avatar(100px, $circle: false)
|
|
|
|
.circle-av
|
|
|
|
@include avatar(100px, $circle: true)
|
2018-09-01 22:35:20 +02:00
|
|
|
<% end %>
|