react-toolbox/components/avatar/theme.scss

45 lines
780 B
SCSS
Raw Normal View History

2016-06-04 23:06:59 +03:00
@import "../colors";
@import "../globals";
@import "../mixins";
2015-11-26 03:53:42 +03:00
@import "./config";
.avatar {
2015-11-28 00:09:18 +03:00
position: relative;
display: inline-block;
2015-11-26 03:53:42 +03:00
width: $avatar-size;
height: $avatar-size;
overflow: hidden;
2015-11-28 00:09:18 +03:00
font-size: $avatar-font-size;
2015-11-26 03:53:42 +03:00
color: $avatar-color;
text-align: center;
2016-05-16 14:39:59 +03:00
vertical-align: middle;
2015-11-28 00:09:18 +03:00
background-color: $avatar-background;
border-radius: 50%;
2015-11-26 03:53:42 +03:00
> svg {
width: 1em;
height: $avatar-size;
fill: currentColor;
}
2015-11-27 20:32:19 +03:00
> img {
max-width: 100%;
height: auto;
}
2015-11-26 03:53:42 +03:00
}
.image {
position: absolute;
display: block;
width: 100%;
height: 100%;
background-color: transparent;
background-position: center;
background-size: cover;
border-radius: 50%;
}
2015-11-26 03:53:42 +03:00
.letter {
display: block;
width: 100%;
line-height: $avatar-size;
}