1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 01:39:50 +02:00

feat(avatars): add avatar component (#156)

This commit is contained in:
Igor Guastalla
2018-12-10 08:53:26 -02:00
committed by Abdullah Samman
parent 73b3616472
commit 3d41fb82c2
4 changed files with 58 additions and 0 deletions

View File

@@ -7,3 +7,4 @@
@import "balloons.scss";
@import "tables.scss";
@import "progress.scss";
@import "avatar.scss";

23
scss/elements/avatar.scss Normal file
View File

@@ -0,0 +1,23 @@
@mixin img-style($param) {
$size: $param * 16;
width: $size;
height: $size;
&.is-rounded {
border-radius: 50px;
}
}
.nes-avatar {
@include img-style(2px);
&.is-small {
@include img-style(1px);
}
&.is-medium {
@include img-style(3px);
}
&.is-large {
@include img-style(4px);
}
}